embedded-linux

grabserial stops printing the log?

邮差的信 提交于 2019-12-06 08:53:52
i tried Grabserial to measure the startup code of my embedded Linux device. It works somehow but after a while (that means a longer startup code - talking about > 26 s) it stops printing out the messages, but grabserial still is running - i have to hit the [CTRL-C] to retrieve control. I checked the serial port with putty and it's working so it's a problem with grabserial. But i can't think of what it is. I downloaded and installed with both of the 2 install-variants and it just changed the look-and-feel but stucks at the same point. Does anyone ever had the same problem ? Greets [edit:] i

What is the best way to start programming with Real Time Linux?

时间秒杀一切 提交于 2019-12-06 08:51:48
问题 Although I have implemented many projects in C, I am completely new to operating systems. I tried real time linux on Discovery board (STM32) and got the correct results for blinking LED but I didn't really understand the whole process since I just followed the steps and could not find whole description for each step on the internet. I want to implement scheduling on real time linux. What is the best way to start? Any sites, books, tutorials available? Complete RTLinux process description will

How to get Disconnect Event from GATT Server on Bluez/Linux

前提是你 提交于 2019-12-06 07:12:16
Environment: Bluez 5.14, Linux 3.1, USB Plugable BLE radio, TI BLE keyfob (CC2541 dev kit) Linux Device <---hci----> USB BLE Radio We enabled key press events on TI keyfob using gatttool and started to listen for events gatttool -b [hardware ID] --char-write-req -a [handle] -n [value] --listen (gatttool -b 90:59:AF:09:E1:5D --char-write-req -a 0x0048 -n 0100 --listen) Pressing buttons on the keyfob and see these events Notification handle = 0x0047 value: 02 Notification handle = 0x0047 value: 00 Notification handle = 0x0047 value: 02 Hence we can receive the key press events from the Keyfob

Unable to mount root fs on unknown-block(0,0) when booting from S3C6410 board

戏子无情 提交于 2019-12-06 07:04:23
I have a S3C6410 board. The default Linux in the package is 2.6.28 and working fine. I want to upgrade it with more recent kernel. I grabbed buildroot 2012.11 edition. Then I get the default config file in the DVD and compiled the kernel 3.6.8 with that. Boot loader and root file system are the same old ones. Now when I boot the kernel I got this error: VFS: Cannot open root device "mtdblock2" or unknown-block(0,0): error -19 Please append a correct "root=" boot option; here are the available partitions: 1f00 8192 mtdblock0 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on

P1010 MAC to Switch port direct connection without PHY

倾然丶 夕夏残阳落幕 提交于 2019-12-06 07:02:34
I have a custom board with freescale P1010 processor in which P1010's eTSEC2 ( Enhanced 3-speed Ethernet controller) port is directly connected to Marvell 88E6046 ethernet switch Port 9 in SGMII mode. Linux (3.17) DSA driver is able to probe and detect switch ( Port 9 is 'cpu' whereas port 0 and 1 are designated as 'lan1' and 'lan2'). The problem however is, that there is no PHY for switch to attach to ( 'ifconfig up' fails to attach to ethx). U-boot creates a 'generic PHY' eth0 since it finds there is something ( switch ) attached to processor P1010 but when Linux is up and switch is attached

Displaying an image on ARM 9 board

帅比萌擦擦* 提交于 2019-12-06 06:21:03
问题 I need to display images on an embedded system. The board configuration is as follows: It is AT91sam9263-EK, with Linux 2.6.20 kernel running on it. Are there any image processing libraries for this board.The processor is ARM926EJ-S. thank you all 回答1: If the framebuffer isn't activated in the Linux OS you got I know that it is in the Linux OS provided by Linux4Sam. You can always try if it is activated by issuing the command cat /bin/sh > /dev/fb0 ; a random pattern should appear on the

alsa-util 1.1.0 arm cross compile issue

心不动则不痛 提交于 2019-12-06 05:55:12
I am trying to build alsa-util-1.1.0 for an arm-linux platform, through trial and error I managed to compile alsa-lib and alsa-util ok using these commands: alsa-lib: CC=arm-linux-gnueabihf-gcc ./configure --host=arm-linux -prefix=/home/username/20160311_alsa_work/alsa/install --disable-python alsa-util: CC=arm-linux-gnueabihf-gcc ./configure --prefix=/home/username/20160311_alsa_work/alsa/install --host=arm-linux --with-alsa-inc-prefix=/home/username/20160311_alsa_work/alsa/install/include --with-alsa-prefix=/home/username/20160311_alsa_work/alsa/install/lib --disable-alsamixer --disable

Resize MTD partitions at runtime

北城以北 提交于 2019-12-06 03:11:13
问题 I am working with embedded devices and would like to enable them to resize their MTD partitions via Linux without rebooting. The problem is that my Linux image size has increased and the current MTD partition (mtd0) in which it resides is now too small. However, the partition right after it (mtd1) is a JFFS2 section used for storing config information, so resizing with a reboot is not an option because the config could be lost. My goal is this: 1. Copy contents of JFFS2 into /tmp/ 2. Unmount

How to create a large file on a VFAT partition efficiently in embedded Linux

孤街浪徒 提交于 2019-12-06 02:38:52
I'm trying to create a large empty file on a VFAT partition by using the `dd' command in an embedded linux box: dd if=/dev/zero of=/mnt/flash/file bs=1M count=1 seek=1023 The intention was to skip the first 1023 blocks and write only 1 block at the end of the file, which should be very quick on a native EXT3 partition, and it indeed is. However, this operation turned out to be quite slow on a VFAT partition, along with the following message: lowmem_shrink:: nr_to_scan=128, gfp_mask=d0, other_free=6971, min_adj=16 // ... more `lowmem_shrink' messages Another attempt was to fopen() a file on the

Using mono in embedded linux for hardware

喜夏-厌秋 提交于 2019-12-06 02:05:23
问题 I am doing research for a company as an internship. I had some question in using Mono, the cross platform implementation of .Net platform. My company designs hardware and sotware. My knowledge of using embedded linux is very limited. My company where I am doing my internship is really .NET minded. But the new developments of mono, they asking themselves if they can target linux for smaller projects, too avoid the high licensing cost for the people for which they design the software and