LS1012A FRWY kernel panic with Yocto compiled image

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

LS1012A FRWY kernel panic with Yocto compiled image

516 Views
Bruno_Croci
NXP Pro Support
NXP Pro Support

Hello,

We are trying to bring up an image on a FRWY LS1012A that we compiled on Yocto but we are getting a Kernel panic.

These are the steps we followed to compile with Yocto:

mkdir distro
cd distro
repo init -u https://github.com/nxp-qoriq/yocto-sdk.git -b langdale -m ls-6.1.1-1.0.0_distro.xml
repo sync
 
source  distro-setup-env -m ls1012afrwy

bitbake ls-image-main
bitbake qoriq-composite-firmware
bitbake generate-boottgz

These are the steps we followed to flash the SD card:

Our first attempt did not include a firmware binary, and the boot script took around 40 seconds to jump to Kernel.

flex-installer -F -b boot_ls1012afrwy_lts_6.1.tgz -r ls-image-main-ls1012afrwy.tar.gz -d /dev/sdc

Our second attempt included the firmware binary, and it made the script jump to the Kernel faster, but still got the Kernel panic.

flex-installer -F -b boot_ls1012afrwy_lts_6.1.tgz -r ls-image-main-ls1012afrwy.tar.gz -f firmware_ls1012afrwy_uboot_qspiboot.img -d /dev/sdc

Attached are both logs.

We haven’t changed the source code, so we wondered if something in our process could be wrong or missing. Can you help us get the board to boot correctly to Kernel?

Any help will be appreciated, best regards,
Bruno

Labels (1)
3 Replies

452 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please update u-boot with the firmware image with command.

=> tftp 0x82000000 firmware_ls1012afrwy_qspiboot.img

=> sf probe 0:0
=> sf erase 0 +$filesize && sf write 0x82000000 0 $filesize

 

Then deploy SD card with the following command.

flex-installer -b boot_ls1012afrwy_lts_6.1.tgz -r ls-image-main-ls1012afrwy.tar.gz -d /dev/sdc

 

0 Kudos

437 Views
Bruno_Croci
NXP Pro Support
NXP Pro Support

Hello @yipingwang 

Thanks for your input.

We previously attempted to run those commands beforehand and encountered some issues.

Before compiling an image with Yocto, we were following the  Layerscape LS1012A Freeway (FRWY-LS1012A) Board Getting Started Guide and downloaded that binary from an NXP site which we obtained from section 4.2:

wget https://www.nxp.com/lgfiles/sdk/ lsdk1712-ls1012afrwy/ firmware_ls1012afrwy_uboot_qspiboot.img

and after downloading it with TFTP and using the serial flash command from section 4.3 and 4.4:

tftp 0x96000000 firmware_ls1012afrwy_uboot_qspiboot.img 
sf probe 0:0;sf erase 0 +$filesize; sf write 96000000 0 $filesize
sf erase 0x1d0000 +0x10000;

and reset the board, but the board could not boot anymore. We haven't been able to recover the board yet even with the CodeWarrior TAP. Attached is the firmware binary that we attempted to flash.

We are afraid that if we rerun these same commands, we will end up with another FRWY-LS1012A board unable to boot.

Can you tell us which could have been the error that occurred to us leading to the board being unable to boot?

We also compared this same firmware binary against the binary compiled with Yocto and looks different. We want to be sure that the same outcome won't happen again.

Thanks and best regards,
Bruno 

0 Kudos

371 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please use firmware image generated by Yocto with the following command.

$ bitbake qoriq-composite-firmware

 

Please refer to section "8.6 Board Recovery" in C:\Freescale\CW4NET_v2020.06_test\CW_ARMv8\ARMv8\Help\PDF\ARMv8_Targeting_Manual.pdf to do board recovery with CodeWarrior.

In addition, please delete "sf erase 0x1d0000 +0x10000;" in your procedure.