Jailhouse uses cpu_down identifier so,  CONFIG_HOTPLUG_CPU  is necessary. 

On Friday, 17 July 2020 at 14:15:54 UTC+2 Parth Dode wrote:

> How did you figure that out?
>
>
> On Friday, July 17, 2020 at 11:37:23 AM UTC+5:30, Jan Kiszka wrote:
>>
>> On 17.07.20 05:13, Parth Dode wrote: 
>> > I am using  yocto to build jailhouse module in agl   for rpi4 . 
>> > This is the error Im getting, please help figure out 
>> > 
>> > NOTE: Tasks Summary: Attempted 1466 tasks of which 1465 didn't need to 
>> > be rerun and 1 failed. 
>> > 
>> > Summary: 1 task failed: 
>> > 
>> /home/parth/meta-yocto-jailhouse-rpi4/recipes-kernel/jailhouse/jailhouse_git.bb:do_compile
>>  
>>
>> > Summary: There were 2 WARNING messages shown. 
>> > Summary: There were 2 ERROR messages shown, returning a non-zero exit 
>> code. 
>> > parth@Debian-95-stretch-64-minimal:~/meta-yocto-jailhouse-rpi4$ 
>> > x/9.3.0/include 
>> > 
>> -I/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work-shared/raspberrypi4-64/kernel-
>>  
>>
>> > source/arch/arm64/include -I./arch/arm64/include/generated 
>> > -I/home/parth/AGL/build-agl-jailhouse 
>> > -rpi/tmp/work-shared/raspberrypi4-64/kernel-source/include -I./include 
>> > -I/home/parth/AGL/build-ag 
>> > 
>> l-jailhouse-rpi/tmp/work-shared/raspberrypi4-64/kernel-source/arch/arm64/include/uapi
>>  
>>
>> > -I./arch/ar 
>> > m64/include/generated/uapi 
>> > -I/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work-shared/raspberrypi4 
>> > -64/kernel-source/include/uapi -I./include/generated/uapi -include 
>> > /home/parth/AGL/build-agl-jail 
>> > 
>> house-rpi/tmp/work-shared/raspberrypi4-64/kernel-source/include/linux/kconfig.h
>>  
>>
>> > -D__KERNEL__ -mli 
>> > ttle-endian -D__ASSEMBLY__ -fno-PIE -DCONFIG_AS_LSE=1 -mabi=lp64 
>> > -Wa,-gdwarf-2 -DMODULE -c -o /h 
>> > 
>> ome/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAUTOIN
>>  
>>
>> > C+4ce7658ddd-r0/git/driver/vpci_template.dtb.o 
>> > /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/r 
>> > 
>> aspberrypi4_64-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/driver/vpci_template.dtb.S
>>  
>>
>> > | (cat /dev/null; ) > 
>> > 
>> /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/ 
>> > jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/tools/modules.order 
>> > | 
>> > 
>> /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAU
>>  
>>
>> > TOINC+4ce7658ddd-r0/git/driver/cell.c: In function 
>> > 'jailhouse_cmd_cell_create': 
>> > | 
>> > 
>> /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAU
>>  
>>
>> > TOINC+4ce7658ddd-r0/git/driver/cell.c:31:26: error: implicit 
>> declaration 
>> > of function 'cpu_down' [ 
>> > -Werror=implicit-function-declaration] 
>> > | 31 | #define remove_cpu(cpu) cpu_down(cpu) 
>> > | | ^~~~~~~~ 
>> > | 
>> > 
>> /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAU
>>  
>>
>> > TOINC+4ce7658ddd-r0/git/driver/cell.c:243:10: note: in expansion of 
>> > macro 'remove_cpu' 
>> > | 243 | err = remove_cpu(cpu); 
>> > | | ^~~~~~~~~~ 
>> > | if [ "-pg" = "-pg" ]; then if [ 
>> > /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4 
>> > 
>> _64-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/driver/sysfs.o 
>> > != "scripts/mod/empty.o" 
>> > ]; then ./scripts/recordmcount 
>> > "/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_6 
>> > 
>> 4-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/driver/sysfs.o"; 
>> > fi; fi; 
>> > | cc1: all warnings being treated as errors 
>> > | make[5]: *** 
>> > 
>> [/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work-shared/raspberrypi4-64/kernel-so
>>  
>>
>> > urce/scripts/Makefile.build:303: 
>> > /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64 
>> > -agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/driver/cell.o] 
>> > Error 1 
>> > | make[5]: *** Waiting for unfinished jobs.... 
>> > | if [ "-pg" = "-pg" ]; then if [ 
>> > /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4 
>> > _64-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/driver/pci.o 
>> > != "scripts/mod/empty.o" ] 
>> > ; then ./scripts/recordmcount 
>> > 
>> "/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/driver/pci.o";
>>  
>>
>> > fi; fi; 
>> > | make[4]: *** 
>> > 
>> [/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work-shared/raspberrypi4-64/kernel-source/scripts/Makefile.build:544:
>>  
>>
>> > 
>> /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git/driver]
>>  
>>
>> > Error 2 
>> > | make[3]: *** 
>> > 
>> [/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work-shared/raspberrypi4-64/kernel-source/Makefile:1527:
>>  
>>
>> > 
>> _module_/home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/git]
>>  
>>
>> > Error 2 
>> > | make[2]: *** [Makefile:146: sub-make] Error 2 
>> > | make[1]: *** [Makefile:24: __sub-make] Error 2 
>> > | make: *** [Makefile:40: modules] Error 2 
>> > | WARNING: 
>> > 
>> /home/parth/AGL/build-agl-jailhouse-rpi/tmp/work/raspberrypi4_64-agl-linux/jailhouse/0.12+gitAUTOINC+4ce7658ddd-r0/temp/run.do_compile.24833:1
>>  
>>
>> > exit 1 from 'exit 1' 
>> > | 
>> > ERROR: Task 
>> > 
>> (/home/parth/meta-yocto-jailhouse-rpi4/recipes-kernel/jailhouse/jailhouse_git.bb:do_compile)
>>  
>>
>> > failed with exit code '1' 
>> > NOTE: Tasks Summary: Attempted 1466 tasks of which 1465 didn't need to 
>> > be rerun and 1 failed. 
>> > 
>> > Summary: 1 task failed: 
>> > 
>> /home/parth/meta-yocto-jailhouse-rpi4/recipes-kernel/jailhouse/jailhouse_git.bb:do_compile
>>  
>>
>> > Summary: There were 2 WARNING messages shown. 
>> > Summary: There were 2 ERROR messages shown, returning a non-zero exit 
>> code. 
>> > 
>>
>> I suspect your target kernel lacks CONFIG_HOTPLUG_CPU=y. See 
>> jailhouse-images for a know-to-work reference config. 
>>
>> Also note that you will need an ATF-based boot on the RPi4, just in case 
>> you didn't spot that dependency yet. Again, jailhouse-images is the 
>> reference. 
>>
>> Jan 
>>
>> -- 
>> Siemens AG, Corporate Technology, CT RDA IOT SES-DE 
>> 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/0210ece8-a149-4335-ba45-bacaa6021a20n%40googlegroups.com.

Reply via email to