I was originally using the default (ext2), but I noticed that the image on
gem5.org used ext3. It doesn't make a difference.

I mount using:

sudo mount -o loop,offset=32256 ubuntu-arm.img /mnt

The only differences I observe in a fresh image using the command I sent,
and the image on gem5.org, are:

1) The one from gem5.org seems to have ssh installed. It also keeps its
network-interface-security.conf file.
2) The one on gem5.org has initctl emit all-swap, as opposed to all-swaps
in its mountall.conf script. I think this is a typo, but it doesn't affect
anything as far as I can tell.
3) The one on gem5.org does not have a mounted-tmp.conf script.
4) The one on gem5.org does not have the line swapon /swapfile # if
present, as indicated in the instructions.

On Fri, Mar 2, 2012 at 3:19 PM, Anthony Gutierrez <[email protected]>wrote:

> I was originally using the default (ext2), but I noticed that the image on
> gem5.org used ext3. It doesn't make a difference.
>
> I mount using:
>
> sudo mount -o loop,offset=32256 ubuntu-arm.img /mnt
>
> The only differences I observe in a fresh image using the command I sent,
> and the image on gem5.org, are:
>
> 1) The one from gem5.org seems to have ssh installed. It also keeps its
> network-interface-security.conf file.
> 2) The one on gem5.org has initctl emit all-swap, as opposed to all-swaps
> in its mountall.conf script. I think this is a typo, but it doesn't affect
> anything as far as I can tell.
> 3) The one on gem5.org does not have a mounted-tmp.conf script.
> 4) The one on gem5.org does not have the line swapon /swapfile # if
> present, as indicated in the instructions.
>
>
> On Fri, Mar 2, 2012 at 3:05 PM, Geoffrey Blake <[email protected]> wrote:
>
>> Try an ext2 file system as an experiment.  Also when you mount the
>> disk image you are being sure to mount it at the proper offset of
>> 32256? Otherwise you could be corrupting the partition info.
>>
>> As for apt-get behaving strange, here is another rootstock wiki:
>> https://wiki.edubuntu.org/ARM/RootfsFromScratch
>> But on your image you have to update your etc/resolv.conf to match
>> that of the host machine.  That is machine specific in cases.  I'll
>> have to update the gem5 wiki to reflect this.
>>
>> Geoff
>>
>>
>> On Fri, Mar 2, 2012 at 12:26 PM, Anthony Gutierrez <[email protected]>
>> wrote:
>> > My setup is as follows:
>> >
>> > Host with 64 bit Ubuntu 11.04 (Natty)
>> > rootstock version 0.1.99.4
>> > qemu version 0.14.0
>> >
>> > I create the disk image using the following steps:
>> >
>> > 1) ./gem5img.py init ubuntu-arm.img 3072 -t ext3
>> > 2) sudo rootstock --fqdn gem5sim --login gem5 --password password
>> > --imagesize 3G --seed build-essential --dist natty
>> > 3) mount the ubuntu-arm.img I just created
>> > 4) cp and untar the rootstock tarball to the ubuntu-arm.img using sudo
>> > privileges.
>> > 5) Modify the startup scripts etc., according to the directions on
>> gem5.org.
>> > 6) Try to boot this image with the kernel provided on gem5.org
>> >
>> > As far as being able to apt-get packages on the image from gem5.org, I
>> was
>> > curious about this as well, so I tried to apt-get packages to the image
>> I
>> > created on a machine different from the one on which it was created, it
>> also
>> > fails with the same error. However, I can use apt-get on this image if
>> I do
>> > it on the machine I used to create it. Are there some machine specific
>> keys
>> > or something that apt-get looks at?
>> >
>> >
>> > On Fri, Mar 2, 2012 at 1:15 PM, Geoffrey Blake <[email protected]>
>> wrote:
>> >>
>> >> I'll try to recreate one of my images in the near future.  I've done
>> >> it twice already with no real problems. I'm having no trouble mounting
>> >> the disk image on the website and running apt-get either.  Not sure
>> >> what the problem could be at this point.  What version of Ubuntu are
>> >> you using rootstock with?  How are you creating the disk image?
>> >>
>> >> Geoff
>> >>
>> >> On Fri, Mar 2, 2012 at 10:37 AM, Anthony Gutierrez <[email protected]
>> >
>> >> wrote:
>> >> > Hello,
>> >> >
>> >> > I tried adding packages to the Ubuntu image from gem5.org. I
>> followed
>> >> > the
>> >> > instructions from the link below to try to add packages to this
>> image,
>> >> > however, apt-get just hangs when trying to add packages because it
>> can't
>> >> > connect to the repo.
>> >> >
>> >> > When I build my own image using the method described below, I can add
>> >> > packages using apt-get but, the image will not boot. It gives the
>> error
>> >> > "mount: unknown filesystem type 'none' ". And aldo, "modprobe: Fatal:
>> >> > Could
>> >> > not load /lib/modules/2.6.38.8-gem5/modules.dep: No such file or
>> >> > directory".
>> >> >
>> >> > I modified the upstart scripts as described and there don't appear
>> to be
>> >> > any
>> >> > differences between the image I created and the one I downloaded from
>> >> > gem5.org. Has anybody been able to successfully build their own
>> Ubuntu
>> >> > image? If so, are there steps missing from the instructions given at
>> the
>> >> > link below?
>> >> >
>> >> > http://gem5.org/Ubuntu_Disk_Image_for_ARM_Full_System
>> >> >
>> >> > --
>> >> > Thanks,
>> >> > Tony
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > gem5-users mailing list
>> >> > [email protected]
>> >> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>> >> _______________________________________________
>> >> gem5-users mailing list
>> >> [email protected]
>> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>> >>
>> >> --
>> >> Thanks,
>> >> Tony
>> >>
>> >
>> >
>> > _______________________________________________
>> > gem5-users mailing list
>> > [email protected]
>> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> --
> Thanks,
> Tony
>
> --
> Thanks,
> Tony
>
>
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to