Re: [yocto] How to use *.bb file to select different kernel config/feature?

2017-03-21 Thread Richard Zhang
So, maybe I should take a KERNEL_CONFIG into my own kernel recipe.


Thanks


Richard


From: Bruce Ashfield 
Sent: Tuesday, March 21, 2017 8:33:09 PM
To: Richard Zhang
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] How to use *.bb file to select different kernel 
config/feature?



On Tue, Mar 21, 2017 at 3:15 AM, Richard Zhang 
mailto:richard.zh...@pica8.com>> wrote:

Hi all


I want   to use one linux-kernel-myown.bb<http://linux-kernel-myown.bb> file to 
select different config for several boxes.

I think when I give MACHINE to box1\box2\box3, the kernel config and features 
select can be done.


Is it correct :


when use MACHINE=box1\box2\box3 and so on:


KERNEL_FEATURES_append_box1=" cfg/box1.scc"

These are variables like any other in bitbake. They can take a variety of 
overrides, one of which is the machine
name. So yes, you could append a kernel feature only for your $MACHINE with the 
line above.

But you must be using a kernel recipe that inherits kernel-yocto for the 
feature to be processed.

KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"

Assuming KERNEL_CONFIG is a valid variable in your layers, this would also 
work. But if you are using
configuration fragments and kernel-yocto, that isn't a variable that is used.

Bruce




this instruction could work?or any suggestion.



Regards

Richard

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




--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at 
its end"
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] How to use *.bb file to select different kernel config/feature?

2017-03-21 Thread Richard Zhang
Hi all


I want   to use one linux-kernel-myown.bb file to select different config for 
several boxes.

I think when I give MACHINE to box1\box2\box3, the kernel config and features 
select can be done.


Is it correct :


when use MACHINE=box1\box2\box3 and so on:


KERNEL_FEATURES_append_box1=" cfg/box1.scc"

KERNEL_CONFIG_box1=" cfg/box1_defconfig.cfg"


this instruction could work?or any suggestion.



Regards

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


[yocto] How to change toochains to gcc 4.9.3

2017-01-17 Thread Richard Zhang
Hi


when I want to change gcc version to 4.9.3.

I just change gcc & libgcc,but gcc-truntime still 5.3.


Is there a rapid method to change everything I need?




Regards

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


[yocto] 答复: Yocto Linux kernel 4.8 boot can't login.

2017-01-12 Thread Richard Zhang
Thanks,now work fine.


Richard


发件人: Khem Raj 
发送时间: 2017年1月13日 0:23:24
收件人: Richard Zhang
抄送: yocto@yoctoproject.org
主题: Re: [yocto] Yocto Linux kernel 4.8 boot can't login.

On Wed, Jan 11, 2017 at 9:48 PM, Richard Zhang  wrote:
> Starting crond: setuid: Function not implemented

Linux gained a new config option, CONFIG_MULTIUSER, that makes
support for non-root users optional. This results in a number of syscalls
being disabled setuid is one of them. set this option to 'y'
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto Linux kernel 4.8 boot can't login.

2017-01-11 Thread Richard Zhang
Hi all


Just a strange error on my login.


With yocto kernel 4.8  and glibc 2.23 from poky 2.1.2, I get this:


setuid: Function not implemented


Is there something incompatible?




Full kernel message:


[3.308503] clocksource: Switched to clocksource tsc
[   12.843922] md: Waiting for all devices to be available before autodetect
[   12.851520] md: If you don't use raid, use raid=noautodetect
[   12.858281] md: Autodetecting RAID arrays.
[   12.862881] md: Scanned 0 and added 0 devices.
[   12.867852] md: autorun ...
[   12.870972] md: ... autorun DONE.
[   12.884091] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: 
(null)
[   12.892693] VFS: Mounted root (ext4 filesystem) on device 8:5.
[   12.902808] devtmpfs: mounted
[   12.910636] Freeing unused kernel memory: 1700K (81d8e000 - 
81f37000)
[   12.919424] Write protecting the kernel read-only data: 12288k
[   12.926662] Freeing unused kernel memory: 140K (8800017dd000 - 
88000180)
[   12.937305] Freeing unused kernel memory: 236K (880001bc5000 - 
880001c0)
INIT: version 2.88 booting
[   13.011380] random: fast init done
Starting udev
[   13.149792] udevd[188]: starting version 3.1.5
[   13.384232] EXT4-fs (sda5): re-mounted. Opts: data=ordered
Populating dev cache
INIT: Entering runlevel: 5
Configuring network interfaces... [   13.826907] IPv6: ADDRCONF(NETDEV_UP): 
eth0: link is not ready
[   13.833442] 8021q: adding VLAN 0 to HW filter on device eth0
udhcpc (v1.24.1) started
Sending discover...
[   16.825226] igb :03:00.0 eth0: igb: eth0 NIC Link is Up 1000 Mbps Full 
Duplex, Flow Control: RX
Sending discover...
[   16.939960] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending discover...
Sending select for 10.10.51.205...
Lease of 10.10.51.205 obtained, lease time 3600
/etc/udhcpc.d/50default: Adding DNS 10.10.50.10
/etc/udhcpc.d/50default: Adding DNS 8.8.8.8
done.
Starting OpenBSD Secure Shell server: sshd
  generating ssh RSA key...
  generating ssh ECDSA key...
  generating ssh DSA key...
  generating ssh ED25519 key...
done.
Starting ntpd: done
Starting syslogd/klogd: done
Starting crond: setuid: Function not implemented
FAIL

Pica8 PicOS for genericx86-64 Release 2.8.0 Build 
ff4743f1c0a5f23da38bbb341d76cdde 2.8.0 genericx86-64 /dev/ttyS1

genericx86-64 login: root
setgid: Function
Pica8 PicOS for genericx86-64 Release 2.8.0 Build 
ff4743f1c0a5f23da38bbb341d76cdde 2.8.0 genericx86-64 /dev/ttyS1

genericx86-64 login: [  139.302930] random: crng init done





Regards

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


[yocto] 答复: how to use a kernel build path in developing libs

2016-12-22 Thread Richard Zhang
thanks


 I am trying to port some kernel modules to yocto, to add our libs.

 So should use linux-libc-headers to get include?



Regard,

Richard


发件人: Khem Raj 
发送时间: 2016年12月23日 0:57:21
收件人: Richard Zhang
抄送: yocto@yoctoproject.org
主题: Re: [yocto] how to use a kernel build path in developing libs


On Dec 22, 2016, at 12:23 AM, Richard Zhang 
mailto:richard.zh...@pica8.com>> wrote:

hi all:

I am trying to add some lib related with kernel.

Unless you are writing a kernel module, using raw kernel headers and sources is 
generally not a good choice. Moreover
kernel does not have APIs beyond headers it exports for user space to use. So I 
would suggest to rethink what you are trying
to do and may be you can use the exposed kernel APIs through kernel headers

When I try to include the kernel build dir to the lib, i am not sure witch 
kernel build path should to be used :
build/tmp/work/genericx86_64-poky-linux/linux-yocto/4.4.3/linux-genericx86_64-standard-build/


Another question:

When I want to develop an application  use yocto SDK.
After I deploy a yocto SDK toolchain that image include full target,  could I 
use the kernel build path for compile software?

No, unless its a kernel module.



Regard,
Richard Zhang
--
___
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


[yocto] how to use a kernel build path in developing libs

2016-12-22 Thread Richard Zhang
hi all:


I am trying to add some lib related with kernel.

When I try to include the kernel build dir to the lib, i am not sure witch 
kernel build path should to be used :

build/tmp/work/genericx86_64-poky-linux/linux-yocto/4.4.3/linux-genericx86_64-standard-build/



Another question:


When I want to develop an application  use yocto SDK.

After I deploy a yocto SDK toolchain that image include full target,  could I 
use the kernel build path for compile software?




Regard,

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


[yocto] How to use a defconfig file when kernel come from EXTERNALSRC?

2016-09-05 Thread Richard Zhang
Hi all



When is use:

EXTERNALSRC_linux-yocto = "/path/to/linux/kernel"



I can't add defconfig to the kernel SRC_URI.Then configme







This will lead to error:

SRC_URI += "file://path/defconfig"






Best regards


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


[yocto] 答复: How to run a runqemu with intel-corei7-64?

2016-08-22 Thread Richard Zhang

Thanks.
I was working on the qemux86-64 machine, but some test should be run on 
[intel-corei7-64] .

I will try to use qemu.

Best regards.


On 19 August 2016 at 02:50, Richard Zhang 
mailto:richard.zh...@pica8.com>> wrote:
After built an ‘intel-corei7-64’ image with Toaster, I try to run a runqemu, it 
can’t run.
ERROR: unable to classify arg [intel-corei7-64].
Does intel-corei7-64 could be run with runqemu?

Currently, not out of the box, although it should be possible if you run qemu 
directly.

There is work ongoing to allow BSPs to extend runqemu so this could work, but 
for now if you wish to run images in qemu frequently then it's recommended to 
use the qemux86-64 machine, as it will include a few pieces (kernel modules, 
graphics drivers, etc) which increase performance inside qemu.

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


[yocto] How to run a runqemu with intel-corei7-64?

2016-08-18 Thread Richard Zhang
Hi all.
After built an 'intel-corei7-64' image with Toaster, I try to run a runqemu, it 
can't run.
ERROR: unable to classify arg [intel-corei7-64].
Does intel-corei7-64 could be run with runqemu?

Thanks

This is my script of runqemu:

ROOTFS=/poky/build-toaster-4/tmp/deploy/images/intel-corei7-64/core-image-minimal-intel-corei7-64.ext4
 
KERNEL=/poky/build-toaster-4/tmp/deploy/images/intel-corei7-64/bzImage-intel-corei7-64.bin
 MACHINE=intel-corei7-64 runqemu intel-corei7-64
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Is There a easy way to check which version of GCC was been used to a package

2016-08-12 Thread Richard Zhang
Hi all

After use yocto build linux distro , how could I check the toolchain's version?
Is there a version description?




Best Regard.

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


[yocto] Install multi files in shared area Error

2016-08-04 Thread Richard Zhang
Hi all

ERROR: The recipe libnetconf is trying to install files into a shared area when 
those files already exist. Those files and their manifest location are:
   /mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86/pkgdata/runtime/libxml2
Matched in manifest-qemux86-libxml2.packagedata
/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86/pkgdata/runtime/libxslt
Matched in manifest-qemux86-libxslt.packagedata
/mnt/c1/git/poky/build-toaster-5/tmp/sysroots/qemux86/pkgdata/runtime/openssl
Matched in manifest-qemux86-openssl.packagedata

..

ERROR: If the above message is too much, the simpler version is you're advised 
to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix 
things in most (but not all) cases.
DEBUG: Python function sstate_task_postfunc finished
ERROR: Function failed: sstate_task_postfunc



Which tmp dir should I wipe out?Thanks


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


[yocto] 答复: libnetconf recipe configure error

2016-08-02 Thread Richard Zhang

On 2 August 2016 at 08:56, Richard Zhang 
mailto:richard.zh...@pica8.com>> wrote:
checking for xml2-config... yes
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as 
pkg-config
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as 
pkg-config
checking for xmlDOMWrapReconcileNamespaces in -lxml2... no
checking for xslt-config... yes
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as 
pkg-config
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as 
pkg-config

This is the problem.  xml2-config and xslt-config are broken in cross-compile 
situations, so you need to patch libnetconf's configure.ac<http://configure.ac> 
to use pkgconfig instead of those scripts.

Ross


Thanks.
Best Regard.

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


[yocto] libnetconf recipe configure error

2016-08-02 Thread Richard Zhang
Hi all


I write a libnetconf recipe BB file to handle this package.

Like this:

DESCRIPTION = "libnetconf is a NETCONF library."
HOMEPAGE = "https://github.com/CESNET/libnetconf";

SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = 
"file://${WORKDIR}/git/COPYING;md5=22c218798908f95216326c4df42637b5"

DEPENDS += "libssh libxml2 libxslt openssl "

SRC_URI = "git://github.com/CESNET/libnetconf.git;procotol=https"
SRCREV="d4585969d71b7d7dec181955a6753b171b4a8424"

S = "${WORKDIR}/git"

inherit autotools

END##

The problem is libxslt. The libnetconf depends on it. Although I have put 
libxslt into DEPENDS, the 'configure' of libnetconf can't finish.
I find all libxslt content was built, locate at sysroot like '/usr/lib/...'  
and '/use/include/libxslt/...'

Is there something wrong of my BB file or libxslt NOT build correctly?

Btw. The libxml2 is very fine.


Tail of the configure log file:


checking whether to build static libraries... no
checking for ELF visibility... yes
checking for xml2-config... yes
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as 
pkg-config
ERROR: /usr/bin/xml2-config should not be used, use an alternative such as 
pkg-config
checking for xmlDOMWrapReconcileNamespaces in -lxml2... no
checking for xslt-config... yes
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as 
pkg-config
ERROR: /usr/bin/xslt-config should not be used, use an alternative such as 
pkg-config
checking for xsltApplyStylesheet in -lxslt... no
configure: error: Missing libxslt library
NOTE: The following config.log files may provide further information.
WARNING: exit code 1 from a shell command.
NOTE: 
/mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/build/config.log
ERROR: configure failed
ERROR: Function failed: do_configure (log file is located at 
/mnt/c1/git/poky/build-toaster-5/tmp/work/i586-poky-linux/libnetconf/0.10-r0/temp/log.do_configure.27216)


Full file is attached.



Thanks.

Richard Zhang




log.do_configure.27216
Description: log.do_configure.27216
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Build failure when try to make a qemuppc image in Toaster

2016-07-19 Thread Richard Zhang
HI all

The Poky is git  krogoth version.

I try to build a core-image-minimal with qemuppc MACHINE.

The progress stop quickly in this error:
Nothing PROVIDES 'syslinux'syslinux was skipped: incompatible with host 
powerpc-poky-linux (not in COMPATIBLE_HOST)

Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'syslinux']


Does syslinux a useful recipe or something should be built before?

Thanks.

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


[yocto] Toaster fail to luanch bitbake

2016-07-03 Thread Richard Zhang
Hi:



After setup toaster I can't finish build progress with bitbake.







some ERROR log into :



/opt/yocto/poky/build-toaster-4/toaster_ui.log



ERROR: can't set event mask: None





Is this ERROR come with Environment variant?





Thanks.





Richard Zhang

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


[yocto] Toaster fail to luanch bitbake

2016-07-01 Thread Richard Zhang
Hi:

After setup toaster I can't finish build progress with bitbake.

   

some ERROR log into :

/opt/yocto/poky/build-toaster-4/toaster_ui.log 

ERROR: can't set event mask: None


Is this ERROR come with Environment variant?


Thanks.


Richard Zhang







signature.asc
Description: OpenPGP digital signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] How to add recipes to images not RPMs.

2016-06-27 Thread richard zhang

Hi all

I try to add some ricepes to meta layer.The do_fetch and do_compile 
things are fine.

But when I went to image,there is no packages just added.
I find my packages in build/tmp/deploy/rpm .
How to add these packages to image.

I have do this when I use 'hob',but i don't know how to select them 
without 'hob'.



best regard.
Richard Zhang

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