User talk:Oxo
From DD-WRT Wiki
Revision as of 18:48, 21 September 2006 (edit) Oxo (Talk | contribs) m (→dd-wrt from source) ← Previous diff |
Current revision (13:04, 23 June 2007) (edit) (undo) PqkR4s (Talk | contribs) m |
||
(22 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
=Setup= | =Setup= | ||
- | * | + | * Between garden shed home and my oldest sons flat |
** WDS | ** WDS | ||
* 2 Asus Premium | * 2 Asus Premium | ||
+ | ** OpenWrt - rc5 | ||
** USB HD | ** USB HD | ||
* 1 Lynksys v5 - for sale, preferably swap for Asus Premium :) | * 1 Lynksys v5 - for sale, preferably swap for Asus Premium :) | ||
+ | ** dd-wrt v23 SP2 | ||
** JTAG cable | ** JTAG cable | ||
- | |||
- | Between garden shed home and my oldest sons flat | ||
=Basic alterations= | =Basic alterations= | ||
Line 21: | Line 21: | ||
Needed for ipkg and others (rw filesystem) | Needed for ipkg and others (rw filesystem) | ||
- | + | nvram set jffs_mounted=1 <br> | |
- | + | nvram set enable_jffs2=1 <br> | |
- | + | nvram set sys_enable_jffs2=1 <br> | |
- | + | nvram set clean_jffs2=1 <br> | |
- | + | nvram set sys_clean_jffs2=1 <br> | |
- | =/jffs/etc/config/*.startup= | + | nvram commit <br> |
+ | |||
+ | reboot | ||
+ | |||
+ | = dd-wrt specific= | ||
+ | ==/jffs/etc/config/*.startup== | ||
v23 starts executable files in /jffs/etc/config/*.startup | v23 starts executable files in /jffs/etc/config/*.startup | ||
- | ===/jffs/etc/config/S10modules.startup=== | + | ====/jffs/etc/config/S10modules.startup==== |
- | ipkg sometimes make modules.d files | + | ipkg sometimes make modules.d files: like for USB. So make the following to insmod these modules |
<pre> | <pre> | ||
#!/bin/sh | #!/bin/sh | ||
Line 38: | Line 43: | ||
</pre> | </pre> | ||
- | ===/jffs/etc/config/S90init.startup=== | + | ====/jffs/etc/config/S90init.startup==== |
ipkg sometimes make init.d files | ipkg sometimes make init.d files | ||
<pre> | <pre> | ||
Line 45: | Line 50: | ||
</pre> | </pre> | ||
- | =USB= | + | ==USB== |
- | ==USB Core== | + | ===USB Core=== |
Install the folowing modules for USB | Install the folowing modules for USB | ||
# | # | ||
Line 53: | Line 58: | ||
ipkg install kmod-usb2 | ipkg install kmod-usb2 | ||
- | ==USB HD== | + | ===USB HD=== |
Install the folowing modules for filesystems: | Install the folowing modules for filesystems: | ||
Line 61: | Line 66: | ||
ipkg install kmod-ext3 | ipkg install kmod-ext3 | ||
- | == Mounting == | + | === Mounting === |
Unfortunatly, dd-wrt doesn't seem to look for a /jffs/etc/fstab ( [http://www.tuxfiles.org/linuxhelp/fstab.html fstab referenceh] ) | Unfortunatly, dd-wrt doesn't seem to look for a /jffs/etc/fstab ( [http://www.tuxfiles.org/linuxhelp/fstab.html fstab referenceh] ) | ||
- | ===/jffs/etc/config/S30mount.startup=== | + | ====/jffs/etc/config/S30mount.startup==== |
#!/bin/sh | #!/bin/sh | ||
Line 77: | Line 82: | ||
fi | fi | ||
sleep 1 | sleep 1 | ||
- | i=$(expr $i | + | i=$(expr $i 1) |
done | done | ||
}</jffs/etc/fstab | }</jffs/etc/fstab | ||
- | ==USB Diverse== | + | ===USB Diverse=== |
In order to use a multislot card reader, you must add the following parameter to the scsi_mod in the file /jffs/etc/modules.d/60-usb-storage: | In order to use a multislot card reader, you must add the following parameter to the scsi_mod in the file /jffs/etc/modules.d/60-usb-storage: | ||
Line 88: | Line 93: | ||
(I don't know what this means but I put it in: I haven't tested it | (I don't know what this means but I put it in: I haven't tested it | ||
- | ==USB Printer== | + | ===USB Printer=== |
Suk! | Suk! | ||
- no /dev/usb/lp0 in the standard dd-wrt. | - no /dev/usb/lp0 in the standard dd-wrt. | ||
Line 102: | Line 107: | ||
=Serial/UART= | =Serial/UART= | ||
Waiting for the max3232 ... Circuit made and Diagram comming here | Waiting for the max3232 ... Circuit made and Diagram comming here | ||
+ | One should maybe install a serial board: helps with new firmware and maybe helps with not having to short pins (to be proven: don't know if it is true...) | ||
+ | Anyway, it's a nice feeling with a console cable. | ||
==MAXIM MAX3232== | ==MAXIM MAX3232== | ||
* [http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1068 Max3232: Maxim's level converter 2 * ttl-rs232 @ 3.5v] | * [http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1068 Max3232: Maxim's level converter 2 * ttl-rs232 @ 3.5v] | ||
Line 112: | Line 119: | ||
Solder points for ttl output: <br> | Solder points for ttl output: <br> | ||
http://www.dd-wrt.com/phpBB2/files/asus_ttl_111.jpg | http://www.dd-wrt.com/phpBB2/files/asus_ttl_111.jpg | ||
+ | The object here is to remove the solder in the holes and solder in a connector. | ||
+ | Go carefully. | ||
+ | |||
+ | ===Check Software=== | ||
+ | Ok, the connector is soldered on, so now we need to check software. | ||
+ | * start for example minicom and connect to ...UART2 | ||
+ | * check that there is no echo of characters | ||
+ | * connect UART2 tx to rx | ||
+ | * check that there IS echo of characters | ||
+ | * connect UART2 tx to UART1 rx and UART2 rx to UART1 tx | ||
+ | * try and connect to prompt... | ||
+ | |||
+ | ==The board== | ||
=Developement= | =Developement= | ||
Line 128: | Line 148: | ||
loose hair | loose hair | ||
- | http://www.dd-wrt.com/phpBB2/viewtopic.php?t=4778 newmedia missing: touch and chmod | + | http://www.dd-wrt.com/phpBB2/viewtopic.php?t=4778 newmedia missing: touch and chmod x |
Many "cannot execute binary file" compile again (only using development how to as help, not running scripts) | Many "cannot execute binary file" compile again (only using development how to as help, not running scripts) | ||
+ | |||
+ | Just found: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=2638 | ||
+ | * not v.23 sp2 | ||
+ | * wasn't able to apt-add uml-utilities | ||
+ | * BUT IT WORKS!!! | ||
+ | Now for v23 sp2 ... | ||
+ | |||
+ | http://www.dd-wrt.com/phpBB2/viewtopic.php?t=3668 | ||
+ | |||
+ | Never got it to compile: now using Open Wrt which compiled first time | ||
+ | |||
+ | ==OpenWRT== | ||
+ | |||
+ | I now use OpenWrt on ASUS due to printer support and the source code can compile first time... | ||
=Future ..= | =Future ..= | ||
Line 141: | Line 175: | ||
==Optware== | ==Optware== | ||
[[Optware]] | [[Optware]] | ||
- | ==OpenWRT== | ||
- | |||
- | Hmm, dd-wrt is so easy... | ||
- | |||
- | But I need /dev/usb/lpt0 so I'll try and make one with the source. Suk!- have to get a Linux running (probably Ubuntu on VMWare) | ||
- | |||
=A funny thing happened after I dd-wrt'ed my boxes= | =A funny thing happened after I dd-wrt'ed my boxes= | ||
Line 167: | Line 195: | ||
[http://www.dd-wrt.com/phpBB2/viewtopic.php?t=2507 Had to short pins in the end] | [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=2507 Had to short pins in the end] | ||
- | [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=3935 | + | [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=3935 |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Current revision
Contents |
[edit] Setup
- Between garden shed home and my oldest sons flat
- WDS
- 2 Asus Premium
- OpenWrt - rc5
- USB HD
- 1 Lynksys v5 - for sale, preferably swap for Asus Premium :)
- dd-wrt v23 SP2
- JTAG cable
[edit] Basic alterations
[edit] Asus 32MByte
mem ok with 32Mbyte (without the following, less memory)
nvram set sdram_init=0x0009 nvram set sdram_ncdl=0 nvram commit reboot
[edit] JFFS
Needed for ipkg and others (rw filesystem)
nvram set jffs_mounted=1
nvram set enable_jffs2=1
nvram set sys_enable_jffs2=1
nvram set clean_jffs2=1
nvram set sys_clean_jffs2=1
nvram commit
reboot
[edit] dd-wrt specific
[edit] /jffs/etc/config/*.startup
v23 starts executable files in /jffs/etc/config/*.startup
[edit] /jffs/etc/config/S10modules.startup
ipkg sometimes make modules.d files: like for USB. So make the following to insmod these modules
#!/bin/sh for module in $(cat /jffs/etc/modules.d/*);do /sbin/insmod /jffs/lib/modules/2.4.30/$module.o done
[edit] /jffs/etc/config/S90init.startup
ipkg sometimes make init.d files
#!/usr/bin/sh $(/jffs/etc/init.d/S* start)
[edit] USB
[edit] USB Core
Install the folowing modules for USB
# ipkg install kmod-usb-uhci // this is for USB 1.1 ipkg install kmod-usb-core ipkg install kmod-usb2
[edit] USB HD
Install the folowing modules for filesystems:
ipkg install kmod-usb-storage ipkg install kmod-vfat ipkg install kmod-ext2 ipkg install kmod-ext3
[edit] Mounting
Unfortunatly, dd-wrt doesn't seem to look for a /jffs/etc/fstab ( fstab referenceh )
[edit] /jffs/etc/config/S30mount.startup
#!/bin/sh { read MOUNT_DEVICE MOUNT_POINT FS DUMP FSK i=0 while [ $i -le 15 ];do if [ -e $MOUNT_DEVICE ];then mount $MOUNT_DEVICE $MOUNT_POINT break fi sleep 1 i=$(expr $i 1) done }</jffs/etc/fstab
[edit] USB Diverse
In order to use a multislot card reader, you must add the following parameter to the scsi_mod in the file /jffs/etc/modules.d/60-usb-storage:
scsi_mod max_scsi_luns=8
(I don't know what this means but I put it in: I haven't tested it
[edit] USB Printer
Suk! - no /dev/usb/lp0 in the standard dd-wrt.
One need's to mknode and it is not included..
Otherwise, if the /dev/usb/lp0 could be made (recompile or ..) the How-to for OpenWrt and printer would work
[edit] Download Master Functionality
Not yet started.
[edit] Serial/UART
Waiting for the max3232 ... Circuit made and Diagram comming here One should maybe install a serial board: helps with new firmware and maybe helps with not having to short pins (to be proven: don't know if it is true...) Anyway, it's a nice feeling with a console cable.
[edit] MAXIM MAX3232
http://www.dd-wrt.com/phpBB2/files/max3232_428.jpg
[edit] Hennings-Electronic: Sejs, Denmark
My friendly local electronics supplier
[edit] Asus
Solder points for ttl output:
http://www.dd-wrt.com/phpBB2/files/asus_ttl_111.jpg
The object here is to remove the solder in the holes and solder in a connector.
Go carefully.
[edit] Check Software
Ok, the connector is soldered on, so now we need to check software.
- start for example minicom and connect to ...UART2
- check that there is no echo of characters
- connect UART2 tx to rx
- check that there IS echo of characters
- connect UART2 tx to UART1 rx and UART2 rx to UART1 tx
- try and connect to prompt...
[edit] The board
[edit] Developement
[edit] Firmware Modification Kit
started
[edit] dd-wrt from source
My only chance for lp0???
Download Ubuntu and run in vmware
add-apts
collect sw
loose hair
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=4778 newmedia missing: touch and chmod x
Many "cannot execute binary file" compile again (only using development how to as help, not running scripts)
Just found: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=2638
- not v.23 sp2
- wasn't able to apt-add uml-utilities
- BUT IT WORKS!!!
Now for v23 sp2 ...
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=3668
Never got it to compile: now using Open Wrt which compiled first time
[edit] OpenWRT
I now use OpenWrt on ASUS due to printer support and the source code can compile first time...
[edit] Future ..
[edit] Bluetooth
"Cool": someone has hooked bluetooth to Asus...
- Nice with PBX sw and a bluetooth headset (how to ring out ...hmm)
- Internet access for Mobil...
- GPS
Playtime
[edit] Optware
[edit] A funny thing happened after I dd-wrt'ed my boxes
You have probably NOT bricked your router if you continually loose wireless to it while going thru the panels.
Every time I left a dd-wrt www interface panel, with ping router and using wireless, I "lost" contact with the router. Repair wireless solved the problem until I moved between panels again.
This has happened on both the routers.
Be patient.
Enable 32MByte memory.
The problem will go away.
(Needs more analysing)
[edit] Brick
After first dd-wrt attempt: none since Had to short pins in the end