Skip to content
Advertisement

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:

/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

Advertisement