XEN ram question

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

XEN ram question

1,355 Views
Ahelion
Contributor IV

I need help from a xen expert.

I know that xen support for imx8qm has been droped, so I am trying to bring it back myself.

Aparrently when trying to load the kernel ( 6.6 ) xen (4.17) fails at this point:

(XEN) kernel_zimage_load: load_addr=00000000a8000000, paddr=000000009e000000, len=0000000002143200

 

I narrowed it down to the way it reads the RAM type:

(XEN) kernel_zimage_load: kernel mapped to 0000000040121000
(XEN) get_page_from_gfn: domain=00008002fffd6000, gfn=a8000, t=00000000002ecc3c, q=1
(XEN) get_page_from_gfn: domain is not dom_xen, using p2m_get_page_from_gfn
(XEN) p2m_get_page_from_gfn: domain=00008002fffd6000, gfn=a8000, t=00000000002ecc3c
(XEN) p2m_lookup: domain=00008002fffd6000, gfn=a8000, t=00000000002ecbac
(XEN) p2m_lookup: p2m_domain=00008002fffd6208
(XEN) p2m_get_entry: p2m=00008002fffd6208, gfn=a8000, addr=a8000000
(XEN) p2m_get_entry: root table pointer=00008002fffd4000
(XEN) p2m_get_entry: level=1, table=00008002fffd4000, offset=2
(XEN) p2m_get_entry: p2m_next_level rc=2
(XEN) p2m_get_entry: level=2, table=00008002fff6d000, offset=140
(XEN) p2m_get_entry: p2m_next_level rc=1
(XEN) p2m_get_entry: entry=0x2c00000a80006fd, level=2
(XEN) p2m_get_entry: entry is valid, p2m_type=5
(XEN) p2m_get_entry: lpae_get_mfn returned mfn=a8000
(XEN) p2m_get_entry: mfn=a8000, valid=-1
(XEN) p2m_get_entry: unmap_domain_page called
(XEN) p2m_get_entry: page_order=4294967295, mfn=a8000, p2m_type=5
(XEN) p2m_lookup: mfn=a8000, p2m_type=5
(XEN) p2m_get_page_from_gfn: mfn=a8000, p2mt=5
(XEN) p2m_get_page_from_gfn: p2mt is not RAM
(XEN) kernel_zimage_load: copy_to_guest_phys_flush_dcache returned 34877952
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Unable to copy the kernel in the hwdom memory
(XEN) ****************************************

 

Is there anybody who can guide me here? why is p2mt 5? it should be 1 or 0 i think.

 

Br, Mircea

Tags (1)
0 Kudos
Reply
3 Replies

1,325 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

It should be 1, but support of XEN have been dropped since 4.14.88 please download that BSP.

https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for...

 

Regards

0 Kudos
Reply

1,314 Views
Ahelion
Contributor IV

Ahelion_0-1719902735131.png

xen 4.13 & linux 6.6

0 Kudos
Reply

1,314 Views
Ahelion
Contributor IV
Hello, I know it was dropped off since 4.14, I am trying to bring it back for my needs, i have this issue related to ram.
XEN 4.13 actually boots linux 6.6, up until the imx-drm and some lvds1 issue appears.
I think if I solved the ram detection, it xen 4.17 will boot linux 6.6, but I am not sure where to look. Any hint?
0 Kudos
Reply