On 2017-11-27 04:03, Beyond wrote:
> Thanks, Jan.
> Yes. I clone(to linux_stable directory) and patch and compile kernel
> successfully.
> I don't know if I should specify some other environment variable except
> KDIR=../linux-stable.
> 

...and you built the ARM kernel in-tree, i.e. by entering linux-stable
and running make directly there?

Did you already try to specify KDIR as absolute path? Should work with
current kernel versions, though, but you didn't tell which one you are
building.

Jan

> 2017-11-26 20:16 GMT+08:00 Jan Kiszka <[email protected]
> <mailto:[email protected]>>:
> 
>     On 2017-11-22 08:19, Qiu Shui wrote:
>     > I followed the instruction of "setup-on-banana-pi-arm-board.md
>     <http://setup-on-banana-pi-arm-board.md>" pretty successfully, until
>     came to "Cross Compiling Jailhouse(w/ FreeRTOS-cell) for ARM on x86".
>     > When I run "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
>     KDIR=../linux-stable". I got fatal errors:
>     > WARNING: Symbol version dump ./Module.symvers
>     > is missing; modules will have no dependencies and modversions.
>     > CC /home/beyond2002/jailhouse/configs/amd-seattle-gic-demo.o
>     > OBJCOPY /home/beyond2002/jailhouse/configs/amd-seattle-gic-demo.cell
>     > CC /home/beyond2002/jailhouse/configs/amd-seattle-linux-demo.o
>     > OBJCOPY /home/beyond2002/jailhouse/configs/amd-seattle-linux-demo.cell
>     > CC /home/beyond2002/jailhouse/configs/amd-seattle-uart-demo.o
>     > OBJCOPY /home/beyond2002/jailhouse/configs/amd-seattle-uart-demo.cell
>     > CC /home/beyond2002/jailhouse/configs/amd-seattle.o
>     > OBJCOPY /home/beyond2002/jailhouse/configs/amd-seattle.cell
>     > CC /home/beyond2002/jailhouse/configs/apic-demo.o
>     > OBJCOPY /home/beyond2002/jailhouse/configs/apic-demo.cell
>     > CC /home/beyond2002/jailhouse/configs/bananapi-freertos-demo.o
>     > /home/beyond2002/jailhouse/configs/bananapi-freertos-demo.c:1:25:
>     fatal error: linux/types.h: No such file or directory
>     > compilation terminated.
>     > scripts/Makefile.build:258: recipe for target
>     '/home/beyond2002/jailhouse/configs/bananapi-freertos-demo.o' failed
>     > make[3]: ***
>     [/home/beyond2002/jailhouse/configs/bananapi-freertos-demo.o] Error 1
>     > scripts/Makefile.build:403: recipe for target
>     '/home/beyond2002/jailhouse/configs' failed
>     > make[2]: *** [/home/beyond2002/jailhouse/configs] Error 2
>     > Makefile:1378: recipe for target
>     '_module_/home/beyond2002/jailhouse' failed
>     > make[1]: *** [_module_/home/beyond2002/jailhouse] Error 2
>     > Makefile:36: recipe for target 'modules' failed
>     > make: *** [modules] Error 2
>     >
>     > Maybe I missed instalingl some package or setting any variables?
>     >
>     > Would anybody please provide any suggestions to solve this error?
> 
>     The kernel dir use are using does not contain all the outputs of a
>     normal kernel build. Therefore, the build fails over missing files.
> 
>     Did you actually build the kernel like described in the readme? Did you
>     reference the build folder in case you built out of tree?
> 
>     Jan
> 
> 

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to