[yocto] Memory requirements for building images with different architectures

2023-09-07 Thread MOHAMMED HASSAN
Hi guys, I wanted to build images for different architectures and machine types on one SDK. I know that the build directory takes a lot of space (in my case more than 90 GB). What to do in such a case. Are they any efficient techniques that you can share with me? Thanks and regards, Hassan

Re: [yocto] Memory requirements for building images with different architectures

2023-09-08 Thread MOHAMMED HASSAN
> > > Right, you're not the only one! > See > https://docs.yoctoproject.org/ref-manual/system-requirements.html#minimum-free-disk-space > > and https://docs.yoctoproject.org/dev/dev-manual/disk-space.html I can use rm_work and remove all the build related files, however every subsequent build

Re: [yocto] Memory requirements for building images with different architectures

2023-09-08 Thread MOHAMMED HASSAN
My builds on an average take 15-20 mins with the build folder intact. How much time do you think it will take on average with rm_work enabled? Regards, Hassan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60946):

Re: [yocto] Cross-compilation of driver files

2023-09-20 Thread MOHAMMED HASSAN
On Mon, Sep 18, 2023 at 06:36 AM, MOHAMMED HASSAN wrote: > > Hi guys, > So long back I was trying to load driver files for a battery charger and a > battery fuel gauge as a kernel module. However I face errors that are > actually related to cross-compilation. I  am not sure

[yocto] Cross-compilation of driver files

2023-09-18 Thread MOHAMMED HASSAN
Hi guys, So long back I was trying to load driver files for a battery charger and a battery fuel gauge as a kernel module. However I face errors that are actually related to cross-compilation. I am not sure how to proceed with this. Can you guys refer to some documentation from both the yocto

[yocto] How to use updated npm version in my image

2023-09-29 Thread MOHAMMED HASSAN
Hi guys, I am using yocto dunfell for my image. I am able to install nodejs 14 and npm version 6.something. I want it to instead install 9.8.1 with my image. At present I have to manually install it after loading the image. Is there a way to update it in the recipe file? My recipe file name is

Re: [yocto] Yocto Project Newcomer & Unassigned Bugs - Help Needed

2023-09-25 Thread MOHAMMED HASSAN
What prerequiste knowledge should I have before deciding to help. I have less experience with yocto and embedded linux in general. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61115): https://lists.yoctoproject.org/g/yocto/message/61115 Mute

[yocto] continuous security updates for the Linux system

2023-10-09 Thread MOHAMMED HASSAN
Hi guys, I want to know more about security updates in yocto. So generally we update our distros when we get pop-ups about security updates and it's done. But what if my device is installed at a remote location? How does security update take place in the case of yocto? How can we do it? Any other

Re: [yocto] continuous security updates for the Linux system

2023-10-09 Thread MOHAMMED HASSAN
On Mon, Oct 9, 2023 at 06:12 AM, Josef Holzmayr wrote: > > Please see https://wiki.yoctoproject.org/wiki/System_Update > > Thanks for your reply. I am aware of the system_updates feature though still yet to implement. Is it possible to update the yocto version (i use dunfell) to the latest

[yocto] Password added succesfully but defaults to autologin

2023-10-09 Thread MOHAMMED HASSAN
Hi guys, I am trying to set up a login password for my hardware but the problem is that my device uses automatic login. I checked online to comment out automatic login but it seems like my /lib/systemd/system/serial-getty\@.service contains the line "ExecStart=-/sbin/agetty -8 -L %I 921600 $TERM

Re: [yocto] Password added succesfully but defaults to autologin

2023-10-09 Thread MOHAMMED HASSAN
Let me know if I am making any mistakes here. Also let me know if you need any other piece of information to help me on this issue. Thanks, Hassan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61290):

Re: [yocto] continuous security updates for the Linux system

2023-10-09 Thread MOHAMMED HASSAN
On Mon, Oct 9, 2023 at 07:11 AM, Michael Opdenacker wrote: > > Hi Hassan > > On 09.10.23 at 15:22, MOHAMMED HASSAN wrote: > >> On Mon, Oct 9, 2023 at 06:12 AM, Josef Holzmayr wrote: >> >> Please see https://wiki.yoctoproject.org/wiki/System_Update >>

[yocto] What laptops do you use for faster builds

2023-10-11 Thread MOHAMMED HASSAN
Hi guys, I was curious to know the laptops/desktop/workstations you guys use for quick and faster builds. Can you list out the specs as well and maybe some tips and tricks for reducing build time. Thanks and regards, Hassan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this

[yocto] inode mismatch

2023-10-10 Thread MOHAMMED HASSAN
Hi guys, I did bitbake image clean && bitbake image but it continuously due to inode mismatch The error i see Initialising tasks: 100%

Re: [yocto] error adding symbols: DSO missing from command line

2023-04-18 Thread MOHAMMED HASSAN
Hi guys, Can you please support me on this. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59724): https://lists.yoctoproject.org/g/yocto/message/59724 Mute This Topic: https://lists.yoctoproject.org/mt/98341723/21656 Group Owner:

[yocto] NPM package management

2023-04-20 Thread MOHAMMED HASSAN
Hi guys, I am writing a nodejs application for my board running on yocto dunfell. I had a doubt regarding the npm packages. Since my application would use a lot of node js packages, how do I load all those packages? I didn't understand much about the npm registry tool and how it can help for

Re: [yocto] Unable to solve the initramfs issues

2023-04-20 Thread MOHAMMED HASSAN
Hi Merek, Sorry for the late reply. > > You didn't add log from flashing where it fails. Can you set > INITRAMFS_MAXSIZE to only 200M or so? Also from logs it looks like > you're using amlogic. Can you maybe ask for support from your vendor? I was able to build the image but the rebooting

[yocto] OTA updates for Application Software

2023-04-20 Thread MOHAMMED HASSAN
Hi guys, I wanted to know if it is possible to update your application through OTA updates. If yes, then please share some documentation or some steps in achieving it. If not, then what other alternatives do we have to update the application in our hardware deployed at some remote location.

[yocto] Integrating npm packages in yocto build

2023-04-24 Thread MOHAMMED HASSAN
Hi guys, If I want to add a nodejs application, how can I add its necessary npm packages. Do I have to create a folder containing all the packages source files and install or build them with the application. I have gone through the documentation and read about devtool but didn't understand much

[yocto] error adding symbols: DSO missing from command line

2023-04-18 Thread MOHAMMED HASSAN
Hi guys, I am trying to build a custom application for my build but facing the following error, vice-discovery-host.o -lreadline -lncurses -lm -lpthread -o ./build/exe/hostforEdge3 | * aarch64-poky-linux-ld: build/backchannel-support.o: undefined reference to symbol 'socket@@GLIBC_2.17'|

Re: [yocto] How to compile binary executable files

2023-03-31 Thread MOHAMMED HASSAN
> > >> Can you please guide me as to what I need to load this binary >> executable file is my generated image file. > > > Is this binary statically linked? Otherwise, you have no guarantee that > it will run on your root filesystem. It is statically linked file written using c language. > >

[yocto] How to compile binary executable files

2023-03-30 Thread MOHAMMED HASSAN
Hi guys, I am new to yocto needed your help. I have an executable binary file that is probably compiled using the gcc compiler. I am using yocto dunfell for my project my build_sys is "x86_64-linux" , my target_sys is "aarch64-poky-linux". Can you please guide me as to what I need to load this

[yocto] Unable to add nodejs and npm-related packages

2023-04-02 Thread MOHAMMED HASSAN
Hi guys, I am trying to add nodejs and npm to my image file but get the below error message. ERROR: core-image-minimal-1.0-r0 do_image_cpio: The initramfs size 256914(K) exceeds INITRAMFS_MAXSIZE: 131072(K) ERROR: core-image-minimal-1.0-r0 do_image_cpio: You can set INITRAMFS_MAXSIZE a larger

[yocto] Compilation of z3gateway

2023-04-06 Thread MOHAMMED HASSAN
Hi guys, I am trying to compile and build an executable for my image file. but facing issues with the compilation. I tried debugging for the whole day but no success. I tried by following this mechanism which I know is not for yocto but it's somewhat similar. I got the below error.

Re: [yocto] Compilation of z3gateway

2023-04-09 Thread MOHAMMED HASSAN
Hi guys, please support me. I am not able to get through this issue. I am new to yocto so facing such issues. Thanks and Regards, Hassan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59651): https://lists.yoctoproject.org/g/yocto/message/59651

[yocto] Missing .o files.

2023-04-10 Thread MOHAMMED HASSAN
Hi guys, Its my first time using yocto so I dont have much experience on this. I am trying to cerate a .exe file for my target hardware. I am calling the makefile using oe_runmake command but there are some missing .o files for which I have no solution. If you have any idea where I can find the

Re: [yocto] Missing .o files.

2023-04-10 Thread MOHAMMED HASSAN
Hi Khem, Thanks for your reply. I tried the changes you wanted me to make and this is the error I got. ERROR: zigbee-0.1-r0 do_compile: oe_runmake failed ERROR: zigbee-0.1-r0 do_compile: Execution of '/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/temp/run.do_compile.171358'

Re: [yocto] Missing .o files.

2023-04-11 Thread MOHAMMED HASSAN
Hi Khem, Thanks for all your support. I added the following lines in my recipe file. do_install() { install -d ${D}${bindir} # install -m 0755 /home/mohan/amlogic/meta-c/recipes-example/zigbee/files/gecko_sdk_suite/v3.2/build/Z3GatewayHostm/build/exe ${D} install -m 0755

Re: [yocto] Missing .o files.

2023-04-11 Thread MOHAMMED HASSAN
On Mon, Apr 10, 2023 at 10:45 PM, Khem Raj wrote: > > you need to add > > DEPENDS += "readline ncurses" > > to your recipe. > > Hi Khem, Thanks for your reply. I didnt get any more errors and bitbake zigbee was a success. The issue is in my executable is saved in 

Re: [yocto] Missing .o files.

2023-04-11 Thread MOHAMMED HASSAN
Hi khem, If possible can check the makefile once and guide me. On Tue, 11 Apr 2023 at 12:50 PM, Khem Raj wrote: > On Tue, Apr 11, 2023 at 12:13 AM MOHAMMED HASSAN > wrote: > > > > Hi Khem, > > Thanks for all your support. > > I added the following lines in

Re: [yocto] Compilation of z3gateway

2023-04-11 Thread MOHAMMED HASSAN
Hi Quentin, Thanks for your reply. I was able to compile create the executable file but faced issues at the final stage. I only get error at the do_pack stage. do_install() { install -d ${D}${bindir} # install -m 0755 /home/mohan/amlogic/meta-c/ recipes-example/zigbee/files/

Re: [yocto] Missing .o files.

2023-04-11 Thread MOHAMMED HASSAN
Hi khem, I didn’t understand your last reply. Please guide. On Tue, 11 Apr 2023 at 1:46 PM, MOHAMMED HASSAN via lists.yoctoproject.org wrote: > Hi khem, > If possible can check the makefile once and guide me. > > On Tue, 11 Apr 2023 at 12:50 PM, Khem Raj wrote: > >> On Tu

[yocto] Error at do package stage

2023-04-12 Thread MOHAMMED HASSAN
Hi team, I am trying to build an executable for my yocto dunfell. I am new to yocto so dont have much knowledge on this. I am running to commands presently. $ bitbake zigbee (builds successfully). $ bitbake lib32-amlogic-yocto (do_package error). The error message is *ERROR:

Re: [yocto] Missing .o files.

2023-04-12 Thread MOHAMMED HASSAN
> > you need to build for 32bit as well. I think you are building these > binaries outside yocto and then weirdly mixing the install. So perhaps > that should be fixed first maybe. I think the makefile is using the default compiler present in my laptop. Can you share the file paths for compiler

[yocto] Unable to solve the initramfs issues

2023-04-05 Thread MOHAMMED HASSAN
Hi guys, I really need your help in solving this issue. I want to add nodejs to my image and added the line *IMAGE_INSTALL_append += " nodejs "* to my *local.conf* file, but got the error message *ERROR: core-image-minimal-1.0-r0 do_image_cpio: The initramfs size 171613(K) exceeds

Re: [yocto] How to compile binary executable files

2023-03-31 Thread MOHAMMED HASSAN
If so, you could write a recipe to integrate the binary into your root filesystem, as it's possible to do with pre-compiled libraries : https://docs.yoctoproject.org/dev-manual/common-tasks.html#working-with-pre-built-libraries. Caution, in this document, the new override syntax (with ":" instead

Re: [yocto] How to compile binary executable files

2023-03-31 Thread MOHAMMED HASSAN
> > >> Will it be okay for me to refer the above link for my specific >> case?I'd say yes, write a similar recipe for your binary. >> >> Its a .exe binary file. Will it work? > > > Not if that's a Windows executable (you can check with the "file" > command). Just try to run it on your target

Re: [yocto] How to compile binary executable files

2023-03-31 Thread MOHAMMED HASSAN
On Fri, Mar 31, 2023 at 03:01 AM, MOHAMMED HASSAN wrote: > > >> >>> Will it be okay for me to refer the above link for my specific >>> case?I'd say yes, write a similar recipe for your binary. >>> >>> Its a .exe binary file. Will it work? >&g

Re: [yocto] How to compile binary executable files

2023-03-31 Thread MOHAMMED HASSAN
Can you help me to compile for dynamically linked executable file in yocto dunfell? Thanks On Fri, Mar 31, 2023 at 3:20 PM Michael Opdenacker < michael.opdenac...@bootlin.com> wrote: > > On 31.03.23 at 11:42, MOHAMMED HASSAN wrote: > > If so, you could write a recipe to in

[yocto] do_configure error while adding networkmanager to image

2023-07-06 Thread MOHAMMED HASSAN
Hi guys, I am trying to add networkmanager to my image. However i get the error message as shown below DEBUG: Executing shell function autotools_preconfigure DEBUG: Shell function autotools_preconfigure finished DEBUG: Executing python function autotools_aclocals DEBUG: SITE files

Re: [yocto] do_configure error while adding networkmanager to image

2023-07-06 Thread MOHAMMED HASSAN
On Thu, Jul 6, 2023 at 02:29 AM, Adrian Freihofer wrote: > > Hi Hassan > > It's a bit hard to guess what you are really doing. The bb is a fork > from a quite old version when it was still using the autotools. Now we > use meson. > > The check for rl_echo_signal_char came into NetworkManager 8

Re: [yocto] do_configure error while adding networkmanager to image

2023-07-06 Thread MOHAMMED HASSAN
On Thu, Jul 6, 2023 at 02:29 AM, Adrian Freihofer wrote: > > Hi Hassan Hi Adrian, Thanks for your reply. > > It's a bit hard to guess what you are really doing. The bb is a fork > from a quite old version when it was still using the autotools. Now we > use meson. > > The check for

[yocto] Out of tree driver file compilation error

2023-06-20 Thread MOHAMMED HASSAN
Hi guys, I am trying to load TI bq2429x drivers into my yocto image. I face errors when at the do_compile stage. At first glance it looks to be a c program cross compilation error. I think the issue is due to not being able to link with the header files. The error I see on my screen. ERROR:

[yocto] Unable to locate insatlled nodejs packages

2023-05-08 Thread MOHAMMED HASSAN
Hi guys, I am referring this link https://stackoverflow.com/questions/71293110/how-to-add-nodejs-packages-to-yocto as a basuc example to add npm packages in my image. However, I see no npm install, no do_install function in the .bb file so got confused if the packages are actually installing in

[yocto] OTA Updates

2023-05-11 Thread MOHAMMED HASSAN
Hi all, So I am referring this page for OTA updates https://wiki.yoctoproject.org/wiki/System_Update However are these all paid or free services. Any more info about these services is welcomed. Also are there any tutorials, YouTube videos on ota updates for yocto? I couldn’t find any though.

Re: [yocto] Trouble Adding Files to rootfs

2023-05-03 Thread Mohammed Hassan
On Wed, May 3, 2023 at 03:47 AM, Anthony Abboud wrote: > > HI Yocto Community, > > I am currently working on build a custom Boot2Qt image to learn about > How-To's since it's my first time playing with Yocto. I am successfully > able to build an image for my system; manually inserting and

Re: [yocto] Trouble Adding Files to rootfs

2023-05-03 Thread MOHAMMED HASSAN
On Tue, May 2, 2023 at 03:17 PM, Anthony Abboud wrote: > > HI Yocto Community, > > I am currently working on build a custom Boot2Qt image to learn about > How-To's since it's my first time playing with Yocto. I am successfully > able to build an image for my system; manually inserting and

Re: [yocto] Trouble Adding Files to rootfs

2023-05-02 Thread MOHAMMED HASSAN
On Tue, May 2, 2023 at 03:17 PM, Anthony Abboud wrote: > > HI Yocto Community, > > I am currently working on build a custom Boot2Qt image to learn about > How-To's since it's my first time playing with Yocto. I am successfully > able to build an image for my system; manually inserting and

[yocto] Update the yocto dunfell to latest version

2023-12-17 Thread MOHAMMED HASSAN
Hi guys, Can you suggest some resources for me to update to the latest yocto dunfell version. Currently I am using dunfell 3.1.11 and want to update to 3.1.29. What could be the consequences? Also If I manually update the nodejs folder to the latest one will it fetch the latest nodejs

[yocto] Menuconfig saving erased after bitbake clean

2024-01-09 Thread MOHAMMED HASSAN
Hi guys, I open menuconfig and add/remove some features, save and exit. If I build using "bitbake linux-meson" the built image has all the features. However If I use "bitbake linux-meson -c clean && bitbake linux-meson" , then all the menuconfig modifications are erased and the default

[yocto] Reg. Efficient methods to transfer yocto source file

2023-12-05 Thread MOHAMMED HASSAN
Hi guys, So I have been copying and transferring yocto source files into different partitions to test new features and to have a preexisting working build. I generally just copy the files and I am aware that this will take a lot of time. I was looking for an efficient way to transfer the source

Re: [yocto] TI AM62x based EV charger platform with Pionix UI s/w Image build problem. #distro #poky #apt #bitbake

2023-11-27 Thread MOHAMMED HASSAN
On Mon, Nov 27, 2023 at 10:06 PM, Federico Pellegrin wrote: > > > Hi, > nodejs is very, *very*, heavy to build due to it's complex C++ code. I > would suggest you to limit the number of parallel builds supported: this > may slow down other (lighter) builds but will avoid going out of memory >

Re: [yocto] Architecture did not match

2023-11-15 Thread MOHAMMED HASSAN
On Tue, Nov 14, 2023 at 11:45 PM, Khem Raj wrote: > > in your recipe, you need to add runtime dependencies. e.g. > > RDEPENDS:${PN} += "bash" > > or you can ignore the deps if your image has them all in already. > since your package is binary only. > add > INSANE_SKIP:${PN} = "file-rdeps" > >

[yocto] Installing entire directory in my image file

2023-11-15 Thread MOHAMMED HASSAN
Hi guys, So I want to load an entire directory in my image file but I am unable to achieve two things. 1) Load the entire directory in my image. 2) Unable to load any file, directory in my /home/root directory. *My recipe file is:* DESCRIPTION = "Testing firmware for Edge 3 hubs" LICENSE =

[yocto] install: cannot create directory: File exists

2023-11-15 Thread MOHAMMED HASSAN
Hi guys, So I am trying to load node js files in my image. I am able to load the node_modules and package.json file, but when i try to load the directory that contains multiple js files, i get the following *error*: ERROR: lib32-testing-firmware-0.1-r0 do_install: Execution of

Re: [yocto] install: cannot create directory: File exists

2023-11-15 Thread MOHAMMED HASSAN
> > > > man install: > > -d, --directory > treat all arguments as directory names; create all components of > the specified directories > > So you are trying to install all normal files (Edge/*) as directories (as > you use -d). This then, as per error message message, will fail. > > Maybe

Re: [yocto] Architecture did not match

2023-11-14 Thread MOHAMMED HASSAN
On Tue, Nov 14, 2023 at 11:17 PM, Khem Raj wrote: > > add lib32-testing-firmware in your image instead of testing-firmware > > NOTE: lib32-gst-plugin-video-sink: compiling from external source tree /Yocto_sdk/yocto_sdk/aml-comp/multimedia/gst-plugin-video-sink NOTE:

Re: [yocto] Unable to run arm 64 binary on arm64 machine

2023-11-14 Thread MOHAMMED HASSAN
On Tue, Nov 14, 2023 at 11:40 PM, Khem Raj wrote: > > it seems you have a mixed mode image where kernel is 64bit but userspace > is 32bit, so you have to compile your app to be 32bit as well. > otherwise you need to include 64bit runtime as well to support 64bit apps. > > Unfortunately I

Re: [yocto] Unable to run arm 64 binary on arm64 machine

2023-11-14 Thread MOHAMMED HASSAN
root@se-704a0efe85c4:~# ./hello -sh: ./hello: No such file or directory root@se-704a0efe85c4:~# This is the response. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61692): https://lists.yoctoproject.org/g/yocto/message/61692 Mute This Topic:

[yocto] Yocto kirstone bitbake failed

2024-02-26 Thread MOHAMMED HASSAN
Hi guys, So I had earlier downloaded kirkstone and built an image . Later I deleted the entire directory and moved to other works. Now I created a new partition and tried to bitbake core-image-minimal. But I get the error [image: image.png] Not sure why but even the source oe-init-build-env