PBI on flexbuild_lsdk1712

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

PBI on flexbuild_lsdk1712

Jump to solution
1,163 Views
notshure
Contributor IV

Hello everyone.

I have been trying to perform this task for several days:

Target:

I am working with the LS1043a board. I want to generate a Boot from SD for my platform. I would also like to insert a PBI command in the Boot (command to disable cores). To generate the boot I am using flex-builder, in particular flexbuild_lsdk1712. I saw from the documentation Layerscape Software Development Kit 17.12 Documentation, Rev. 0, 02/201 that it is possible to make the file firmware_ls1043ardb_uboot_sdboot.img with the following command: flex-builder -i mkfw -m ls1043ardb -b sd -B uboot.

I have already done such a thing using the latest version of flex-builder: flexbuild_lsdk2108

In fact, this link describes in detail all the steps necessary to obtain this result.

I want to do what I did with flexbuild_lsdk2108 with flexbuild_lsdk1712 as well.

I do this because I need to generate the boot from SD with U-Boot 2017 on it

What have I done:

Here is the list of things that I did step by step to be able to generate the file x with the PBI of disabling the registers inside:

    • Download flexbuild_lsdk1712 builder for ubuntu 16.4 from Layerscape SDK NXP 

    • Run the following linux commands:
      $ tar xvzf flexbuild_lsdk1712.tgz
      $ cd flexbuild
      $ source setup.env
    • We download all the necessary files, including u-boot, with the following command:
      $ flex-builder -c u-boot -m ls1043ardb

    • Once all the files necessary to compile the image file have been downloaded, we proceed to enter the PBI command onls1043ardb_pbi.cfg file.ls1043ardb_pbi.cfg is located in: packages/firmware/u-boot/ board/freescale/ls1043ardb

    • The file modified with the addition of the core disable PBI command looks like this:
      #Configure Scratch register
      09570600 00000000
      09570604 10000000
      #Alt base register
      09570158 00001000
      #Disable CCI barrier tranaction
      09570178 0000e010
      09180000 00000008
      #USB PHY frequency sel
      09570418 0000009e
      0957041c 0000009e
      09570420 0000009e
      #Core DIS
      09ee0094 0000000e
      #flush PBI data
      096100c0 000fffff
      In which the command to disable the cores is: 09ee0094 0000000e
    • The old u-boot compiled files are deleted, which are located in the following folder: build/firmware/u-boot/ls1043ardb/

    • The following commands are executed:
      flex-builder -c u-boot -m ls1043ardb -b sd
      flex-builder -i mkfw -m ls1043ardb -b sd -B uboot
      the last command generates me the following file: firmware_ls1043ardb_uboot_sdboot.img

Problem:

Question:

Where can the problem be?

 Thank you very much for your availability.

I am attaching my created firmware_ls1043ardb_uboot_sdboot.img file

0 Kudos
1 Solution
1,108 Views
notshure
Contributor IV

Thanks for your reply. i have found the solution.

View solution in original post

0 Kudos
2 Replies
1,113 Views
yipingwang
NXP TechSupport
NXP TechSupport

Your procedure looks reasonable, please deploy the firmware image on SD card with the following command.

dd if=firmware_ls1043ardb_uboot_sdboot.img of=/dev/sdb bs=512 seek=8

Note:/dev/sdb is SD device name on your host PC, bs is the block size of your SD card.

0 Kudos
1,109 Views
notshure
Contributor IV

Thanks for your reply. i have found the solution.

0 Kudos