90 ‐ Hardware ‐ Siemens AP3610 - freifunk-darmstadt/projects GitHub Wiki
Installation (Safe)
[!CAUTION] This is a FIXED version of the instructions from the original commit message. The final rewrite of the default
bootcmd
variable was missing there.
-
Download the OpenWrt initramfs-image. Place it into a TFTP server root directory and rename it to
1401A8C0.img
. Configure the TFTP server to listen at192.168.1.66/24
. -
Connect the TFTP server to the access point.
-
Connect to the serial console of the access point. Attach power and interrupt the boot procedure when prompted (bootdelay is 1 second).
-
Configure the U-Boot environment for booting OpenWrt from Ram and flash:
setenv boot_openwrt 'setenv bootargs; bootm 0xbf080000'
setenv ramboot_openwrt 'setenv serverip 192.168.1.66; tftpboot; bootm'
saveenv
-
Load OpenWrt into memory:
run ramboot_openwrt
Wait for the image to boot.
-
Transfer the OpenWrt sysupgrade image to the device. Write the image to flash using sysupgrade:
sysupgrade -n /path/to/openwrt-sysuograde.bin
Installation without initramfs detour
You can install Gluon or OpenWrt also without detouring the initramfs. The initramfs method is described in the original PR, as it is a bit safer to human error as the following method.
However, the following method is quicker for bulk installation.
1. Download and Prepare image
Put the sysupgrade image at a tftp server at 192.168.1.66/24
.
Name the file ap3610-sysupgrade.bin
.
2. Prepare Access-Point
Execute the following command on the U-Boot shell.
setenv boot_openwrt 'setenv bootargs; bootm 0xbf080000'; setenv bootcmd 'run boot_openwrt'
setenv ramboot_openwrt 'setenv serverip 192.168.1.66; tftpboot; bootm';
setenv flashwrite_openwrt 'setenv serverip 192.168.1.66; tftpboot 0x84000000 ap3610-sysupgrade.bin; erase 0xbf080000 +0xe00000; cp.b 0x84000000 0xbf080000 0xe00000'; saveenv
3. Flash OpenWrt / Gluon
run flashwrite_openwrt
This results in:
U-Boot 1.2.0.07 (Oct 9 2009 - 13:09:54)
Primary Image
DRAM: 128 MB
Flash: 16 MB
In: serial
Out: serial
Err: serial
Net: eth0
Hit any key to stop autoboot: 0
Boot-> setenv boot_openwrt 'setenv bootargs; bootm 0xbf080000'; setenv bootcmd 'run boot_openwrt'
Boot-> setenv ramboot_openwrt 'setenv serverip 192.168.1.66; tftpboot; bootm';
Boot-> setenv flashwrite_openwrt 'setenv serverip 192.168.1.66; tftpboot 0x84000000 ap3610-sysupgrade.bin; erase 0xbf080000 +0xe00000; cp.b 0x84000000 0xbf080000 0xe00000'; saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Un-Protected 1 sectors
Erasing Flash...Erasing Flash - 0xec0000 - 0xefffff
Erasing Sector: 0xec0000
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
Protected 1 sectors
Boot-> run flashwrite_openwrt
Using eth0 device
TFTP from server 192.168.1.66; our IP address is 192.168.1.20
Filename 'ap3610-sysupgrade.bin'.
Load address: 0x84000000
Loading: T T T T checksum bad
checksum bad
T T T T T T
Retry count exceeded; starting again
Using eth0 device
TFTP from server 192.168.1.66; our IP address is 192.168.1.20
Filename 'ap3610-sysupgrade.bin'.
Load address: 0x84000000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########
done
Bytes transferred = 6029621 (5c0135 hex)
Erasing Flash - 0x80000 - 0xe7ffff
Erasing Sector: 0x80000
Erasing Sector: 0xc0000
Erasing Sector: 0x100000
Erasing Sector: 0x140000
Erasing Sector: 0x180000
Erasing Sector: 0x1c0000
Erasing Sector: 0x200000
Erasing Sector: 0x240000
Erasing Sector: 0x280000
Erasing Sector: 0x2c0000
Erasing Sector: 0x300000
Erasing Sector: 0x340000
Erasing Sector: 0x380000
Erasing Sector: 0x3c0000
Erasing Sector: 0x400000
Erasing Sector: 0x440000
Erasing Sector: 0x480000
Erasing Sector: 0x4c0000
Erasing Sector: 0x500000
Erasing Sector: 0x540000
Erasing Sector: 0x580000
Erasing Sector: 0x5c0000
Erasing Sector: 0x600000
Erasing Sector: 0x640000
Erasing Sector: 0x680000
Erasing Sector: 0x6c0000
Erasing Sector: 0x700000
Erasing Sector: 0x740000
Erasing Sector: 0x780000
Erasing Sector: 0x7c0000
Erasing Sector: 0x800000
Erasing Sector: 0x840000
Erasing Sector: 0x880000
Erasing Sector: 0x8c0000
Erasing Sector: 0x900000
Erasing Sector: 0x940000
Erasing Sector: 0x980000
Erasing Sector: 0x9c0000
Erasing Sector: 0xa00000
Erasing Sector: 0xa40000
Erasing Sector: 0xa80000
Erasing Sector: 0xac0000
Erasing Sector: 0xb00000
Erasing Sector: 0xb40000
Erasing Sector: 0xb80000
Erasing Sector: 0xbc0000
Erasing Sector: 0xc00000
Erasing Sector: 0xc40000
Erasing Sector: 0xc80000
Erasing Sector: 0xcc0000
Erasing Sector: 0xd00000
Erasing Sector: 0xd40000
Erasing Sector: 0xd80000
Erasing Sector: 0xdc0000
Erasing Sector: 0xe00000
Erasing Sector: 0xe40000
Erased 56 sectors
Copy to Flash... done
Boot->
You can now reboot the AP either by power-cycling or entering reset
on the U-Boot CLI.
Autoinstallation
A Script for bulk.installation of the APs with initramfs method exists.
https://github.com/freifunk-darmstadt/ap3610-autoinstall
Installation an PoE Switch
Wenn Openwrt schon installiert
setenv flashwrite_openwrt 'setenv ipaddr 192.168.1.21; setenv serverip 192.168.1.1; ping 192.168.1.1; erase 0xbf080000 +0x10; tftpboot 0x84000000 ap3610-sysupgrade.bin; cp.b 0x84000000 0xbf080000 0xe00000'; saveenv; run flashwrite_openwrt; reset
setenv ipaddr 192.168.1.21; setenv serverip 192.168.1.1; ping 192.168.1.1; erase 0xbf080000 +0x10; ping 192.168.1.1
tftpboot 0x84000000 ap3610-sysupgrade.bin; erase 0xbf080000 +0xe00000; cp.b 0x84000000 0xbf080000 0xe00000; reset