Router Install
From FridaV
(Created page with '===Pick a firmware=== * vehicle/openwrt/kamikaze_8.09/openwrt-brcm47xx-squashfs.trx ===Install using TFTP=== To install OpenWrt using TFTP or the ASUS firmware restoration too...') |
(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 - linux 2.4, proprietary wifi driver | ||
===Install using TFTP=== | ===Install using TFTP=== | ||
* Unplug the router's power cord. | * Unplug the router's power cord. | ||
| - | * Confirm your PC is configured to | + | * Confirm your PC is configured to an address like 192.168.1.100 |
* Connect the router's LAN1 port directly to your PC. | * Connect the router's LAN1 port directly to your PC. | ||
* Push the black RESTORE button using a pen or such, and keep the button pushed down. | * Push the black RESTORE button using a pen or such, and keep the button pushed down. | ||
* When you see a slowly blinking power light, you are in diag mode. | * When you see a slowly blinking power light, you are in diag mode. | ||
* Now the router should accept an image via TFTP or via the ASUS firmware restoration tool. | * Now the router should accept an image via TFTP or via the ASUS firmware restoration tool. | ||
| + | |||
| + | Make sure you have atftp installed. | ||
In diag mode, the router takes address 192.168.1.1. It responds to ping, so you can confirm that it is in diag mode and ready for the tftp by using "ping 192.168.1.1". | In diag mode, the router takes address 192.168.1.1. It responds to ping, so you can confirm that it is in diag mode and ready for the tftp by using "ping 192.168.1.1". | ||
* Execute the TFTP commands below: | * Execute the TFTP commands below: | ||
| - | + | atftp 192.168.1.1 | |
| - | + | tftp> mode octet | |
| - | + | tftp> trace | |
| - | + | tftp> put openwrt-brcm47xx-squashfs.trx | |
* After the TFTP upload is complete, wait at least six minutes. The firmware is first loaded into the RAM, and then flashed. This process takes a little time, and to ensure that the router is not bricked you should wait six minutes. | * After the TFTP upload is complete, wait at least six minutes. The firmware is first loaded into the RAM, and then flashed. This process takes a little time, and to ensure that the router is not bricked you should wait six minutes. | ||
* 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. | + | * 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 === | ||
| - | + | ||
| - | + | ||
| + | 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 | ||
