Booting from spi flash issue for chip P1022

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

Booting from spi flash issue for chip P1022

Jump to solution
1,284 Views
jason_cui
Contributor I

Hi Sir,

we are designing an switch with P1022 chip,and we plan to boot from SPI flash.So when build boot,we use commands like this:

  make ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux-gnuspe- P1022DS_SPIFLASH_config

  unset LDFLAGS

  make ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux-gnuspe-

  Then u-boot.bin will be built in the root dir.But after bure it to spi flash,and power on ,we found that cpu can't boot from spi flash.After searching from the internet,we got to know that PBI and RCW will be needed together with u-boot.bin to generate the final file.So could you please kindly attach the boot_format and the related config_sram.dat file for us?

  Or please tell me how to get the tools and the config files ,thanks a lot .

  Appreciate for your help.

Labels (1)
0 Kudos
1 Solution
794 Views
ufedor
NXP Employee
NXP Employee

The requested files could be downloaded from the public git:

sdk/boot-format.git - Freescale PowerPC SD/SPI boot tool

View solution in original post

3 Replies
794 Views
jason_cui
Contributor I

Dear sir,

   Could you please help on this ?

   After I got the spi image file and burn it on spi flash,I can not get any info from the console,I'm sure the cfg_rom_loc was set to :0110.

   Is there anything I missed?Or something wrong with my operation?

   Many thanks for that,have a good day!

   Thanks

   Jason

0 Kudos
795 Views
ufedor
NXP Employee
NXP Employee

The requested files could be downloaded from the public git:

sdk/boot-format.git - Freescale PowerPC SD/SPI boot tool

794 Views
jason_cui
Contributor I

Hi sir,

   Thanks for your kindly and professional help.

   This is the boot code I used :fsl-sdk-v1.6-fb1-4.0

   This is the steps I built u-boot.bin(Please help to check whether it‘s right or not’):

              make ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux-gnuspe- P1022DS_SPIFLASH_config

              unset LDFLAGS

              make ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux-gnuspe-

   After these done,I got u-boot.bin like this:482552 May 16 19:01 u-boot.bin

   Copy the u-boot.bin to boot_format dir,and run:./boot_format config_ddr3_2gb_p1022ds.dat u-boot.bin -spi spi-uboot.bin,then got spi-uboot.bin like this:483840 May 16 18:28 spi-uboot.bin

   But I found that other spi flash image was about 584K size,like u-boot-spi-P1022DS_SPIFLASH-2013.10+fslgit-r0.bin file

   I burn spi-uboot.bin to spi flash,but can not see any info from my console

   So what I need to confirm is :

   1、Is it right for my steps to build u-boot.bin and spi-uboot.bin?

   2、Why is the image size so strange?

   3、If it‘s ok for my operation,do I have to modify user code size for file config_ddr3_2gb_p1022ds.dat ?

   Thanks a lot!

   Jason

0 Kudos