embedded-linux

pthread_rwlock_init() causing a segmentation fault

I suspect I am doing something dumb here but I am getting seg faults on an embedded Linux platform (GCC compiler) when I try to run pthread_rwlock_init() on a rwlock embedded in a structure. struct rwlock_flag { int flag; // Flag pthread_rwlock_t * rwlock; // Reader/writer lock for flag }; The following causes a seg...

Problem calling linux C code from FIQ handler

I'm working on an armv6 core and have an FIQ hander that works great when I do all of my work in it. However I need to branch to some additional code that's too large for the FIQ memory area. The FIQ handler gets copied from fiq_start to fiq_end to 0xFFFF001C when registered static void test_fiq_handler(void) { asm volatile("\ ...

Which display manager for a non interactive Python app and mplayer?

I am developing an application that will run on Linux to run fullscreen all the time (no menus or trays or anything will be visible). The application is going to be developed in Python, not that that matters as far as the window manager, but what I am having a hard time with is choosing a window manager. I need something with the small...

Creating a custom device for Swing/AWT to draw to

I am working on an embedded linux device that requires custom java code to draw to the screen. I was wondering if there was any way to create a custom adapter that can update the display based off our drawing code. I have done some digging and haven't found any information as to how Devices are implemented or plugged into Swing/AWT. Any ...

embedded web browser

Hi, I'm looking for Linux embedded web browser, or preferably just a rendering object (it will not be used for actual browsing, just for displaying web based gui). The requirements are: Written in C/C++ (small footprint) Support Dynamic HTML Support Java script Minimum dependencies on the libraries (although i understand that it ...

telnet client connection stops receiveing data, server is still sending

I'm Working in an embedded linux environment. it launches a telnet daemon on startup which watches on a particular port and launches a program when a connection is received. i.e. telnetd -l /usr/local/bin/PROGA -p 1234 PROGA - will output some data at irregular intervals. When it is not outputting data, every X period of time it se...

How to do power save on a arm based Embedded Linux system?

Hi I plan to develop a nice little application that will run on a arm based embedded linux platform, however since that platform will be battery powered I'm searching for relevant information on how to handle powersave. It is kind of important to get decent battery time. I think the linux kernel implemented some support for this, ...

Ethernet switch device driver

Hi We're designing a network device based around SoC, which contains MIPS core and 5-ports switch core, connected to the CPU via internal MII port. Device driver provided by a chip vendor represents 5-port switch as a single inteface from the OS perspective; the driver also supports VLAN and currently it splits 5 ports in two VLAN grou...

Linux kernel driver: what model for NVRAM access?

I just wrote a RTC driver for an NXP RTC chip on my board, it works great. This chip also has some battery backed RAM that I'd like to make available to a user space application. The RTC framework doesn't support this. It's only 512 bytes but I'm tossed between doing a seekable CHAR driver or a full blown BLOCK driver. I've never don...

Embedded Linux device tree parser in python?

I am looking to create a utility that validates Embedded (PPC or ARM) Linux *.dts (device tree source) or *.dtb (binary) files against an XML configuration file from another tool. So, I need to parse the dts or dtb files. I would really like to do this with Python. Does anyone know of a Python library or tool out there that parses dts...

Learning Uboot programming.

Please suggest methods or sources how to start uboot programming. ...

Execute a program in kernel space in Linux

If I want to execute a user program (not a kernel module) in Linux kernel space, what options do I have? I have looked at KML(kernel mode linux) but that is specific to IA-32 architecture. I want a solution which is cross platform and can work on embedded linux systems. ...

at91bootstrap not loading uboot on at91sam9260-ek clone board

Hi guys, forgive me if this is too trivial but apparently, it is not for me. Here it goes... I downloaded the sources for [at91bootstrap v1.15]ftp://www.at91.com/pub/at91bootstrap/AT91Bootstrap1.15 and [uboot1.3.4]http://ftp.denx.de/pub/u-boot/u-boot-1.3.4.tar.bz2, and also the [uboot-patch]ftp://www.at91.com/pub/uboot/u-boot-1.3.4-exp/u...

How can I spy on communication between a process and a terminal?

I have a Linux process developed by a third-party that communicates with a terminal. For debugging I want to see the communication going back in forth. One might think cat would do the trick (to see one direction): ./third-party-app & cat /dev/tty ...but it does not. Rather, cat will steal half of the data intended for the ...

GPL licencing when repackaging OS software for embedded use

I am currently building a Linux-based embedded device, but since i am building it using pre-compiled binary packages i am wondering what is required in this case to comply with the GPL. Would including a copy of the GPL licence text and a pointer to the relevent distribution suffice? I am deciding whether the company view that end users...

[embedded] polling hardware button's state

I need to implement the following feature for my device running embedde linux on a 200mhz MIPS cpu: 1) if a reset button is pressed and held for less then a second - proceed with reboot 2) if a reset button is pressed and held for at least 3 sec. - restore the system's configuration with default values from NVRAM and then reboot. I'm th...

How to use mpc8xxx_gpio.c device driver

Hi, I am new to device driver development. I am trying to access the GPIO of MPC837xERDB eval board. I have upgraded its kernel to linux-2.6.28.9 and enable support for mpc8xxx_gpio.c. On boot up, it successfully detect two gpio controllers. Now my question is how I am going to use it to communicate with the gpio pins? Do I have to modi...

Cross compiling a kernel module

I'm trying to cross compile a helloworld kernel (2.6.x) module for ARM architecture on my intel x86 host. The codesourcery tool chain for ARM is located at: /home/ravi/workspace/hawk/arm-2009q3 The kernel source is located at :/home/ravi/workspace/hawk/linux-omapl1 My Makefile: ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi obj-m := H...

[busybox] DHCP relay

Hi BusyBox v1.7.2 compiled and running on MIPS-based embedded platform, unfortunately I can't get dhcprelay work properly. I run it this way: dhcprelay vlan1 vlan2 192.168.1.150 where vlan1 (192.168.2.10) - is LAN, vlan2 (ip 192.168.1.2) - interface connected to WAN, 192.168.1.150 - dhcp server address. So, I connect a Windows PC to...

For quick testing, portable Linux or portable programming language?

Hi all: My current role requires me to setup environment which mimics the customer's and perform various checks to replicate and then analyze the problem. Chances are, I often find working with Windows environments such like XP, Server 2003, Server 2008 is a bit painful without having the handly linux-based shell and some command-line ...