On 11/30/2017 11:26 AM, Ralf Ramsauer wrote:
> Ah, I guess I know what's going on. We had the same issue a while ago on
> the list... You're trying to compile this file [1], right?
> 
> This file is currently out of sync. I wrote a (untested) patch for that [2].
And in the meanwhile the config format probably might have changed
again, so the patch might already be outdated.

  Ralf
> 
>   Ralf
> 
> [1]
> https://github.com/siemens/freertos-cell/blob/master/jailhouse-configs/bananapi-freertos-demo.c
> [2]
> https://groups.google.com/forum/#!searchin/jailhouse-dev/freertos$20patch%7Csort:date/jailhouse-dev/tm_g7uK4WSw/XmMOLuxsBQAJ
> 
> On 11/30/2017 09:56 AM, Beyond wrote:
>> I delete the files: bananapi-freertos-demo.c and bananapi.c and build
>> successfully.
>> So the key point is: how to tell the compiler where to find
>> "linux/types.h"(according to "fatal error: linux/types.h: No such file
>> or directory"). Is there any other environment variable needed?  
>> Thanks!
>>
>> 2017-11-27 20:45 GMT+08:00 Jan Kiszka <[email protected]
>> <mailto:[email protected]>>:
>>
>>     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]>
>>     > <mailto:[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>
>>     >     <http://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]
>> <mailto:[email protected]>.
>> For more options, visit https://groups.google.com/d/optout.
> 

-- 
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