SD card utility and demo images. Getting started.

I was trying to get my SD card working, created a FAT fs on it and tried to load my version of U-boot, but it didn’t seem to work (it was always using the U-boot present in the nand). Most of the wiki’s content seem outdated (rev C3 or earlier and some even rev B) and a few links (like the one to the HP utility) don’t exist anymore.
Is there a clean-up activity going on? I can volunteer if you need a hand.

Also, there is no first-timers guide (sequence of direct steps) to running a demo image (of any ported OS) on a C4 (atleast I wasn’t able to spot one so far).

I first want to see a live OS in action on the Beagle and then start working on modifying the parts that I am interested in. How do I go about this? I mostly work on Windows 7 host laptop.

I am also looking for a USB driver for the beagle that I can later use as a network interface between host and beagle. Does one exist?

I might be sounding too basic, but this is where I am at currently and would appreciate help from any of you experienced people.

Regards,
Scott.

Excerpts from Scott Williams's message of mer feb 17 22:09:29 +0100 2010:

I was trying to get my SD card working, created a FAT fs on it and tried to load my version of U-boot, but it didn't seem to work (it was always using the U-boot present in the nand). Most of the wiki's content seem outdated (rev C3 or earlier and some even rev B) and a few links (like the one to the HP utility) don't exist anymore.
Is there a clean-up activity going on? I can volunteer if you need a hand.

Also, there is no first-timers guide (sequence of direct steps) to running a demo image (of any ported OS) on a C4 (atleast I wasn't able to spot one so far).

I first want to see a live OS in action on the Beagle and then start working on modifying the parts that I am interested in. How do I go about this? I mostly work on Windows 7 host laptop.

I am also looking for a USB driver for the beagle that I can later use as a network interface between host and beagle. Does one exist?

I might be sounding too basic, but this is where I am at currently and would appreciate help from any of you experienced people.

Regards,
Scott.

Hi Scott,

I got a beagleboard C4 some weeks ago and I was able to run angstrom from
the SD without much issues.

First of all you need to create a dual partition SD:

http://elinux.org/BeagleBoardBeginners#SD_card_setup

Then you have to copy three files on the boot partition (MLO, u-boot.bin,
uImage) and an Angstrom image in the root partition:

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

You can choose to use an Angstrom demo image or to build your own system using narcissus:

http://www.angstrom-distribution.org/narcissus/

Hope this helps,

Hi,

The BB rev. has no much to do with running an angstrom image. It is pretty much straight forward like Andrea said. Hence, clean-up activity is not necessary. In fact it is up-to-date.

One thing is worth mentioning here is “the file name uImage should match with BB env” otherwise it will fail to read uImage. I mean both places it should be either uImage or uImage.bin

PS: Check the necessary hardwares for boot up your BB. http://code.google.com/p/beagleboard/wiki/BeagleBoardShoppingList

Good luck:-)
Kunal

Hi Andrea,
Thank you for the support. However, I am still stuck. First off, I wanted to do it in Windows, but after finally deciding that its way too painful to try out this stuff in Windows (the wiki links you pointed to talk of fdisk only), I built a linux box for this purpose and tried to follow the wiki, but after I totally edited and wrote the partition info to the SD card (which was being shown as /dev/mmcblk0p1), I couldn’t see both the partitions when I list using fdisk. Assuming the reboot message to be the way to go, I did reboot and still found that I am only able to see the original card (formatted for FAT32). That means fdisk did not even write the partition info into the card, though it claims it did (and here’s how it shows)

Andrea,
Just curious, doesnt beagle already have uboot written at factory? Do
you need it again in the sd card?

Have fun,
Sri

First of all, use a Linux system for this - Windows will only cause continued pain!

The attached scripts are how I build bootable images - just hand it the device,
kernel and file system and it does the rest... e.g.
   # make_sd /dev/sdb uImage-beagle rootfs-beagle.tar.bz2
where /dev/sdb is the name of the raw device your SD card is plugged into.

Note: the device and partition names differ from host and target.
On the host they'll be things like /dev/sdb1, /dev/sdb2, etc.
On the target they are /dev/mmcblk0p1, /dev/mmcblk0p2, etc.

make_sd (1.12 KB)

mkcard.sh (489 Bytes)

Hi Andrea,
    Thank you for the support. However, I am still stuck. First off, I
wanted to do it in Windows, but after finally deciding that its way too
painful to try out this stuff in Windows (the wiki links you pointed to
talk of fdisk only), I built a linux box for this purpose and tried to
follow the wiki, but after I totally edited and wrote the partition info
to the SD card (which was being shown as /dev/mmcblk0p1), I couldn't see
both the partitions when I list using fdisk. Assuming the reboot message
to be the way to go, I did reboot and still found that I am only able to
see the original card (formatted for FAT32). That means fdisk did not
even write the partition info into the card, though it claims it did
(and here's how it shows)

Command (m for help): p

Disk /dev/mmcblk0p1: 8164 MB, 8164737024 bytes
255 heads, 63 sectors/track, 992 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x326fde98

          Device Boot Start End Blocks Id System
/dev/mmcblk0p1p1 * 1 51 409626 c W95 FAT32
(LBA)
/dev/mmcblk0p1p2 52 992 7558582+ 83 Linux

Command (m for help):

I think you must have missed a step.
After you set up the partitions, issue "w" to write them to the SD card
and next you format /dev/mmcblk0p1 using "mkfs.vfat -F 32
/dev/mmc0blk0p1" and the ext3 partition with "mkfs.ext3 /dev/mmc0blk0p2".
Mount the partitions, you can make a couple of directories on which to
mount them, "mkdir /1 /2", "mount /dev/mmc0blk0p1 /1", "mount
/dev/mmc0blk0p2 /2".
Next "cp MLO and u-boot.bin /1"
"tar jxfv <the_angstrom_or_narcissus.tar.bz2> -C /2" or if it's a tar.gz
file, "tar zxfv".
When that's finished, "sync"
"umount /1 /2"
Put the SD card into the beagleboard and power it up.

Next, I even tried to use Acronis Disk Director in Windows, and though
it deleted the (single) partition on the sd card, it failed to create
new partitions. Is there any other way to try multiple partitions? Or,
put all the images into a single FAT/EXT partition?

Regards,
Scott.

Regards
Sid.

Excerpts from SV's message of gio feb 18 08:59:59 +0100 2010:

Andrea,
Just curious, doesnt beagle already have uboot written at factory? Do
you need it again in the sd card?

Have fun,
Sri

Honestly I'm not aware about the possibility to use the uboot from factory.
I roughly followed the instructions on the wiki. But perhaps I'm missing
something. I should be better documented :slight_smile:

Cheers,