Transcript
Revision 1.0
How to use OpenWRT on devolo dLAN® 200 AV USB extender
Building OpenWRT firmware for the dLAN® 200 AV USB Extender The first step using OpenWRT on the dLAN® 200 AV USB extender is to build an OpenWRT firmware image. This is described in detail here: http://wiki.OpenWRT.org/toh/devolo/dlanusb-extender.
Bringing OpenWRT firmware to the devolo dLAN® 200 AV USB Extender The next step is to bring the firmware image onto the dLAN® 200 AV USB extender. This is described in the following sections:
Change standard dLAN® 200 AV USB Extender firmware to OpenWRT firmware The firmware update process consists of three parts: a) Change original firmware into transition firmware b) Write OpenWRT bootable binary into flash (kernel and file system combined in one binary) c) Configuration of the OpenWRT device
Step 1: Change original firmware to transition firmware This firmware update replaces the original dLAN® 200 AV USB extender bootloader to support the new auto-update feature. Download the transition firmware pack here.
New bootloader
Attention: Update may take up to 10 minutes!
devolo AG . Charlottenburger Allee 60 . D-52068 Aachen . www.devolo.de Tel.: +49 (0)241-182 79 0 . Fax: +49 (0)241-182 79 999 .
[email protected] . HRB 8931 Amtsgericht Aachen Vorstandsvorsitzender: Heiko Harbers . Aufsichtsratsvorsitzender: Georg Wazinski
How to use OpenWRT on devolo dLAN® 200 AV USB extender Revision 1.0
Take a second powerline device with an Ethernet port like devolo dLAN® AV 200 mini Pair the powerline devices with each other; e.g. by push button pairing Connect the second powerline adapter with the Ethernet port of the computer Execute usbextmassupload.exe (transition firmware code "firmware_v100_2012-0709.dvl" must remain in same directory as usbextmassupload.exe) 5. Wait until you see the following message block: 1. 2. 3. 4.
UPLOADING : FLASHING : COMPLETED : 00:0B:3B:DB:39:50 FAILED : ALL DEVICES DONE, PLEASE REMOVE AND ATTACH NEXT BATCH OF DEVICES! THE UPDATE MAY TAKE UP TO 10 MINUTES!
6. Power cycle the dLAN 200 AV usb extender
Step 2: Write OpenWRT bootable binary (OpenWRT firmware) into flash (refers to transition firmware version: v100 - date: 2012-07-09)
Important: After updating to transition firmware v100 the USB Extender hardware only provides an autoupdate mechanism via USB pen drive. No further features are supported (no USB to IP translation etc.). Requirements: FAT32 formatted USB pen drive with one single partition (e.g. without secure partition) Pen drive volume label: autoupdate (lower case) Name of image: autoupdate_image (lower case) Max. image size: less than 7.5 MB Description of the process: At startup the new bootloader will always test if an USB pen drive is installed in the dLAN USB Extender USB port. If an USB pen drive is plugged, the system will check USB pen drives' volume label and the existence of a valid image. In the case that a valid image is found the auto-update process is started and will erase the old firmware including the old devolo configuration. Subsequently the new image will be stored in the flash and the bootloader try to load and start the new firmware.
Open WRT FW
devolo AG . Charlottenburger Allee 60 . D-52068 Aachen . www.devolo.de Tel.: +49 (0)241-182 79 0 . Fax: +49 (0)241-182 79 999 .
[email protected] . HRB 8931 Amtsgericht Aachen Vorstandsvorsitzender: Heiko Harbers . Aufsichtsratsvorsitzender: Georg Wazinski
How to use OpenWRT on devolo dLAN® 200 AV USB extender Revision 1.0
Hints: Power cycle the USB Extender before running the auto-update feature The USB LED will indicate the status of the update process. If the LED will not blink (for more than 30 seconds) the update process is finished, except the new firmware will use the USB LED. Some USB pen drives need an additional reset, this results in a longer period you have to wait for the update process. Known Issues: Sometimes it seems some USB pen drives cannot be used for the auto-update mechanism. This could be caused by a "wrong" partition table. If a neither Windows nor Linux formatted pen drive seems to work, double check the partition table using gparted. (It is available at http://gparted.sourceforge.net/ for Windows and Linux). Try to format the pen drive using gparted.
Step 3: Configuration of the OpenWRT device Connection 1. Take a second powerline device with Ethernet port like devolo dLAN® 200 AV mini and pair the dLAN® 200 AV USB extender (e.g. push button pairing). 2. Connect the second powerline adapter with the Ethernet port of the computer 3. Connect with a telnet tool e.g. Putty to the device (default IP address is 192.168.1.1). 4. You can edit the following configuration files with the editor VI.
New configuration
devolo AG . Charlottenburger Allee 60 . D-52068 Aachen . www.devolo.de Tel.: +49 (0)241-182 79 0 . Fax: +49 (0)241-182 79 999 .
[email protected] . HRB 8931 Amtsgericht Aachen Vorstandsvorsitzender: Heiko Harbers . Aufsichtsratsvorsitzender: Georg Wazinski
How to use OpenWRT on devolo dLAN® 200 AV USB extender Revision 1.0
Parameters to baptize Depending on the customer needs different parameters might be asked to be baptized. In general there are 5 parameters to be configured: IP address of Ethernet interface MAC address of Ethernet interface Device password Network password dLAN MAC address
Configuration of Ethernet parameters For all OpenWRT devices IP networking is configured using the file /etc/config/network and contains the following: config interface lan option ifname eth0 option proto static option ipaddr 192.168.1.1 option netmask 255.255.255.0
Here you can edit the IP address. If you want to change the MAC address you have to add the following line to the file: option macaddr
00:0B:3B:00:00:01
If you want to configure your device to instead obtain its IP address via DHCP, just replace the "static" protocol by "dhcp". You should then issue the following command for the settings to be applied: /etc/init.d/network restart
devolo AG . Charlottenburger Allee 60 . D-52068 Aachen . www.devolo.de Tel.: +49 (0)241-182 79 0 . Fax: +49 (0)241-182 79 999 .
[email protected] . HRB 8931 Amtsgericht Aachen Vorstandsvorsitzender: Heiko Harbers . Aufsichtsratsvorsitzender: Georg Wazinski
How to use OpenWRT on devolo dLAN® 200 AV USB extender Revision 1.0
Configuration of dLAN® parameters The file /etc/config/foot is responsible for configuring the PLC chip with initial parameters on startup. Default configuration: config foot option interface eth0 option media_type 2252 # continental europe #option media_type 2253 # UK option hpmac 00:11:22:33:44:72 option dpw "0000-1111-2222-3333"
Here you can change Device password (DPW or security ID) dLAN or Homeplug MAC address (hpmac) by editing and saving the parameter values in the file. Once the settings have been changed and saved, you will need to activate the new parameters. This can be done by either power cycling the device or using the following command: /etc/init.d/foot restart
The network password can be changed by using the following command: hpav_cfg -n
-a (Example: “hpav_cfg -n my_secret_password -a 00:11:22:33:44:72 eth0”)
Attention: After changing the network password you will lose connection!
devolo AG . Charlottenburger Allee 60 . D-52068 Aachen . www.devolo.de Tel.: +49 (0)241-182 79 0 . Fax: +49 (0)241-182 79 999 . [email protected] . HRB 8931 Amtsgericht Aachen Vorstandsvorsitzender: Heiko Harbers . Aufsichtsratsvorsitzender: Georg Wazinski