Archive

Archive for the ‘Hacks’ Category

USB to Serial adapter on Mac OSX

May 26th, 2009

I just tried to use minicom + usb-serial adapter on Mac OS (Tiger 10.5.x) and nothing happened. Looking at driver’s CD which came with USB serial adapter I discovered that it was made by Prolific.

photo-serial

Google-is-my-friend and I found the driver that really works. Download and install it. After this, a /dev/tty.usbserial device node will appear. Now you just have to configure Minicom and everything works.

briglia Macbook

Ubuntu Jaunty on Mactel

April 21st, 2009

Since three weeks ago, I’m using a Macbook Pro, version 5. First, I tried to develop native Linux applications using VMWare Fusion, even the performance and speed are good, I wanted more and installed Ubuntu Jaunty using Bootcamp to make the partitioning.

There are a lot of tutorials and howto’s that explain how to install ubuntu on a macbook (intel, or just mactel). I followed this one.

After Jaunty installation, I noticed that screen was not well adjusted: the brightness was different from OSX setting. Another difference is the keyboard backlight. Screen brightness and keyboard backlight can be configured, after the nvidia driver installation (see this link). To summarize, I just used these two commands:

Screen brightness:

echo <VALUE> | sudo tee -a /sys/class/backlight/mbp_backlight/brightness

where

<VALUE>

can be 0 – 15.

Keyboard backlight:

echo <VALUE> | sudo tee -a /sys/class/leds/smc::kbd_backlight/brightness

where

<VALUE>

can be 0 – 300.

briglia Macbook

Using latest linux-omap kernel in N810

February 28th, 2009

This post describes my experience to get N810 working with latest linux-omap kernel.

1. Get latest codesourcery arm-eabi toolkit. (here) And install it.

2. Clone linux-omap kernel from git repository.

3. Compile it using cross compiler from step 1. You just need to put in your PATH the bin/ directory from cross compiler installation.

4. Get flasher utility for your machine.

5. Following this tutorial, you should put your device in R&D mode with RD flags = no-omap-wd,no-retu-wd,no-lifeguard-reset, but when I put “no-retu-wd” the device had some unstability and I put RD flags = no-omap-wd, no-lifeguard-reset.

6. For Wlan driver, just follow this tutorial and you’re ready to use latest linux-omap kernel in N810.

briglia Hacks, Kernel, Linux-omap

Ramzswap for linux-omap

August 7th, 2008

Since I’ve been studying compressed cache stuff for embedded linux, I’ve just compiled ramzswap modules for linux-omap (N800 device). Just follow some steps:

1. Download linux-2.6.24.tar.gz and apply linux-omap patch.

2. You will need Code Sourcery’s cross compiler tool. I’m using arm-none-eabi for ARM arch.

3. Follow these instructions, but edit ramzswap makefile and substitute kernel path for your linux-omap kernel source.

4. Compile using make CROSS_COMPILE=’arm-none-eabi-’

briglia Hacks, Kernel, Linux-omap

UWB and WINET connection on N810

April 23rd, 2008

Since beginning of this year, some INdT developers have been working on UWB drivers. The video below shows an WINET connection between a laptop and a N810 using two Iogear dongles. To connect a dongle to N810, a powered usb hub must be used since the USB port on device does not support robust USB equipments (like UWB dongles).

All the UWB related stuff is very experimental and we have issues on basic features like network range and connection speed.

briglia Drivers, Hacks , , ,