Re: Orange Pi Zero Jailhouse Yocto Integration

2019-09-19 Thread Henning Schild
Am Sat, 17 Aug 2019 16:46:37 +0300
schrieb Cevat Bostancıoğlu :

> Hello, it's been a 3 days and i am still trying to compile, i changed
> yocto versions, gcc compiler versions, external toolchain, checked
> against debian build etc. but nothing worked.
> 
> i cant understand why this is compiled in jailhouse-images setup and
> not compiling under this setup ?
> 
> my setup is:
> https://github.com/cevatbostancioglu/meta-orangepi/blob/dev/yocto/meta-orangepi/conf/machine/orange-pi-zero.conf
> 
> my latest error is:
> Short log:
> 
> 
> *arm-oe-linux-gnueabi-gcc: error: -mfloat-abi=soft and
> -mfloat-abi=hard may not be used together*

That is the compiler complaining about getting instructions that make
no nense. You tell it to use soft and hard floating point at the same
time. Well you probably do not ... but something does.

"make V=1" to get the full command line

A first grep does not suggest that the CFLAGS come from jailhouse, they
come from the kernel and your toolchain.

The context from V=1 could also lead you to which code-path added the
FLAGS, because they often come in groups.

Wild guess is that your toolchain/compiler might be missing a configure
switch.

Henning

> Long Log:
> DEBUG: Executing shell function do_compile
> NOTE: make -j 8
> KERNEL_SRC=/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/kernel-source
> V=0 CC=arm-oe-linux-gnueabi-gcc  -mfpu=neon-vfpv4 -mfloat-abi=hard
> -mcpu=cortex-a7
> --sysroot=/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/recipe-sysroot
> CROSS_COMPILE=arm-oe-linux-gnueabi-
> KDIR=/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/kernel-build-artifacts
>   CHK
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/
> config.mk
>   CHK
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/version.h
>   UPD
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/
> config.mk
>   UPD
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/version.h
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../alloc.o
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../cmdline.o
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../printk.o
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../setup.o
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../string.o
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/arch/arm/asm-defines.s
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/configs/arm/bananapi-gic-demo.o
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../uart-8250.o
>   CC [M]
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/driver/cell.o
>   CC
>  
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/gic-v2.o
> 
> *arm-oe-linux-gnueabi-gcc: error: -mfloat-abi=soft and
> -mfloat-abi=hard may not be used together*make[5]: ***
> [/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/kernel-source/scripts/Makefile.build:314:
> /home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/driver/cell.o]
> Error 1
> make[4]: ***
> [/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/ke

Re: Orange Pi Zero Jailhouse Yocto Integration

2019-08-17 Thread Cevat Bostancıoğlu
Hello, it's been a 3 days and i am still trying to compile, i changed yocto
versions, gcc compiler versions, external toolchain, checked against debian
build etc. but nothing worked.

i cant understand why this is compiled in jailhouse-images setup and not
compiling under this setup ?

my setup is:
https://github.com/cevatbostancioglu/meta-orangepi/blob/dev/yocto/meta-orangepi/conf/machine/orange-pi-zero.conf

my latest error is:
Short log:


*arm-oe-linux-gnueabi-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may
not be used together*

Long Log:
DEBUG: Executing shell function do_compile
NOTE: make -j 8
KERNEL_SRC=/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/kernel-source
V=0 CC=arm-oe-linux-gnueabi-gcc  -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7
--sysroot=/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/recipe-sysroot
CROSS_COMPILE=arm-oe-linux-gnueabi-
KDIR=/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/kernel-build-artifacts
  CHK
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/
config.mk
  CHK
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/version.h
  UPD
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/
config.mk
  UPD
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/include/generated/version.h
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../alloc.o
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../cmdline.o
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../printk.o
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../setup.o
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../string.o
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/arch/arm/asm-defines.s
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/configs/arm/bananapi-gic-demo.o
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/../uart-8250.o
  CC [M]
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/driver/cell.o
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../arm-common/gic-v2.o

*arm-oe-linux-gnueabi-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may
not be used together*make[5]: ***
[/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/kernel-source/scripts/Makefile.build:314:
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/driver/cell.o]
Error 1
make[4]: ***
[/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work-shared/orange-pi-zero/kernel-source/scripts/Makefile.build:573:
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/driver]
Error 2
make[4]: *** Waiting for unfinished jobs
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/configs/arm/bananapi-linux-demo.o
  LDS
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/hypervisor/hypervisor.lds
  CC
 
/home/cevat/Desktop/meta-orangepi/yocto/build_arm/tmp-glibc/work/orange_pi_zero-oe-linux-gnueabi/jailhouse/0.10-gitAUTOINC+55de0454d8-r0/git/inmates/lib/arm/../a

Re: Orange Pi Zero Jailhouse Yocto Integration

2019-08-14 Thread Ola Redell

Hi all,
There is also an imx8-dev branch in 
bitbucket.org/retotech/meta-jailhouse.git with a jailhouse 0.10 recipe 
and much of Henning's changes. I will look into updating master to build 
0.11 and test it for BananaPi at least.


Ola

On 8/14/19 8:50 AM, Henning Schild wrote:

Hi,

i did not look into the problem yet. But my jailhouse layer for yocto
is on github.

https://github.com/henning-schild-work/meta-jailhouse

Have a look at the branch henning/staging for patches to get a more
recent jailhouse to work.

Henning

Am Tue, 13 Aug 2019 14:31:36 +0300
schrieb Cevat Bostancıoğlu :


Hello,
Thanks for the fast reply,

I tried with 9f233898917f8c1141132606f2f2c624405d8c81 commit and also
latest commit, still have same problem.

I will be appreciated if you guys can provide/help with examples.

Thanks,
Cevat

Jan Kiszka , 13 Ağu 2019 Sal, 14:09 tarihinde
şunu yazdı:


On 13.08.19 12:39, Cevat Bostancıoğlu wrote:

Hello,
I am trying to learn/play embedded virtualization tools and i saw
Isar Integrated jailhouse-image repo, tested orange pi
zero(256mb) image and everything is fine.
I am trying to integrate latest jailhouse(0.11) into yocto
project and i

saw

https://bitbucket.org/retotech/meta-jailhouse/src/master/ , which
is

for banana

pi with jailhouse_0.8.

Anyway, I ported jailhouse-images and meta-jailhouse

together(meta-orangepi,

https://github.com/cevatbostancioglu/meta-orangepi/tree/dev) and
trying

to

compile for orange pi zero(256mb) but I saw many errors while
building.

can you

guys can guess what is the problem?

my status:
i am trying to build exact image with jailhouse-images so i
patched

u-boot &

kernel, now i am trying to compile/install jailhouse.

You can see build error as follows,
also attached log outputs too.
  

The errors look like they could get better with

https://github.com/siemens/jailhouse/commit/9f233898917f8c1141132606f2f2c624405d8c81
  

My repo:
https://github.com/cevatbostancioglu/meta-orangepi/tree/dev
  

Thanks for sharing. Henning did some yocto'ization for an internal
Jailhouse
project recently (though that was for legacy vendor BSP) - maybe he
can share
some thoughts on your direction.

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 jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/f4eb47c2-7a86-3e6f-8ae5-8e84ed8b70d3%40retotech.se.


Re: Orange Pi Zero Jailhouse Yocto Integration

2019-08-13 Thread Henning Schild
Hi,

i did not look into the problem yet. But my jailhouse layer for yocto
is on github.

https://github.com/henning-schild-work/meta-jailhouse

Have a look at the branch henning/staging for patches to get a more
recent jailhouse to work.

Henning

Am Tue, 13 Aug 2019 14:31:36 +0300
schrieb Cevat Bostancıoğlu :

> Hello,
> Thanks for the fast reply,
> 
> I tried with 9f233898917f8c1141132606f2f2c624405d8c81 commit and also
> latest commit, still have same problem.
> 
> I will be appreciated if you guys can provide/help with examples.
> 
> Thanks,
> Cevat
> 
> Jan Kiszka , 13 Ağu 2019 Sal, 14:09 tarihinde
> şunu yazdı:
> 
> > On 13.08.19 12:39, Cevat Bostancıoğlu wrote:  
> > > Hello,
> > > I am trying to learn/play embedded virtualization tools and i saw
> > > Isar Integrated jailhouse-image repo, tested orange pi
> > > zero(256mb) image and everything is fine.
> > > I am trying to integrate latest jailhouse(0.11) into yocto
> > > project and i  
> > saw  
> > > https://bitbucket.org/retotech/meta-jailhouse/src/master/ , which
> > > is  
> > for banana  
> > > pi with jailhouse_0.8.
> > >
> > > Anyway, I ported jailhouse-images and meta-jailhouse  
> > together(meta-orangepi,  
> > > https://github.com/cevatbostancioglu/meta-orangepi/tree/dev) and
> > > trying  
> > to  
> > > compile for orange pi zero(256mb) but I saw many errors while
> > > building.  
> > can you  
> > > guys can guess what is the problem?
> > >
> > > my status:
> > > i am trying to build exact image with jailhouse-images so i
> > > patched  
> > u-boot &  
> > > kernel, now i am trying to compile/install jailhouse.
> > >
> > > You can see build error as follows,
> > > also attached log outputs too.
> > >  
> >
> > The errors look like they could get better with
> >
> > https://github.com/siemens/jailhouse/commit/9f233898917f8c1141132606f2f2c624405d8c81
> >  
> > > My repo:
> > > https://github.com/cevatbostancioglu/meta-orangepi/tree/dev
> > >  
> >
> > Thanks for sharing. Henning did some yocto'ization for an internal
> > Jailhouse
> > project recently (though that was for legacy vendor BSP) - maybe he
> > can share
> > some thoughts on your direction.
> >
> > 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 jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20190814085057.43ce8c63%40md1za8fc.ad001.siemens.net.


Re: Orange Pi Zero Jailhouse Yocto Integration

2019-08-13 Thread Cevat Bostancıoğlu
Hello,
Thanks for the fast reply,

I tried with 9f233898917f8c1141132606f2f2c624405d8c81 commit and also
latest commit, still have same problem.

I will be appreciated if you guys can provide/help with examples.

Thanks,
Cevat

Jan Kiszka , 13 Ağu 2019 Sal, 14:09 tarihinde şunu
yazdı:

> On 13.08.19 12:39, Cevat Bostancıoğlu wrote:
> > Hello,
> > I am trying to learn/play embedded virtualization tools and i saw Isar
> > Integrated jailhouse-image repo, tested orange pi zero(256mb) image and
> > everything is fine.
> > I am trying to integrate latest jailhouse(0.11) into yocto project and i
> saw
> > https://bitbucket.org/retotech/meta-jailhouse/src/master/ , which is
> for banana
> > pi with jailhouse_0.8.
> >
> > Anyway, I ported jailhouse-images and meta-jailhouse
> together(meta-orangepi,
> > https://github.com/cevatbostancioglu/meta-orangepi/tree/dev) and trying
> to
> > compile for orange pi zero(256mb) but I saw many errors while building.
> can you
> > guys can guess what is the problem?
> >
> > my status:
> > i am trying to build exact image with jailhouse-images so i patched
> u-boot &
> > kernel, now i am trying to compile/install jailhouse.
> >
> > You can see build error as follows,
> > also attached log outputs too.
> >
>
> The errors look like they could get better with
>
> https://github.com/siemens/jailhouse/commit/9f233898917f8c1141132606f2f2c624405d8c81
>
> > My repo:
> > https://github.com/cevatbostancioglu/meta-orangepi/tree/dev
> >
>
> Thanks for sharing. Henning did some yocto'ization for an internal
> Jailhouse
> project recently (though that was for legacy vendor BSP) - maybe he can
> share
> some thoughts on your direction.
>
> 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 jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/CABPcKDNb9HKXNHGoUY84WnFup2wn79zsoHzDa-i2xeaETM7VDQ%40mail.gmail.com.


Re: Orange Pi Zero Jailhouse Yocto Integration

2019-08-13 Thread Jan Kiszka

On 13.08.19 12:39, Cevat Bostancıoğlu wrote:

Hello,
I am trying to learn/play embedded virtualization tools and i saw Isar 
Integrated jailhouse-image repo, tested orange pi zero(256mb) image and 
everything is fine.
I am trying to integrate latest jailhouse(0.11) into yocto project and i saw 
https://bitbucket.org/retotech/meta-jailhouse/src/master/ , which is for banana 
pi with jailhouse_0.8.


Anyway, I ported jailhouse-images and meta-jailhouse together(meta-orangepi, 
https://github.com/cevatbostancioglu/meta-orangepi/tree/dev) and trying to 
compile for orange pi zero(256mb) but I saw many errors while building. can you 
guys can guess what is the problem?


my status:
i am trying to build exact image with jailhouse-images so i patched u-boot & 
kernel, now i am trying to compile/install jailhouse.


You can see build error as follows,
also attached log outputs too.



The errors look like they could get better with 
https://github.com/siemens/jailhouse/commit/9f233898917f8c1141132606f2f2c624405d8c81



My repo:
https://github.com/cevatbostancioglu/meta-orangepi/tree/dev



Thanks for sharing. Henning did some yocto'ization for an internal Jailhouse 
project recently (though that was for legacy vendor BSP) - maybe he can share 
some thoughts on your direction.


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 jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/a17c3513-f573-84ad-5d4e-5027121e51b5%40siemens.com.