I use SDK(ti-sdk-am335x-evm-06.00.00.00) provided by ti on my bbb board.I have installed SDK and compile the u-boot and kernel in SDK without any changes.I run create-sdcard.sh to format the SD card used for booting and copy u-boot.img,uImage,MLO to the first partition,arago file system to the second partition.When I insert the SD and press the uSD button at the booting time ,it works very well.So I login the system in SD card and format the emmc1 on the board the same as SD card.and I copy the u-boot.bin,MLO,uImage to the first partition of emmc1,arago file system to the second partition fo emmc1.
Then I take SD card out and power on the board.Uboot is OK,but failed to read kernel file.log as follows:
______________________________________________________________________________________
U-Boot SPL 2013.01.01 (Nov 27 2013 - 20:43:08)
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
OMAP SD/MMC: 0
mmc_send_cmd : timeout: No status update
reading u-boot.img
reading u-boot.img
U-Boot 2013.01.01 (Nov 27 2013 - 20:43:08)
I2C: ready
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
mmc_send_cmd : timeout: No status update
Card did not respond to voltage select!
mmc0(part 0) is current device
mmc_send_cmd : timeout: No status update
Card did not respond to voltage select!
Booting from nand ...
no devices available
Wrong Image Format for bootm command
ERROR: can't get kernel image!
U-Boot#
__________________________________________________________________
if I hit some keys to stop auto boot, and use command as follows ,it can boot well.
___________________________________________________________________
U-Boot# mmc rescan
mmc_send_cmd : timeout: No status update
Card did not respond to voltage select!
U-Boot# fatload mmc 1 0x82000000 uImage
reading uImage
3194016 bytes read in 318 ms (9.6 MiB/s)
U-Boot# bootm 0x82000000
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3193952 Bytes = 3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (felix@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Wed Nov 27 20:55:40 CST 2013
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyO0,115200
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 513168k/513168k available, 11120k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0598000 (5696 kB)
[ 0.000000] .init : 0xc0598000 - 0xc05d3000 ( 236 kB)
[ 0.000000] .data : 0xc05d4000 - 0xc063e430 ( 426 kB)
[ 0.000000] .bss : 0xc063e454 - 0xc066d224 ( 188 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000091] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089263] pid_max: default: 32768 minimum: 301
[ 0.089355] Security Framework initialized
[ 0.089416] Mount-cache hash table entries: 512
[ 0.089721] CPU: Testing write buffer coherency: ok
[ 0.108978] omap_hwmod: pruss: failed to hardreset
[ 0.109893] print_constraints: dummy:
[ 0.110198] NET: Registered protocol family 16
[ 0.111816] OMAP GPIO hardware version 0.1
[ 0.113708] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.115173] omap_i2c.1: alias fck already exists
[ 0.115844] omap2_mcspi.1: alias fck already exists
[ 0.115997] omap2_mcspi.2: alias fck already exists
[ 0.116668] edma.0: alias fck already exists
[ 0.116699] edma.0: alias fck already exists
[ 0.116699] edma.0: alias fck already exists
[ 0.136169] bio: create slab <bio-0> at 0
[ 0.137817] SCSI subsystem initialized
[ 0.139038] usbcore: registered new interface driver usbfs
[ 0.139312] usbcore: registered new interface driver hub
[ 0.139465] usbcore: registered new device driver usb
[ 0.139709] registerd cppi-dma Intr @ IRQ 17
[ 0.139709] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.139709] Cppi41 Init Done
[ 0.139739] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.139953] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.140808] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.141876] tps65910 1-002d: could not be detected
[ 0.142883] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.143737] Switching to clocksource gp timer
[ 0.155029] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.155181] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.155426] MUSB0 controller's USBSS revision = 4ea20800
[ 0.155456] musb0: Enabled SW babble control
[ 0.156188] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.156341] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.156585] MUSB1 controller's USBSS revision = 4ea20800
[ 0.156585] musb1: Enabled SW babble control
[ 0.156921] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.156982] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.157104] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.157104] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.157104] usb usb1: Product: MUSB HDRC host driver
[ 0.157135] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.157135] usb usb1: SerialNumber: musb-hdrc.1
[ 0.157775] hub 1-0:1.0: USB hub found
[ 0.157806] hub 1-0:1.0: 1 port detected
[ 0.158233] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.158569] NET: Registered protocol family 2
[ 0.158721] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.158966] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.159179] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.159301] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.159301] TCP reno registered
[ 0.159332] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.159332] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.159484] NET: Registered protocol family 1
[ 0.159698] RPC: Registered named UNIX socket transport module.
[ 0.159698] RPC: Registered udp transport module.
[ 0.159698] RPC: Registered tcp transport module.
[ 0.159729] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.159912] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.176727] VFS: Disk quotas dquot_6.5.2
[ 0.176757] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.177185] msgmni has been set to 1002
[ 0.179565] alg: No test for stdrng (krng)
[ 0.180084] io scheduler noop registered
[ 0.180114] io scheduler deadline registered
[ 0.180175] io scheduler cfq registered (default)
[ 0.181091] Could not set LED4 to fully on
[ 0.214630] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.792175] console [ttyO0] enabled
[ 0.796295] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.803985] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.811676] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.819366] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.827056] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.835083] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 0.848937] brd: module loaded
[ 0.855865] loop: module loaded
[ 0.859283] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.865783] i2c-core: driver [tsl2550] using legacy resume method
[ 0.872192] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.974273] No daughter card found
[ 0.977844] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.993041] Board name: A335BNLT
[ 0.996398] Board version: 00A5
[ 0.999694] The board is a AM335x Beaglebone Black.
[ 1.006805] tps65217 1-0024: TPS65217 ID 0xe version 1.2
[ 1.014282] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
[ 1.022705] print_constraints: DCDC2: 900 <--> 3300 mV at 1325 mV
[ 1.031097] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
[ 1.039459] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 1.047973] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 1.056304] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
[ 1.064666] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 1.071929] omap_hsmmc.0: alias fck already exists
[ 1.077362] omap_hsmmc.1: alias fck already exists
[ 1.082702] omap_i2c.3: alias fck already exists
[ 1.087921] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[ 1.095397] registered am33xx_sr device
[ 1.100860] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.107940] omap2-nand driver initializing
[ 1.112335] OneNAND driver initializing
[ 1.117309] CAN device driver interface
[ 1.121307] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.174346] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.180816] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 1.187957] davinci_mdio.0: probed
[ 1.191528] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
[ 1.200347] usbcore: registered new interface driver zd1201
[ 1.206329] usbcore: registered new interface driver cdc_ether
[ 1.212554] usbcore: registered new interface driver cdc_eem
[ 1.218597] usbcore: registered new interface driver dm9601
[ 1.224456] cdc_ncm: 04-Aug-2011
[ 1.227935] usbcore: registered new interface driver cdc_ncm
[ 1.233856] Initializing USB Mass Storage driver...
[ 1.239135] usbcore: registered new interface driver usb-storage
[ 1.245422] USB Mass Storage support registered.
[ 1.250579] mousedev: PS/2 mouse device common for all mice
[ 1.257232] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 1.264465] i2c /dev entries driver
[ 1.268585] Linux video capture interface: v2.00
[ 1.273620] usbcore: registered new interface driver uvcvideo
[ 1.279663] USB Video Class driver (1.1.1)
[ 1.545135] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.552612] cpuidle: using governor ladder
[ 1.557281] cpuidle: using governor menu
[ 1.564849] omap4_aes_mod_init: loading AM33X AES driver
[ 1.570495] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.576934] omap4_aes_probe: probe() done
[ 1.581298] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.587432] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.597991] omap4_sham_probe: probe() done
[ 1.604064] usbcore: registered new interface driver usbhid
[ 1.609924] usbhid: USB HID core driver
[ 1.614654] usbcore: registered new interface driver snd-usb-audio
[ 1.625488] ALSA device list:
[ 1.628631] No soundcards found.
[ 1.632171] oprofile: hardware counters not available
[ 1.637481] oprofile: using timer interrupt.
[ 1.641967] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
[ 1.648681] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.654357] TCP cubic registered
[ 1.657714] NET: Registered protocol family 17
[ 1.662384] can: controller area network core (rev 20090105 abi 8)
[ 1.668914] NET: Registered protocol family 29
[ 1.673553] can: raw protocol (rev 20090105)
[ 1.678009] can: broadcast manager protocol (rev 20090105 t)
[ 1.683959] Registering the dns_resolver key type
[ 1.688934] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.696960] ThumbEE CPU extension supported.
[ 1.701477] mux: Failed to setup hwmod io irq -22
[ 1.706939] Power Management for AM33XX family
[ 1.711761] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.718444] Copied the M3 firmware to UMEM
[ 1.722808] Cortex M3 Firmware Version = 0x181
[ 1.728271] create_regulator: DCDC2: Failed to create debugfs directory
[ 1.735870] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 1.747863] clock: disabling unused clocks to save power
[ 1.764984] Detected MACID=c8:a0:30:b0:32:1d
[ 1.770355] cpsw: Detected MACID = c8:a0:30:b0:32:1f
[ 1.776428] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.785736] Waiting for root device /dev/mmcblk0p2...
[ 1.806274] mmc1: new high speed MMC card at address 0001
[ 1.812438] mmcblk0: mmc1:0001 MMC02G 1.78 GiB
[ 1.817291] mmcblk0boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[ 1.823547] mmcblk0boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[ 1.831695] mmcblk0: p1 p2
[ 1.836517] mmcblk0boot1: unknown partition table
[ 1.843017] mmcblk0boot0: unknown partition table
[ 1.903472] kjournald starting. Commit interval 5 seconds
[ 1.933563] EXT3-fs (mmcblk0p2): using internal journal
[ 1.939025] EXT3-fs (mmcblk0p2): recovery complete
[ 1.944030] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 1.951263] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 1.957855] Freeing init memory: 236K
INIT: version 2.88 booting
Starting udev
Error opening /dev/fb0: No such device
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
ALSA: Restoring mixer settings...
Configuring network interfaces... /usr/sbin/alsactl: load_state:1686: No soundcards found...
[ 8.114166] net eth0: CPSW phy found : id is : 0x7c0f1
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
done.
Tue Jun 25 23:18:00 UTC 2013
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
Stopping Bootlog daemon: bootlogd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login:
______________________________________________________________
How can I do to boot from emmc1 automaticly?