SD card questions...

formatting my sd card via: http://code.google.com/p/beagleboard/wiki/HowToGetAngstromRunning

  • IMPORTANT TO DO THIS BEFORE ANY OTHER FILES ARE COPIED: Copy the MLO file that you downloaded to the Beagle_Boot partition. The MLO file must be the first file copied to the partition after re-formatting.
  • Copy the rest of the files downloaded to the Beagle_Boot partition.
  • Now cd to the partition 2 – e.g. cd /media/Angstrom_Demo
  • Untar the filesystem. e.g. tar -xvjf /media/Beagle_Boot/Angstrom…bz2
  • Now you have a bootable SD card with the Angstrom demo fully loaded.
    I have properly partitioned the SD card, as described, but am wondering explicitly which files need to be copied to the BEAGLE_BOOT partition ( copy ‘the rest’ of the files…) Also, which MLO file to use? And which Angstrom demo image?

I am using Beagleboard rev C4

Thanks

Those aren't on the angstrom website and thus considered wrong. Follow the instructions at http://www.angstrom-distribution.org/demo/beagleboard/

those are the same files. still wondering if I need them all or what… for example is

[Angstrom-Beagleboard-demo-image-glibc-ipk-2011.1-beagleboard.rootfs.tar.bz2](http://www.angstrom-distribution.org/demo/beagleboard/Angstrom-Beagleboard-demo-image-glibc-ipk-2011.1-beagleboard.rootfs.tar.bz2)      

the only demo image I need? and only this MLO ?

 [MLO-beagleboard-2011.12](http://www.angstrom-distribution.org/demo/beagleboard/MLO-beagleboard-2011.12)             

thanks

also formatting from mkcard.txt from that sight does not partition the sd card for me…

that is, assuming this is correct:
“Now we want to set the geometry to 255 heads, 63 sectors and calculate the number of cylinders required for the particular SD/MMC card:”

http://elinux.org/BeagleBoardBeginners#SD_card_setup

\

"63 sectors" was an older X-Loader bug, long ago fixed...

Regards,

oh so that is not the correct geometry? I should be using the mkcard.txt script?
I followed sd card formatting (expert mode) from here: http://elinux.org/BeagleBoardBeginners#SD_card_setup
this is my result when trying to boot from sd card I partitioned:

reading boot.scr

** Unable to read “boot.scr” from mmc 0:1 **
reading uImage

** Unable to read “uImage” from mmc 0:1 **
Booting from nand …

NAND read: device 0 offset 0x280000, size 0x400000
4194304 bytes read: OK
Wrong Image Format for bootm command
ERROR: can’t get kernel image!

oh so that is not the correct geometry?

No, the bootrom, doesn't care about geometry... (in actuality all it
really cares about is that it is a fat partition marked bootable.)

I should be using the mkcard.txt
script?

YES

I followed sd card formatting (expert mode) from here:
http://elinux.org/BeagleBoardBeginners#SD_card_setup
this is my result when trying to boot from sd card I partitioned:

reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
reading uImage

** Unable to read "uImage" from mmc 0:1 **
Booting from nand ...

NAND read: device 0 offset 0x280000, size 0x400000
4194304 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Next time.. use pastebin.com to show the FULL serial bootlog (not just
this snip-lit).. At the top it will actually say if it's booting from
NAND or SD card... So without that information it's really a guessing
game, so i'm just going to guess you don't have the boot.scr or uImage
file on your sd card..

Regards,

http://pastebin.com/jqM2nEg5#

this time i used mkcard.txt script.
files I am uploading to sd:

MLO-beagleboard-2011.12
u-boot-beagleboard-2011.12-r4.img
uImage-beagleboard.bin

and
Angstrom-Beagleboard-demo-image-glibc-ipk-2011.1-beagleboard.rootfs.tar.bz2

from

http://www.angstrom-distribution.org/demo/beagleboard/

Thanks for the help!

http://pastebin.com/jqM2nEg5#

Okay, your booting off nand.. (and the explains the old boot.scr reference)

Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
Reading boot sector
Loading u-boot.bin from nand

this time i used mkcard.txt script.
files I am uploading to sd:

MLO-beagleboard-2011.12
u-boot-beagleboard-2011.12-r4.img
uImage-beagleboard.bin

When you uploaded them, what did you name them on the SD card?
(straight copy isn't going to help)...

and
Angstrom-Beagleboard-demo-image-glibc-ipk-2011.1-beagleboard.rootfs.tar.bz2

from

http://www.angstrom-distribution.org/demo/beagleboard/

Do you see those 20 or directions at this site ^^^^ shortly after the
paragraph after the untested directory? You should do that in u-boot,
as your board has some old stuff in nand..

Regards,

Ah they're named as is.. Of course they should be renamed MLO uboot and u-mage? No extensions?

Sent on the TELUS Mobility network with BlackBerry

This will get you in the ball park..

MLO-beagleboard-2011.12 -> MLO
u-boot-beagleboard-2011.12-r4.img -> u-boot.img (or whatever MLO is
actually looking for, old ones look for u-boot.bin)
uImage-beagleboard.bin -> uImage (or whatever the boot script actually wants)

Regards,

Wow, thanks Robert… really appreciate that. Wouldn’t have known to rename those files…

Uncompressing Linux… done, booting the kernel

I assume I am waiting for it to boot successfully…

If it doesn't move beyond that in a few seconds, (and your board is
still atleast blinking) you probably don't have the right serial
console settings set (when CONFIG_OMAP_SERIAL) is enabled..

2.6.35 and earlier:
console=ttyS2,115200n8

2.6.36+:
console=ttyO2,115200n8

Regards,

are you referring to the following commands? or are you talking about minicom?
when/where do I set those serial controls?

# setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootwait'

# setenv bootcmd 'mmc init;fatload mmc 0 80300000 uImage;bootm 80300000'

here’s a pastebin of what I am getting… boot.src not loading.
http://pastebin.com/mWzPLWPF

Hey Robert,
I missed your note about the old nand stuff…

OMAP3 beagleboard.org # mmc init
No MMC card found
OMAP3 beagleboard.org #

that’s what I get when I try to start…

this was a great tip! I used a different sd card I made using beagleboard-demo-201008201549-configured.img.gz image.
after clearing the NAND it booted angstrom no problem…
so I am back on track!

much thanks…

Hello Robert…

I followed the tutorial here: http://elinux.org/BeagleBoardUbuntu
to create an SD card with ubuntu, rather than linux.
I used the nand commands previously to erase… but when I try to boot I just get a million of these:
Error: Bad compare! failed

So I am not sure how I can rectify this? It happens regardless of SD and without.
I notice usr0 and usr1 lights dont flash… but pwr lights up steady.

Thanks…

Sorry, i'm not that good at guessing... Can you please post your full
serial bootlog from power on too where it stops on pastebin.com and
I'll take a look at it tomorrow..

Regards,