Booting kernel and filesystem in p1022 based board from spi flash

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

Booting kernel and filesystem in p1022 based board from spi flash

828 Views
somyaaggarwal08
Contributor II

Hi,

I am able to program and load uboot from spi flash. I want to boot kernel , device tree and file system also from spi flash.

I have programmed all the above required files in spi flash .Using sf read commands , I have copied kernel and device tree from spi flash to ram and run bootm command.However i get the  error "  Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!". Can anyone suggest something to resolve this issue.

Please find below the error log:

 sf read 0x100000 0xa0000  4136b0
SF: 4273840 bytes @ 0xa0000 Read: OK
=> sf read 800000 0x4c0000 0x3c28
SF: 15400 bytes @ 0x4c0000 Read: OK
=> bootm 0x100000 - 0x800000
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 00100000 ...
   Image Name:   Linux-3.12.37-rt51-QorIQ-SDK-V1.
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    4273774 Bytes = 4.1 MiB
   Load Address: 00000000
   Entry Point:  00000000

 Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!

0 Kudos
Reply
3 Replies

691 Views
Pavel
NXP Employee
NXP Employee

Test your board using command sequence like to command sequence from the Section 4.4.9.6.1 of the SDK 1.9 Documentation:

  1. Booting Up the System

Execute the following commands to TFTP the images to the board, then boot into Linux.

=>tftp 1000000 <uImage_name>

=>tftp 5000000 fsl-image-core-<platform>.ext2.gz.u-boot

=>tftp 2000000 <platform_dtb_name>

=>bootm 1000000 5000000 2000000

 

Is there problem if this command sequence is used?

 

Test your board is similar command sequence is used for booting from SPI.

Read uImage:

sf read 0x1000000 0xa0000  4136b0

Read platform dtb file

sf read 2000000 0x4c0000 0x3c28

 

Add command for reading your file system.


Have a great day,

Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

691 Views
somyaaggarwal08
Contributor II

Hi,

The issue was something else. Please ignore the above query.

0 Kudos
Reply

691 Views
somyaaggarwal08
Contributor II

Hi,

I am getting the same error when in try to boot kernel from spi flash in the eval board also. I am using the uImage (uImage--3.12-r0-p1022ds-20161214044917.bin ) generated by bitbake fsl-image-full. Is this the uimage for spi flash also??

0 Kudos
Reply