LS1012A-FRDM : Error when flashing the PPA Image

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

LS1012A-FRDM : Error when flashing the PPA Image

Jump to solution
1,195 Views
anais_battut
Contributor I

Hi,

I have got a problem when I try to flash the PPA image on the LS1012A-FRDM. Indeed, according to the "QorIQ FRDM-LS1012A board Getting Started ", to update FRDM-LS1012A board image, and in particular the PPA image (ppa.itb), you need to follow the instructions :

=> tftp 0x96000000 ppa.itb
Speed detected 3e8
Using pfe_eth0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.3
Filename 'ppa.itb'.
Load address: 0x96000000
Loading: #######
8.5 MiB/s
done
Bytes transferred = 89027 (15bc3 hex)
=> sf probe 0:0
SF: Detected S25FS512S_256K with page size 512 Bytes, erase size 128 KiB, total 64 MiB
=> sf erase 0x500000 +$filesize
SF: 131072 bytes @ 0x500000 Erased: OK
=> sf write 0x96000000 0x500000 $filesize
device 0 offset 0x500000, size 0x15bc3
SF: 89027 bytes @ 0x500000 Written: OK

I have flashed the Kernel Image with success, but when it comes to the PPA image, an error comes up when I reboot the board :

fsl-ppa: Bad firmware image (not a FIT image)
fsl-ppa: error (-22)

The PPA image is from : Linux® SDK for QorIQ® Processors | NXP 

When I look into the adress where the PPA Image is flashed, I am expecting to see :

=> md.w 0x40500000
40500000: 0dd0 edfe 0100 c34b 0000 3800 0100 9849 ......K....8..I.
40500010: 0000 2800 0000 1100 0000 1000 0000 0000 ...(............
40500020: 0000 5100 0100 6049 0000 0000 0000 0000 ...Q..I`........
40500030: 0000 0000 0000 0000 0000 0100 0000 0000 ................
40500040: 0000 0300 0000 0400 0000 4700 c457 a757 ...........GW.W.
40500050: 0000 0300 0000 0d00 0000 0000 5050 2041 ............PPA
40500060: 6946 6d72 6177 6572 0000 0000 0000 0300 Firmware........
40500070: 0000 0400 0000 0c00 0000 0100 0000 0100 ................

However, on the board that I just flashed with the new version of the PPA image :

=> md.w 0x40500000
40500000: 121a 0006 feed d00d 0dd4 0006 0038 0000 ............8...
40500010: 0011 0000 0028 0000 0000 0000 0010 0000 ....(...........
40500020: 0d9c 0006 0060 0000 0000 0000 0000 0000 ....`...........
40500030: 0000 0000 0000 0000 0000 0000 0001 0000 ................
40500040: 0004 0000 0003 0000 ff1a 5f2c 0056 0000 ..........,_V...
40500050: 000d 0000 0003 0000 4120 5050 0000 0000 ........ APP....
40500060: 7265 7761 726d 4669 0003 0000 0000 0000 erawmriF........
40500070: 000c 0000 0004 0000 0001 0000 0001 0000 ................

I don't understand the problem and don't know how the PPA image ended up reversed. I followed the tutoriel on "NGS-FRDM-LS1012A : Get Started with the FRDM-LS1012A"

Thank you.

Labels (2)
0 Kudos
1 Solution
1,126 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please execute the following command to do byte swapping, then program ppa.itb_swap to the target board.

$ tclsh byte_swap.tcl ppa.itb  ppa.itb_swap 8

View solution in original post

0 Kudos
3 Replies
1,126 Views
yipingwang
NXP TechSupport
NXP TechSupport

It seems that PPA firmware on the target board should be as the following.

401e0000: 0dd0 edfe 0100 c35b 0000 3800 0100 9859 ......[....8..Y.
401e0010: 0000 2800 0000 1100 0000 1000 0000 0000 ...(............
401e0020: 0000 5100 0100 6059 0000 0000 0000 0000 ...Q..Y`........
401e0030: 0000 0000 0000 0000 0000 0100 0000 0000 ................
401e0040: 0000 0300 0000 0400 0000 4700 db58 1bee ...........GX...
401e0050: 0000 0300 0000 0d00 0000 0000 5050 2041 ............PPA
401e0060: 6946 6d72 6177 6572 0000 0000 0000 0300 Firmware........
401e0070: 0000 0400 0000 0c00 0000 0100 0000 0100 ................

After executing "sf write 0x96000000 0x500000 $filesize", please check whether "md.w 0x96000000" and "md.w 0x40500000" get the same result.

0 Kudos
1,126 Views
anais_battut
Contributor I

When I check for "md.w 0x96000000" and "md.w 0x40500000", I get the same result but reversed and I am not sure why...

For "md.w 0x96000000" :

96000000: 0dd0 edfe 0100 c35b 0000 3800 0100 9859 ......[....8..Y.
96000010: 0000 2800 0000 1100 0000 1000 0000 0000 ...(............
96000020: 0000 5100 0100 6059 0000 0000 0000 0000 ...Q..Y`........
96000030: 0000 0000 0000 0000 0000 0100 0000 0000 ................
96000040: 0000 0300 0000 0400 0000 4700 db58 1bee ...........GX...
96000050: 0000 0300 0000 0d00 0000 0000 5050 2041 ............PPA
96000060: 6946 6d72 6177 6572 0000 0000 0000 0300 Firmware........
96000070: 0000 0400 0000 0c00 0000 0100 0000 0100 ................

For "md.w 0x40500000" :

40500000: 5bc3 0001 feed d00d 5998 0001 0038 0000 .[.......Y..8...
40500010: 0011 0000 0028 0000 0000 0000 0010 0000 ....(...........
40500020: 5960 0001 0051 0000 0000 0000 0000 0000 `Y..Q...........
40500030: 0000 0000 0000 0000 0000 0000 0001 0000 ................
40500040: 0004 0000 0003 0000 ee1b 58db 0047 0000 ...........XG...
40500050: 000d 0000 0003 0000 4120 5050 0000 0000 ........ APP....
40500060: 7265 7761 726d 4669 0003 0000 0000 0000 erawmriF........
40500070: 000c 0000 0004 0000 0001 0000 0001 0000 ................

0 Kudos
1,127 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please execute the following command to do byte swapping, then program ppa.itb_swap to the target board.

$ tclsh byte_swap.tcl ppa.itb  ppa.itb_swap 8

0 Kudos