Little endian uImage booting LS1043ARDB problem

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

Little endian uImage booting LS1043ARDB problem

1,476 Views
刘刘波
Contributor I

Hi, nowadays I have been working  debugging the LS1043ARDB, when I use the little endian toolchain of arm64 compile roootfs and kernel,   I start the board using tftp a0000000 uImage;tftp 90000000 fsl-ls1043a-rdb.dtb;bootm a0000000 - 90000000, but have some problem in the booting information :

[ 2.533150] Key type dns_resolver registered
[ 2.537754] registered taskstats version 1
[ 2.542005] fsl_generic: FSL DPAA Generic Ethernet driver
[ 2.547524] hctosys: unable to open rtc device (rtc0)
[ 2.555022] Freeing unused kernel memory: 5740K (ffff800000c0c000 - ffff8000011a7000)
[ 2.562883] Freeing alternatives memory: 80K (ffff8000011a7000 - ffff8000011bb000)
[ 2.683855] mmc0: new high speed SDHC card at address 59b4
[ 2.689568] mmcblk0: mmc0:59b4 SD16G 14.7 GiB
[ 2.696631] mmcblk0: p1 p2 p3 < p5 p6 p7 > p4
[ 3.636758] sw[1797]: unhandled level 2 translation fault (11) at 0x000000e4, esr 0x92000006
[ 3.645210] pgd = ffff80007a319000
[ 3.648609] [000000e4] *pgd=00000000fa31c003, *pud=00000000fa31d003, *pmd=0000000000000000
[ 3.656889]
[ 3.658375] CPU: 2 PID: 1797 Comm: sw Not tainted 4.4.21-rt30 #1
[ 3.664380] Hardware name: LS1046A RDB Board (DT)
[ 3.669084] task: ffff800971088c80 ti: ffff80007a3a4000 task.ti: ffff80007a3a4000
[ 3.676569] PC is at 0xffff89031324
[ 3.680055] LR is at 0xffff89031310
[ 3.683542] pc : [<0000ffff89031324>] lr : [<0000ffff89031310>] pstate: 60000000
[ 3.690938] sp : 0000ffff8908d0d0
[ 3.694248] x29: 0000ffff8908d0d0 x28: 0000000000000001
[ 3.699572] x27: 0000000000590fe8 x26: 0000000000000400
[ 3.704892] x25: 00000000ffffffff x24: 0000ffff8908d150
[ 3.710208] x23: 0000000000000400 x22: 0000ffff8908d1f0
[ 3.715529] x21: 0000ffff8908d160 x20: 0000ffff8908d5ef
[ 3.720847] x19: 0000ffff8908d1f0 x18: 0000ffff890b1000
[ 3.726164] x17: 0000ffff88ec33b8 x16: 0000ffff8904f0c0
[ 3.731486] x15: 0000ffffdb49cc18 x14: 00000000005f2000
[ 3.736804] x13: 000000000062a000 x12: 0000000000000000
[ 3.742119] x11: 0000000000000000 x10: 0000000000000500
[ 3.747439] x9 : 0000000000000005 x8 : 0000000000000000
[ 3.752758] x7 : 00000000000000e4 x6 : 0000000000000072
[ 3.758074] x5 : 0000000000000000 x4 : 000000000000000a
[ 3.763395] x3 : 0000ffff8908d1fa x2 : 0000ffff8908d1fa
[ 3.768711] x1 : 0000ffff8908f770 x0 : 0000ffff8908f828
[ 3.774027]

0 Kudos
Reply
6 Replies

1,173 Views
Pavel
NXP Employee
NXP Employee

Do you use NXP SDK for the LS1043aRDB board?

Usually u-boot from this SDK uses ITB file for Linux loading.

Have a great day,
Pavel Chubakov

0 Kudos
Reply

1,173 Views
刘刘波
Contributor I

No,  I use tftp a0000000 uImage;tftp 90000000 fsl-ls1043a-rdb.dtb;bootm a0000000 - 90000000 to start the 1043 board. 

0 Kudos
Reply

1,173 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Jianbo,

We suggest customers use SDK 2.0 downloaded from Linux® SDK for QorIQ Processors|NXP .

Would you please let me know why you don't want to use the Linux SDK provided by NXP.

Thanks,

Yiping

0 Kudos
Reply

1,173 Views
刘刘波
Contributor I

Because I need to change some function. The reason to the above problem I had found, which is caused by the lib extracted by toolchain, but I have not found the good method to solve it. 

0 Kudos
Reply

1,173 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Jianbo,

You could modify and rebuild Linux Kernel with the following procedure, then use the itb image directly.

You could modify Kernel source code or reconfigure Kernel, then rebuild images as the following.

1. $bitbake virtual/kernel -c cleansstate

2. $bitbake virtual/kernel -c configure

3. Go to the folder build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/linux-qoriq/4.1-r0/build/

Configure Linux Kernel with the command "make ARCH=arm64 menuconfig"

Modify Kernel source in "source" folder.

4. Rebuild Linux Kernel with "bitbake virtual/kernel  -c compile -f "

5. $bitbake fsl-image-kernelitb

Please do step 3-5 to continue modify and rebuild Linux Kernel.

Thanks,

Yiping

0 Kudos
Reply

1,173 Views
刘刘波
Contributor I

At first, thank you very much , but your method are not suit to me. The compile environment is not in SDK2.0, the kernel version is not linux-4.1.8. In other words, I have been debugging the higher kernel for LS1043ARDB to use, but I also thank you for your help.

0 Kudos
Reply