On an embedded Linux system running Busybox I am trying to receive bytes over a serial port and echo back everything received. The system setup is like this: Linux <-USB-> FTDI chip <-UART-> MCU On the UART line I have a logic analyser monitoring the data between the FTCI chip and the MCU. Both the MCU and Linux have the
Tag: busybox
how to interpret pclose() status when popen() fails?
My application running on embedded linux (busybox) tries to execute a script via popen(cmd, “r”). cmd = “sh /tmp/DF1_05/update.sh DF1_05” I can execute this script without problem launching it by hand from sh, but it fails when it’s launched by the application. The first lines of update.sh script are: I cannot even see the echo ouput. My application’s code is:
Copy several files to current directory using find on busybox
I have the following snippet that works well non normal terminals (for example, on cygwin): What it should do is find all the files that match the provided patterns and copy them to the current directory. However, when I run this terminal on Github Workflows it only copies the .apk files, like if it were ignoring the first item on
Why does SIGHUP not work on busybox sh in an Alpine Docker container?
Sending SIGHUP with to a busybox sh process on my native system works as expected and the shell hangs up. However, if I use docker kill to send the signal to a container with it doesn’t do anything. The Alpine container is still running: By the way, with an Ubuntu container (which runs bash) it does work as expected: Sending
/proc//map shows more shared library than ldd for busybox
Why /proc/<pid>/maps shows more shared library than ldd program? Here’s an example: cksum is used to check if the files are the same. From PC side ldd cross-tool, it shows busybox depends on libc and ld only. However, in the real run-time environment, /proc/132/maps shows one more shared library, /lib/libnss_files-2.22.so. To confirm if we have indirect dependency: No. ldd show
How to remove/modify syslogd message’s header?
I’m currently use the syslogd of busybox for logging some information. However, I’m unable to modify the message’s header. I log the message like this: And I got this output: I want to replace message’s header with epoch time format like this: Or is there any way to completely remove the message’s header so I could manually add the epoch
Yocto/Poky: How to remove hwclock from busybox?
I’m building a Poky-based embedded Linux distribution for a target which doesn’t have a real-time clock. System time is only set by ntpd. Therefore I don’t really need an init script which calls hwclock –hctosys during boot, and in fact I’m afraid that this might cause the system time which is set by ntpd to be overwritten with an incorrect
Docker Busybox container add groups and user
I need users in my docker containers. My build is from the busybox image which is missing groupadd, I tried to add it using apt-get but that’s also missing. What do I need to add to my Dockerfile to get groupadd? So far I have Answer You’re trying to run Debian based command on a non-Debian system. If you need
U-Boot version extraction for comparision
I am trying to extract U-Boot version from its binary for comparison, consider that exact string what I want to search is as follow, so I wrote command with regex as follows, However I don’t see any output for that above command, I could make below command work which extracts version only by comparing versions and not looking for date
nWipe Package compiled in Centos not working in Busybox embedded linux
I have compiled nwipe open source utility in Centos. Once compiled it works absolutely fine on the machine where it was compiled. I have also copied the compiled package to another machine running Centos along with required libraries and it works fine. I have tried to package this utility to work with Busybox RAMBOX embedded linux. The purpose of this