Tagged Questions
1
vote
0answers
23 views
Linux shell lagging one step
I upgraded busybox from 1.2.1 to 1.7.4 in my embedded system platform and it is connected to linux host via serial cable. Now when I type any command in shell on that embedded system platform like ...
1
vote
0answers
197 views
Busybox `uname -r` shows wrong kernel version
My kernel is 3.2.27 and /lib/modules/ contains 3.2.27 + folder. But when I am using
/# uname -r
3.1.9+
It's showing a strange output. My problem is that for modprobe depends on uname when I put
...
2
votes
2answers
192 views
No /proc in a Busybox-based embedded Linux distribution
I am making an embedded Linux distribution and my board is a Raspberry Pi. My kernel version is 3.2.27 without initramfs and my root file system as follows:
/lib /* contains ...
3
votes
1answer
639 views
Create and control start up scripts in BusyBox
I have compiled a custom linux kernel in BusyBox. BusyBox init does not support runlevels. When the kernel boots up in BusyBox, it first executes init which looks for the specified runlevel in ...
3
votes
1answer
123 views
inittab '-' character in process field
I have a an inittab file with the following entry:
console::askfirst:-/bin/ash
According to this Man page a '+' character in the process field means
init will not do utmp and wtmp accounting ...
1
vote
1answer
366 views
How do I safely unmount a network share on Linux STB without crashing (I get GSOD)?
I have a network share named dreambox on C:\dreambox that is shared with the group Everyone in Windows. I have mounted it to /hdd on a Linux-based STB with OpenDreambox (OpenEmbedded) using Telnet ...
3
votes
3answers
223 views
How to remove a trailing CRLF from a file?
I have a binary file with a trailing CRLF (2 bytes total) that I want to remove. How should I do it?
Please note that I'm using busybox and I don't have perl.
2
votes
0answers
78 views
Busybox exits instantly printing 'SIGUSR1'
I was tinkering with my router these days. It runs on MIPS core and the OS is based on Linux. But the builtin busybox is very limited. I managed to export a binary of busybox compiled for MIPS through ...
1
vote
0answers
249 views
Run script as root under Busybox?
I have written a shell script that has to be run as root under Busybox. My first thought was to add the script to /etc/busybox.conf like this:
/sbin/my_script.sh = ssx root.root
But this only works ...
6
votes
2answers
376 views
How to develop a small linux distro?
Since Linux uses open-source packages, I was wondering if I could develop my own Linux distro by compiling these packages.
I tried to read the Linux From Scratch book but it's quite big and uses lots ...
2
votes
1answer
614 views
Linux 2.6.32, busybox, Identify physical SD device
I have a USB card reader with two SD card interfaces and two USB ports (so it can also act as a USB hub) all on the same device. I am running an embedded Linux device that is unsupervised in its use ...
2
votes
1answer
188 views
Can I bypass crontab command by putting the file?
I need to create and put my cron file with
cat cronfile1 cronfile2 > cronfile
crontab cronfile -u myuser
This works for me, but I want to know if I can do directly
cat cronfile1 cronfile2 > ...
4
votes
3answers
2k views
when does the system send a SIGTERM to a process?
My server program received a SIGTERM and stopped (with exit code 0). I am surprised by this, as I am pretty sure that there was plenty of memory for it. Under what conditions does linux (busybox) send ...
7
votes
3answers
1k views
How does one atomically change a symlink to a directory in busybox?
I am trying to (as close as possibly) atomically change a symlink. I've tried:
ln -sf other_dir existing_symlink
That just put the new symlink in the directory that existing_symlink pointed to.
ln ...
3
votes
2answers
4k views
Trouble getting busybox switch_root to work
I'm working on an embedded ARM Linux system that boots using initramfs. (Here's some background from a couple earlier questions, if you're interested.) So far, thanks in part to help received here, I ...
5
votes
3answers
2k views
How to generate initramfs image with busybox links?
Having been directed to initramfs by an answer to my earlier question (thanks!), I've been working on getting initramfs working. I can now boot the kernel and drop to a shell prompt, where I can ...