Jul 29
OpenWRT  
Ich habe als Diplomarbeit den Überbegriff "Embedded Linux" gewählt. Konkret verwende ich OpenWRT um folgende 2 Embedded Devices zu betreiben:


  • MP3 Jukebox, Bluetooth Steuerung, Last.fm support, Webradio Unterstützung. Basierend auf einer ASUS Wrt 500GP Hardware. Die MP3's werden entweder auf einem USB Memory stick zu Verfügung gestellt oder werden via Netzwerk gestreamt.

  • Home Access Point mit WPA2 Verschlüsselung, OpenSSH, SSH over HTTP Tunnel, SSH over ICMP Tunnel. Als Hardware wird ein Atheros-Basierender AP von der Firma FON verwendet, welcher für ca. 20€ zu erwerben ist.


Download Bauanleitung für die MP3 Jukebox, Umfang 15 Seiten.
Download gesamte Diplomarbeit, Umfang 89 Seiten.

(c) by Michael Vogt 2008




Hint: Einen Openwrt tauglichen Router kaufen:
Linksys WRT54GL-EU Wireless Access Point Broadband Router

Inhaltsverzeichnis:

 

Continue reading "Diplomarbeit Embedded Linux (German)"

Posted by michu

Defined tags for this entry:
Feb 5
OpenWRT Some pics about the WIP MP3 player based on OpenWRT.


Front view


Control the player with your mobile phone...

 

Continue reading "OpenWRT MP3 player, Screenshots"

Posted by michu

Defined tags for this entry: , ,
Dec 25
OpenWRT I've created some useful (my opinion) packages for OpenWrt - Atheros platform. They were not applied to the trunk, I don't know why but you may download them here:


  • Atheros GPIO LED driver - a kernel module which will create the /proc/gpio devices. Useful to control the WLAN LED.

  • Atheros toggler - use the reset button to enable/disable WLAN.


You can download both packages HERE. Buildfiles and patch files are both included. Those files works fine for kernel v2.6.23.x, there might be a general GPIO tool in kernel v2.6.24.x but until then you may use those modules.

Hint: Buy a wireless router for Openwrt:
Linksys WRT54GL-EU Wireless Access Point Broadband Router


 

Posted by michu

Defined tags for this entry:
Dec 1
OpenWRT I committed some packages to the OpenWrt trunk, some are already applied others not yet. I use Lcd4Linux to fill display, MPD as music player, scmpc to submit the played tracks to last.fm. Here are some pics:


 

Continue reading "Asus WL500GP + OpenWrt + Lcd4linux = Jukebox"

Posted by michu

Defined tags for this entry: , ,
Nov 30
OpenWRT I want to toggle the WIFI on my OpenWrt when I press the reset button, per default OpenWrt just halts the system.

Most information is from the OpenWrt WIKI

** EDIT, 1.10.2008 **
this was an openwrt bug, check #2774 and #2772.

1) edit /etc/hotplug2-init.rules
delete this section:
SUBSYSTEM ~~ button {
       exec kill -USR1 1 ;
}

2) create a new file /etc/config/wifitoggle
config wifitoggle
        option button 'reset'

Now uci knows wifitoggle:
root@OpenWrt:/# uci show
...
wifitoggle.cfg1=wifitoggle
wifitoggle.cfg1.TYPE=wifitoggle
wifitoggle.cfg1.button=reset
...


Continue reading "OpenWrt, create a reset button event"

Posted by michu

Defined tags for this entry: , ,
Nov 27
OpenWRT I was unable to find a precompiled GPIO module for the Atheros build. So I created a new Openwrt Package which is based on Ticket #1172. The module itself was created by olg and is hosted here.

On this site you can find the GPIO pinout:
Pin    Use
0    TP3
1    pin 5 of SW1
2    WLAN LED
3    pin 1 of SW1
4    pin 2 of SW1
5    Reset (!)
6    Reset button
7    pin 6 of SW1

They also demonstrate how to use it:

echo WLAN LED on
echo 1 > /proc/gpio/2_dir
echo 1 > /proc/gpio/2_out

echo WLAN LED off
echo 1 > /proc/gpio/2_dir
echo 0 > /proc/gpio/2_out

Download the source or the (soon outdated) binary package (Kernel v2.6.23.1).

 

Posted by michu

Defined tags for this entry: ,
Nov 24
OpenWRT I will use the Serial Port to connect La Fonera, there are also other methods to flash Openwrt on La Fonera but my Router was bricked somehow I just had this solution (RedBoot) left..

This method is completely soldering less; I used some old CD-Rom audio cables to connect the serial Pins on La Fonera. The serial signals are 3.3v so you need a level shifter. I already wrote this guide about serial connections...



Configure you Serial settings: 9600-8-N (no flow control).

Important note ripped from http://www.easy2design.de/bla/?page_id=98:
As pointed out by DarkBlade (I also experienced this, but thought I just built my serial cable to crappy(ly)...): It seems that the Fonera sometimes (or always?) doens’t want to boot when connected to serial. I narrowd it down to the connected TX at the Fonera side. If you don’t see anything and the little sucker apparently isn’t booting at all, disconnect the TX from the Fonera and boot with RX connected only. Once you see the first line of output running over your screen, quickly connect TX line, too. Other people just tried booting and connecting the serial cable only 5sec later, though i suppose you will need some practice, as the point where you need to activate the RedBoot bootloader will come after only a few lines of serial output. Just play a little and be quick :-)
 

Continue reading "Using Openwrt on La Fonera for Dummies"

Posted by michu

Defined tags for this entry: , ,
Jun 22
OpenWRT

I use my old Palm IIIc as a Serial Console for my OpenWRT router. Palm use, like my Asus WL500G Premium OpenWRT router, TTL serial levels inside the box. I opened my Palm and on the “LA CUCARACHA NEGRA” PCB you’ll see the MAX 3386e IC, which convert’s the TTL signal to (more or less) rs232 serial signal level.



MAX3386 schematics

Now just connect the TTL signal level from the Openwrt router to the MAX 3386e input pin’s and you’re done:



LA CUCARACHA NEGRA PCB

Craddle RX pin 3:
output (rs232) MAX 3386e pin 13, input (TTL) MAX 3386e pin 10 <- connect here

Craddle TX pin 5:
output (rs232) MAX 3386e pin 17, input (TTL) MAX 3386e pin 17 <- connect here
The pins you had to connect to your OpenWRT router are marked in the pic above (ttl rx and ttl tx).


The final result look like this:





I use Pocketterm as Terminal editor, other terminal editor tools crash from time to time, I assume this is because of the missing connections (CTS / DTR), even with disabled flow control.

Comments, question -> michu at neophob dot com

 

Posted by michu

Defined tags for this entry: , ,
Jun 14
OpenWRT I want to connect my Asus WL500 Premium with the serial console. On the ASUS mainboard are UART connectors, RX, TX and GND. But the voltage level of those signals is 0..3,3v where RS232 use -12v..12v. If you would connect those ports together you would blew your ASUS mainboard. Fortunately most cell phone cables use TTL signal’s, the “cable” convert it to rs232 level (or Serial2USB level, as those cable uses an USB connector).

So I bought a cheap cell phone cable at Ebay, it was a data cable for a Nokia phone, CA-42 (or DKU-5). The pinout I found here.

Pin 6: FBus Rx/USB D+
Pin 7: FBus Tx/USB D-
Pin 8: GND –
be sure to use data GND and not charger GND!

 

Continue reading "TTL-to-Serial for dummies (OpenWRT Serial Console)"

Posted by michu

Defined tags for this entry: ,
May 11
OpenWRT Enable an usbkeyboard for OpenWRT


Insert those modules:

insmod /lib/modules/2.4.30/input.o
insmod /lib/modules/2.4.30/evdev.o
insmod /lib/modules/2.4.30/hid.o

Download HERE

To compile those modules yourself, you need to enable the following kernel option:

Input core support  --->
<M> Input core support
    < >   Keyboard support
    < >   Mouse support
    < >   Joystick support
    <M>   Event interface support
    < >   User level driver support

USB support  ---> 
 --- USB Human Interface Devices (HID)
        <M>   USB Human Interface Device (full HID) support
        [*]     HID input layer support
        [*]     /dev/hiddev raw HID device support      

Info: I couldn't use the keyboard module (keybdev.o), when i inserted this module he complained about undefined references:

 unresolved symbol handle_scancode
unresolved symbol keyboard_tasklet
unresolved symbol kbd_ledfunc

I guess this is because the keyboard.o module doesn't exist.
 

Continue reading "OpenWRT MP3 player with keyboard and display"

Posted by michu

Defined tags for this entry: ,

(Page 1 of 2, totaling 13 entries)