Hi All,
I have a 'Calixto board'. TI SITARA AM1808 SoM with 128MB NAND Flash.
I flash kernel 2.6.37 Kernel uImage in NAND flash.
I want to run RFS from MMC and I inserted 4 GB MMC.
But after extracting of uImage, the board was hanged and go to search for RFS.
I post here uboot args and Kernel log where it stopped.
"U-Boot args"
----------------------
MMC: davinci: 0
SF: Detected SST25VF016B with page size 4096, total 2 MiB
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
Net: Ethernet PHY: GENERIC @ 0x00
DaVinci-EMAC
Hit any key to stop autoboot: 0
U-Boot > printenv
baudrate=115200
bootargs=mem=128M console=ttyS2,115200n8 earlyprintk=ttyS2,115200n8 rw root=/dev/mmcblk0p1 rootdelay=2 rootfstype=ext2
bootcmd=mw 0x68000014 0x364200; nand read.e 0xc0700000 0x200000 0x250000;bootm 0xc0700000;
bootdelay=3
bootfile="uImage"
ethact=DaVinci-EMAC
ethaddr=0a:2b:3c:4d:a5:b6
fileaddr=C0700000
filesize=24DDE8
gatewayip=10.111.17.254
ipaddr=10.111.17.70
serverip=10.111.17.17
stderr=serial
stdin=serial
stdout=serial
ver=U-Boot 2010.12 (Feb 18 2012 - 01:03:30)
Kernel Log
-----------------
U-Boot > boot
NAND read: device 0 offset 0x200000, size 0x250000
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
2424832 bytes read: OK
## Booting kernel from Legacy Image at c0700000 ...
Image Name: Linux-2.6.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2416040 Bytes = 2.3 MiB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37 (root@DTP148) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #15 PREEMPT Thu Sep 3 12:51:56 IST 2015
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DA850/OMAP-L138/AM18x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci da850/omap-l138/am18x variant 0x1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M console=ttyS2,115200n8 earlyprintk=ttyS2,115200n8 rw root=/dev/mmcblk0p1 rootdelay=2 rootfstype=2
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 124824k/124824k available, 6248k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xc8800000 - 0xfea00000 ( 866 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0030000 ( 160 kB)
.text : 0xc0030000 - 0xc049f000 (4540 kB)
.data : 0xc04a0000 - 0xc04d53e0 ( 213 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 144 gpio irqs
NET: Registered protocol family 16
No entry for the specified index
calixto_evm_init: lcdcntl mux setup failed: -19
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource timer0_1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
EMAC: RMII PHY configured, MII PHY will not be functional
msgmni has been set to 243
alg: No test for stdrng (krng)
io scheduler noop registered (default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found Tianma_TM035KDH03 panel
Console: switching to colour frame buffer device 40x30
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
console [ttyS2] enabled
brd: module loaded
ONFI flash detected
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix ���������������������������������������������������������������������)
Creating 2 MTD partitions on "davinci_nand.1":
0x000000020000-0x000000820000 : "kernel"
0x000000820000-0x000008000000 : "filesystem"
davinci_nand davinci_nand.1: controller rev. 2.5
spi_davinci spi_davinci.1: DMA: supported
spi_davinci spi_davinci.1: DMA: RX channel: 18, TX channel: 19, event queue: 0
m25p80 spi1.0: found sst25vf016b, expected m25p80
m25p80 spi1.0: sst25vf016b (2048 Kbytes)
Creating 4 MTD partitions on "m25p80":
0x000000000000-0x000000010000 : "UBL"
0x000000010000-0x000000090000 : "U-Boot"
0x000000090000-0x0000000a0000 : "U-Boot-Env"
0x0000001f0000-0x000000200000 : "MAC-Address"
Read MAC addr from SPI Flash: ff:ff:ff:ff:ff:ff
spi_davinci spi_davinci.1: Controller at 0xfef0e000
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
console [netcon0] enabled
netconsole: network logging started
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci ohci.0: DA8xx OHCI
ohci ohci.0: new USB bus registered, assigned bus number 1
Waiting for USB PHY clock good...
ohci ohci.0: irq 59, io mem 0x01e25000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DA8xx OHCI
usb usb1: Manufacturer: Linux 2.6.37 ohci_hcd
usb usb1: SerialNumber: ohci.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
omap_rtc: RTC power up reset detected
i2c /dev entries driver
Linux video capture interface: v2.00
watchdog watchdog: heartbeat 60 sec
cpuidle: using governor ladder
cpuidle: using governor menu
davinci_mmc: probe of davinci_mmc.0 failed with error -16
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
ALSA device list:
#0: DA850/OMAP-L138 EVM
nf_conntrack version 0.5.0 (1950 buckets, 7800 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
davinci_emac_probe: using random MAC addr: 6a:44:22:41:f2:50
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
Waiting 2sec before mounting root device...
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:
[<c0034718>] (dump_backtrace+0x0/0x114) from [<c0386870>] (dump_stack+0x18/0x1c)
r6:00008000 r5:c7815000 r4:c04d5990 r3:00000000
[<c0386858>] (dump_stack+0x0/0x1c) from [<c03868ec>] (panic+0x78/0x1a4)
[<c0386874>] (panic+0x0/0x1a4) from [<c0008fb0>] (mount_block_root+0x1d8/0x218)
r3:00000030 r2:00000000 r1:c7829f58 r0:c0431c7c
[<c0008dd8>] (mount_block_root+0x0/0x218) from [<c000909c>] (mount_root+0xac/0xd0)
r8:00000000 r7:00000013 r6:c004799c r5:c00272c1 r4:00200000
[<c0008ff0>] (mount_root+0x0/0xd0) from [<c0009230>] (prepare_namespace+0x170/0x1c8)
r4:c04d5444
[<c00090c0>] (prepare_namespace+0x0/0x1c8) from [<c00084b8>] (kernel_init+0x114/0x154)
r5:c00083a4 r4:c04d53e0
[<c00083a4>] (kernel_init+0x0/0x154) from [<c004799c>] (do_exit+0x0/0x6d4)
r4:00000000 r3:00000000
I am not sure about this, but the problem is in few last lines which I marked as red color.
Was this error related to MMC partition related?
Are my u-boot arguments wrong, specially 'bootargs'?
Please give a solution about this error.