Re: vm-basic-pci demo is not working for arm64

Philipp Eppelt <[email protected]> Tue, 22 Oct 2024 17:54:22 +0200
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
Hi Mohamed,

I'm happy to see you resolved the issue.
If possible, please prefer a text log from the serial console over a picture, 
because the text log is longer and thus provides more information about the 
booted system.

uvmm show this error, when memory regions overlap. In this case RAM and the intc 
device overlap. The intc device is specified in the device tree you passed to uvmm.
Here, the device tree does not contain explicit RAM regions, so uvmm sets up the 
default RAM region, which spans the area starting at zero up to the size of the 
RAM you configured in the ned script.
In this case, RAM covers the area [      0: fff'ffff] (256MB).
The itc device wants to allocate the area [0x0800'0000 : 0x0800'ffff] which is 
contained within the already existing RAM allocation. Thus the error message.

You have two options, either specify the areas where the RAM should be placed in 
the memory node of the device tree or move the intc device such that it doesn't 
overlap. For this setup this means above 0x1000'0000.


Cheers
Philipp


Am 22.10.24 um 09:36 schrieb Mohamed Dawod:
> I upgraded L4 version to 24.08 instead of 23.10 because 24.08 contains the 
> missing virt-arm_virt-64_pci.dts file.
> I'm building for arm64 and when I run the demo VM-basic-pci, I got the following 
> error !
> I didn't change anything in the dts/dtb or ned scripts excepting the typo of
> 
>       overlay = "-drom/virt-pci.dtbo"
> 
> 
> What is the problem here ?
> 
> image.png
> 
> On Mon, Oct 21, 2024 at 11:35 AM Philipp Eppelt <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     Hi Mohamed,
> 
>     can you please check your arm64 build tree and look into the folder
>     'assets/dtb/'? There should be links to all the .dtb files of uvmm. The link of
>     the file in question on my machine is:
> 
>     [...]/.build-arm64/pkg/uvmm/configs/dts/OBJ-arm64_armv8a-std-l4f/virt-arm_virt-64_pci.dtb
> 
>     If the file is missing in the linked folder, please check the corresponding
>     source directory:
> 
>     <src>/pkg/uvmm/configs/dts/
> 
>     If virt-arm_virt-64_pci.dts isn't in there, you can download it from our
>     development version of L4Re on github and recompile the uvmm package.
> 
>     https://github.com/kernkonzept/uvmm/blob/master/configs/dts/virt-arm_virt-64_pci.dts <https://github.com/kernkonzept/uvmm/blob/master/configs/dts/virt-arm_virt-64_pci.dts>
> 
>     If the file is there, please check that '<arm64-build>/assets' directory is in
>     your MODULE_SEARCH_PATH.
> 
>     Let me know, if this solves the missing file problem.
> 
>     Cheers,
>     Philipp
> 
> 
> 
>     Am 20.10.24 um 09:20 schrieb Mohamed Dawod:
>      > Thanks Matthias
>      > I'm going to fix the typo of *virt-pci.dtbo*.
>      > What about the missing file *dtb/virt-arm_virt-64_pci.dtb *?
>      >
>      >
>      > On Tue, Oct 15, 2024 at 11:58 PM Matthias Lange
>     <[email protected] <mailto:[email protected]>
>      > <mailto:[email protected]
>     <mailto:[email protected]>>> wrote:
>      >
>      >     Hi Mohamed,
>      >
>      >     On [15-10-2024 16:59], Mohamed Dawod wrote:
>      >      > Hi,
>      >      > I was trying to run the L4 demo *vm-basic-pci* for *arm64* using
>     the command
>      >      > $ make qemu E=vm-basic-pci
>      >      > but It didn't work because of the missing 2 files :
>      >      > * virt-arm_virt-64_pci.dtb : which is requested by the
>     *modules.list* file
>      >      > in the line :
>      >      >
>      >      > > module[arch=arm64,fname=virt-pci.dtb]   
>       dtb/virt-arm_virt-64_pci.dtb
>      >      >
>      >      > * virt-pci.dtbo : which is requested by the *vm-basic-pci.cfg* by the
>      >      > configuration
>      >      >
>      >      > > if (L4.Info.arch() == "arm64") then
>      >      > >    dt = "-drom/.fdt"
>      >      > >    overlay = "*-drom/virt-pci.dtbo*"
>      >
>      >     This is actually a typo. Please change this line to
>      >
>      >        overlay = "-drom/virt-pci.dtb"
>      >
>      >     Best,
>      >     Matthias.
>      >
>      >      > > else
>      >      > >    dt = "-drom/virt-pci.dtb"
>      >      > >    overlay = ""
>      >      > > end
>      >      >
>      >      >
>      >      > I searched for both files in the whole *l4re-snapshot-23.10.1*
>     directory
>      >      > but I couldn't find them
>      >      > Where can I find those necessary files to run *vm-basic-pc*i demo?
>      >      >
>      >      > Thanks in advance,
>      >      > Regards
>      >      >
>      >      > --
>      >      > Mohamed Dawod
>      >      > *Software Engineer,* Cairo Egypt
>      >      >
>      >      > --
>      >      >
>      >      >
>      >      > *Driving Innovation! Visit our website www.avelabs.com
>     <http://www.avelabs.com>
>      >     <http://www.avelabs.com <http://www.avelabs.com>>
>      >      > <http://www.avelabs.com/ <http://www.avelabs.com/>
>     <http://www.avelabs.com/ <http://www.avelabs.com/>>>*, to read Avelabs
>      >     Confidentiality Notice, follow
>      >      > this link: http://www.avelabs.com/email/disclaimer.html
>     <http://www.avelabs.com/email/disclaimer.html>
>      >     <http://www.avelabs.com/email/disclaimer.html
>     <http://www.avelabs.com/email/disclaimer.html>>
>      >      > <http://www.avelabs.com/email/disclaimer.html
>     <http://www.avelabs.com/email/disclaimer.html>
>      >     <http://www.avelabs.com/email/disclaimer.html
>     <http://www.avelabs.com/email/disclaimer.html>>>
>      >      >
>      >
>      >      > _______________________________________________
>      >      > l4-hackers mailing list -- [email protected]
>     <mailto:[email protected]>
>      >     <mailto:[email protected]
>     <mailto:[email protected]>>
>      >      > To unsubscribe send an email to
>     [email protected]
>     <mailto:[email protected]>
>      >     <mailto:[email protected]
>     <mailto:[email protected]>>
>      >
>      >
>      >     --
>      >     Get started with L4Re in 3 days - register now for our workshop in
>     October!
>      >
>      >     Visit https://www.kernkonzept.com/workshop-getting-started-with-l4re
>     <https://www.kernkonzept.com/workshop-getting-started-with-l4re>
>      >     <https://www.kernkonzept.com/workshop-getting-started-with-l4re
>     <https://www.kernkonzept.com/workshop-getting-started-with-l4re>> to learn
>      >     more.
>      >
>      >     --
>      >     Matthias Lange                      phone: +49 (0) 351-41 888 614
>      >     Customer Engineer Specialist        web: https://www.kernkonzept.com
>     <https://www.kernkonzept.com>
>      >     <https://www.kernkonzept.com <https://www.kernkonzept.com>>
>      >
>      >     Kernkonzept GmbH
>      >     Buchenstraße 16b
>      >     01097 Dresden
>      >
>      >     Geschäftsführer: Dr.-Ing. Michael Hohmuth
>      >     Registergericht: Amtsgericht Dresden
>      >     Handelsregister: HRB 31129
>      >
>      >     You might not be working when I am and that's ok! Please make sure to
>     only
>      >     reply when it suits you. Mails can wait.
>      >
>      >
>      >
>      > *Driving Innovation! Visit our website www.avelabs.com
>     <http://www.avelabs.com>
>      > <http://www.avelabs.com/ <http://www.avelabs.com/>>*, to read Avelabs
>     Confidentiality Notice, follow this
>      > link: http://www.avelabs.com/email/disclaimer.html
>     <http://www.avelabs.com/email/disclaimer.html>
>      > <http://www.avelabs.com/email/disclaimer.html
>     <http://www.avelabs.com/email/disclaimer.html>>
>      >
>      > _______________________________________________
>      > l4-hackers mailing list -- [email protected]
>     <mailto:[email protected]>
>      > To unsubscribe send an email to [email protected]
>     <mailto:[email protected]>
> 
>     -- 
>     [email protected] <mailto:[email protected]> -
>     Tel. 0351-41 883 221
>     http://www.kernkonzept.com <http://www.kernkonzept.com>
> 
>     Kernkonzept GmbH.  Sitz: Dresden.  Amtsgericht Dresden, HRB 31129.
>     Geschäftsführer: Dr.-Ing. Michael Hohmuth
>     _______________________________________________
>     l4-hackers mailing list -- [email protected]
>     <mailto:[email protected]>
>     To unsubscribe send an email to [email protected]
>     <mailto:[email protected]>
> 
> 
> 
> *Driving Innovation! Visit our website www.avelabs.com 
> <http://www.avelabs.com/>*, to read Avelabs Confidentiality Notice, follow this 
> link: http://www.avelabs.com/email/disclaimer.html 
> <http://www.avelabs.com/email/disclaimer.html>

-- 
[email protected] - Tel. 0351-41 883 221
http://www.kernkonzept.com

Kernkonzept GmbH.  Sitz: Dresden.  Amtsgericht Dresden, HRB 31129.
Geschäftsführer: Dr.-Ing. Michael Hohmuth

_______________________________________________
l4-hackers mailing list -- [email protected]
To unsubscribe send an email to [email protected]
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEO7T7Jq7ah1WoVcqMg8udkTKw7CEFAmcXyq4FAwAAAAAACgkQg8udkTKw7CHR
ZA/+KT+SMD24Id0KCP/wpPppHlbV904Hs5Fn/6DsqDmmYoZrkDwmCdeh/ETvyLUUF4DAP1dim7xW
hCQZtLEYkGioBdCXVHnIf8ptBgzyp3XmBbCb4aV/hjXm4Qf+9lSyIP1PS8kuYvBLsqRgdrRVJmLw
tOqAdHY7Fkz3lEmvOf7DaBMSHVkQI5np7r5ksIgX1w1ZYigH9EbyoBPuGyaij9eTmk/Qdvq9EmQR
wyaSDuCo/po+0If1M9hwVtpuyhSigX0JSqgwZFs42ZlVXmwqKCl/+4473VqGraVFpJWAs4vI3b+/
4USPR9Ak+7EZvMcVkTkUzVCuS6JpVUTnn7hII6QUAM+AJoe2/9MvTkwf4uyADptaJwhqTu5ZWNt3
UiIl8t4+nBBikkOHA46N1zUt5lqhwb8QvNqw/yuI/IVBbRhXbUkxpZ3kWSGhV5HbsSzKfkuG7NgX
AHmeLlTl7LSIfZPEuLaW5QNx/ZBXGIn6XRJ63iFR+fpUnvOsVAs07w5r0xs/PblN5K7wj2ndTX/O
93e2LDua7u58LqIHhGluCjGLribgM6PiwJFRtMd6c+vwvAhLB7shichpqDrO4BGmMGTAa6dJydMP
o7fHG0xY3KB1nA63NIlx65I99pkWyaCYSUyW+0B3ROtIGaGuiYmDmnXOv2PUVbzVuGCbDyrE1FgQ
i50=
=fceI
-----END PGP SIGNATURE-----