kernel fails to load in p1022 board

cancel
Showing results for 
Search instead for 
Did you mean: 

kernel fails to load in p1022 board

Jump to solution
434 Views
hemwant
Contributor IV

I am having a custom board based on P1022 processor, I wanted to update the kernel to 4.1.8(extracted from QorIQ2.0) from earlier 3.12.37 (extracted from BSP QorIQ1.8) . I have extracted the kernel source of QorIq2.0 and compiled the same kernel using p1022 toolchain. I have successfully generated the kernel image but when i try to load the kernel in my board it fails to load throwing the following exception.

Device: FSL_SDHC
Manufacturer ID: fe
OEM: 14e
Name: MMC04
Tran Speed: 52000000
Rd Block Len: 512
MMC version 4.41
High Capacity: Yes
Capacity: 3.5 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 3.5 GiB
Boot Capacity: 16 MiB ENH
RPMB Capacity: 128 KiB ENH
12566 bytes read in 112 ms (109.4 KiB/s)
4320640 bytes read in 320 ms (12.9 MiB/s)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-4.1.8-rt8
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    4320576 Bytes = 4.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 03000000
   Booting using the fdt blob at 0x3000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 03ff9000, end 03fff115 ... OK

Note: The same earlier kernel 3.13 when again loaded into the above board works properly and boots the linux.

Labels (1)
0 Kudos
1 Solution
378 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Hemwant Rawat,

I verified your uImage file, encountered same problem as you.

There is problem with uImage which you built.

You could refer to the following procedure to build Linux Kernel image.

Please download SDK image ISO for e500v2, then install Toolchain for e500v2, and execute the following command.

$ source /opt/fsl-qoriq/2.0/environment-setup-ppce500v2-fsl-linux-gnuspe

$ cp arch/powerpc/configs/mpc85xx_defconfig .config

$ make ARCH=powerpc menuconfig

$ unset LDFLAGS

$ make uImage CC="powerpc-fsl-linux-gnuspe-gcc --sysroot=/opt/fsl-qoriq/2.0/sysroots/ppce500v2-fsl-linux-gnuspe"

Thanks,

Yiping

View solution in original post

0 Kudos
4 Replies
378 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Hemwant Rawat,

Please try whether the attached uImage can work on your target board, which I got from SDK 2.0 e500v2 pre-built image ISO.

Would you please provide your uImage and dtb file? I will verify them on my demo board.

Thanks,

Yiping

0 Kudos
378 Views
hemwant
Contributor IV

Hello yipingwang

I have tried to run your attached kernel , please find attached its log.

Also Please  find my kernel and dtb image.

0 Kudos
379 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Hemwant Rawat,

I verified your uImage file, encountered same problem as you.

There is problem with uImage which you built.

You could refer to the following procedure to build Linux Kernel image.

Please download SDK image ISO for e500v2, then install Toolchain for e500v2, and execute the following command.

$ source /opt/fsl-qoriq/2.0/environment-setup-ppce500v2-fsl-linux-gnuspe

$ cp arch/powerpc/configs/mpc85xx_defconfig .config

$ make ARCH=powerpc menuconfig

$ unset LDFLAGS

$ make uImage CC="powerpc-fsl-linux-gnuspe-gcc --sysroot=/opt/fsl-qoriq/2.0/sysroots/ppce500v2-fsl-linux-gnuspe"

Thanks,

Yiping

View solution in original post

0 Kudos
378 Views
hemwant
Contributor IV

Thank you yipingwang‌, using the above steps I was able to configure the kernel and compile it successfully.

0 Kudos