I have been developing on an AM335x EVM while our custom board is being designed. I have been using tftp and NFS for development, as recommended, and this has worked well. Now I am switching to booting from an SD card, which I need to do in prep for our prototype board arrival next week.
I have followed the excellent clear instructions here http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User%27s_Guide#Setting_Up_Boot_Environment_on_SD_Card and built an SD card. This works...except that there is a 2 minute pause in the boot from SD. The boot log is posted below. I am halting u-boot to make sure of my boot arguments by typing them in over the serial port. This is also shown below.
The boot log seems to imply that it is perhaps trying to read MMC1 on the daughter card. I do not have a card inserted there, and trying a reboot with one inserted seemed to cause a permanent hang at that same point.
Any idea what could be causing this?
U-Boot# setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=192.168.1.110 root=/dev/mmcblk0p2
U-Boot# setenv bootcmd 'mmc rescan; fatload mmc 0 0x82000000 uImage; bootm 0x82000000'
U-Boot# boot
reading uImage
3061584 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3061520 Bytes = 2.9 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] 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] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat c0606cbc, node_mem_map c063d000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65024 pages, LIFO batch:15
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS2,115200n8 noinitrd rw ip=192.168.1.110 root=/dev/mmcblk0p2
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253468k/253468k available, 8676k 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 : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0575000 (5556 kB)
[ 0.000000] .init : 0xc0575000 - 0xc05b2000 ( 244 kB)
[ 0.000000] .data : 0xc05b2000 - 0xc060fb18 ( 375 kB)
[ 0.000000] .bss : 0xc060fb3c - 0xc063c7e4 ( 180 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_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
[ 0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000190] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.057161] pid_max: default: 32768 minimum: 301
[ 0.057286] Security Framework initialized
[ 0.057393] Mount-cache hash table entries: 512
[ 0.057776] CPU: Testing write buffer coherency: ok
[ 0.077782] omap_hwmod: gfx: failed to hardreset
[ 0.094052] omap_hwmod: pruss: failed to hardreset
[ 0.095165] print_constraints: dummy:
[ 0.095531] NET: Registered protocol family 16
[ 0.097699] OMAP GPIO hardware version 0.1
[ 0.100308] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.102524] omap_i2c.1: alias fck already exists
[ 0.103426] omap2_mcspi.1: alias fck already exists
[ 0.103646] omap2_mcspi.2: alias fck already exists
[ 0.103898] edma.0: alias fck already exists
[ 0.103920] edma.0: alias fck already exists
[ 0.103939] edma.0: alias fck already exists
[ 0.128700] bio: create slab <bio-0> at 0
[ 0.130847] SCSI subsystem initialized
[ 0.132460] usbcore: registered new interface driver usbfs
[ 0.132773] usbcore: registered new interface driver hub
[ 0.132973] usbcore: registered new device driver usb
[ 0.133118] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.133404] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.147234] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.149099] tps65910 1-002d: JTAGREVNUM 0x0
[ 0.151478] print_constraints: VRTC:
[ 0.152944] print_constraints: VIO: at 1800 mV
[ 0.155251] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[ 0.157571] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[ 0.158581] print_constraints: VDD3: 5000 mV
[ 0.160000] print_constraints: VDIG1: at 1800 mV
[ 0.161425] print_constraints: VDIG2: at 1800 mV
[ 0.162841] print_constraints: VPLL: at 1800 mV
[ 0.164269] print_constraints: VDAC: at 1800 mV
[ 0.165683] print_constraints: VAUX1: at 1800 mV
[ 0.167126] print_constraints: VAUX2: at 3300 mV
[ 0.168572] print_constraints: VAUX33: at 3300 mV
[ 0.170010] print_constraints: VMMC: at 3300 mV
[ 0.170527] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.171442] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.172584] Switching to clocksource gp timer
[ 0.188196] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.188371] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.188709] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.188730] musb-hdrc: MHDRC RTL version 2.0
[ 0.188741] musb-hdrc: setup fifo_mode 4
[ 0.188772] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.189227] musb-hdrc musb-hdrc.0: USB OTG mode controller at d081c000 using PIO, IRQ 18
[ 0.189390] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.189702] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.189722] musb-hdrc: MHDRC RTL version 2.0
[ 0.189733] musb-hdrc: setup fifo_mode 4
[ 0.189759] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.189791] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.189864] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.189999] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.190015] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.190029] usb usb1: Product: MUSB HDRC host driver
[ 0.190040] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.190051] usb usb1: SerialNumber: musb-hdrc.1
[ 0.190838] hub 1-0:1.0: USB hub found
[ 0.190872] hub 1-0:1.0: 1 port detected
[ 0.191402] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using PIO, IRQ 19
[ 0.191831] NET: Registered protocol family 2
[ 0.192030] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.192354] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.192512] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.192677] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.192690] TCP reno registered
[ 0.192704] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.192728] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.192911] NET: Registered protocol family 1
[ 0.193178] RPC: Registered named UNIX socket transport module.
[ 0.193192] RPC: Registered udp transport module.
[ 0.193201] RPC: Registered tcp transport module.
[ 0.193210] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.193458] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.205619] VFS: Disk quotas dquot_6.5.2
[ 0.205692] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.206248] msgmni has been set to 495
[ 0.207005] io scheduler noop registered
[ 0.207019] io scheduler deadline registered
[ 0.207084] io scheduler cfq registered (default)
[ 0.210899] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.211400] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.211838] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.212251] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.212732] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.213161] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.222920] brd: module loaded
[ 0.227781] loop: module loaded
[ 0.227976] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.227988] i2c-core: driver [tsl2550] using legacy resume method
[ 0.228066] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.234724] Detected a daughter card on AM335x EVM..
[ 0.234737] Unknown CPLD version found, falling back to 1.0A
[ 0.234783] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.242691] Board name: A33515BB
[ 0.242700] Board version: 1.2A
[ 0.242709] SKU: SKU#01
[ 0.243247] The board is general purpose EVM in profile 0
[ 0.243258] Found invalid GP EVM revision, falling back to Rev1.1A
[ 0.243775] da8xx_lcdc.0: alias fck already exists
[ 0.244321] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
[ 0.260625] Console: switching to colour frame buffer device 100x30
[ 0.269541] TSC connected to beta GP EVM
[ 0.270847] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.270869] Registering NAND on CS0
[ 0.271571] omap_i2c.2: alias fck already exists
[ 0.282790] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[ 0.283750] tsl2550 2-0039: standard operating mode
[ 0.284455] tsl2550 2-0039: support ver. 1.2 enabled
[ 0.284888] davinci-mcasp.1: alias fck already exists
[ 0.285368] omap_hsmmc.0: alias fck already exists
[ 0.285687] omap_hsmmc.2: alias fck already exists
[ 0.285979] Configure Bluetooth Enable pin...
[ 0.287189] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
[ 0.287265] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
[ 0.303164] lis3lv02d: 8 bits 3DLH sensor found
[ 0.393059] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
[ 0.395308] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.395888] omap2-nand driver initializing
[ 0.396218] ONFI flash detected
[ 0.396354] ONFI param page 0 valid
[ 0.396374] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
[ 0.396627] Creating 8 MTD partitions on "omap2-nand.0":
[ 0.396655] 0x000000000000-0x000000020000 : "SPL"
[ 0.398180] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 0.399514] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 0.400737] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 0.401967] 0x000000080000-0x000000260000 : "U-Boot"
[ 0.404021] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 0.405314] 0x000000280000-0x000000780000 : "Kernel"
[ 0.408628] 0x000000780000-0x000010000000 : "File System"
[ 0.513043] OneNAND driver initializing
[ 0.514476] CAN device driver interface
[ 0.514490] CAN bus driver for Bosch D_CAN controller 1.0
[ 0.562651] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 0.562669] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 0.563382] davinci_mdio.0: probed
[ 0.563398] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[ 0.563744] usbcore: registered new interface driver zd1201
[ 0.563945] usbcore: registered new interface driver cdc_ether
[ 0.564112] usbcore: registered new interface driver cdc_eem
[ 0.564268] usbcore: registered new interface driver dm9601
[ 0.564327] cdc_ncm: 04-Aug-2011
[ 0.564499] usbcore: registered new interface driver cdc_ncm
[ 0.564511] Initializing USB Mass Storage driver...
[ 0.564753] usbcore: registered new interface driver usb-storage
[ 0.564765] USB Mass Storage support registered.
[ 0.565227] mousedev: PS/2 mouse device common for all mice
[ 0.566198] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
[ 0.567592] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input2
[ 0.568645] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 0.568850] i2c /dev entries driver
[ 0.569817] Linux video capture interface: v2.00
[ 0.570148] usbcore: registered new interface driver uvcvideo
[ 0.570159] USB Video Class driver (1.1.1)
[ 0.571071] lm75 2-0048: hwmon0: sensor 'tmp275'
[ 0.573918] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 0.576191] cpuidle: using governor ladder
[ 0.576687] cpuidle: using governor menu
[ 0.582419] usbcore: registered new interface driver usbhid
[ 0.582434] usbhid: USB HID core driver
[ 0.583096] usbcore: registered new interface driver snd-usb-audio
[ 0.585002] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
[ 0.585070] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
[ 0.585134] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
[ 0.585186] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
[ 0.588013] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
[ 0.589418] ALSA device list:
[ 0.589432] #0: AM335X EVM
[ 0.589440] oprofile: hardware counters not available
[ 0.589450] oprofile: using timer interrupt.
[ 0.589487] nf_conntrack version 0.5.0 (3960 buckets, 15840 max)
[ 0.590020] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 0.590152] TCP cubic registered
[ 0.590168] NET: Registered protocol family 17
[ 0.590187] can: controller area network core (rev 20090105 abi 8)
[ 0.590290] NET: Registered protocol family 29
[ 0.590302] can: raw protocol (rev 20090105)
[ 0.590312] can: broadcast manager protocol (rev 20090105 t)
[ 0.590364] Registering the dns_resolver key type
[ 0.590463] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.590487] ThumbEE CPU extension supported.
[ 0.590563] mux: Failed to setup hwmod io irq -22
[ 0.591220] Power Management for AM33XX family
[ 0.591448] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 0.591572] Copied the M3 firmware to UMEM
[ 0.591595] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
[ 0.597216] clock: disabling unused clocks to save power
[ 0.599263] Detected MACID=d4:94:a1:52:35:5f
[ 0.601403] input: gpio-keys as /devices/platform/gpio-keys/input/input3
[ 0.602034] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 0.604803]
[ 0.604809] CPSW phy found : id is : 0x4dd074
[ 0.605584] PHY 0:01 not found
[ 0.753248] mmc0: new high speed SDHC card at address 534e
[ 0.754000] mmcblk0: mmc0:534e SD16G 14.9 GiB
[ 0.755976] mmcblk0: p1 p2
[ 0.867167] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 0.876722] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 0.877468] mmc1: new SDIO card at address 0001
[ 120.622651] IP-Config: Guessing netmask 255.255.255.0
[ 120.622872] IP-Config: Complete:
[ 120.622882] device=eth0, addr=192.168.1.110, mask=255.255.255.0, gw=255.255.255.255,
[ 120.622906] host=192.168.1.110, domain=, nis-domain=(none),
[ 120.622917] bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
[ 120.623017] Warning: unable to open an initial console.
[ 125.528906] kjournald starting. Commit interval 5 seconds
[ 125.739806] EXT3-fs (mmcblk0p2): using internal journal
[ 125.739825] EXT3-fs (mmcblk0p2): recovery complete
[ 125.948668] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 125.948748] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 125.949144] Freeing init memory: 244K
[ 126.410863] udevd (707): /proc/707/oom_adj is deprecated, please use /proc/707/oom_score_adj instead.
[ 127.643168] Disabling lock debugging due to kernel taint
[ 127.656035] cfg80211: Calling CRDA to update world regulatory domain
[ 131.019847] cfg80211: World regulatory domain updated:
[ 131.019879] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 131.019899] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 131.019915] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 131.019930] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 131.019945] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 131.019960] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 131.841341] wl1271: loaded
[ 131.964982] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.