Other Parts Discussed in Thread: TPS65910, DA8XX, TMP275
Hi, I've tried flashing the am335x-evm on-board NAND chip and tried to boot the AM335X EVM it but fails ding the process (log file pasted in below).
- I installed Ubuntu 12.04 and SDK-5.06. Made a clean build to get all files - MLO, u-boot.img, uImage and ubi.img (with installation example version of base tisdk root fs). the ubi.img is created with mkfs.ubifs and ubinize utilities.
- I then booted the board from SD card and enter U-boot mode. Use U-boot 'nand write' to flash the files in the following order: MLO, u-boot.img, uImage and ubi.img. All writes are OK. Version: U-Boot SPL 2012.10
- I ran nandboot and the NAND boot did load the kernel from the NAND flash and started the kernel, however, it stopped after freeing some init memory and not giving me the expected login.
I attached the uart log to this message. Any assistance or insight as to why the boot process stalls would be greatly appreciated.
Also, I powered off the board and removed the SD card. Set SW 3 to NAND boot i.e. switch 2 and 5 are set to ON. Then power on the board, uart channel only writes one line and then stopped:
U-Boot SPL 2012.10 (Jan 22 2013 - 13:38:40)
Any help to find out what I did wrong, or, some steps I am missing?
Maybe to take a step back, it would be helpful to have known working images of MLO, u-boot.img, uImage and ubi.img for the am335x-evm board to test with? is this something that can be supplied?
Best Regards,
John
U-Boot# setenv bootcmd 'run nand_boot'
U-Boot# boot
## Error: "nand_boot" not defined
U-Boot# run nand_boot
## Error: "nand_boot" not defined
U-Boot# run nandboot
Booting from nand ...
NAND read: device 0 offset 0x280000, size 0x500000
5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3169216 Bytes = 3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Tue Jan 22 13:36:44 EST 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 ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 i
p=none
[ 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: 513144k/513144k available, 11144k 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 - 0xc05a0000 (5728 kB)
[ 0.000000] .init : 0xc05a0000 - 0xc05de000 ( 248 kB)
[ 0.000000] .data : 0xc05de000 - 0xc0646448 ( 418 kB)
[ 0.000000] .bss : 0xc064646c - 0xc0673324 ( 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 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.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.058929] pid_max: default: 32768 minimum: 301
[ 0.059051] Security Framework initialized
[ 0.059143] Mount-cache hash table entries: 512
[ 0.059539] CPU: Testing write buffer coherency: ok
[ 0.080047] omap_hwmod: pruss: failed to hardreset
[ 0.081176] print_constraints: dummy:
[ 0.081542] NET: Registered protocol family 16
[ 0.083709] OMAP GPIO hardware version 0.1
[ 0.086364] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.088317] omap_i2c.1: alias fck already exists
[ 0.089294] omap2_mcspi.1: alias fck already exists
[ 0.089508] omap2_mcspi.2: alias fck already exists
[ 0.090454] edma.0: alias fck already exists
[ 0.090484] edma.0: alias fck already exists
[ 0.090515] edma.0: alias fck already exists
[ 0.117279] bio: create slab <bio-0> at 0
[ 0.119537] SCSI subsystem initialized
[ 0.121185] usbcore: registered new interface driver usbfs
[ 0.121490] usbcore: registered new interface driver hub
[ 0.121673] usbcore: registered new device driver usb
[ 0.121826] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.122131] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.123260] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.125122] tps65910 1-002d: JTAGREVNUM 0x0
[ 0.127502] print_constraints: VRTC:
[ 0.128967] print_constraints: VIO: at 1800 mV
[ 0.131286] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[ 0.133605] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[ 0.134582] print_constraints: VDD3: 5000 mV
[ 0.136016] print_constraints: VDIG1: at 1800 mV
[ 0.137420] print_constraints: VDIG2: at 1800 mV
[ 0.138854] print_constraints: VPLL: at 1800 mV
[ 0.140289] print_constraints: VDAC: at 1800 mV
[ 0.141723] print_constraints: VAUX1: at 1800 mV
[ 0.143157] print_constraints: VAUX2: at 3300 mV
[ 0.144561] print_constraints: VAUX33: at 3300 mV
[ 0.145996] print_constraints: VMMC: at 3300 mV
[ 0.146484] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.147735] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.148864] Switching to clocksource gp timer
[ 0.164276] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.164459] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.164794] MUSB0 controller's USBSS revision = 4ea20800
[ 0.165435] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using PIO, IRQ 18
[ 0.165588] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.165924] MUSB1 controller's USBSS revision = 4ea20800
[ 0.166076] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.166168] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.166290] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.166320] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.166320] usb usb1: Product: MUSB HDRC host driver
[ 0.166351] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.166351] usb usb1: SerialNumber: musb-hdrc.1
[ 0.167144] hub 1-0:1.0: USB hub found
[ 0.167175] hub 1-0:1.0: 1 port detected
[ 0.167724] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using PIO, IRQ 19
[ 0.168151] NET: Registered protocol family 2
[ 0.168334] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.168670] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.169036] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.169219] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.169219] TCP reno registered
[ 0.169250] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.169250] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.169433] NET: Registered protocol family 1
[ 0.169708] RPC: Registered named UNIX socket transport module.
[ 0.169738] RPC: Registered udp transport module.
[ 0.169738] RPC: Registered tcp transport module.
[ 0.169738] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.169982] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.191253] VFS: Disk quotas dquot_6.5.2
[ 0.191314] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.191864] msgmni has been set to 1002
[ 0.195098] alg: No test for stdrng (krng)
[ 0.195770] io scheduler noop registered
[ 0.195800] io scheduler deadline registered
[ 0.195861] io scheduler cfq registered (default)
[ 0.199645] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.817077] console [ttyO0] enabled
[ 0.821350] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.829132] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.836944] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.844726] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.852539] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.860778] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 0.877075] brd: module loaded
[ 0.885131] loop: module loaded
[ 0.888610] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.895080] i2c-core: driver [tsl2550] using legacy resume method
[ 0.901519] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.915435] Detected a daughter card on AM335x EVM..
[ 0.920440] CPLD version: CPLD1.0F
[ 0.924194] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.939361] Board name: A33515BB
[ 0.942718] Board version: 1.4A
[ 0.946014] SKU: SKU#01
[ 0.949066] The board is general purpose EVM in profile 0
[ 0.955749] da8xx_lcdc.0: alias fck already exists
[ 0.961273] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
[ 0.984924] Console: switching to colour frame buffer device 100x30
[ 1.001556] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 1.006561] Registering NAND on CS0
[ 1.010955] omap_i2c.2: alias fck already exists
[ 1.016204] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[ 1.022705] tsl2550 2-0039: standard operating mode
[ 1.028472] tsl2550 2-0039: support ver. 1.2 enabled
[ 1.034332] davinci-mcasp.1: alias fck already exists
[ 1.040191] omap_hsmmc.0: alias fck already exists
[ 1.045562] omap_hsmmc.2: alias fck already exists
[ 1.051147] Configure Bluetooth Enable pin...
[ 1.057128] registered am33xx_sr device
[ 1.061431] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
[ 1.069061] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
[ 1.097503] lis3lv02d: 8 bits 3DLH sensor found
[ 1.189910] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
[ 1.201721] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.208984] omap2-nand driver initializing
[ 1.213623] ONFI flash detected
[ 1.217041] ONFI param page 0 valid
[ 1.220703] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
[ 1.229278] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.234832] 0x000000000000-0x000000020000 : "SPL"
[ 1.241149] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 1.248046] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 1.254943] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 1.261871] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.269042] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.275909] 0x000000280000-0x000000780000 : "Kernel"
[ 1.284454] 0x000000780000-0x000010000000 : "File System"
[ 1.394622] OneNAND driver initializing
[ 1.399383] UBI: attaching mtd7 to ubi0
[ 1.403411] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.409973] UBI: logical eraseblock size: 126976 bytes
[ 1.415588] UBI: smallest flash I/O unit: 2048
[ 1.420501] UBI: VID header offset: 2048 (aligned 2048)
[ 1.426757] UBI: data offset: 4096
[ 2.642333] UBI: max. sequence number: 0
[ 2.678131] UBI: volume 0 ("rootfs") re-sized from 1586 to 1965 LEBs
[ 2.685729] UBI: attached mtd7 to ubi0
[ 2.689666] UBI: MTD device name: "File System"
[ 2.695373] UBI: MTD device size: 248 MiB
[ 2.700561] UBI: number of good PEBs: 1988
[ 2.705474] UBI: number of bad PEBs: 0
[ 2.710113] UBI: number of corrupted PEBs: 0
[ 2.714721] UBI: max. allowed volumes: 128
[ 2.719543] UBI: wear-leveling threshold: 4096
[ 2.724456] UBI: number of internal volumes: 1
[ 2.729064] UBI: number of user volumes: 1
[ 2.733703] UBI: available PEBs: 0
[ 2.738342] UBI: total number of reserved PEBs: 1988
[ 2.743530] UBI: number of PEBs reserved for bad PEB handling: 19
[ 2.749877] UBI: max/mean erase counter: 1/0
[ 2.754333] UBI: image sequence number: 979674349
[ 2.759429] UBI: background thread "ubi_bgt0d" started, PID 606
[ 2.779968] CAN device driver interface
[ 2.783966] CAN bus driver for Bosch D_CAN controller 1.0
[ 2.849548] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 2.856018] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 2.879974] davinci_mdio.0: probed
[ 2.883544] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[ 2.899810] usbcore: registered new interface driver zd1201
[ 2.909942] usbcore: registered new interface driver cdc_ether
[ 2.929870] usbcore: registered new interface driver cdc_eem
[ 2.935943] usbcore: registered new interface driver dm9601
[ 2.941802] cdc_ncm: 04-Aug-2011
[ 2.959564] usbcore: registered new interface driver cdc_ncm
[ 2.965454] Initializing USB Mass Storage driver...
[ 2.979827] usbcore: registered new interface driver usb-storage
[ 2.986114] USB Mass Storage support registered.
[ 2.999816] mousedev: PS/2 mouse device common for all mice
[ 3.019653] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
[ 3.040374] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input2
[ 3.059692] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 3.066864] i2c /dev entries driver
[ 3.080200] Linux video capture interface: v2.00
[ 3.089630] usbcore: registered new interface driver uvcvideo
[ 3.095642] USB Video Class driver (1.1.1)
[ 3.119659] lm75 2-0048: hwmon0: sensor 'tmp275'
[ 3.349639] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 3.370208] cpuidle: using governor ladder
[ 3.380218] cpuidle: using governor menu
[ 3.469696] omap4_aes_mod_init: loading AM33X AES driver
[ 3.475341] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 3.499786] omap4_aes_probe: probe() done
[ 3.504241] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 3.510375] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 3.581512] omap4_sham_probe: probe() done
[ 3.600097] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 3.620819] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 3.640014] usbcore: registered new interface driver usbhid
[ 3.645812] usbhid: USB HID core driver
[ 3.650543] usbcore: registered new interface driver snd-usb-audio
[ 3.658630] mmc1: new SDIO card at address 0001
[ 3.680541] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
[ 3.688323] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
[ 3.696014] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
[ 3.703704] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
[ 3.750457] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
[ 3.770355] ALSA device list:
[ 3.773437] #0: AM335X EVM
[ 3.776428] oprofile: hardware counters not available
[ 3.781738] oprofile: using timer interrupt.
[ 3.786224] nf_conntrack version 0.5.0 (8017 buckets, 32068 max)
[ 3.793090] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 3.798736] TCP cubic registered
[ 3.802124] NET: Registered protocol family 17
[ 3.806762] can: controller area network core (rev 20090105 abi 8)
[ 3.813323] NET: Registered protocol family 29
[ 3.817962] can: raw protocol (rev 20090105)
[ 3.822418] can: broadcast manager protocol (rev 20090105 t)
[ 3.828369] Registering the dns_resolver key type
[ 3.833343] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 3.841339] ThumbEE CPU extension supported.
[ 3.845855] mux: Failed to setup hwmod io irq -22
[ 3.851409] Power Management for AM33XX family
[ 3.856262] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 3.862945] Copied the M3 firmware to UMEM
[ 3.867431] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
[ 3.875274] smartreflex: probe of smartreflex failed with error -22
[ 3.889923] sr_init: platform driver register failed
[ 3.913543] clock: disabling unused clocks to save power
[ 4.160064] Detected MACID=0:18:31:e2:66:93
[ 4.165466] cpsw: Detected MACID = 00:18:31:e2:66:94
[ 4.180938] input: gpio-keys as /devices/platform/gpio-keys/input/input3
[ 4.200195] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[ 4.371307] UBIFS: start fixing up free space
[ 8.677398] UBIFS: free space fixup complete
[ 8.721221] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 8.727508] UBIFS: file system size: 199225344 bytes (194556 KiB, 189 MiB, 1569 LEBs)
[ 8.735870] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[ 8.743499] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 8.749572] UBIFS: default compressor: lzo
[ 8.753875] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 8.773864] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 8.780548] Freeing init memory: 248K