lpcware

kernel booting error, by uboot 2009.03

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by tbononcini on Wed Jun 11 01:31:31 MST 2014
We use the Phytec LPC3250 on a costum board based on "phy3250 development kit", with a Flash NAND.
We have never experienced any problems until we used u-boot 1.3.3. But since we have tried to install the latest u-boot 2009.03, we are not able to load Linux kernel.
Note that the uboot package is correctly patched with NXP patch.

The error is as follow:
------------------------------------------
NAND read: device 0 offset 0x190000, size 0x175e00
1531392 bytes read: OK
## Booting kernel from Legacy Image at 80100000 ...
   Image Name:   Linux-2.6.27.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1526636 Bytes =  1.5 MB
   Load Address: 80008000
   Entry Point:  80008000
   [color=#f00]Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
[/color]
---------------------------------------------

These are the checksums, shown by "printf" added to the code:
--------------------------------------------
crc calculated: 9e3b506f
crc uimage: 4b7cfc6d
hdr: 83f4fb20
--------------------------------------------

By uboot 1.3.3 the crc calculated was 4b7cfc6d, the same as the crc uimage.
The uImage file is the same as the one that has been used to date (Linux-kernel 2.6.27.8) so we are thinking of setting the same environment parameters.
I checked that machine id is correct.

My printenv is:
----------------------------------------------
setenv bootfile uImage
setenv bootcmd 'nand read 0x80100000 190000 0x175e00; bootm'
setenv fileaddr 0x80100000
setenv loadaddr 0x80100000
setenv bootargs console=ttyS0,115200n81 ubi.mtd=3,512 root=ubi0:rootfs rootfstype=ubifs reboot=soft lpj=207360 quiet init=/sbin/init
----------------------------------------------

We can't find the reason why the crc calculation returns this error.
Could you give us some advice?

I hope you can help us.
If it's necessary, we can give you more details and information.

Best regards.

Outcomes