THIS
PAGE IS "WORK IN PROGRESS" - USE AT YOUR OWN RISK
Some of the source files for this build are no longer available - you might try the Midge SVN
NEW! I have put up the files that can no longer be found (in fact the complete dl folder) and all the small files listed below at
http://cid-8a7b593a49903da5.skydrive.live.com/browse.aspx/linux see the readme
If you would like to donate, not to me , but to the Midge project go here
My "distro" was built from the files listed below - it works very well! - but you will need your own tool chain to change the ttyS0/1 baud rates - (but most things only need an ipackage)
How
to make and modify the Midge firmware in order to: 1) boot from a usb memory stick or hard disk 2) have a second serial port working at 9600 (or any) bps 3) suppress "terminal chatter" on ttyS0 (you still see the boot sequence) 4) have 19 LED lines as inputs or outputs 5 ) have a tool chain on your Linux PC that may be used to develop C programs for your router. |
These notes are
based on the tutorial of IJs posted at The baud rates of
the serial ports may be changed in file serial.c
before compile. |
A.
Create a folder "graham" (or what you like) in /home |
in
the GUI window drag kamikaze-200602050443.tar.bz2
(or (in the GUI) right click - extract here) cd /home/graham/kamikaze-200602050443/trunk/openwrt |
C.
Replace serial.c with the one of the modified ones Copy the modified serial.c (for the baud rates you need) downloaded earlier into the directory build_mipsel/linux-2.4-adm5120/linux-2.4.32/arch/mips/am5120/§ For 19 led lines as outputs or inputs copy led.c and led.h to the same directory (new 5/2/07 from dl4huf) § |
D.
The rest must now be
done. In
drivers/net/adm5120sw.c replace In
the terminal window move to the kamikaze linux kernel directory You now have vmlinuz for testing in RAM and midge-ttyS1-96-firmware.bin for burning to flash now
upload the new firmware to your router |
E.
Make a root fs on a USB stick How to format a Linux 2fs USB memory stick and load the stick file sytem |
F.
Compile C programs on a Linux PC for the Sweex/Edimax You now have a toolchain that can be used to compile application programs written in C on the PC that may be transfered to run on the router. Where you would normally write gcc write instead - /home/graham/kamikaze-200602050443/trunk/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc |
G. On my Linux PC I created
a text file graham_hello.c containing /* ================================================= I put this into a directory /home/graham/test on the PC In a terminal window
I typed To compile the program for the Sweex I typed [root@localhost test]# /home/graham/kamikaze-200602050443/trunk/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc -o graham_hello graham_hello.c mipsel-linux-uclibc-gcc
is the equivalent of gcc on the Linux PC I copied the file
graham_hello that had appeared in the directory /home/graham/test In the Hyperterminal, connected to the Sweex RS232 port, I typed graham_hello after the midge# prompt, midge#
graham_hello |