The use of Unix in embedded computer systems such as networking equipment, mobile phones, media players, set-top boxes, etc.

learn more… | top users | synonyms

3
votes
2answers
200 views

File system that never breaks (data loss acceptable)

There're several existing topics revolving around this issue, but what I seek is slightly different. I have an sd card on an embedded Linux and it suffers from power loss. I might be able to modify ...
1
vote
0answers
74 views

Why is my embedded Linux unable to detect the sd device?

I have this ARM9 SAM9G25 embedded System, running a Linux 2.6.39 Kernel and a Busybox. I put the Images (of the bootloaders, and the linux+initramfs) on a SD so that in the end the system is booting ...
3
votes
1answer
48 views

How to determine how many bytes / hr are being written to my SD card

I have a Debian embedded Linux system that uses an SD card as the RFS. What is a reliable way to determine how many bytes / hr are being written to the SD card?
3
votes
1answer
163 views

How to set the CPU freq. in Linux?

I'm using this ARM9 SAM9G25 embedded system, that when switched on, is only online for a few seconds and because I want to speed up the whole process, I'd like to check the CPU frequency, and set it ...
0
votes
1answer
79 views

supported 2014 distro with 2.6.x kernel

I'm cutting my teeth at putting together a Linux install for a PC104 board that supports <= kernel 2.6.x with a Disk-On-Chip. I've read up on Embedded.org and Yocto, but before I try compiling ...
1
vote
1answer
32 views

Embedded Linux Power Failure Issues

Many routers run a Linux OS and abrupt power failure can happen. Considering this - how do they handle the possibility of file system corruption caused by a power failure? If they make the system read ...
1
vote
1answer
196 views

High RX packet error count with modem - how to analyze?

I'm testing a CDMA modem on my Debian embedded Linux system. I'm doing some wgets of large files and am seeing the connection drop now and then. Looking at the ifconfig output for the PPP interface ...
2
votes
1answer
38 views

catch http requests from another process

Suppose a process, among other things, is posting https requests, for example with curl. Assuming I have root privileges, is there a way to intercept such requests and respond with an http error ...
0
votes
1answer
328 views

How to change hard disk spin-down time on my WD MyBook Live?

I have a 2TB Western Digital MyBook Live. It works quite well and provides a web-based administration interface. There is an option to either enable or disable power saving mode, which spins down the ...
1
vote
1answer
44 views

flash_erase & nandwrite seem to work, but uname -a shows the same kernel version

I've seen this question: How can I flash_erase mtd0? I have a similar problem with my mini2440. When I use flash_erase /dev/mtd2 0 0 and then nandwrite -p -N /dev/mtd2 uImage-mini2440 ...
0
votes
3answers
165 views

Why does boot from SD card with my custom kernel result in “VFS: Cannot open root device”?

I'm using an embedded board ARM9 SAM9G25. I want to boot from SD card. When I build a linux kernel with a built-in rootfs (initramfs) then it boots. I want to separate the kernel from rootfs and I ...
0
votes
1answer
287 views

Basic script in Angstrom Linux running on a Beaglebone Black

On my embedded system, I can toggle a user led with: echo > 1 sys/class/leds/beaglebone:green:usr2/value. Similarly, I can find the value of a GPIO (gpio60) (set to input), with more ...
0
votes
1answer
91 views

Having difficulties mounting a rootfs for an embedded Linux

I want my Kernel to start a squashfs rootfs for an embedded Linux. The squashfs file is on a sdcard, therefor i put these parameters on it's command line: console=ttyS0,115200 root=/dev/sdb1 rw ...
3
votes
1answer
784 views

How to extract files from uImage?

Buildroot is generating Images for an embedded device where they should run on. This is working very well. In those Images the rootfs is included. Due to some research I'd like to look into that ...
2
votes
2answers
310 views

Setup ntp client with embedded device

I need to run an NTP client on a very limited embedded device. ntpd is available but I do not see anything like rc.conf, or ntp.conf, or xntp.conf? Can someone advise on how to setup NTP? I ran ...
3
votes
1answer
72 views

Embedded Linux: Which machine directory to pick in /arch/arm?

I am just starting out with embedded Android drivers, so any help would be great. I haven't found a lot of resources online. At the moment, I am working through a tutorial on porting a driver, and ...
0
votes
3answers
61 views

How can I add a script to embedded Linux

I have a script (let's say Hello World), that I want to include to my embedded Linux. I'm using Buildroot and want to start the script in Busybox. But because I'm cross-compiling for the target I'm ...
0
votes
1answer
118 views

Change the root filesystem on an embedded system

I'm using Buildroot to generate an embedded Linux with a kernel v. 2.6.39, which in the end starts busybox. Everything works fine when building with Initramfs as "rootfs". But Initramfs isn't the best ...
2
votes
1answer
283 views

upgrade Python to 2.7.2

I have an embedded system running on Python 2.6.5 and i want it to upgrade to 2.7.2 (I have a running system with different kernel that runs 2.7.2). I have copied the binary but then it told me: ...
2
votes
1answer
370 views

Transparent Ethernet over GRE not forwarding traffic

I am running on Linux 2.6.30.9 and have been trying to setup a transparent ethernet over GRE tunnel. The network topology used is as follows: I want to bridge PC1 and PC2 using Transparent Ethernet ...
2
votes
1answer
131 views

How to build a basic embedded linux on a Qualcomm router?

Not knowing the first thing on how to build a minimal linux system on an embedded device, I'd like to get some pointers in the right direction. Generally speaking, I'd like to know what are the ...
1
vote
1answer
137 views

How to make a USB storage device undetectable in u-boot?

I need to do a test in an embedded system where I plug in the USB storage device and do "usb start" but the USB storage device is not detected. I have a working pendrive. How to make it undetectable ...
1
vote
0answers
130 views

Log files corrupted with NUL characters and text from other processes

I am running Wind River Linux 4.3 on an embedded Freescale single board computer (SBC). Output from uname -a: Linux ge101 2.6.34.10-myname-grsec-WR4.3.0.0_cgl #1 SMP PREEMPT Mon Aug 26 01:35:35 PDT ...
0
votes
2answers
351 views

GRE supported in kernel but iproute2 cant create GRE tunnel

Im trying to create IP over GRE tunnel but i get No such device: ip tunnel add gre0 mode gre remote 192.168.152.22 local 192.168.152.21 ttl 255 ioctl: No such device I have compiled GRE support in ...
4
votes
1answer
229 views

How do I load initrd into memory to be passed to kernel when using kexec?

As the MIPS port of kexec doesn't support the --initrd param, I'm looking for workarounds to imitate the feature. According to Linux/MIPS wiki, MIPS kernels support rd_start and rd_size kernel command ...
0
votes
1answer
275 views

how do I include the qcserial module in the kernel?

I need a kernel compiled, featuring the qcserial module to have support for the Huawei EM 680 model (Gobi 3000). I got kernel 3.11.6 and can find the appropriate source file in ...
6
votes
2answers
130 views

Location of the kernel binary (when not in /boot)?

I failed to find the kernel binary in the standard location in /boot. I've also searched the whole file system for vmlinux or bzimage find / -iname vmlin* find / -iname bzimage However, this is an ...
1
vote
0answers
33 views

App consumes diferent %CPU if started at start-up or from prompt [closed]

I run an application in embedded system, and it needs to start at boot. However, I have a problem with it: when I execute it at boot (from rc.local script), it consumes nearly all the CPU, making the ...
3
votes
1answer
146 views

Wget download file ( do not overwrite ) auto update script

I want to write auto update script for my embedded device, which can check and download newer version of my program and extract the files on the device. The download center is hosted on remote web ...
3
votes
0answers
104 views

What is the difference between the output of TOP command and Oprofile?

In the top command one of the processes is always showing a CPU usage of 4 to 5%. But in oprofile the CPU usage is 0.004%. I do not understand this. And I also noticed that even when a process is in ...
2
votes
1answer
132 views

Which system calls could create a new process?

When executing ps command in my Linux system i see some user processes twice (different PID...). I wonder if they are new processes or threads of the same process. I know some functions in standard C ...
0
votes
0answers
31 views

What could keep a process in 'Runnable' state indefinitely?

I am developing for embedded Linux and I have found a critical bug when stability test is performed. After 1-3 days running at some points the system becomes inoperative. Kernel network stack keep ...
3
votes
0answers
29 views

Queuing disciplines are per-interface, what happen with interfaces using same device?

I have read about queuing disciplines here http://lartc.org/. I understand that for instance band 0 of pfifo policy is prioritized over band 2 within same qdisc, but what happen when i have ppp0 and ...
1
vote
1answer
46 views

Having several qdisc for each device, which is the first to process?

I have read about queuing disciplines here http://lartc.org/. Having this traffic shaping policy: .... qdisc pfifo_fast 0: dev ppp0 root bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 qdisc ...
0
votes
0answers
96 views

optimizing Debian wheezy for an embedded board

I have Debian 7.1 on an embedded board that I just use WiFi interface, openVPN, and run a C code. The code uses UDP socket to transfer data, and do some calculations and output some signal on GPIO. ...
0
votes
0answers
107 views

prioritize traffic for some bridge interfaces using prio qdisc

Im configuring my router to give preference to some WAN interfaces. This interfaces are named ppp0 (PPP interface), vc2 (RFC1483 bridge interface) and vc3 (RFC1483 bridge interface). I had understood ...
0
votes
0answers
84 views

how to enable java support to buildroot

I'm using buildroot 2012.08 version for building embedded linux. I'm looking for best solution to add java support. Is it possible to do trough buildroot?
1
vote
1answer
482 views

What could cause a run time remounting of my /var partition to be read only?

I have a buildroot generated embedded linux system (x-86 geode processor) using an initramfs but with /var and /etc mounted onto a compact flash device using the default mount options specified in ...
2
votes
2answers
1k views

What does ifup do when “/etc/network/interfaces” has an invalid netmask address?

The interfaces file looks like below: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.130 netmask 250.255.255.0 gateway 192.168.0.254 As you can see ...
1
vote
1answer
710 views

/dev/console dynamic redirection

Is it possible to dynamically redirect all data sent to /dev/console into something else (for example - to /dev/null, /dev/tty9 or even /dev/null)? Of course, it can be done statically via ...
0
votes
2answers
79 views

embedded linux and powering usb stick

I have a problem where I need to read a usb-stick or a usb keyboard: When I plug in the USB stick or keyboard I can't get power to the device. dmesg says nothing I tried: for device in $(ls ...
0
votes
0answers
61 views

Creating JFFS2 image

I am working on Embedded Linux, trying to create JFFS2 file system in the host and trying to load it on a NAND device in the target board - Olinuxino a13 wifi using Livesuite. I successfully created a ...
4
votes
1answer
371 views

ttyS1/uart1 initialised but not accessible through /dev/ttyS1

I'm not sure at which level I am having a problem. System is a LeopardBoard DM368 running TI's own SDK / LSP / BusyBox kernel, the core Linux kernel is 2.6.x so using serial_core.c driver model. By ...
2
votes
1answer
259 views

Know when a memory address is aligned or unaligned

Im getting kernel oops because ppp driver is trying to access to unaligned address (there is a pointer pointing to unaligned address). Im not sure about the meaning of unaligned address. It means not ...
6
votes
2answers
796 views

Is it possible for a daemon (i.e. background) process to look for key-presses from a USB keyboard?

I'm working on an embedded Linux project where I will be developing a program that will run automatically on bootup and interact with the user via a character display and some sort of button array. ...
2
votes
1answer
440 views

How to custom build debian's busybox?

I'm building an embedded system based on debian 7, and I'd like to make the most out of busybox that comes with debian. The problem is default busybox build in debian seems quite minimal, for example ...
2
votes
1answer
467 views

What is the easiest way to draw graphics on Linux framebuffer?

I have some embedded Linux ARM chip with LCD display on frame-buffer. I connect to chip with serial console. I can access frame-buffer directly with low-level commands. However I need to draw some ...
1
vote
1answer
344 views

mmcqd hangs and burns the CPU on the embedded device

On my embedded system I'm writing an intensive video stream to SD. I don't mount partitions, just write to /dev/mmcblk0p1. After a while my writing process hangs. I get [16952.240000] INFO: task ...
0
votes
1answer
31 views

Adding access to PPP

I have a PPP connection over USB (dev ppp0), and an eth0 connection. My Linux box has IP 192.168.1.1, I have a second Windows PC with an IP of 192.168.1.3. The ppp conection is 192.168.1.2 - which is ...
1
vote
1answer
492 views

How to configure linux to output to monitor

I'm currently running a lightweight Debian distro on a development board from Compulab. I have to login to the system via serial port everytime. The system has graphical card and the driver is ...