Howto install a Narcissus build?

Hi everybody,

I've been trying Koen's site to generate a nice and complete distro
for my Beagleboard (still evaluating all options, as I haven't seen
the most complete yet), but I am stuck when I have downloaded both the
image file and the rootfs.

I am succesfully able to decompress the rootfs on the ext3 partition,
however I have no experience with getting the SD image on a fresh SD
card. Can anyone tell me how I mount the SD image file and copy all
uImages, u-boot and other stuff to my new SD card?

Kind regards,

Eelco

Hi everybody,

I've been trying Koen's site to generate a nice and complete distro
for my Beagleboard (still evaluating all options, as I haven't seen
the most complete yet), but I am stuck when I have downloaded both the
image file and the rootfs.

I am succesfully able to decompress the rootfs on the ext3 partition,
however I have no experience with getting the SD image on a fresh SD
card. Can anyone tell me how I mount the SD image file and copy all
uImages, u-boot and other stuff to my new SD card?

http://elinux.org/BeagleBoardBeginners#Writing_the_.C3.85ngstr.C3.B6m_image_into_the_SDcard_and_finally_booting_GNU.2FLinux

Seems to be reasonable. I wish we were better at keeping the
documentation organized ....

Philip

Well that works with the separate uImage and u-boot files. However,
Narcissus yields a .img file for the boot partition of the SD card and
that's not described in this part of the wiki. I need to be able to
mount the .img file as a filesystem and then copy the contained uImage
and u-boot files to SD.

Kind regards,

Eelco

there's another page that goes thru the same description:

http://code.google.com/p/beagleboard/wiki/HowToGetAngstromRunning

and it mentions adding "console=tty0" to the bootargs as well.

rday

Nope, it still assumes that you have all separate files. I need a
description how to mount a .img file and copy the contents to a SD
card. It is just like with windows when you use Daemon tools to mount
a virtual CD. If I find the answer, shall I put it on the Wiki, or
does Koen want to do that?

Kind regards, Eelco

It sounds from your email that you need to use a loop filesystem to extract the files… If this is the case then the command you are looking for is “losetup”. It would be something like:

losetup /dev/loop0 /home/fred/build/myfile.img

mount /dev/loop0 /mnt/mountpoint

ls -la /mnt/mountpoint

Its entirely likely that the above snippet contains errors as its late (and I’m not sober :slight_smile: so if it doesn’t work try “man losetup” or Google for it… If you still haven’t worked it out then post back and I’ll try and be more useful :slight_smile:

Eelcor,

There are different system and booting options, but the easiest one
is:
NAND has X-loader and u-boot but no uImage (factory default)
SD card has boot.scr and uImage in FAT32 partition and filesystem in
EXT3 partition

You don't need to use *.img file.
After you created your image using Narcissus do:
- download only *.tar.bz2 file
- prepare your SD card with 2 partitions FAT32 and EXT3 as discribed
in many places
- extract your *.tar.bz2 file into EXT3 partition (sudo tar xpjfv
*.tar.bz2 -C /media/EXT3/ or similar)
- copy the file uImage-??? from freshly created directory /boot on SD
card to some location on your desktop PC
- rename uImage* into uImage
- copy uimage into FAT partition on SD card
- copy your boot.scr file into FAT partition on SD card

(If you use another option, with MLO, u-boot.bin and uImage on SD
card, which sometimes is necessary
you have to remember that due to limitations of MLO(X-loader for MMC)
there are special requirements for FAT partition.)

Boot your system and relax watching it.

Hope this will help

Jan

Thanks!

Both the loop filesystem and the copy from /boot helped to solve my
problem!

Kind regards,

Eelco

Actually the intended and simplest solution is to dd the uncompressed
img file to an empty card

FM