Booting from mmc - how?

First I booted with the mmc inserted (FAT32 - MLO and 7 other files on
partition 1), the Angstrom demo untar'd to the ext3 partition 2, but
it always boots from the NAND. RESET/USER switches don't have any
impact.
I login as root on the serial console and get a bash prompt, the mmc
is mounted as /media/mmcblk0p1 and /media/mmcblk0p2.
I have followed other posts, setenv doesn't exist - it's bash.

The DVI display is OK, but the keyboard is not enumerated via a hub
attached to the EHCI port (self-powered or USB powered - 3 different
hubs tried).
Any pointer gratefully appreciated.

For your first problem:

  1. Make sure you hold down the USER button for a second or two after you press RESET.
  2. If X-Loader isn’t running from the SD card then its not called MLO or isn’t correctly signed.
  3. If X-Loader can’t load U-Boot from the SD card it will load it from NAND (either way it says where its loading it from)
  4. U-Boot then loads the linux kernel based on environment variables, so you might want to check what those are set to.
  5. If all else fails you can always run the command “nand erase” from U-Boot to erase everything in NAND. It definitely won’t be booting from NAND then.
  6. The setenv command is almost certainly supposed to be typed into U-Boot. To access U-Boot you need to be connected up to the serial cable and press return a few times when it says to interrupt automatic boot.
  7. If this doesn’t solve the problem then please post the serial output during boot up.

For your second problem:

  1. Not sure… should be fine… what does lsusb -v show…? Make sure you don’t connect any low/high speed devices directly to the port as it then causes the EHCI port the be inactive until you reboot.

For your first problem:

1. Make sure you hold down the USER button for a second or two after you press RESET.

No change there.

2. If X-Loader isn't running from the SD card then its not called MLO or isn't correctly signed.

First I checked on a Windows XP box that it was called "MLO", then I
reformatted partition 1 as FAT32 under Windows XP, copied MLO, u-
boot.bin, u-boot-f.bin, uImage.bin, x-load.bin.ift, boot.scr,
normal.scr and ramdisk.gz that were save to MyDocuments. Files exactly
as I typed them should case be a problem.

3. If X-Loader can't load U-Boot from the SD card it will load it from NAND (either way it says where its loading it from)

Booted from NAND, MMC card not inserted.
# setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
rootwait'
# setenv bootcmd 'mmc init;fatload mmc 0 80300000 uImage;bootm
80300000'
# savenv
Powered off, inserted the MMC card and booted as recommended.

VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev
1
Console: switching to colour frame buffer device 80x30
clock: clksel_round_rate_div: dpll4_m4_ck target_rate 48000000
clock: new_div = 9, new_rate = 48000000
twl4030_rtc twl4030_rtc: setting system clock to 2000-01-01 00:00:00
UTC (946684800)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 168K
mmc0: new high speed SDHC card at address b926
mmcblk0: mmc0:b926 SD16G 14.9 GiB
mmcblk0: p1 p2
udevd version 124 started
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
0
Buffer I/O error on device mtdblock0, logical block 0
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
8
Buffer I/O error on device mtdblock0, logical block 1
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
16
Buffer I/O error on device mtdblock0, logical block 2
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
24
Buffer I/O error on device mtdblock0, logical block 3
uncorrectable error : <3>end_request: I/O error, dev mtdblock0, sector
0
Buffer I/O error on device mtdblock0, logical block 0

4. U-Boot then loads the linux kernel based on environment variables, so you might want to check what those are set to.

5. If all else fails you can always run the command "nand erase" from U-Boot to erase everything in NAND. It definitely won't be booting from NAND then.
6. The setenv command is almost certainly supposed to be typed into U-Boot. To access U-Boot you need to be connected up to the serial cable and press return a few times when it says to interrupt automatic boot.
7. If this doesn't solve the problem then please post the serial output during boot up.

See 3. above

For your second problem:

1. Not sure... should be fine... what does lsusb -v show...? Make sure you don't connect any low/high speed devices directly to the port as it then causes the EHCI port the be inactive until you reboot.

.-------.

      > .-.
  > >-----.-----.-----.| | .----..-----.-----.
      > > __ | ---'| '--.| .-'| | |
  > > > > >--- || --'| | | ' | | | |

'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
                -' |
                '---'

The Angstrom Distribution beagleboard ttyS2

Angstrom 2008.1-test-20090127 beagleboard ttyS2

beagleboard login: EXT2-fs warning (device mmcblk0p2):
ext2_fill_super: mounting ext3 filesystem as ext2
root
root@beagleboard:~# cat /proc/bus/usb/deviESC[18D^Mroot@beagleboard:~#
cat /proc/bus/usb/devices ESC[J|less
ESC[0;0HESC[K
ESC[KT: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
ESC[KB: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
ESC[KD: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
ESC[KP: Vendor=1d6b ProdID=0002 Rev= 2.06
ESC[KS: Manufacturer=Linux 2.6.28-omap1 musb-hcd
ESC[KS: Product=MUSB HDRC host driver
ESC[KS: SerialNumber=musb_hdrc
ESC[KC:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
ESC[KI:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
ESC[KE: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
ESC[K
ESC[KT: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 3
ESC[KB: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
ESC[KD: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
ESC[KP: Vendor=1d6b ProdID=0002 Rev= 2.06
ESC[KS: Manufacturer=Linux 2.6.28-omap1 ehci_hcd
ESC[KS: Product=OMAP-EHCI Host Controller
ESC[KS: SerialNumber=ehci-omap.0
ESC[KC:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
ESC[KI:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
ESC[KE: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
ESC[K
ESC[24;0HESC[KESC[7mstandard inputESC[0mESC[0;0HESC[KT: Bus=02 Lev=00
Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
ESC[KB: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
ESC[KD: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
ESC[KP: Vendor=1d6b ProdID=0002 Rev= 2.06
ESC[KS: Manufacturer=Linux 2.6.28-omap1 musb-hcd
ESC[KS: Product=MUSB HDRC host driver
ESC[KS: SerialNumber=musb_hdrc
ESC[KC:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
ESC[KI:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
ESC[KE: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
ESC[K
ESC[KT: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 3
ESC[KB: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
ESC[KD: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
ESC[KP: Vendor=1d6b ProdID=0002 Rev= 2.06
ESC[KS: Manufacturer=Linux 2.6.28-omap1 ehci_hcd
ESC[KS: Product=OMAP-EHCI Host Controller
ESC[KS: SerialNumber=ehci-omap.0
ESC[KC:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
ESC[KI:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
ESC[KE: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
ESC[K
ESC[K~
ESC[24;0HESC[KESC[7m(END)ESC[0mESC[24;0HESC[Kroot@beagleboard:~#

~# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 15863 15736 0 100% /
/dev/root 15863 15736 0 100% /
none 119644 76 119568 0% /dev
tmpfs 119644 20 119624 0% /var/volatile
tmpfs 119644 0 119644 0% /dev/shm
tmpfs 119644 0 119644 0% /media/ram
/dev/mmcblk0p1 4000352 10932 3989420 0% /media/
mmcblk0p1
/dev/mmcblk0p2 11464060 619392 10262312 6% /media/
mmcblk0p2
root@beagleboard:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,errors=continue)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
none on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /var/volatile type tmpfs (rw)
tmpfs on /dev/shm type tmpfs (rw,mode=777)
tmpfs on /media/ram type tmpfs (rw)
/dev/mmcblk0p1 on /media/mmcblk0p1 type vfat
(rw,sync,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)
/dev/mmcblk0p2 on /media/mmcblk0p2 type ext2 (rw,sync,errors=continue)
root@beagleboard:~#

You only need MLO, u-boot.bin and uImage (or uImage.bin if you prefer) on the SD card. The rest being there shouldn’t hurt though… not sure why X-Loader isn’t seeing the SD card… I would replace the MLO and u-boot.bin with ones from the Angrstrom demo folder (they may well be more up to date), see: http://www.angstrom-distribution.org/demo/beagleboard/

You cannot use XP to format the SD card. You need to use a special format program that can be found here:

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

It formats the card in such a way that the ROM internal to the OMAP processor can detect it. You also must copy MLO as the first file onto a freshly formatted card.

Gerald

You only need MLO, u-boot.bin and uImage (or uImage.bin if you prefer) on the SD card. The rest being there shouldn't hurt though... not sure why X-Loader isn't seeing the SD card... I would replace the MLO and u-boot.bin with ones from the Angrstrom demo folder (they may well be more up to date), see:http://www.angstrom-distribution.org/demo/beagleboard/

I am using the files from that directory.

You cannot use XP to format the SD card. You need to use a special format
program that can be found here:

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

Thanks, I shall try that.

It formats the card in such a way that the ROM internal to the OMAP
processor can detect it. You also must copy MLO as the first file onto a
freshly formatted card.

Gerald

MLO is also the first file copied on the MMC.

This implies that partitioning and formatting under Linux as
documented doesn't do the job though it appears to, so a mix of
Windows and Linux is necessary. Windows is as rare as rocking-horse
manure around here so I have to travel.
With SP27213.exe I picked LABEL1 FAT32 for formatting and it
reformatted the whole disk, erasing the ext3 partition. I shall go
back and try again - may be I missed something.

Op 2 aug 2009 om 13:57 heeft Sid Boyce <sboyce@blueyonder.co.uk> het volgende geschreven:\

You cannot use XP to format the SD card. You need to use a special format
program that can be found here:

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

It formats the card in such a way that the ROM internal to the OMAP
processor can detect it. You also must copy MLO as the first file onto a
freshly formatted card.

Gerald

This implies that partitioning and formatting under Linux as
documented doesn't do the job

If you change the c/h/s as instructed, it does.

regards,

Koen

I started all over again doing all the preparation under Linux. It
seems I was using the wrong uImage (2.6.28) that didn't work with the
Angstrom distribution, couldn't find /lib/modules/2.6.28-omap1 -
uImage-2.6.29-r37-beagleboard.bin did the trick. Still USB problems,
not seeing the powered hub, keyboard and mouse on the EHCI port.
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
/proc on /proc type proc (rw)
tmpfs on /mnt/.splash type tmpfs (rw,size=40k)
sysfs on /sys type sysfs (rw)
none on /dev type tmpfs (rw,mode=755)
/dev/mmcblk0p2 on /media/mmcblk0p2 type ext3
(rw,errors=continue,data=ordered)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /var/volatile type tmpfs (rw)
tmpfs on /dev/shm type tmpfs (rw,mode=777)
tmpfs on /media/ram type tmpfs (rw)
root@beagleboard:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 10.8G 604.4M 9.6G 6% /
tmpfs 40.0K 0 40.0K 0% /mnt/.splash
none 117.0M 76.0K 116.9M 0% /dev
/dev/mmcblk0p2 10.8G 604.4M 9.6G 6% /media/
mmcblk0p2
tmpfs 117.0M 224.0K 116.8M 0% /var/volatile
tmpfs 117.0M 0 117.0M 0% /dev/shm
tmpfs 117.0M 0 117.0M 0% /media/ram

root@beagleboard:~# cat /proc/bus/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 3
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 2.06
S: Manufacturer=Linux 2.6.29-omap1 ehci_hcd
S: Product=OMAP-EHCI Host Controller
S: SerialNumber=ehci-omap.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
root@beagleboard:~#

"modprobe idmouse" invalid module format with the modules that are a
part of Angstrom-Beagleboard-demo-image-glibc-ipk-2009.X-
stable-20090612--beagleboard.rootfs.tar.bz2 .
Wonder if it needs modules-2.6.29-r37-beagleboard.tgz instead.

The modules package finally fixed it.
The mouse is working and I used it with the on-screen keyboard to do
the setup.
The keyboard is still not being enumerated, but I shall look at that
after some much needed sleep - there were some keyboard selections
during setup, but lsusb doesn't show it.

root@beagleboard:~# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 04cc:1521 Philips Semiconductors USB 2.0 Hub
Bus 001 Device 003: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 001 Device 004: ID 148f:2573 Ralink Technology, Corp.
It sees my USB wireless but I can't connect to the router from any
box, though it's set up as a dhcp server. I shall set up /etc/
wpa_supplicant.conf on the Beagleboard later.
root@beagleboard:/etc/wpa_supplicant# iwlist scan
lo Interface doesn't support scanning.

wmaster0 Interface doesn't support scanning.

wlan0 Scan completed :
          Cell 01 - Address: 00:1B:9E:82:66:27
                    ESSID:"TalkTalk520"
                    Mode:Master
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=52/100 Signal level:-48 dBm
                    Encryption key:off
                    IE: Unknown: 000B54616C6B54616C6B353230
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030101
                    IE: Unknown: 2A0104
                    IE: Unknown: 32080C1218243048606C
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/
s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/
s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=00000047f0af0bad
                    Extra: Last beacon: 546ms ago