I have shown all my parameters here, I havent included everything, only what is required:
bootargs=root=/dev/mmcblk0p1 rw rootdelay=5 console=ttyS0,115200
bootcmd=setenv bootargs root=/dev/mmcblk0p1 rw rootdelay=2 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:1 $loadaddr /boot/$bootfile; ext2load mmc 0:1 $fdtaddr $fdtfile; bootm $loadaddr - $fdtaddr
bootdelay=10
bootfile=uImage
consoledev=ttyS0
fdtaddr=0xe8800000
fdtfile=uImage--1.0-r1-t4240qds-20140203110337.dtb
loadaddr=0xe8020000
uboot="u-boot.bin"
ubootaddr=0xeff80000
As you can see I set my bootcmd parameter to
setenv bootargs root=/dev/mmcblk0p1 rw rootdelay=2 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:1 $loadaddr /boot/$bootfile; ext2load mmc 0:1 $fdtaddr $fdtfile; bootm $loadaddr - $fdtaddr
My SD card has a single ext2 filesystem with the rootfs in it, and try to read load the kernel and fdt into memory using ext2load.
Then I type
=> boot
This is what I get:
Device: FSL_SDHC
Manufacturer ID: 3
OEM: 5344
Name: SU04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
4569757 bytes read in 329 ms (13.2 MiB/s)
62049 bytes read in 113 ms (536.1 KiB/s)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at e8020000 ...
Image Name: Linux-3.8.13-rt9-QorIQ-SDK-V1.4
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 4491674 Bytes = 4.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at e8800000
Booting using the fdt blob at 0xe8800000
Uncompressing Kernel Image ... OK
Loading Device Tree to 03fdb000, end 03fffee0 ... OK
Using T4240 QDS machine description
MMU: Supported page sizes
4 KB as direct
1024 KB as direct
2048 KB as direct
4096 KB as direct
16384 KB as direct
65536 KB as direct
262144 KB as direct
1048576 KB as direct
These lines
4569757 bytes read in 329 ms (13.2 MiB/s)
62049 bytes read in 113 ms (536.1 KiB/s)
show that ext2load reads both files uImage and the fdt file.
The system boots, but as you can see, my kernel (which 3.13) is not shown to be booted. I verified with uname as well. However, my root filesystem works just fine. How is it that kernel isn't booting?