Re: [yocto] Awkward line wrapping in bash

2019-09-19 Thread ChenQi
How about using `tput smam'? Regards, Chen Qi On 09/19/2019 11:43 PM, phodina wrote: Hi, based on André recommendation I commented out the PS1 variable and now I get `-sh-4.4#` for the prompt. I also checked and nothing is overwriting the variable. But I tried to change the size of the

Re: [yocto] To enable all service files

2019-08-25 Thread ChenQi
On 08/24/2019 04:16 PM, JH wrote: Hi, I have multiple services files defined in following statements, will it all automatically be enabled? SYSTEMD_SERVICE_${PN} = "${PN}.service app1.service app2.service app2.timer app3.service" SYSTEMD_AUTO_ENABLE_${PN} = "enable" Thank you. Kind regards,

Re: [yocto] Can Yocto build to set up process running priority in service?

2019-08-22 Thread ChenQi
On 08/23/2019 10:58 AM, JH wrote: Thanks ChenQi, can the process priority be set in ExecStart= of the xxx.service file? Thank you. Kind regards, - jh I didn't try it out. But I think the answer is likely to be 'No'. systemd does not like the old 'nice'. So there's no mechanism integrated

Re: [yocto] Can Yocto build to set up process running priority in service?

2019-08-22 Thread ChenQi
On 08/23/2019 05:32 AM, JH wrote: I have two processes launched from a service unit, how can the Yocto customer distro to set up high_priority_process? ExecStartPre=low_priority_priority ExecStart=high_priroty_process Thank you. Kind regards, - jh On 8/22/19, JH wrote: Hi, How to set up

Re: [yocto] How to create a service only startes at shutdown process?

2019-08-07 Thread ChenQi
On 08/07/2019 04:11 PM, JH wrote: Hi, Most of the services are started in boot, how can I have create a service only to be active in shutdown (not in boot) to clean up? Thank you. Kind regards, - jh Make use of ExecStop, leave ExecStart to be empty. --

Re: [yocto] Make the service the last run in boot

2019-08-01 Thread ChenQi
network, you just need After=network.target. Did you try that out? On 8/1/19, ChenQi wrote: On 08/01/2019 03:37 PM, JH wrote: Hi, How can I find the systemd last run service I can put it in my network application After=? I need my network application service to be run at last in boot, I made

Re: [yocto] Make the service the last run in boot

2019-08-01 Thread ChenQi
On 08/01/2019 03:37 PM, JH wrote: Hi, How can I find the systemd last run service I can put it in my network application After=? I need my network application service to be run at last in boot, I made After=connman and Requires=connman.service that did not work, always failed in boot, I have

Re: [yocto] How to add udev in Yocto build?

2019-07-07 Thread ChenQi
On 07/07/2019 10:03 AM, JH wrote: Hi, I need to add a udev file to make kernel device name symbolic link, any example I can make the Yocto configure to achieve it? Thank you. Kind regards, - jupiter Maybe you could create a recipe holding your custom udev files. Best Regards, Chen Qi --

Re: [yocto] Missing init symbolic link in rootfs

2019-07-07 Thread ChenQi
On 07/07/2019 07:01 AM, JH wrote: Hi, I built the rootfs image but it missed a symbolic link init at the / directory, although I added following init link manually, I should fix it in Yocto build. What should I fix the image build cofiguration to include init link at the /? $ ls / bin dev

Re: [yocto] [yocto-builds] Yocto build Issue

2019-06-28 Thread ChenQi
Forward to this yocto mailing list. When you have problems regarding yocto, use this mailing list. Regards, Chen Qi On 06/27/2019 06:57 PM, Pawan Badganchi wrote: Hello sir, I am adding IMAGE_INSTALL_append = "kernel-modules" in local.conf.When i build with bitbake

Re: [yocto] [yocto-builds] Yocto build won't boot from HDD

2019-06-28 Thread ChenQi
Forward to this yocto mailing list. Hope some experts could help you. When you have problems regarding yocto, please send email to this mailing list. Regards, Chen Qi On 06/25/2019 04:26 PM, a.silberh...@web.de wrote: Hello everybody, Since im new to Yocto I ran into some problems trying to

Re: [yocto] bitbak command: No recipe available for

2019-06-27 Thread ChenQi
. Juni 2019 um 09:18 Uhr schrieb ChenQi mailto:qi.c...@windriver.com>>: Set the following in some conf file, e.g. distro.conf, local.conf. BB_DANGLINGAPPENDS_WARNONLY = "true" Best Regards, Chen Qi On 06/27/2019 02:31 PM, danwe wrote: while using the com

Re: [yocto] bitbak command: No recipe available for

2019-06-27 Thread ChenQi
Set the following in some conf file, e.g. distro.conf, local.conf. BB_DANGLINGAPPENDS_WARNONLY = "true" Best Regards, Chen Qi On 06/27/2019 02:31 PM, danwe wrote: while using the command: daniel@daniel-VirtualBox:~/bbb$ MACHINE=beaglebone bitbake core-immage-full cmdline I get the following

Re: [yocto] [meta-security][PATCH 1/2] oe-selftest: add running cve checker

2019-06-14 Thread ChenQi
Hi Armin, I just noticed this selftest case. Have you considered putting it into oe-core? Best Regards, Chen Qi On 05/10/2019 11:09 AM, Armin Kuster wrote: Signed-off-by: Armin Kuster --- lib/oeqa/selftest/cases/cvechecker.py | 27 +++ 1 file changed, 27

Re: [yocto] problem adding a user

2019-05-14 Thread ChenQi
On 05/15/2019 08:34 AM, Greg Wilson-Lindberg wrote: I'm trying to use the example in "Embedded Linux Systems with the Yocto Project" to add a user to my Yocto build. In the book the sample code: useradd -p `openssl passwd ${DEV_PASSWORD}` developer; \ uses openssl to generate the

Re: [yocto] Disabling sshd is harder than it should be

2019-04-29 Thread ChenQi
On 04/26/2019 09:26 PM, Richard Weinberger wrote: My thud based system installs openssh-sshd but I want to have sshd disabled by default. So I checked the docs how to disabled a systemd service by default and found SYSTEMD_AUTO_ENABLE, perfect. After I put that into my bbappend file I figured

[yocto] [opkg-utils] Question: why update-alternatives from opkg-utils chooses /usr/lib to hold database?

2019-03-04 Thread ChenQi
Hi All, Recently I'm dealing with issue from which some discussion raises. I'd like to ask why update-alternatives from opkg-utils chooses /usr/lib to hold its alternatives database? I looked into debian, its update-alternatives chooses /var/lib by default. Is there some design consideration?

Re: [yocto] Best practice dynamic service file

2019-03-04 Thread ChenQi
On 03/05/2019 05:46 AM, Jonas Andersson wrote: Hi, I have an systemd recipe to start an application as a service, i have included an service file. Now I am looking for an solution to be able to set settings in the service file from Yocto variables, i have found recipes that use python to

Re: [yocto] Yocto General purpose evaluation

2019-02-19 Thread ChenQi
Your main concern is about power usage. As long as you are using linux, you might want to do the following: 1) Custom kernel to include drivers that are necessary 2) Do not install unnecessary packages, do not start unnecessary daemons The above two could easily be achieved by Yocto. Best

Re: [yocto] connmand+dbus. Which alternatives?

2018-12-05 Thread ChenQi
wifi connection could be managed by wpa-supplicant. Best Regards, Chen Qi On 12/06/2018 02:50 PM, Mauro Ziliani wrote: Hi all. I'm working on a imx6dl sabresd project with an usb wifi dongle (edimax EW7811un) My app uses Connman by DBus to manage ethernet and wifi connections. Normally the

Re: [yocto] Yocto version thud busybox build failed: rpc/rpc.h - No such file

2018-11-29 Thread ChenQi
How about adding in your busybox bbappend file the following line. DEPENDS += "libtirpc" Best Regards, Chen Qi On 11/29/2018 04:29 PM, Indu-Sol GmbH, Klaus Nöske wrote: Hello, I try to migrate my project from fido to thud. Currently I have problems to build busybox. It fails with error:

Re: [yocto] Yocto Thud - /lib64 link - Build Failure

2018-11-28 Thread ChenQi
This is because prelink_image is also in IMAGE_PREPROCESS_COMMAND. meta/classes/image-prelink.bbclass:IMAGE_PREPROCESS_COMMAND_append_libc-glibc = " prelink_setup; prelink_image; " And as it's using _append, it will be after your 'symlink_lib64'. Maybe using IMAGE_PREPROCESS_COMMAND_append =

Re: [yocto] x86_64 kernel with i586 userland plus SDK?

2018-11-27 Thread ChenQi
On 11/28/2018 05:46 AM, Richard Weinberger wrote: Hi! I have a hard time understanding how to build a distro with x86_64 kernel, i586 userland and an SDK for that. In the beginning I assumed and have been told on IRC that multilib is the way to go. But it seems that building and SDK is

Re: [yocto] Enable wpa_supplicant@wlan0.service on boot with systemd

2018-11-14 Thread ChenQi
For the current codes, manually creating symlink is the easiest way to achieve your goal. The current mechanism in systemd.bbclass has to 'enable' or 'disable' all services in SYSTEMD_SERVICE_xxx. There's no mechanism to enable or disable a subset of them. This might need to be improved. Best

Re: [yocto] lib32-ncurses not installing in rootfs

2018-11-07 Thread ChenQi
Check the packages-split/ directory to see how files are put in each package. I guess these files are packages into other packages derived from the ncurses recipe. Best Regards, Chen Qi On 11/07/2018 05:21 PM, Mohammad, Jamal M wrote: Hi Guys, I am trying to add 32-bit ncurses into my root

Re: [yocto] include own script

2018-10-30 Thread ChenQi
On 10/30/2018 04:42 PM, Zolee K wrote: Hi All, Could you help me out with this? I've been experimenting with this without success, some of you have given me suggestions but neither of them worked yet. ### /recipes-z/testing$ cat testscript.bb DESCRIPTION

Re: [yocto] Working on Dependent Recipes in eSDK

2018-10-22 Thread ChenQi
Hi Aaron, The main pain for now is that `devtool sdk-install ' does not work as expected, right? I just checked the codes of sdk-install, and found that it does not fit the current RSS design. I'd like to check with you if this is the major concern from your team? Do you have some other

Re: [yocto] eSDK installation failing with sig computed mismatch with sig locked

2018-10-22 Thread ChenQi
I think the main problem is do_fetch sig mismatch. What does the SRC_URI for the recipe look like? Best Regards, Chen Qi On 10/22/2018 08:47 PM, Sunil Mukundan wrote: Hi I built an extensible SDK and when installing the SDK, i see the following WARNINGS first WARNING: The

Re: [yocto] conflicting requests error while building SDK

2018-10-18 Thread ChenQi
This is the current RDEPENDS setting in kernel-devsrc.bb recipe: RDEPENDS_${PN} = "bc python flex bison ${TCLIBC}-utils" # 4.15+ needs these next two RDEPENDS RDEPENDS_${PN} += "openssl-dev util-linux" # and x86 needs a bit more for 4.15+ RDEPENDS_${PN} += "${@bb.utils.contains('ARCH', 'x86',

Re: [yocto] why must add the "mesa" dependent on bbfiles which already has a "libmali.so" for mali gpu based system?

2018-09-20 Thread ChenQi
Which recipe and what configuration? On 09/20/2018 02:15 PM, tugouxp wrote: hi folks: on my yocto probject if the mesa depens removed from the recipe, the compile cant go through, i dont know why because i have already has a "opengl" implementation by libMali.so library. so, can you

Re: [yocto] Building, Using SDK

2018-09-16 Thread ChenQi
On 09/13/2018 10:18 PM, Dudziak Krzysztof wrote: Hi, Alex González elaborates in his book Embedded Linux Development Using Yocto Projets (2nd Edition) SDK-related questions – basics, building, usage (chapter 4). 1. Downloading then installing precompiled SDK was one of all available

Re: [yocto] Systemd based image freezing issue

2018-09-04 Thread ChenQi
I just checked out v230 and took a look of the codes. I think it's the codes below that raise the 'No medium found' error. src/basic/cgoup-util.c int cg_unified(void) { struct statfs fs; /* Checks if we support the unified hierarchy. Returns an * error when the cgroup

Re: [yocto] modify SDK / populate_sdk

2018-08-30 Thread ChenQi
On 08/30/2018 04:20 PM, s...@gmx.li wrote: I want to remove some files (in this case etc/snmp/snmptrapd.conf as example) in SDK. A bit strange to be, if I build this image (without -c populate_sdk), this is not part of it. But it becomes part of the SDK. The way I know to remove something in

Re: [yocto] Sequential generation of eSDK from with the same workspace fails for similar machines

2018-08-28 Thread ChenQi
The problem is about two machines having the same TUNE_PKGARCH, and could be solved by setting TOOLCHAIN_OUTPUTNAME in your distro conf file to include MACHINE information. But I'm not sure if this is a bug and should be fixed. Let's wait for more opinions. Best Regards, Chen Qi On

Re: [yocto] Fwd: Unable to add a dev package to the Extended SDK

2018-08-23 Thread ChenQi
I think using IMAGE_INSTALL_append = " curl", and then `bitbake core-image-minimal -c populate_sdk_ext" is sufficient. After this, you can develop against curl libs/headers inside the sdk. Best Regards, Chen Qi On 08/23/2018 04:38 PM, Gabriele Favalessa wrote: Hi! I'm attempting to add

Re: [yocto] Cleaning out build without re-downloading sources

2018-08-22 Thread ChenQi
On 08/22/2018 11:28 PM, Paul Sheer wrote: There is a separate directory, which is usually downloads/ under the build directory, to keep downloaded git repos and tarballs. [network] ---> [downloads] ---> [tmp/work/] So you don't have to worry about the downloading when

Re: [yocto] Id "s0" respawning too fast on Raspberry pi3

2018-08-22 Thread ChenQi
pi. Best Regards, Chen Qi 在 2018-08-22 15:59:44,"ChenQi" 写道: On 08/22/2018 12:24 PM, benxi wrote: Hello Everyone, I build a rpi-hwup-image and run it on my raspberry pi3(Model B V1.2). After the system boots up, I keep seeing such message: INIT: Id "

Re: [yocto] Cleaning out build without re-downloading sources

2018-08-22 Thread ChenQi
On 08/22/2018 06:52 AM, Paul Sheer wrote: Hi, I am trying to do a clean out all packages within my build due to a change in my GCC environment. I updated my GCC so, for assurance reasons, I want a rebuild of everything. However I want to avoid re-downloading gigs of source packages. I am

Re: [yocto] Id "s0" respawning too fast on Raspberry pi3

2018-08-22 Thread ChenQi
On 08/22/2018 12:24 PM, benxi wrote: Hello Everyone, I build a rpi-hwup-image and run it on my raspberry pi3(Model B V1.2). After the system boots up, I keep seeing such message: INIT: Id "S0" respawning too fast: disabled for 5 minutes. I notice that yocto adds the following line to

Re: [yocto] Is there any way to remove some package frome IMAGE_INSTALL conditionally in local.conf?

2018-08-01 Thread ChenQi
IMAGE_INSTALL_remove = "${@'package1 package2' if TCLIBC == 'glibc' else ''}" This only removes packages from IMAGE_INSTALL variable. So if packages are not removed, you may want to use PACKAGE_EXCLUDE to replace IMAGE_INSTALL_remove above. Best Regards, Chen Qi On 08/01/2018 06:11 PM,

Re: [yocto] custom linux kernel recipe fails

2018-07-26 Thread ChenQi
On 07/27/2018 12:56 AM, Steve Pavao wrote: Hello - I’m trying to build using a custom 64-bit kernel at head of sumo, but I get an error. It seems that SRCPV cannot be resolved.Please send any ideas you may have about how I may adapt my recipe to get it to work. Normally, I use the

Re: [yocto] Keeping and modifying Source code in Yocto

2018-07-10 Thread ChenQi
On 07/10/2018 02:18 PM, Paul Eggleton wrote: On Tuesday, 10 July 2018 3:32:56 AM CEST ChenQi wrote: I usually use the following steps when I need to modify source for some purpose. 1. bitbake A (or at least bitbake A -c configure) *2. cd tmp/work/x/A/** **3. make the modification* 4

Re: [yocto] Keeping and modifying Source code in Yocto

2018-07-09 Thread ChenQi
Hi Simon, I usually use the following steps when I need to modify source for some purpose. 1. bitbake A (or at least bitbake A -c configure) *2. cd tmp/work/x/A/** **3. make the modification* 4. bitbake A -c compile -f 5. bitbake A If you find the modification useful, make a patch from

Re: [yocto] partitions resizing on the fly

2018-06-06 Thread ChenQi
On 06/05/2018 10:33 PM, Mihaela Apetroaie-Cristea wrote: Hello, I have a minimal yocto OS built for RPI, which has three partitions: boot, root and data. Is there any way to resize root and data such that root expands/flattens when files and others are added/deleted? Such that I can make

Re: [yocto] busybox / sysklogd post install conflict

2018-05-22 Thread ChenQi
the sysklogd recipe, I found a typo from my previous patch. I've sent out patch to fix it. git://git.pokylinux.org/poky-contrib ChenQi/sysklogd-typo http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/sysklogd-typo Best Regards, Chen Qi On 05/22/2018 11:28 PM, Brian Walsh wrote: I have

Re: [yocto] -c populate_sdk question

2018-05-16 Thread ChenQi
On 05/16/2018 03:12 AM, Steve Pavao wrote: Hello, Is there an easy way to exclude a section of my local conf when I am building with -c populate_sdk option? Long story short, I have some multilib-related entries in my local.conf which I need when building only the OS image, but which cause

Re: [yocto] Set root password from a recipe

2018-05-16 Thread ChenQi
Such setting should be in global conf files like .conf or local.conf. Setting root password from a recipe does not have effect. If you really want to set a root password from recipe, maybe you need to take a look at base-passwd recipe. '-P' is an option added to support clear text password.

Re: [yocto] Problem with Extensible SDK update

2018-05-14 Thread ChenQi
Hi Pramode, Thanks for pointing out this problem. I've sent out a patch to fix this problem. It's under review now. git://git.pokylinux.org/poky-contrib ChenQi/devtool-sdk-update http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/devtool-sdk-update Best Regards, Chen Qi

Re: [yocto] Problem with Extensible SDK update

2018-05-14 Thread ChenQi
Hi Pramode, Thanks for pointing out his problem. I've sent out a patch to fix this problem. It's under review now. git://git.pokylinux.org/poky-contrib ChenQi/devtool-sdk-update http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/devtool-sdk-update Best Regards, Chen Qi

Re: [yocto] Check IMAGE_FEATURES content in recipe

2018-05-10 Thread ChenQi
Hi Piotr, VAR set in recipe A cannot be accessed by recipe B. For 'read-only-rootfs' image feature, tweaks are done in functions executed after generating rootfs. meta/classes/rootfs-postcommands.bbclass:ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs",

Re: [yocto] Excluding ptest packages from image build

2018-05-09 Thread ChenQi
I just checked the codes. I think the ref manual might be a little misleading. "Prevents specific packages from being installed when you are installing complementary packages. " might better be changed to: "Prevents specific packages to install their complementary packages. Items specified by

Re: [yocto] gcc not found

2018-04-25 Thread ChenQi
hat though... On 25 April 2018 at 09:36, ChenQi <qi.c...@windriver.com> wrote: I guess the problem is caused by the following line. S = "${WORKDIR}/" Try setting it to some dir under ${WORKDIR}, and make sure source file is under it. Check if the problem is still there after the a

Re: [yocto] gcc not found

2018-04-25 Thread ChenQi
I guess the problem is caused by the following line. S = "${WORKDIR}/" Try setting it to some dir under ${WORKDIR}, and make sure source file is under it. Check if the problem is still there after the above change. Best Regards, Chen Qi On 04/25/2018 04:24 PM, Mirza Krak wrote: Hi. I have

Re: [yocto] [meta-intel] [PATCH] systemd-boot: fix bbappend file to suit latest version

2018-03-05 Thread ChenQi
On 03/06/2018 05:51 AM, Cal Sullivan wrote: Thanks for the patch. I assume this is needed when OE-core merges the update to v236? Thanks, Cal Yes. It's needed when OE-core merges the update to v237. Best Regards, Chen Qi On 03/04/2018 06:03 PM, Chen Qi wrote: Fix the bbappend file to

Re: [yocto] [meta-dpdk][PATCH 1/3] dpdk-dev-libibverbs: fix do_fetch failure in case of multilib

2018-01-02 Thread ChenQi
Hi Saul, I sent this patch series to yocto mailing list, and also to meta-intel mailing list. I'm not sure if this is the correct mailing list to send. Anyway, could you please help review this patch series when convenient? Best Regards, Chen Qi On 12/26/2017 09:19 AM, Chen Qi wrote: Fix to

Re: [yocto] [meta-dpdk][PATCH 1/3] dpdk-dev-libibverbs: fix do_fetch failure in case of multilib

2017-12-25 Thread ChenQi
Hi All, Sorry for the noise. This patchset has a problem. I'll send out a new series ASAP. Best Regards, Chen Qi On 12/25/2017 05:06 PM, Chen Qi wrote: Fix to correctly set SRC_URI and S to avoid do_fetch failure in case of multilib. Signed-off-by: Chen Qi ---

Re: [yocto] 答复: use native (cross) toolchain instead of a populated nativesdk (cross-canadian) toolchain

2017-11-12 Thread ChenQi
should keep things as simple as possible. Otherwise, there would be a lot of work when you want to use new yocto releases. Best Regards, Chen Qi *发件人:* ChenQi <qi.c...@windriver.com> *发送时间:* Thursday, November 9, 2017

Re: [yocto] use native (cross) toolchain instead of a populated nativesdk (cross-canadian) toolchain

2017-11-08 Thread ChenQi
If I understand it correctly, you are talking about using native components directly for SDK. If you are using all the same machine with the same OS, you could use native components directly, maybe with a little modification. But in fact, the host where SDK is installed might be different from

Re: [yocto] How /etc/shadow packed into my final image?

2017-10-24 Thread ChenQi
On 10/24/2017 07:58 PM, Bacheh Karaji wrote: Hi, I wanted to modify the content of /etc/shadow, but don't know how /etc/shadow files is packed into final image. Can anybody how it is packed and way to modify it? Thanks The file is created in postinst of the shadow package. Codes are

Re: [yocto] Changing over to systemd (no dhcp)

2017-01-19 Thread ChenQi
in meta-poky for more info on the concept of distro. And you can look at IMAGE_FEATURES for more info on the concept of image. Best Regards, Chen Qi *From:*ChenQi [mailto:qi.c...@windriver.com] *Sent:* 19 January 2017 08:32 *To:* colin.helliw...@ln-systems.com; 'Rick Altherr' <ra

Re: [yocto] Changing over to systemd (no dhcp)

2017-01-19 Thread ChenQi
Hi Colin, For the dhcp problem, what you need is a network manager. Any network manager that supports dhcp would do the job. systemd-networkd might be sufficient in your case. For the local.conf problem, you could use a layer to manage all common things shared by the team. For the package

Re: [yocto] [oe] [RFT] Glibc 2.23 and binutils 2.26

2016-01-26 Thread ChenQi
On 01/17/2016 07:54 PM, Khem Raj wrote: Hi all upstream glibc and binutils release branches have been cut out and are being made ready for next release I have put together update patchset for both of them here are the branches https://github.com/kraj/openembedded-core/tree/kraj/binutils-2.26

Re: [yocto] Using smart within an SDK

2015-05-14 Thread ChenQi
On 05/15/2015 02:21 AM, Ash Charles wrote: On Wed, May 13, 2015 at 7:26 PM, ChenQi qi.c...@windriver.com wrote: For the nativesdk part, we can use smart/rpm to manage packages. A long time ago, I tried this out and succeeded. However, for the target part, we cannot do the same thing as the rpm

Re: [yocto] Using smart within an SDK

2015-05-13 Thread ChenQi
Hi Ash, SDK has basically two parts, nativesdk part and the target part. For the nativesdk part, we can use smart/rpm to manage packages. A long time ago, I tried this out and succeeded. However, for the target part, we cannot do the same thing as the rpm database for the target part is not

Re: [yocto] Kernel Panic: /sbin/init not found

2015-04-03 Thread ChenQi
On 04/03/2015 02:43 PM, Yu, Chan KitX wrote: -Original Message- From: Yu, Chan KitX Sent: Friday, April 03, 2015 2:30 PM To: 'Paul Eggleton' Cc: yocto@yoctoproject.org Subject: RE: [yocto] Kernel Panic: /sbin/init not found -Original Message- From: Paul Eggleton

Re: [yocto] How to use different busybox defconfig's in the initramfs and rootfs image

2015-02-03 Thread ChenQi
}: SRC_URI += \ file://inetd.conf \ do_install_append() { install ${WORKDIR}/inetd.conf ${D}${sysconfdir} } BUSYBOX_SPLIT_SUID = 0 --- Best Regards, Erwin Rieger -ChenQi qi.c

Re: [yocto] bitbake-whatchanged error

2015-02-02 Thread ChenQi
On 02/03/2015 02:40 AM, Paul Eggleton wrote: Hi Gary, On Monday 02 February 2015 09:33:30 Gary Thomas wrote: Every time I run the 'bitbake-whatchanged' script, I get an error like this: ERROR: Bitbake's cached basehash does not match the one we just generated

Re: [yocto] How to use different busybox defconfig's in the initramfs and rootfs image

2015-02-02 Thread ChenQi
The only way I know is to make a new recipe, busybox-initramfs.bb, for example. Install busybox for image rootfs and busybox-initramfs for initramfs. Best Regards, Chen Qi On 02/02/2015 09:21 PM, erwin.rieger@rohde-schwarz.com wrote: Hello list, i have used Yocto to create a initramfs

Re: [yocto] Shell not processing color escape codes

2015-01-28 Thread ChenQi
) wrote: I added less to my IMAGE_INSTALL, but it looks like I still have the busybox version in my image. How might I go about forcing the use of the standard less? *Thomas * *From:*ChenQi [mailto:qi.c...@windriver.com] *Sent:* Wednesday, January 28, 2015 8:31 PM *To:* Moore, Thomas (FtWorth

Re: [yocto] Shell not processing color escape codes

2015-01-28 Thread ChenQi
On 01/29/2015 05:56 AM, Moore, Thomas (FtWorth) wrote: Hello, In my image, I’ve included systemd. I’ve noticed that when running the systemctl command, the shell (/bin/sh) is not processing the color escape codes. Here’s an example of what it looks like: [[1;39m82 loaded units listed.[[0m

Re: [yocto] Atom-pc, usb installation - NO BOOTABLE DEVICE

2015-01-09 Thread ChenQi
On 01/09/2015 05:31 PM, Simon Bolek wrote: Hi, The following is the case: 1) atom-pc with ssd 80 GB hard drive(the only one, no optical, no usb, etc.) as a target device 2) core-image-sato bitbaked and moved to usb device successfully 3) usb 'install' to atom-pc successfull (so the install

Re: [yocto] Booting .hddimg from USB failed - ramdisk not found /dev/ram0 - HELP!

2015-01-08 Thread ChenQi
How about adding in local.conf the following line? Does it work for you? USE_DEVFS = 0 Regards, Chen Qi On 01/08/2015 05:59 AM, Simon Bolek wrote: Hello folks! I have the following problem/question. 1) I built a standard .hddimg core-image-sato genericx86 on ubuntu 14.10 2) Afterwards, this

Re: [yocto] Distro vs. Image

2014-12-28 Thread ChenQi
Hi Schwab, What do you mean by distro recipe? I can see your initial problem is that you want different config details for the same image recipe (maybe for different HW, I guess?). Now we would like to create an installer image, i.e. a bootable image whose job is to install a

Re: [yocto] changing grub.cfg per image

2014-12-28 Thread ChenQi
On 12/24/2014 01:14 AM, Stuart Weaver wrote: Hi All, I've currently got two yocto images. I would like to have different grub.cfg files for each image and therefore was wondering what would be the best way to achieve this? Currently I am playing with the idea of just changing the APPEND

Re: [yocto] [meta-raspberrypi] Image will halt soon after boot

2014-12-18 Thread ChenQi
If the problem does not appear on first boot, then I guess it might be related to udev-cache. You could try to disable udev-cache and reboot again to check. Regards, Chen Qi On 12/18/2014 03:22 PM, Petter Gustad wrote: I've run bitbake rpi-hwup-image using the daisy branch: meta-yocto-bsp

Re: [yocto] add a user via recipe

2014-12-01 Thread ChenQi
On 12/01/2014 04:46 PM, matthias.he...@atlas-elektronik.com wrote: Hi there, I’m still trying to add a user via recipe. The method with inherit extrausers EXTRA_USER_PARAMS = useradd -p

Re: [yocto] When to create a new build directory for yocto?

2014-11-30 Thread ChenQi
I would suggest to use separate build directories but let these builds to share downloads and sstate. Regards, Chen Qi On 11/30/2014 12:49 PM, Qiang Yu wrote: Hi all, I'm maintaining a Yocto build system to produce these outputs: 1. ARM SOC 1 1). board 1 image 2). board 2 image 3).

Re: [yocto] Adding firmware to initramfs

2014-11-30 Thread ChenQi
Create a bbappend file for core-image-minimal-initramfs, and add the following line to the bbappend file. PACKAGE_INSTALL += linux-firmware Best Regards, Chen Qi On 11/28/2014 08:37 PM, Chris Tapp wrote: I'm network booting a system using iPXE. The process uses a

Re: [yocto] When to create a new build directory for yocto?

2014-11-30 Thread ChenQi
/deploy/ipk dir will have one copy each build dir. And two boards of the same SOC will share most of them, so the disk space of the tmp/deploy/ipk part is wasted. Regards, Qiang On Mon, Dec 1, 2014 at 10:01 AM, ChenQi qi.c...@windriver.com mailto:qi.c...@windriver.com wrote: Sharing

Re: [yocto] When to create a new build directory for yocto?

2014-11-30 Thread ChenQi
On 12/01/2014 12:45 PM, Qiang Yu wrote: It's possible that you are using (or might use) different layer configurations for different builds. One build might have a bbappend file that another build doesn't need. Yes, you are right. I use different conf/bblayers.conf for different

Re: [yocto] When to create a new build directory for yocto?

2014-11-30 Thread ChenQi
:28 PM, ChenQi qi.c...@windriver.com mailto:qi.c...@windriver.com wrote: On 12/01/2014 12:45 PM, Qiang Yu wrote: It's possible that you are using (or might use) different layer configurations for different builds. One build might have a bbappend file that another

Re: [yocto] udev-hwdb - post installation error (PPC target)

2014-11-27 Thread ChenQi
On 11/27/2014 05:48 PM, Gaurang Shastri wrote: Hi I have added systemd as my DISTRO_FEATURES for one of my ppc target. But in my log.do_rootfs, I can see that for udev-hwdb RPM, generated from systemd, post-installation script failed with core dump: {{{ 419:Installing

Re: [yocto] Busybox sh link

2014-11-18 Thread ChenQi
On 11/19/2014 12:34 AM, Stefan Eichenberger wrote: On 11/18/2014 04:07 AM, ChenQi wrote: On 11/17/2014 10:07 PM, Stefan Eichenberger wrote: Hello all I have a question regarding busybox and sh. If I want to install bash together with busybox ash, yocto does not consider

Re: [yocto] Busybox sh link

2014-11-17 Thread ChenQi
On 11/17/2014 10:07 PM, Stefan Eichenberger wrote: Hello all I have a question regarding busybox and sh. If I want to install bash together with busybox ash, yocto does not consider the ALTERNATIVE_PRIORITY in each case (e.g. if bash is installed before busybox). The problem is that

Re: [yocto] Bitbake bash completion

2014-11-11 Thread ChenQi
Hi Prado, It's really a good idea. I've tried it out. Attached is a patch to improve speed, accuracy and user experience. Regards, Chen Qi On 11/12/2014 08:27 AM, Sergio Prado wrote: Hello all, I have just written a bitbake bash completion script so it could make my life easier when trying

Re: [yocto] udev-extraconf

2014-10-28 Thread ChenQi
On 10/29/2014 01:19 AM, Neuer User wrote: Hi short question: In my own distro (inheriting from core-image), I automatically get udev and udev-extraconf included. While I like udev, I don't think I need udev-extraconf. Especially I don't want the automount script. What is the best way to

Re: [yocto] Issues creating /dev/ nodes in an initramfs

2014-10-22 Thread ChenQi
On 10/20/2014 02:09 AM, Mitchell Skiba wrote: I've been building a kernel with an initramfs, by using INITRAMFS_IMAGE to specify a recipe that generates an image as a .cpio.gz archive. I've been having issues creating /dev/console (or any other device file) in the image. (The 3.14 kernel

Re: [yocto] Setting Default User Accounts

2014-08-21 Thread ChenQi
How about add in local.conf: INHERIT += extrausers EXTRA_USERS_PARAMS = usermod -L root; \ useradd -P 'test' test; //Chen Qi On 08/21/2014 03:13 AM, Crast, Nicholas wrote: All, I am currently in the middle of a battle with yocto, trying to accomplish the following:

Re: [yocto] update-rc.d initscript shows up as S00... rather than S09...

2014-05-26 Thread ChenQi
Hi Darcy, Thank you for your feedback. I think this is a bug which needs to be fixed. I've filed a bug in bugzilla with information in your emails. https://bugzilla.yoctoproject.org/show_bug.cgi?id=6376 Best Regards, Chen Qi On 05/27/2014 03:54 AM, Darcy Watkins wrote: On Mon, 2014-05-26 at

Re: [yocto] Can't boot poky-tiny in qemu

2014-05-20 Thread ChenQi
On 05/20/2014 07:47 AM, Matt Schuckmann wrote: I'm trying to come to grips with Yocto and poky and a minimal image so I'm trying to build boot and modify poky-tiny and having no luck booting it in qemu. I'm following instructions here

Re: [yocto] PACKAGECONFIG and related parameters

2014-04-30 Thread ChenQi
On 04/23/2014 09:24 PM, Diego wrote: Hi, I'd like to update the glmark2 recipe: http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-benchmark/glmark2/glmark2_2012.12.bb to latest upstream version. The problem is the configure step is done with: ./waf configure

Re: [yocto] /var/log/dmesg: should it not be created?

2013-11-14 Thread ChenQi
On 11/14/2013 11:19 PM, Hans Beckérus wrote: On Wed, Nov 13, 2013 at 5:08 PM, Hans Beckérus hans.becke...@gmail.com wrote: Hi. I can see that in ./recipes-core/initscripts/initscripts_1.0.bb, the dmesg.sh script is installed in /etc/init.d. But I can not see that it is being added to any

Re: [yocto] How to include python-misc in SDK?

2013-09-08 Thread ChenQi
On 09/08/2013 11:49 PM, Philipp Wagner wrote: Hi, I'm trying to build a SDK, which I can use to develop software for an image. I'm running bitbake -c populate_sdk my-image-name Afterwards I get a nice SDK, but I cannot really use it. The the software I'm building needs (on the host) the

Re: [yocto] header file missing in populated SDK

2013-09-02 Thread ChenQi
On 09/02/2013 10:56 PM, Hans Beckérus wrote: Hi. We are having some issues figuring out why one of our header files fails to be installed properly into the SDK. The header file is currently installed using a few lines in one of our recipe: do_install_append() { install -m 0644

Re: [yocto] Detecting build type within recipe (target, native or nativesdk)

2013-07-25 Thread ChenQi
On 07/26/2013 07:57 AM, Christian Gagneraud wrote: Hi there, Is there a way to detect what kind of build is going on (target, native or nativesdk) from within a recipe or a class? Basically when using 'BBCLASSEXTEND = native nativesdk', how can I tweak the build behaviour depending of the

Re: [yocto] Creating a volatile image

2013-07-03 Thread ChenQi
On 07/03/2013 03:48 PM, Paul D. DeRocco wrote: When an .hddimg image is used on a hard disk or flash drive, the target root directory is implemented as a loop device referring to the rootfs.img file contained in that drive. This means it is a true non-volatile file system. Is there a way to make

Re: [yocto] Bitbake requires Python 2.7.3

2013-06-28 Thread ChenQi
On 06/28/2013 04:55 PM, Chris Tapp wrote: I'm experimenting with meta-fsl-arm and I need to use 'master' for some of the latest updates. However, when I build I get told that Bitbake requires Python 2.7.3. My development system is Ubuntu 11.10, which only has 2.7.2 (and is out of support, so

Re: [yocto] Modify udev

2013-06-17 Thread ChenQi
On 06/17/2013 05:10 PM, Jack wrote: ChenQi Qi.Chen@... writes: On 06/17/2013 01:19 PM, jack wrote: ChenQi Qi.Chen at ... writes: On 06/16/2013 07:45 PM, Jack wrote: Hi, In my imageو starting udev take a long time about 6 seconds whereas the time If the performance is important, what

Re: [yocto] Modify udev

2013-06-16 Thread ChenQi
On 06/16/2013 07:45 PM, Jack wrote: Hi, In my imageو starting udev take a long time about 6 seconds whereas the time If the performance is important, what about using udev-cache to speed up the boot process? Cheers, Chen Qi is so important for me. Therefore, I decide to remove udev from

Re: [yocto] Modify udev

2013-06-16 Thread ChenQi
On 06/17/2013 01:19 PM, jack wrote: ChenQi Qi.Chen@... writes: On 06/16/2013 07:45 PM, Jack wrote: Hi, In my imageو starting udev take a long time about 6 seconds whereas the time If the performance is important, what about using udev-cache to speed up the boot process? How should I use

  1   2   >