|
How-to Kamikaze on WL-HDD
Systeme similaire au WL-HDD
chip Broadcom wifi
=Meshing the future=
Armin Medosh talks on Hivesware where WL-HDD plays a role... (eng) :
publication.nodel.org/Meshing-in-the-Future
=Installation Kamikaze 7.09=
*plug ethernet cable directly on ethernet port of the computer (not on hub/switch)
*boot in "failsafe" mode : keep pushed the reset buton few (~2) seconds after start : the "pwr" led blink at 1Hz
on linux :
$~: tftp 192.168.1.220
tftp> binary
mode binary on
tftp> trace
mode trace on
tftp> trace
mode trace off
tftp> get ASUSSPACELINK\x01\x01\xa8\xc0 /dev/null
tftp> put openwrt-xxx-x.x-xxx.trx ASUSSPACELINK
transfert executed in 1.83sec
tftp> q
$~:
*after a few dozen of secondes, the machine restart
*first in telnet :
$~: telnet 192.168.1.1
*change root password
#~: passwd root
exit an pass in ssh
#~: exit
$~: ssh root@192.168.1.1
== special failsafe mode ==
In case something goes wrong when configuring, you can switch to a special failsafe mode
this mode permit you to access with 192.168.1.1 adress in telnet, mount the root partition and edit config file...
push fast and repeatedly the reset button when power on, the pwr led will blink fast (~4Hz)
acces on telnet, then mount_root
== system on HDD ==
forum.openwrt.org/viewtopic.php?id=11495
wiki.openwrt.org/OpenWrtDocs/KamikazeConfiguration/PackagesOnExternalMediaHowTo
ipkg install kmod-fs-ext3 fdisk kmod-ide-core e2fsprogs kmod-ide-pdc202xx swap-utils
=== format HDD : ===
Partition with fdisk:
fdisk /dev/ide/host0/bus0/target0/lun0/disc
fdisk:
m for help.
p for view partitions.
d for delete.
n for new.
Delete all existing partitions, if any. All data will be lost!!! create new partitons after deleting the old ones:
partitions:
part1 swap 128MB type82
part2 root -all the rest
Create swap: n -> p -> 1 -> 'return' -> 128M -> t -> 82
Create root: n -> p -> 2 -> 'return' -> 'return' -> t -> 2 -> 83
Save settings by pressing w and exit.
"fdisk -l" will show your partitions:
root@nobeer:/dev/ide/host0/bus0/target0/lun0# fdisk -l /dev/ide/host0/bus0/target0/lun0/disc
Disk /dev/ide/host0/bus0/target0/lun0/disc: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 1 128 1028128+ 82 Linux swap / Solaris
/dev/ide/host0/bus0/target0/lun0/part2 129 4864 38041920 83 Linux
Now you activate the swap:
root@nobeer:/# mkswap /dev/ide/host0/bus0/target0/lun0/part1
Setting up swapspace version 1, size = 1052798 kB
no label, UUID=59c076da-f2d5-411c-b2dc-67ccbf2d4fdb
root@nobeer:/# free
total used free shared buffers
Mem: 14304 11248 3056 0 996
Swap: 0 0 0
Total: 14304 11248 3056
root@nobeer:/# mkswap /dev/ide/host0/bus0/target0/lun0/part1
Setting up swapspace version 1, size = 1052798 kB
no label, UUID=78a08545-b8e7-4d4a-8c93-e3c072936dab
root@nobeer:/# swapon /dev/ide/host0/bus0/target0/lun0/part1
root@nobeer:/# free
total used free shared buffers
Mem: 14304 11752 2552 0 996
Swap: 1028120 0 1028120
Total: 1042424 11752 1030672
[root@nobeer]$
Now you have enough free memory to format the rest of the HDD:
mke2fs -j /dev/ide/host0/bus0/target0/lun0/part2
this will take some time, depending on HDD size.
A remark for the newbies: The partition is ext3 formated. This is what you want!. You do NOT need Fat or NTFS to access your data.
=== config for system on HD ===
add a new config file in /etc/config
root@nobeer:/etc/config# vi bootfromhd
bootfromhd
option target '/mnt'
option device '/dev/ide/host0/bus0/target0/lun0/part2'
option modules 'ide-core pdc202xx_old ide-detect ide-disk jbd ext3'
option enabled '1'
Remove the old /sbin/init script, which is just a symbolic link to the Busybox binary.
root@nobeer:/# rm -f /sbin/init
Save (copy & paste) the new init script to /sbin/init
#!/bin/sh
. /etc/functions.sh
boot_dev="/dev/ide/host0/bus0/target0/lun0/part2"
for module in ide-core pdc202xx_old ide-detect ide-disk jbd ext3; do {
insmod $module
}; done
sleep 2s
mount -o rw "$boot_dev" /mnt
[ -x /mnt/sbin/init ] && {
. /bin/firstboot
pivot /mnt /mnt
}
mkswap /dev/ide/host0/bus0/target0/lun0/part1
swapon /dev/ide/host0/bus0/target0/lun0/part1
exec /bin/busybox init
Do not forget to set executable permissions on the script with:
root@nobeer:/# chmod a+x /sbin/init
=== copying root on HD ===
root@nobeer:/# mount -t ext3 -o rw /dev/ide/host0/bus0/target0/lun0/part2 /mnt
root@nobeer:/# mkdir -p /tmp/root
root@nobeer:/# mount -o bind /rom /tmp/root
root@nobeer:/# cp /tmp/root/* /mnt -a
root@nobeer:/# sync
root@nobeer:/# umount /tmp/root
root@nobeer:/# umount /mnt
Then reboot
== wireless configuration==
root@OpenWrt:~# cat /etc/config/network
#### VLAN configuration
config switch eth0
option vlan0 "1 2 3 4 5*"
option vlan1 "0 5"
#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
#### LAN configuration
config interface lan
# option type bridge
option ifname "eth1"
option proto static
option ipaddr 192.168.1.220
option netmask 255.255.255.0
#### WAN configuration
config interface wan
option ifname "wl0"
option proto static
option ipaddr 10.93.1.81
option netmask 255.255.255.0
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device wl0
option type broadcom
option channel 1
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1
config wifi-iface
option device wl0
# option network lan
option mode adhoc
option ssid bombolong
option encryption none
add routes and dns if no DHCP on the network
#~:route add default gw 192.168.1.xx
edit
#~: vi /etc/resolv.conf
and add :
nameserver 4.2.2.2
(or wathever nameserver that works for you)
==configuration olsrd.config==
(this part come from bulles.topgame.be/bubble/Kamikaze )
install olsrd
#ipkg update
#ipkg install olsrd olsrd-mod-bmf olsrd-mod-dot-draw olsrd-mod-dyn-gw olsrd-mod-httpinfo
olsrd-mod-nameservice
edit the config of olsrd
#vi /etc/olsrd.conf
DebugLevel 0
AllowNoInt yes
ClearScreen yes
UseHysteresis no
IpVersion 4
MprCoverage 7
TcRedundancy 2
LinkQualityFishEye 1
LinkQualityDijkstraLimit 0 9.0
LinkQualityLevel 2
LinkQualityWinSize 100
#
#
Interface "wl0"
{
}
if you like to activate the httpinfo, add following snippet to /etc/olsrd.conf
LoadPlugin "olsrd_httpinfo.so.0.1"
{
PlParam "Net" "192.168.0.0 255.255.255.0"
PlParam "Net" "192.168.1.0 255.255.255.0"
PlParam "Net" "192.168.2.0 255.255.255.0"
PlParam "Net" "192.168.10.0 255.255.255.0"
PlParam "Net" "192.168.90.0 255.255.255.0"
PlParam "Net" "172.16.0.0 255.255.255.0"
PlParam "Net" "10.0.0.0 255.0.0.0"
PlParam "port" "8080"
}
start olsrd daemon
#/etc/init.d/olsrd enable
disable firewall
#chmod -x /etc/init.d/firewall
create a new file for nat
#vi /etc/init.d/rcnat
and add the next line
iptables -t nat -A POSTROUTING -o ath0 -j MASQUERADE
make it executable
#chmod +x /etc/init.d/rcnat
create a symlink in etc/rc.d
#ln -s /etc/init.d/rcnat /etc/rc.d/S45rcnat
more about the firewall on : wiki.openwrt.org/OlsrMeshHowto
==links==
wiki.openwrt.org/OpenWrtDocs/KamikazeConfiguration
wiki.openwrt.org/OlsrMeshHowto
bulles.topgame.be/bubble/Kamikaze#olsr
downloads.openwrt.org/kamikaze/docs/openwrt.html
wiki.openwrt.org/OpenWrtDocs/Hardware/Asus/WL-HDD
wiki.openwrt.org/OpenWrtDocs/KamikazeConfiguration/PackagesOnExternalMediaHowTo
www.the-mesh.org/tiki-index.php?page=Asus%20WLHDD
www.macsat.com/macsat/content/category/3/14/30/
similaire : sur wl700g : wl700g.homelinux.net/drupal/?q=book/export/html/19
= webcam installation=
to be finalised further with packages links
= links : =
k0a1a.net/snappy/
www.macsat.com/macsat/content/view/36/30/
wiki.openwrt.org/webcam
wiki.openwrt.org/VideoSpca5xx
alpha.dyndns.org/ov511/cameras.html#webcams
tom.stoeveken.com/uvc_streamer.htm
forum.openwrt.org/viewtopic.php?id=11677 - qc-usb express webcam
www.fernsehsofa.de/olsr/ macosx olsr
= to Stop the DHCP server =
/etc/init.d/dnsmasq disable
|