Topic: Is there a raw sd card image for beagleboard version?

Hi douglas,

I have tried the ut-ttylinux-armv7-12.6 and the experience was not so happy. :-P

Bealgeboard is a picky guy for the partition layout of SD card. So I think if you can provide a Raw Image of the working system (just like what Ångström Distribution's online builder does), then  the deployment process would become much more straightforward than now. :-)

Last edited by ASBai (2011-05-14 12:22:59)

Re: Is there a raw sd card image for beagleboard version?

I guess I don't know what a raw image would be. An sdcard has a partition table followed by one or more partitions, in this case the first partition is partition type c, W95 FAT32 (LBA). Maybe you are asking for a binary image of a ttylinux BeagleBoard sdcard from the beginning through the first partition? And I guess you would use dd to apply that to your sdcard...

Well, you can run fdisk on your sdcard and give it the proper format of 255 heads, 63 sectors/track and however many cylinders are needed to make the correct device size. Honestly, if your sdcard doesn't have this geometry it won't work right in a BeagleBoard and changing an sdcard geometry doesn't hurt it except you might loose proprietary binary code in the first sector that constrains the use of the sdcard on Windows, but I think getting rid of that improves the sdcard.

You want your sdcard to look like this in fdisk:

     Disk /dev/XXX: ???? MB, ???????????? bytes
     255 heads, 63 sectors/track, ??? cylinders
     Units = cylinders of ?????? * 512 = ?????????? bytes

See this page, it isn't as hard as it might look:
     http://code.google.com/p/beagleboard/wi … DiskFormat

So, after you have a properly formatted sdcard, copy these ttylinux files from the ut-ttylinux-armv7-12.6.tar.bz2 boot directory in this order, where SD_DEV is your /dev/XXXX sdcard first partition device:

     tar xf ut-ttylinux-armv7-12.6.tar.bz2
     mount -t vfat $SD_DEV        ${TTYLINUX_MNT_DIR}
     cp sdcard/boot/MLO             ${TTYLINUX_MNT_DIR}/MLO
     cp sdcard/boot/u-boot.bin     ${TTYLINUX_MNT_DIR}/u-boot.bin
     cp sdcard/boot/uImage        ${TTYLINUX_MNT_DIR}/uImage
     cp sdcard/boot/ramdisk.gz   ${TTYLINUX_MNT_DIR}/ramdisk.gz
     cp sdcard/boot/boot.scr       ${TTYLINUX_MNT_DIR}/boot.scr
     cp sdcard/boot/user.scr       ${TTYLINUX_MNT_DIR}/user.scr
     umount $SD_DEV

Now try booting the sdcard in your BeagleBoard.

Re: Is there a raw sd card image for beagleboard version?

Yeah, I know these steps and have had doing these before, but it's tiresome and somewhat error prone.

A Raw SD Card Image is a raw disk image which can be restored to the sd card by a 'dd' command like this:

  dd if=sd.img of=/dev/sdcard bs=1MB

Using the online builder of Ångström Distribution you can generate a raw image by select the "OMAP3 SD Image" option (or something like it, I can't remember it clearly).

With the Raw Image, you don't need fdisk and other boring things. You even need not to having a linux distribution installed on your machine, you can dump the image to sd card by using many windows tool like WinImage easily and quickly.

Furthermore, with a cross compiling toolchain like Sourcery G++ for windows, It is easy to build a pure windows development enviroment.

Last edited by ASBai (2011-05-14 14:33:55)

Re: Is there a raw sd card image for beagleboard version?

ASBai wrote:

Yeah, I know these steps and have had doing these before, but it's tiresome and somewhat error prone.

A Raw SD Card Image is a raw disk image which can be restored to the sd card by a 'dd' command like this:

  dd if=sd.img of=/dev/sdcard bs=1MB

You should save it with dd if=/dev/sdcard of=sd.img bs=1MB


I added to my to-do list to make available a BeagleBoard sdcard binary. The reason I'm not very interested in making an sdcard image is because the partition table in the binary image may, or may not, match your sdcard.

Re: Is there a raw sd card image for beagleboard version?

douglas wrote:

...
The reason I'm not very interested in making an sdcard image is because the partition table in the binary image may, or may not, match your sdcard.

En....
You can give user a choice. For example: provide two images, one for 1GB card and one for 4GB, so user can select the most suitable one.

In minimum, any bigger card could burn a smaller image, If the user don't like wasting extra space on the card, He/She can simply add a extra partition to the end of the card.

Last edited by ASBai (2011-05-15 01:43:23)