Open a File Directly at the Requested Line with Vi

When you compile a program and an error occur, the compiler will report the file name and line number with the error. Usually, I use vi to access the file, then type “:line_num”, for example if I want to jump to line 123, I would type :123 after opening the file. But there is a way to do that directly with vi by using +line_num. For example:  vi +123 code.c To go to the last line, I would normally use the capital letter G when vi is started, but this can be done while opening the file as follows: vi +$ code.c One last tip: To go back at the top of the file in vi, simply use :0 or the capital letter H. Jean-Luc Aufranc (CNXSoft)Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily […]

99 USD OMAP3 Based Overo Computer On Module by Gumstix

Gumstix has manufactured its Overo COMS based on OMAP3503 and OMAP3530 since 2008. They have now announced a new low cost version named Overa Sand that sells for 115 USD per unit or less than 99 USD per unit for orders of  1,000 units or more. Overo Sand COM is Gumstix’s most basic computer-on-module with 256MB RAM and no on-board NAND. Here are the board specifications and features: Processor: Texas Instruments OMAP 3503 Applications Processor: – ARM Cortex-A8 CPU @ 600 Mhz Memory: 256MB RAM NO On-Board NAND Included Features: microSD card slot TPS65950 Power Management Expandability: via one 140-pin expansion board of Gumstix Overo series or custom, 140-pin expansion board via 27-pin camera board Connections: – (2) 70-pin connectors with 140 signals for: – I2C, PWM lines (6), A/D (6), 1-wire – UART, SPI, Extra MMC lines – Headset, Microphone – Backup battery – High Speed USB Host and […]

How-to Convert a Command Line Result into an Image in Linux

Here’s a technique to convert a command line result into an image in Linux using ImageMagick. You could also do a screenshot (with PrtSrc key) and use Gimp to trim the image, but this method is faster and does not require a graphical interface. The simplest command to convert the result of ifconfig into an image: ifconfig | convert label:@- cmd.png This will give an image with a white background and black text, but If you want to have a black background with white text you can use the following: ifconfig | convert -background black -fill white \ label:@- cmd.png If you want to change the font and the font size: ifconfig | convert -background black -fill white \ -font Helvetica -pointsize 14 \ label:@- cmd.png You can retrieve the list of fonts with this command: convert -list font | grep Font: Finally, use this command to add an extra […]

Emulate Gumstix Overo COM with Qemu and Linaro Nano Image

Overa COMs are low cost computer-on-modules (COM) built around OMAP3503 and OMAP3530 depending on the model. Such device can be purchased on gumstix website. However if you just want to try a program on the board, you could use QEMU to emulate the Overo board as follows: Download pre-built image. (nano is a minimal linux ditribution without UI): wget http://releases.linaro.org/images/linaro-n/nano/11.07/overo-nano.img.gz gunzip overo-nano.img.gz Install the qemu tools: sudo add-apt-repository ppa:linaro-maintainers/tools sudo apt-get update sudo apt-get install qemu-user-static qemu-system Run the image: qemu-system-arm -M overo -clock unix -serial stdio -device usb-kbd -drive file=/tmp/overo-nano.img,if=sd,cache=writeback You can also watch the installation in the video below:   Source: https://wiki.linaro.org/Resources/HowTo/Qemu-5   Jean-Luc Aufranc (CNXSoft)Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011. www.cnx-software.com

Texas Instruments AM387X Sitara ARM Cortex A8 Microprocessors

Texas Instruments (TI) has introduced three new AM387x ARM Cortex-A8 microprocessors (MPUs): AM3871, AM3872 and AM3874. TI says these MPUs offer integration of the ARM Cortex-A8 core, peripherals for high-bandwidth connectivity (SATA, D-CAN, PCI Express (PCIe), Gigabit Ethernet switch and more), 3D graphics for enhanced GUIs and display subsystems for camera connectivity and viewing. The AM387x ARM Cortex-A8 MPU can connect to and control IP and CAN networks, HD displays, keyboard, mouse, PC, SD card and various general purpose peripherals, all via one highly integrated processor in an industrial automation application controlling a production line and a high-speed, shared data bus allows for reduced communication overhead and quick access to shared data, which results in reduced chip count, discrete memory costs and printed circuit board (PCB) space compared to separate solutions. Those MPUs are targeted at a variety of fanless applications such as: single board computing, network and communications processing, […]

OpenCL (Open Computing Language) Overview and SDKs

OpenCL (Open Computing Language) is a multi-vendor open standard for general-purpose parallel  programming of heterogeneous systems that include CPUs, GPUs and other processors. OpenCL provides a uniform programming environment for software developers to write efficient, portable code for highperformance compute servers, desktop computer systems and handheld devices. OpenCL standard is managed and defined by the Khronos Group. The latest version (OpenCL 1.1) was ratified by the Khronos Group on the 14th of June 2010 and adds significant functionality for enhanced parallel programming flexibility, functionality and performance including: Host-thread safety, enabling OpenCL commands to be enqueued from multiple host threads. Sub-buffer objects to distribute regions of a buffer across multiple OpenCL devices. User events to enable enqueued OpenCL commands to wait on external events. Event callbacks that can be used to enqueue new OpenCL commands based on event state changes in a non-blocking manner. 3-component vector data types. Global work-offset which […]

Chumby NeTV: Open Hardware and Software STB

Althought not officially announced, Chumby is currently developing a Linux-based IPTV media player that can be remotely controlled by a Wi-Fi connected Android device. It will be offered as an open development platform where both software and hardware will be made available to developers. NeTV is built around a Marvell Armada 166 processor clocked at 800 MHZ (88AP166 – Armada 100 Family) with 2GB RAM, a MicroSD slot and Wifi. The media player is powered via micro USB and comes with a 7-button IR remote, although you might prefer to use your Android device to control the device via a WiFi connection.  NeTV STB supports  HD resolution (480p, 720p & 1080p24 “True Cinema”). On the software side, NeTV provides what they call “Smart Event Display” that allows you to receive personalized internet news via Twitter, Facebook and other internet news source. Android users can also enjoy seamless SMS and email […]

Advantech PCM-C3500 Series OMAP35xx SBC

Advantech announced the PCM-C3500 Series single board computers (SBC) powered by TI OMAP3503 or OMAP3530 processors with 128 to 256 MB SDRAM and 1 to 2 GB Flash (optional) . These heatsink-free boards are targeted for various low-power applications in industrial control, HMI/kiosk, medical, and portable applications.The boards will run Windows CE 6.0 (default), Embedded Linux 2.6 and Android 2.2. Here are the specifications for PCM-C3500 SBC: CPU – PCM-C3530: TI OMAP3530 @ 600 MHz / PCM-C3503: TI OMAP3503 @ 600 MHz DSP – Built-in 430-MHz TMS320C64x+™ DSP Core (PCM-C3530 only) 2D/3D Accelerators – OpenGLES 1.1 and 2.0, OpenVG1.0 (PCM-C3530 only) OS – WinCE6.0 English professional version as default, and Linux DRAM – PCM-C3530: 256 MB, PCM-C3503: 128 MB (Optional: 256 MB) Onboard Flash – PCM-C3530: Default 2 GB, (Optional: 0 GB, 1 GB) /PCM-C3503: Default 0 GB, (Optional: 1 GB, 2 GB) RTC Watchdog Power Management – Standard, idle […]

EmbeddedTS embedded systems design