Re: [yocto] do_install_append syntax error

2024-01-14 Thread Crane
Ok my god. Got it. It works now. Thanks Raj! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62144): https://lists.yoctoproject.org/g/yocto/message/62144 Mute This Topic: https://lists.yoctoproject.org/mt/103724054/21656 Group Owner: yocto+ow...@list

[yocto] do_install_append syntax error

2024-01-14 Thread Crane
o :. Anyone can help with this? Thanks! Crane The recipe is like this: > > > > SUMMARY = " init service at boot" > > > > LICENSE = "CLOSED" > > > > > > > > inherit systemd > > > > > > > >

Re: [yocto] EXTRA_USERS_PARAMS doesn't work to generate password for root and add new users

2023-09-01 Thread Crane
fine. I couldn't figure out why. But anyway it works this way now. Regards, Crane -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60924): https://lists.yoctoproject.org/g/yocto/message/60924 Mute This Topic: https://lists.

Re: [yocto] EXTRA_USERS_PARAMS doesn't work to generate password for root and add new users

2023-08-26 Thread Crane
On Thu, Aug 24, 2023 at 04:21 AM, Mauro wrote: > > To Crane: please try to build the image and test it, don't stop at Yocto > variables analysis step. Thanks Mauro so much. Indeed, it is not relevant the value of the variable, but where it is assigned. It doesn't work to ass

Re: [yocto] EXTRA_USERS_PARAMS doesn't work to generate password for root and add new users

2023-08-23 Thread Crane
ke this: > > EXTRA_USERS_PARAMS=" usermod -p > '\$6\$CEM0hANiVS9VXN8N\$Q9XK1KTpq2faq2fNbSRLNeeA4mmQsl8g1Gwl3QnTPlRPb5ljCAa./bbhffcthXxUen4jSFL6HKGQPlHZNQkfA/' > root; useradd -p > '\$6\$5wVybJkbuowR0iMi\$tnEJEEbXbcRfksKRSt7rjlY1hRERrjqFOlCaa0s1ivISxAHT7MFdcn

Re: [yocto] EXTRA_USERS_PARAMS doesn't work to generate password for root and add new users

2023-08-22 Thread Crane
On Tue, Aug 22, 2023 at 11:36 AM, Mauro wrote: > > Try with this: > > EXTRA_USERS_PARAMS=" usermod -p '$(openssl passwd -6 root)' root; useradd > -p '$(openssl passwd -6 2023)' crane; " Not working. Here is the value of the variable becoming: EXTRA

Re: [yocto] EXTRA_USERS_PARAMS doesn't work to generate password for root and add new users

2023-08-22 Thread Crane
Here is the variable value: EXTRA_USERS_PARAMS=" usermod -p 'openssl passwd -6 root' root; useradd -p 'openssl passwd -6 2023' crane; " Actually no need to add \ before $ symbol.  \ is already added as below: EXTRA_USERS_PARAMS=" usermod -p '\$6\$9UMdfjs

Re: [yocto] EXTRA_USERS_PARAMS doesn't work to generate password for root and add new users

2023-08-22 Thread Crane
Thanks Mauro for your input. I referred two posts from Koan Software in my work. One is to use devtool to modify recipe and another one is to add system service to image. Very clearly explained. Thanks! Good point. I tried, but in my case it looks still not generating the password and also no

[yocto] EXTRA_USERS_PARAMS doesn't work to generate password for root and add new users

2023-08-21 Thread Crane
Hello, I am trying to generate a password for root and add a new user. Here is the code in the image recipe: IMAGE_FEATURES:remove = "debug-tweaks" INHERIT += "extrausers" EXTRA_USERS_PARAMS += "usermod -P root root; useradd -P 2023 crane" When using "inheri

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-18 Thread Crane
Finally find the correct way to do that. Do "bitbake -c devshell " and then in the folder created use "git format-patch" to create the patch file. This way, the patch can be applied. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60827): https://li

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-08 Thread Crane
You mean S folder? Yes, to be specific, it is S folder. The reason I just mentioned WORKDIR was to compare with the irrelevant folder where "diff -ruN" is used to create the patch. Or you mean something else? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-08 Thread Crane
Now the issue is with the patch itself. The patch is created by using "diff -ruN" is not working. The error is "no file to patch". I can understand this as the file compared to in the patch doesn't exist in the $(WORKDIR). I changed to use "git format-patch" in the $(WORKDIR) to generate the pa

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-08 Thread Crane
Thanks Raj! I forgot where I copied this piece of code. I just copied and didn't check and believed it. This is the problem! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60747): https://lists.yoctoproject.org/g/yocto/message/60747 Mute This Topi

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-08 Thread Crane
me as below: crane@Ubuntu2204:~/yocto-pi/build$ bitbake -e farview-image-base | grep ^FILESEXTRAPATHS= FILESEXTRAPATHS="__default:" crane@Ubuntu2204:~/yocto-pi/build$ bitbake -e farview-image-base | grep ^FILESEXTRAPATHS= FILESEXTRAPATHS="__default:" crane@Ub

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-08 Thread Crane
crane@Ubuntu2204:~/yocto-pi/sources/meta-farview/recipes-bsp/bootfiles$ ls files  rpi-config_git.bbappend crane@Ubuntu2204:~/yocto-pi/sources/meta-farview/recipes-bsp/bootfiles$ ls files/ 0001-disable-bluetooth-and-enable-uart0.patch  rpi-cmdline.patch  rpi-config.patch crane@Ubuntu2204

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-08 Thread Crane
recipe for the image, the error is the same. The complete error info is in attached file "bitbake image.txt". crane@Ubuntu2204:~/yocto-pi/build$ bitbake rpi-config Loading cache: 100% |#| Time: 0:00:00 Loaded

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-07 Thread Crane
The recipe append name I used is rpi-config_git.bbappend. It is placed in meta-custom/recipes-bsp/bootfiles/ The layer conf of the custom layer is like this: # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES BBFILES += "$

Re: [yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-07 Thread Crane
! Crane -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60729): https://lists.yoctoproject.org/g/yocto/message/60729 Mute This Topic: https://lists.yoctoproject.org/mt/100614184/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https

[yocto] How to add a few lines in config.txt in Yocto project for Raspberry Pi

2023-08-07 Thread Crane
hs of the recipe and patch are in the custom layer's bblayer.conf. But Bitbake doesn't search the custom layer for the recipe append. Is it a proper way to do that? If yes, what might be missing in the configuration? Thanks! Crane -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages

Re: [yocto] the way to create patch for Linux kernel configuration

2023-08-05 Thread Crane
Finally found two ways to do this and worked in my case: 1. use bitbake -c diffconfig to create a fragment config and then add the fragment config to a .bbappend 2. add an out-of-tree defconfig in .bb The documentation says out-of-tree defconfig takes precedence. But in my case KBUILD_DEFCONFIG i

[yocto] the way to create patch for Linux kernel configuration

2023-08-04 Thread Crane
\ " But this way, the patch couldn't be applied at all. An error is caused. 3. Tried to use git to create a patch in different folder Most of tries got the same result. One of them seems applied. But from the result, it is actually not applied. So, which way should wo

Re: [yocto] Yocto on Raspberry Pi 3: Error when building image from a machine conf in a new layer

2023-08-02 Thread Crane
Yes it work. It looks simply copying the contents to the new one doesn't work. Thanks! Crane -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60702): https://lists.yoctoproject.org/g/yocto/message/60702 Mute This Topic:

[yocto] Yocto on Raspberry Pi 3: Error when building image from a machine conf in a new layer

2023-08-02 Thread Crane
errors as below: === crane@Ubuntu2204:~/yocto-pi/build$ bitbake -k farview-image-base Loading cache: 100% |#| Time: 0:00:00 Loaded 657 entries from dependency cache. WARNING: /home

[yocto] setup in Ubuntu on VMWare #ubuntu

2023-03-11 Thread Crane
machine. I wonder if it belongs to the category of "Native Linux Host". If not, how to set up Ubuntu 22.04 on VMWare. Thanks! Crane -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59403): https://lists.yoctoproject.org/g/yocto/message/59403