OpenWRT
Hardware
Raspberry Pi 2 v1.2
OpenWRT does not list an official image for the Raspberry Pi 2 v1.2 board. Neither the Pi 3 or Pi 2 image works. This is because the Raspberry Pi 2 v1.2 board uses the bcm2710 SOC (same as the Pi 3) but both images don't properly handle the Pi 2 v1.2 board and as such, both versions fail to boot.
To get OpenWRT to work on this board, image the SD card with the bcm2710 image (the Pi 3 version) and then:
- Mount
/boot - Copy
bcm2710-rpi-3-b.dtbtobcm2709-rpi-2-b.dtb
A copy can be found at https://github.com/raspberrypi/firmware/raw/master/boot/bcm2710-rpi-3-b.dtb to bcm2709-rpi-2-b.dtb.
Buffalo WZR-600HP
Flashing OpenWRT from DD-WRT was very straight forward. There is an issue with getting USB working however.
Links:
- Installation: https://wiki.openwrt.org/toh/buffalo/wzr-600dhp#installation_using_the_remote_shell_method
- Firmware: https://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-18.06.1-ar71xx-generic-wzr-600dhp-squashfs-sysupgrade.bin
Flashing (on stock firmware):
# cd /tmp
# scp foo@host:~/openwrt-18.06.1-ar71xx-generic-wzr-600dhp-squashfs-sysupgrade.bin .
# mtd -r write openwrt-18.06.1-ar71xx-generic-wzr-600dhp-squashfs-sysupgrade.bin linux
## This may take about 1-2 minutes, and the -r will automatically reboot the device
USB Issues
USB support?
- opkg install kmod-usb-printer
- opkg install usbutils
- opkg install kmod-usb-ohci kmod-usb2
I am only seeing:
root@buffalo:/dev/bus/usb/001# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@buffalo:/dev# lsmod | grep usb
ledtrig_usbport 2160 0
nls_base 4736 1 usbcore
usb_common 1312 1 usbcore
usbcore 118528 4 usblp,ledtrig_usbport,ehci_platform,ehci_hcd
usblp 8480 0
root@buffalo:/dev# dmesg | grep -i usb
[ 6.651469] usbcore: registered new interface driver usbfs
[ 6.657039] usbcore: registered new interface driver hub
[ 6.662464] usbcore: registered new device driver usb
[ 6.671682] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.690631] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 6.727198] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 6.734199] hub 1-0:1.0: USB hub found
[ 12.263746] usbcore: registered new interface driver usblp
root@buffalo:~# uname -a
Linux buffalo 4.9.120 #0 Thu Aug 16 07:51:15 2018 mips GNU/Linux
There should be a device at /dev/usb/lp... but there isn't using OpenWRT 18.01. This definitely worked with the stock firmware. LEDE 17.01 was unable to detect any USB devices at all.
On the stock firmware...
root@DD-WRT:~# lsmod | grep usb
usblp 8996 0
usbcore 118161 4 usblp,ohci_hcd,ehci_hcd
usb_common 1146 1 usbcore
root@DD-WRT:~# lsusb
-sh: lsusb: not found
root@DD-WRT:~# uname -a
Linux DD-WRT 3.10.102 #28624 Thu Nov 30 14:01:34 CET 2017 mips DD-WRT
root@DD-WRT:~# dmesg | grep -i usb
<6>[ 552.770000] usbcore: registered new interface driver usbfs
<6>[ 552.780000] usbcore: registered new interface driver hub
<6>[ 552.790000] usbcore: registered new device driver usb
<6>[ 552.880000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<7>[ 552.880000] drivers/usb/host/ehci-ar71xx.c: starting AR7100 EHCI USB Controller...done. reset 0x40 usb config 0x30000
<6>[ 554.800000] ar71xx-ehci ar71xx-ehci.0: new USB bus registered, assigned bus number 1
<6>[ 554.850000] ar71xx-ehci ar71xx-ehci.0: USB 2.0 started, EHCI 1.00
<6>[ 554.850000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[ 554.860000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 554.870000] usb usb1: Product: Atheros AR71xx built-in EHCI controller
<6>[ 554.870000] usb usb1: Manufacturer: Linux 3.10.102 ehci_hcd
<6>[ 554.880000] usb usb1: SerialNumber: platform
<6>[ 554.880000] hub 1-0:1.0: USB hub found
<6>[ 555.100000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<7>[ 555.100000] drivers/usb/host/ohci-ar71xx.c: starting AR7100 OHCI USB Controller...
<6>[ 555.110000] ar71xx-ohci ar71xx-ohci.0: new USB bus registered, assigned bus number 2
<6>[ 555.180000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
<6>[ 555.190000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 555.190000] usb usb2: Product: Atheros AR71xx built-in OHCI controller
<6>[ 555.200000] usb usb2: Manufacturer: Linux 3.10.102 ohci_hcd
<6>[ 555.210000] usb usb2: SerialNumber: platform
<6>[ 555.210000] hub 2-0:1.0: USB hub found
<6>[ 555.500000] usbcore: registered new interface driver usblp
Reverting to Stock Firmware
# arp -s 192.168.11.1 02:aa:bb:cc:dd:20
## Type the following, but don't run the PUT command just yet.
## Power on the device. When the router's link light blinks on startup, press the enter key.
# tftp 192.168.11.1
tftp> binary
tftp> rexmt 1
tftp> timeout 60
tftp> trace
Packet tracing on.
tftp> put wzr600dhp-pro-v3.0-r30356.enc
## The transfer took about 33 seconds and the diagnostic light will blink rapidly initially, then followed by a slightly slower blink. It took another 5 or so minutes for it to come online afterwards.
## Clear the ARP table:
arp -d 192.168.11.1
The router will be accessible at 192.168.11.1 with the new stock firmware with the stock username/password 'admin' and 'password.