Unable to handle kernel paging request at virtual address 0033b273912fd041

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

Unable to handle kernel paging request at virtual address 0033b273912fd041

2,262 Views
bora
Contributor II

Hi,

The board doesn't boot. At the beginning I get an erro "Unable to handle kernel paging". I attached the output. 

I appreciate, if you can help.

Best regards,

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

1,203 Views
NXP_USER_05
Contributor I

Hi @bora ,

We are working with a custom i.MX8M Plus DDR4 board that includes 32 MB QSPI NOR flash.
Our objective is to boot U-Boot, Linux kernel, device tree, and initramfs (rootfs.img) entirely from QSPI flash, without using SD/eMMC.

We are able to successfully boot up to U-Boot (flash.bin) from QSPI flash.


-----Flash Layout and Image Sizes----------------

QSPI flash size: 32 MB

flash.bin (U-Boot + SPL) ~2.4 MB
Image.gz (Kernel) ~15 MB
imx8mp-evk.dtb ~85 KB
rootfs.img ~12.6 MB

----QSPI Offset Layout----------
flash.bin @ 0x00000000
Image.gz @ 0x0024D000
imx8mp-evk.dtb @ 0x010A6B00
rootfs.img @ 0x010BB800

U-Boot Environment Setup

After booting into U-Boot from QSPI, we configure the following environment variables to load the kernel, device tree, and initramfs from flash:


sf probe 0
setenv loadaddr 0x40480000 // kernel
setenv fdt_addr 0x43000000 //dtb
setenv initrd_addr 0x43800000 //rootfs (minimal initramfs)
setenv kernel_comp_addr_r 0x50000000
setenv kernel_comp_size 0x04000000

Reading Images from QSPI Flash

sf read ${loadaddr} 0x0024D000 0x00E59A6F
sf read ${fdt_addr} 0x010A6B00 0x00014BBA
sf read ${initrd_addr} 0x010BB800 0x00C04DB0

Boot Command

setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate} rdinit=/dev

booti ${loadaddr} ${initrd_addr} ${fdt_addr}

Issue Observed

  • The kernel starts executing but hangs at “Starting kernel …”.

  • Please refer to the attached kernel boot log (kernel_bootlog1).

When using the following boot arguments:

setenv bootargs setenv bootargs "console=ttymxc1,115200 earlycon root=/dev/ram0 rw rdinit=/sbin/init loglevel=8"

 

  • The kernel progresses further but hangs midway during boot.

  • Please refer to the attached kernel boot log (kernel_bootlog2).

Attached the kernel DTS and kernel defconfig for reference.
Kindly let us know if any modifications are required.

Also getting same error like you Unable to handle kernel paging request at virtual address. can you please give any suggistions to resolve it and successful kernel boot. 

Questions:

1. Are there any recommended changes required in the kernel DTS for booting initramfs entirely from QSPI on a custom i.MX8M Plus DDR4 board?

2. Are there any additional boot arguments recommended by NXP for initramfs-based boot on i.MX8MP from QSPI flash?

3. What could be the possible reason for the kernel not booting correctly?
We followed the same procedure that works successfully on the i.MX8MP LPDDR4  EVK, where the kernel and root filesystem boot properly from QSPI flash.
The only differences in our setup are the flash.bin and device tree, which were modified according to the DDR configuration of our custom board.

 

thank you.

 

0 Kudos
Reply

2,239 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Please, Try to erase and build and program again you image, there is nothing we can do when this error appear.

Regards

0 Kudos
Reply

676 Views
NXP_USER_05
Contributor I

 

Hi @Bio_TICFSL 

I am working on an i.MX8M Plus DDR4 custom board and I am able to successfully boot the system entirely from QSPI flash (32MB).

My current boot components are:

flash.bin (U-Boot)

Image.gz (Linux kernel)

imx8mp-ddr4-evk.dtb

core-image-minimal-initramfs.cpio.gz

Since my board does not have SD card or eMMC, I am using initramfs as the root filesystem.

Now I want to include gcc inside core-image-minimal-initramfs.cpio.gz, so that I can compile applications directly on the target without relying on any external storage.

Changed the conf/local.conf and then build using command

      $bitbake core-image-minimal-initramfs

Also attached the local.conf file for your reference.

It generated core-image-minimal-initramfs.cpio.gz but in bin/ and usr/bin respective folders gcc is not present and getting like below after booting kernel and cpio.gz.

~ # gcc
/bin/sh: gcc: not found


~ # ls
bin dev home init.d media proc run sys usr
boot etc init lib mnt root sbin tmp var

Could you please advise:

What is the correct Yocto method to include gcc in an initramfs image?

Are there any recommended configurations or limitations when using gcc inside initramfs (RAM usage, image size, etc.)?

Any guidance or reference to NXP-supported Yocto practices would be very helpful.

Thank You.

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2035719%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUnable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%200033b273912fd041%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2035719%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThe%20board%20doesn't%20boot.%20At%20the%20beginning%20I%20get%20an%20erro%20%22Unable%20to%20handle%20kernel%20paging%22.%20I%20attached%20the%20output.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%2C%20if%20you%20can%20help.%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2035719%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270490%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%200033b273912fd041%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270490%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245887%22%20target%3D%22_blank%22%3E%40bora%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EWe%20are%20working%20with%20a%20%3CSTRONG%3Ecustom%20i.MX8M%20Plus%20DDR4%20board%3C%2FSTRONG%3E%20that%20includes%20%3CSTRONG%3E32%20MB%20QSPI%20NOR%20flash%3C%2FSTRONG%3E.%3CBR%20%2F%3EOur%20objective%20is%20to%20boot%20%3CSTRONG%3EU-Boot%2C%20Linux%20kernel%2C%20device%20tree%2C%20and%20initramfs%20(rootfs.img)%3C%2FSTRONG%3E%20entirely%20from%20%3CSTRONG%3EQSPI%20flash%3C%2FSTRONG%3E%2C%20without%20using%20SD%2FeMMC.%3C%2FP%3E%3CP%3EWe%20are%20able%20to%20%3CSTRONG%3Esuccessfully%20boot%20up%20to%20U-Boot%20(flash.bin)%3C%2FSTRONG%3E%20from%20QSPI%20flash.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E-----Flash%20Layout%20and%20Image%20Sizes----------------%3C%2FP%3E%3CP%3EQSPI%20flash%20size%3A%2032%20MB%3C%2FP%3E%3CP%3Eflash.bin%20(U-Boot%20%2B%20SPL)%20~2.4%20MB%3CBR%20%2F%3EImage.gz%20(Kernel)%20~15%20MB%3CBR%20%2F%3Eimx8mp-evk.dtb%20~85%20KB%3CBR%20%2F%3Erootfs.img%20~12.6%20MB%3C%2FP%3E%3CP%3E----QSPI%20Offset%20Layout----------%3CBR%20%2F%3Eflash.bin%20%40%200x00000000%3CBR%20%2F%3EImage.gz%20%40%200x0024D000%3CBR%20%2F%3Eimx8mp-evk.dtb%20%40%200x010A6B00%3CBR%20%2F%3Erootfs.img%20%40%200x010BB800%3C%2FP%3E%3CH3%20id%3D%22toc-hId-2004151155%22%20id%3D%22toc-hId-2004152800%22%20id%3D%22toc-hId-2004152800%22%3EU-Boot%20Environment%20Setup%3C%2FH3%3E%3CP%3EAfter%20booting%20into%20U-Boot%20from%20QSPI%2C%20we%20configure%20the%20following%20environment%20variables%20to%20load%20the%20kernel%2C%20device%20tree%2C%20and%20initramfs%20from%20flash%3A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Esf%20probe%200%3CBR%20%2F%3Esetenv%20loadaddr%200x40480000%20%2F%2F%20kernel%3CBR%20%2F%3Esetenv%20fdt_addr%200x43000000%20%2F%2Fdtb%3CBR%20%2F%3Esetenv%20initrd_addr%200x43800000%20%2F%2Frootfs%20(minimal%20initramfs)%3CBR%20%2F%3Esetenv%20kernel_comp_addr_r%200x50000000%3CBR%20%2F%3Esetenv%20kernel_comp_size%200x04000000%3C%2FP%3E%3CP%3E%3CSTRONG%3EReading%20Images%20from%20QSPI%20Flash%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Esf%20read%20%24%7Bloadaddr%7D%200x0024D000%200x00E59A6F%3CBR%20%2F%3Esf%20read%20%24%7Bfdt_addr%7D%200x010A6B00%200x00014BBA%3CBR%20%2F%3Esf%20read%20%24%7Binitrd_addr%7D%200x010BB800%200x00C04DB0%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EBoot%20Command%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Esetenv%20bootargs%20console%3D%24%7Bconsole%7D%2C%24%7Bbaudrate%7D%20earlycon%3D%24%7Bearlycon%7D%2C%24%7Bbaudrate%7D%20rdinit%3D%2Fdev%3C%2FP%3E%3CP%3Ebooti%20%24%7Bloadaddr%7D%20%24%7Binitrd_addr%7D%20%24%7Bfdt_addr%7D%3C%2FP%3E%3CH3%20id%3D%22toc-hId-196696692%22%20id%3D%22toc-hId-196698337%22%20id%3D%22toc-hId-196698337%22%3EIssue%20Observed%3C%2FH3%3E%3CUL%3E%3CLI%3E%3CP%3EThe%20kernel%20%3CSTRONG%3Estarts%20executing%3C%2FSTRONG%3E%20but%20%3CSTRONG%3Ehangs%20at%20%E2%80%9CStarting%20kernel%20%E2%80%A6%E2%80%9D%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EPlease%20refer%20to%20the%20attached%20kernel%20boot%20log%3CSTRONG%3E%20(kernel_bootlog1)%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EWhen%20using%20the%20following%20boot%20arguments%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3Esetenv%20bootargs%20setenv%20bootargs%20%22console%3Dttymxc1%2C115200%20earlycon%20root%3D%2Fdev%2Fram0%20rw%20rdinit%3D%2Fsbin%2Finit%20loglevel%3D8%22%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CUL%3E%3CLI%3E%3CP%3EThe%20kernel%20progresses%20further%20but%20%3CSTRONG%3Ehangs%20midway%20during%20boot%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EPlease%20refer%20to%20the%20attached%20kernel%20boot%20log%3CSTRONG%3E%20(kernel_bootlog2)%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAttached%20the%20%3CSTRONG%3Ekernel%20DTS%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Ekernel%20defconfig%3C%2FSTRONG%3E%20for%20reference.%3CBR%20%2F%3EKindly%20let%20us%20know%20if%20any%20modifications%20are%20required.%3C%2FP%3E%3CP%3EAlso%20getting%20same%20error%20like%20you%26nbsp%3B%3CSTRONG%3EUnable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address.%26nbsp%3B%3C%2FSTRONG%3Ecan%20you%20please%20give%20any%20suggistions%20to%20resolve%20it%20and%20successful%20kernel%20boot.%26nbsp%3B%3C%2FP%3E%3CP%3EQuestions%3A%3C%2FP%3E%3CP%3E1.%26nbsp%3BAre%20there%20any%20%3CSTRONG%3Erecommended%20changes%20required%20in%20the%20kernel%20DTS%3C%2FSTRONG%3E%20for%20booting%20initramfs%20entirely%20from%20QSPI%20on%20a%20%3CSTRONG%3Ecustom%20i.MX8M%20Plus%20DDR4%20board%3C%2FSTRONG%3E%3F%3C%2FP%3E%3CP%3E2.%26nbsp%3BAre%20there%20any%20%3CSTRONG%3Eadditional%20boot%20arguments%3C%2FSTRONG%3E%20recommended%20by%20NXP%20for%20initramfs-based%20boot%20on%20i.MX8MP%20from%20QSPI%20flash%3F%3C%2FP%3E%3CP%3E3.%26nbsp%3BWhat%20could%20be%20the%20possible%20reason%20for%20the%20kernel%20not%20booting%20correctly%3F%3CBR%20%2F%3EWe%20followed%20the%20same%20procedure%20that%20works%20successfully%20on%20the%20i.MX8MP%20LPDDR4%26nbsp%3B%20EVK%2C%20where%20the%20kernel%20and%20root%20filesystem%20boot%20properly%20from%20QSPI%20flash.%3CBR%20%2F%3EThe%20only%20differences%20in%20our%20setup%20are%20the%20%3CSTRONG%3Eflash.bin%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Edevice%20tree%3C%2FSTRONG%3E%2C%20which%20were%20modified%20according%20to%20the%20DDR%20configuration%20of%20our%20custom%20board.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethank%20you.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%200033b273912fd041%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EPlease%2C%20Try%20to%20erase%20and%20build%20and%20program%20again%20you%20image%2C%20there%20is%20nothing%20we%20can%20do%20when%20this%20error%20appear.%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2304658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20handle%20kernel%20paging%20request%20at%20virtual%20address%200033b273912fd041%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2304658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F34846%22%20target%3D%22_blank%22%3E%40Bio_TICFSL%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20working%20on%20an%20%3CSTRONG%3Ei.MX8M%20Plus%20DDR4%20custom%20board%3C%2FSTRONG%3E%20and%20I%20am%20able%20to%20successfully%20boot%20the%20system%20entirely%20from%20%3CSTRONG%3EQSPI%20flash%20(32MB).%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EMy%20current%20boot%20components%20are%3A%3C%2FP%3E%3CP%3Eflash.bin%20(U-Boot)%3C%2FP%3E%3CP%3EImage.gz%20(Linux%20kernel)%3C%2FP%3E%3CP%3Eimx8mp-ddr4-evk.dtb%3C%2FP%3E%3CP%3Ecore-image-minimal-initramfs.cpio.gz%3C%2FP%3E%3CP%3ESince%20my%20board%20does%20not%20have%20%3CSTRONG%3ESD%20card%20or%20eMMC%2C%3C%2FSTRONG%3E%20I%20am%20using%20%3CSTRONG%3Einitramfs%3C%2FSTRONG%3E%20as%20the%20root%20filesystem.%3C%2FP%3E%3CP%3ENow%20I%20want%20to%20include%20%3CSTRONG%3Egcc%3C%2FSTRONG%3E%20inside%3CSTRONG%3E%20core-image-minimal-initramfs.cpio.gz%2C%3C%2FSTRONG%3E%20so%20that%20I%20can%20compile%20applications%20directly%20on%20the%20target%20without%20relying%20on%20any%20external%20storage.%3C%2FP%3E%3CP%3EChanged%20the%20%3CSTRONG%3Econf%2Flocal.conf%3C%2FSTRONG%3E%20and%20then%20build%20using%20command%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%3CSTRONG%3E%20%26nbsp%3B%20%24bitbake%20core-image-minimal-initramfs%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EAlso%20attached%20the%20%3CSTRONG%3Elocal.conf%3C%2FSTRONG%3E%20file%20for%20your%20reference.%3C%2FP%3E%3CP%3EIt%20generated%20%3CSTRONG%3Ecore-image-minimal-initramfs.cpio.gz%3C%2FSTRONG%3E%20but%20in%20%3CSTRONG%3Ebin%2F%20and%20usr%2Fbin%3C%2FSTRONG%3E%20respective%20folders%20%3CSTRONG%3Egcc%3C%2FSTRONG%3E%20is%20not%20present%20and%20getting%20like%20below%20after%20booting%20kernel%20and%20cpio.gz.%3C%2FP%3E%3CP%3E%3CSTRONG%3E~%20%23%20gcc%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%2Fbin%2Fsh%3A%20gcc%3A%20not%20found%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3E~%20%23%20ls%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Ebin%20dev%20home%20init.d%20media%20proc%20run%20sys%20usr%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eboot%20etc%20init%20lib%20mnt%20root%20sbin%20tmp%20var%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ECould%20you%20please%20advise%3A%3C%2FP%3E%3CP%3EWhat%20is%20the%20correct%20Yocto%20method%20to%20include%20%3CSTRONG%3Egcc%3C%2FSTRONG%3E%20in%20an%20initramfs%20image%3F%3C%2FP%3E%3CP%3EAre%20there%20any%20recommended%20configurations%20or%20limitations%20when%20using%20%3CSTRONG%3Egcc%3C%2FSTRONG%3E%20inside%20%3CSTRONG%3Einitramfs%3C%2FSTRONG%3E%20(RAM%20usage%2C%20image%20size%2C%20etc.)%3F%3C%2FP%3E%3CP%3EAny%20guidance%20or%20reference%20to%3CSTRONG%3E%20NXP-supported%20Yocto%3C%2FSTRONG%3E%20practices%20would%20be%20very%20helpful.%3C%2FP%3E%3CP%3EThank%20You.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E