[yocto] Big Endian set for qemuarm64 build based on poky

2015-12-02 Thread Jin Li
Hi,

There is build error when I'm trying to build qemuarm64 project based on 
default poky git repo with the big endian set as follows:

l00356543@hulk-test1:~/poky$ git diff 
meta/conf/machine/include/arm/arch-arm64.inc
diff --git a/meta/conf/machine/include/arm/arch-arm64.inc 
b/meta/conf/machine/include/arm/arch-arm64.inc
index 866b71f..8fe6660 100644
--- a/meta/conf/machine/include/arm/arch-arm64.inc
+++ b/meta/conf/machine/include/arm/arch-arm64.inc
@@ -1,4 +1,4 @@
-DEFAULTTUNE ?= "aarch64"
+DEFAULTTUNE ?= "aarch64_be"

 require conf/machine/include/arm/arch-armv7a.inc

l00356543@hulk-test1:~/poky$



Attach the build log:

l00356543@hulk-test1:~/qemuarm64_be$ bitbake core-image-sato
Parsing recipes: 100% 
|###|
 ETA:  00:00:00
Parsing of 888 .bb files complete (0 cached, 888 parsed). 1310 targets, 61 
skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION= "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS= "aarch64_be-poky-linux"
MACHINE   = "qemuarm64"
DISTRO= "poky"
DISTRO_VERSION= "2.0"
TUNE_FEATURES = "aarch64 bigendian"
TARGET_FPU= ""
meta
meta-yocto
meta-yocto-bsp= "master:698c74c373110ed081a7586e21d4a27b8b44c89b"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL 
http://downloads.sourceforge.net/libusb/libusb-1.0.20.tar.bz2, attempting 
MIRRORS if available
WARNING: Failed to fetch URL http://bitmath.org/code/mtdev/mtdev-1.1.5.tar.bz2, 
attempting MIRRORS if available
WARNING: Failed to fetch URL 
http://wiki.qemu-project.org/download/qemu-2.4.0.1.tar.bz2, attempting MIRRORS 
if available
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at 
/home/l00356543/qemuarm64_be/tmp/work/qemuarm64-poky-linux/linux-yocto/4.1.13+gitAUTOINC+30c4b4bd79_c22dc676d6-r0/temp/log.do_compile.43788)
ERROR: Logfile of failure stored in: 
/home/l00356543/qemuarm64_be/tmp/work/qemuarm64-poky-linux/linux-yocto/4.1.13+gitAUTOINC+30c4b4bd79_c22dc676d6-r0/temp/log.do_compile.43788

...

|   LD  arch/arm64/kernel/vdso/built-in.o
| aarch64_be-poky-linux-ld.bfd: usr/initramfs_data.o: compiled for a little 
endian system and target is big endian
| aarch64_be-poky-linux-ld.bfd: failed to merge target specific data of file 
usr/initramfs_data.o
| make[3]: *** [usr/built-in.o] Error 1


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] how to use systemd as system init manager

2015-12-24 Thread Jin Li
Hi,

I am trying to build yocto project which use systemd as system init manager.
But the qemu boot up and still use INIT as usual. The rootfs even fail to 
install systemd.

I refers to yocto docs 
http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
I use meta/recipes-extended/images/core-image-full-cmdline.bb and add the 
following part
to support systemd:

DISTRO_FEATURES_append = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

Did I miss somethings ?

Any help would be appreciated.

Jin


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to use systemd as system init manager

2015-12-25 Thread Jin Li
On 2015/12/25 13:55, Khem Raj wrote:
> On Thu, Dec 24, 2015 at 5:59 PM, Jin Li  wrote:
>> Hi,
>>
>> I am trying to build yocto project which use systemd as system init manager.
>> But the qemu boot up and still use INIT as usual. The rootfs even fail to 
>> install systemd.
>>
>> I refers to yocto docs 
>> http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
>> I use meta/recipes-extended/images/core-image-full-cmdline.bb and add the 
>> following part
>> to support systemd:
>>
>> DISTRO_FEATURES_append = "systemd"
> 
> space after first "
> 
>> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
>>
>> Did I miss somethings ?
>>
> 
> DISTRO_FEATURES_append = " systemd"
> DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> VIRTUAL-RUNTIME_init_manager = "systemd"
> VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
> 

Hi Raj

I used add the above code in 
meta/recipes-extended/images/core-image-full-cmdline.bb to
build image with systemd, but still get the same result - get no systemd 
installed in rootfs image and
system use "INIT" as usual as follows:

$ runqemu qemuarm64
...

root@qemuarm64:~# systemctl
-sh: systemctl: command not found
root@qemuarm64:~#
root@qemuarm64:~# ps aux | grep init
root 1  5.1  0.2   1764  1176 ?Ss   01:57   0:04 init [5]

Regards,

Jin

> 
>> Any help would be appreciated.
>>
>> Jin
>>
>>
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
> 
> 


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to use systemd as system init manager

2015-12-25 Thread Jin Li
On 2015/12/26 10:00, Khem Raj wrote:
> Put that in local.conf not in image recipe

Raj,

It works well now.

Cheers,

Jin

> 
> On Dec 25, 2015 5:57 PM, "Jin Li"  <mailto:liji...@huawei.com>> wrote:
> 
> On 2015/12/25 13:55, Khem Raj wrote:
>     > On Thu, Dec 24, 2015 at 5:59 PM, Jin Li  <mailto:liji...@huawei.com>> wrote:
> >> Hi,
> >>
> >> I am trying to build yocto project which use systemd as system init 
> manager.
> >> But the qemu boot up and still use INIT as usual. The rootfs even fail 
> to install systemd.
> >>
> >> I refers to yocto docs 
> http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
> >> I use meta/recipes-extended/images/core-image-full-cmdline.bb 
> <http://core-image-full-cmdline.bb> and add the following part
> >> to support systemd:
> >>
> >> DISTRO_FEATURES_append = "systemd"
> >
> > space after first "
> >
> >> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> >>
> >> Did I miss somethings ?
> >>
> >
> > DISTRO_FEATURES_append = " systemd"
> > DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> > VIRTUAL-RUNTIME_init_manager = "systemd"
> > VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
> >
> 
> Hi Raj
> 
> I used add the above code in 
> meta/recipes-extended/images/core-image-full-cmdline.bb 
> <http://core-image-full-cmdline.bb> to
> build image with systemd, but still get the same result - get no systemd 
> installed in rootfs image and
> system use "INIT" as usual as follows:
> 
> $ runqemu qemuarm64
> ...
> 
> root@qemuarm64:~# systemctl
> -sh: systemctl: command not found
> root@qemuarm64:~#
> root@qemuarm64:~# ps aux | grep init
> root 1  5.1  0.2   1764  1176 ?Ss   01:57   0:04 init [5]
> 
> Regards,
> 
> Jin
> 
> >
> >> Any help would be appreciated.
> >>
> >> Jin
> >>
> >>
> >> --
> >> ___
> >> yocto mailing list
> >> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> >> https://lists.yoctoproject.org/listinfo/yocto
> >
> >
> 
> 


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto