Hi, I am trying to boot the kernel from SPI NOR. After doing tftp and writing the files, I am getting this error.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hi, I am trying to boot the kernel from SPI NOR. After doing tftp and writing the files, I am getting this error.

1,043 Views
harisjeelani
Contributor I

pinki JEDEC ID: 0x20:0xba:0x18

after querey

SF: Detected M25P32 - 16MB with block size 65536, block count 256, total 16777216 bytes

16384 KiB M25P32 - 16MB at 0:0 is now current device

spi_nor_flash_read: from 0x00100000, len 4194304

spi_nor_flash_read: from 0x00500000, len 9437184

## Booting kernel from Legacy Image at 80800000 ...

Bad Header Checksum

ERROR: can't get kernel image!

Labels (1)
0 Kudos
4 Replies

589 Views
harisjeelani
Contributor I

The checksum passes if I boot from the RAM with this environment:

bootdelay=3

baudrate=115200

ipaddr=192.168.1.103

serverip=192.168.1.101

netmask=255.255.255.0

loadaddr=0x80800000

rd_loadaddr=0x81000000

netdev=eth0

ethprime=FEC0

uboot=u-boot.bin

kernel=uImage

bootargs_base=setenv bootargs console=ttymxc0,115200

bootargs_spi=setenv bootargs ${bootargs} root=/dev/ram rw ramdisk_size=49000

bootcmd=run bootcmd_spi

ethact=FEC0

bootcmd_spi=run bootargs_base bootargs_spi

stdin=serial

stdout=serial

stderr=serial

bootargs=console=ttymxc0,115200 root=/dev/ram rw ramdisk_size=49000

But the board never stops executing(like in an infinite loop) these lines:

Running the BLE_UPLD_MGR

starting pid 2122, tty '': '/etc/rc.d/rc_gpu.S'

ble_upld before while case

server url    :

upload_interval : 0

server url is

Host Name = --length = 0

Unable to open file

server url    :

upload_interval : 0

server url is

Host Name = --length = 0

Unable to open file

server url    :

upload_interval : 0

server url is

0 Kudos

589 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I´d like to clarify, is u-boot executing with not issues? is the problem you have just related to the kernel booting process?

How are you flasing the SPI NOR? Do you just want to fetch the Kernel from SPI NOR? or even U-boot is located in SPI-NOR?

Regards,

Alejandro

0 Kudos

589 Views
harisjeelani
Contributor I

Hi Alejandro,

Thank you for replying.

No issues with u-boot. At the u-boot prompt, I do the "tftp" and then "sf write" (to write into flash). After rebooting, I get the kernel checksum error.

I think the issue is with SPI NOR because everything works fine when I boot the kernel and fs from RAM.

0 Kudos

589 Views
alejandrolozan1
NXP Employee
NXP Employee

Can you share all the commands you are using?

0 Kudos