On 22.06.21 11:33, Moustafa Noufale wrote: > Hi Mr Kiszka, > I reinstalled Linux headers through these commands: > sudo apt-get install linux-headers-`uname -r` > sudo aptitude install build-essential linux-headers-`uname -r` > And not dt-bindings is in the expected directory in lib/modules:[1] > And ran: > sudo make $KDIR=/lib/modules/4.14.98-imx/build/include/ > And got: > make: *** empty variable name. Stop. > > Then I tried to cross compile jailhouse on my host machine. I followed this > procedure: > git clone --branch 4.14.98 https://coral.googlesource.com/linux-imx > Then I got "config.gz" from the coral board extracted it to "data" and passed > it to the host machine: > cp data .config > I made the kernel and it was successful: > make ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- > Then I retried to cross compile jailhouse and passed: > make KDIR=/home/mnoufale/Documents/Masterprojekt/linux-imx/include
"Wrong path, KDIR must point the kernel build dir (which might be the kernel source dir as well)." Jan > And I got this error: > make[1]: *** No rule to make target 'modules'. Stop. > make: *** [Makefile:41: modules] Error 2 > > Any guidance would be appreciated. > Thanks in Advance > Moustafa > -----Ursprüngliche Nachricht----- > Von: Jan Kiszka <[email protected]> > Gesendet: Montag, 14. Juni 2021 12:27 > An: Moustafa Noufale <[email protected]>; Jan Kiszka > <[email protected]>; Ralf Ramsauer <[email protected]>; > [email protected] > Betreff: Re: [EXT] AW: AW: Inquiry > > On 14.06.21 10:18, Moustafa Noufale wrote: >> Hi Mr. Kiszka, >> I spent the last two weeks trying to compile Jailhouse on Coral-Board >> [Linux 4.14.98-imx aarch 64]. I have been > > Historic 4.14... NXP ships much fresher downstream kernels by now... > > facing this error: >> home/mendel/jailhouse/configs/arm64/dts/inmate-amd-seattle.dts:17:54: >> error: no include path in which to search for >> dt-bindings/interrupt-controller/arm-gic.h > > But that file was added in 3.10 to the kernel. It is part of their kernel as > well > (https://coral.googlesource.com/linux-imx/+/refs/heads/master/include/dt-bindings/interrupt-controller/arm-gic.h). > >> I followed a thread about OrangePi [1] and tried to provide absolute paths: >> sudo make >> $KDIR=/usr/src/linux-headers-4.14.98-imx/include/linux/irqchip/ > > Wrong path, KDIR must point the kernel build dir (which might be the kernel > source dir as well). > > Jan > >> I get no rule to make target 'modules' stop error. >> >> What I understand is that he kernel source tree binaries are not >> appropriately built. (.dtb) Then a comment from Mr. Ramsauer mentioned that >> the kernel must be patched in the same thread[1]. So, I would like to ask, >> if you can give me any recommendations? >> Thanks in advance. >> [1] >> https://groups.google.com/g/jailhouse-dev/c/pwYGLSX_2Rc/m/AhzdSz90AwAJ >> >> >> -----Ursprüngliche Nachricht----- >> Von: Jan Kiszka <[email protected]> >> Gesendet: Montag, 31. Mai 2021 18:47 >> An: Moustafa Noufale <[email protected]>; Jan Kiszka >> <[email protected]>; Ralf Ramsauer <[email protected]>; >> [email protected] >> Betreff: Re: [EXT] AW: AW: Inquiry >> >> On 30.05.21 13:30, Moustafa Noufale wrote: >>> Hi Mr. Kiszka, >>>> To enable Jailhouse on the Coral board as well, you likely have >>>> three >>>> options: >>>> - ad-hoc compilation on the board, using their "Mendel Linux" (also >>>> Debian) >>>> - integrating Jailhouse into Mendel Linux >>>> - defining a new target "Coral dev board" in jailhouse-images, >>>> porting the integration from Mendel Linux over >>> I have just got the Coral board and I think I would go with the first >>> option. The planed workflow is: >>> 1- duplicate imx8mm.c /imx8mm-inmate-demo.c/ imx8mm-linux-demo.c and edit >>> it with the memory addresses in Coral Board, which is also using an imx8m. >>> 2- compile jailhouse on the board. >>> 3- insemod jailhouse and run. >>> I am only asking, whether I am going in the right path. >> >> Sounds reasonable. Problems can lie in the details, but those you will only >> find when trying things out. >> >> Jan >> >> -- >> Siemens AG, T RDA IOT >> Corporate Competence Center Embedded Linux >> > > -- > Siemens AG, T RDA IOT > Corporate Competence Center Embedded Linux > -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/46885237-2f3e-8d77-11fc-b178dc827202%40siemens.com.
