Router Install

From FridaV

Jump to: navigation, search
(initial configuration (opkg install part))
 
===Pick a firmware===
===Pick a firmware===
-
* vehicle/openwrt/kamikaze_8.09/openwrt-brcm47xx-squashfs.trx
+
* vehicle/openwrt/kamikaze_8.09/openwrt-brcm47xx-squashfs.trx - linux 2.6, open source wifi driver
-
* vehicle/openwrt/kamikaze_8.09/openwrt-brcm-2.4-squashfs.trx
+
* vehicle/openwrt/kamikaze_8.09/openwrt-brcm-2.4-squashfs.trx - linux 2.4, proprietary wifi driver
===Install using TFTP===
===Install using TFTP===
* Execute the TFTP commands below:
* Execute the TFTP commands below:
-
  tftp 192.168.1.1
+
  atftp 192.168.1.1
-
  tftp> binary
+
  tftp> mode octet
  tftp> trace
  tftp> trace
  tftp> put openwrt-brcm47xx-squashfs.trx
  tftp> put openwrt-brcm47xx-squashfs.trx
* The router will reboot itself automatically after the upgrade is complete. Rebooting may take a while. It might be the case that the router does not reboot by itself; if this happens it should be safe to wait for the period mentioned and then to do a manual reboot (pull the power-cord).
* The router will reboot itself automatically after the upgrade is complete. Rebooting may take a while. It might be the case that the router does not reboot by itself; if this happens it should be safe to wait for the period mentioned and then to do a manual reboot (pull the power-cord).
* You are done! You should be able to telnet to your router (IP address: 192.168.1.1) and start configuring. First set a password for root so you can use ssh instead of telnet from now on.
* You are done! You should be able to telnet to your router (IP address: 192.168.1.1) and start configuring. First set a password for root so you can use ssh instead of telnet from now on.
 +
 +
telnet 192.168.1.1
 +
 +
passwd
NOTES:
NOTES:
=== Initial Configuration ===
=== Initial Configuration ===
-
IP: 10.11.12.1
 
-
Install packages:
+
 
-
  opkg install kmod-usb...
+
opkg update
 +
  opkg install kmod-usb-ehci kmod-usb-uhci kmod-usb-storage kmod-usb2 \
 +
  kmod-usb-serial-ftdi kmod-usb-serial-pl2303 kmod-fs-ext2 kmod-fs-ext3 \
 +
  rsync e2fsprogs curl usbutils \
 +
  kmod-b43 kmod-video-uvc kmod-usb2 uvc-streamer
 +
 
 +
 
 +
IP: 10.11.12.1
Add autoinet.sh
Add autoinet.sh
-
Prepare USB flash drive
+
Prepare USB flash drive with ext3
Make chroot
Make chroot
 +
 +
 +
=== Misc notes ===
 +
wlan0 - wifi
 +
eth0.1 - wan
 +
br-lan - lan 4 port switch
 +
eth0 - ?
 +
eth1 - ?
 +
eth0.0 - ?
 +
wmaster0 - ?
 +
 +
ifconfig wlan0 up
 +
 +
dhcp klient na wan
 +
dhcp server na lan
 +
 +
nastavit lan ip stevilke
 +
br-lan 10.11.12.1
 +
dhcp 10.11.12.100-199
 +
 +
dodat backports ipkg source - kje je za naso verzijo kamikaze?
 +
ne instalirat gpsd
 +
 +
iwconfig wlan0 power on   
 +
iwlist wlan0 scanning
 +
 +
ntpclient -h time.arnes.si
 +
 +
#manual connect:
 +
iwconfig wlan0 mode managed
 +
iwconfig wlan0 essid PIKSEL
 +
udhcpc -qn -i wlan0
 +
 +
chroot /mnt/usbdrive
 +
swapon /swap/16Mb
 +
mount -t proc none /proc
 +
mount -t devfs devfs /dev
 +
 +
#clock
 +
/usr/sbin/ntpclient -l -h fr.pool.ntp.org -c 1 -s
 +
 +
#arduino serial port device
 +
mknod /dev/arduino c 4 65
 +
 +
 +
=== openvpn ===
 +
 +
On laptop:
 +
 +
cd wlan
 +
scp -r * root@router:/etc/
 +
# register IP on http://wlan-lj.net
 +
# fix IP address in /etc/openvpn/wlanlj.conf
 +
 +
On router:
 +
 +
opkg install openvpn olsrd
 +
/etc/init.d/openvpn enable
 +
/etc/init.d/olsrd enable
 +
/etc/init.d/openvpn start
 +
/etc/init.d/olsrd start

Current revision as of 12:21, 3 April 2010

Personal tools
maps, graphs & data