Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| ru:toh:d-link:dwl-2100ap [2015/10/19 17:08] – Links to media adjusted tmomas | ru:toh:d-link:dwl-2100ap [2018/02/11 17:02] – external edit | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== D-Link DWL-2100AP ====== | ||
| + | ===== Поддерживаемые версии ===== | ||
| + | ^ Версия/ | ||
| + | | - | A2 | - | - | [[https:// | ||
| + | | - | A3 | - | - | [[https:// | ||
| + | | - | A4 | - | - | [[https:// | ||
| + | | - | A5 | - | - | [[https:// | ||
| + | |||
| + | ===== Аппаратная основа ===== | ||
| + | ^ CPU ^ Ram ^ Flash ^ Network | ||
| + | | Atheros AR2313A @180MHz? | ||
| + | |||
| + | ===== Hardware ===== | ||
| + | ==== Info ==== | ||
| + | |||
| + | | **Architecture: | ||
| + | | **Vendor:** D-Link | | ||
| + | | **Bootloader: | ||
| + | | **Wireless System-On-Chip: | ||
| + | | **CPU Speed:** 180/240 MHz | | ||
| + | | **Flash-Chip: | ||
| + | | **Flash size:** 4 MiB | | ||
| + | | **RAM:** 16 MiB | | ||
| + | | **Wireless: | ||
| + | | **Ethernet: | ||
| + | | **USB:** No | | ||
| + | | **Serial:** [[: | ||
| + | | **JTAG:** [[doc: | ||
| + | |||
| + | Плата устройства используется также в точке доступа Alpha Networks WAP-D19. | ||
| + | |||
| + | DWL-2100 A5 использует две антенны: | ||
| + | |||
| + | ==== Opening the case ==== | ||
| + | **Note:** This will void your warranty! | ||
| + | |||
| + | *To remove the cover losen the two screws in the bottom cover and carefully lift the top cover at the back and move it towards the front (three clamps there). | ||
| + | *There are two screws holding the PCB to the bottom cover. | ||
| + | |||
| + | //Main PCB of revision A1, A2 and A3//\\ | ||
| + | {{: | ||
| + | |||
| + | //Main PCB H/W Ver. A4, A5//\\ | ||
| + | {{: | ||
| + | |||
| + | ==== Serial ==== | ||
| + | |||
| + | -> [[doc: | ||
| + | |||
| + | Serial console represent hardware interface between router onboard serial port and PC. It is ussually used to see bootprocess and interact boot loader. This is possible only if opening the case and attaching a TTL line converter cable. Then you can stop the boot process by sending '' | ||
| + | |||
| + | | {{: | ||
| + | |||
| + | === Rev. A2, A3 === | ||
| + | |||
| + | JTAG: J5 | ||
| + | |||
| + | Двенадцатиконтактный нераспаяный разъём JP1 - последовательный порт. Его цоколёвка такая же, как в [[oldwiki: | ||
| + | |||
| + | < | ||
| + | | ||
| + | VCC - [] () - VCC | ||
| + | RX - () () | ||
| + | () () | ||
| + | () () | ||
| + | TX - () () | ||
| + | GND? - () () - GND? | ||
| + | </ | ||
| + | |||
| + | | ||
| + | |||
| + | В **Rev. A2** некоторые резисторы отсутствуют (R264, R273, R275), поэтому последовательный порт не работает. //Их можно просто закоротить припоем и порт будет работать. Это не нужно в Rev. A3.//\\ | ||
| + | Проверьте напряжение на выводе " | ||
| + | |||
| + | //Solder bridges at R275, R273 and R264 for rev. A2// | ||
| + | |||
| + | {{: | ||
| + | |||
| + | === Rev. A4, A5 === | ||
| + | JTAG: J5\\ | ||
| + | Serial: JP2 (уровни TTL 3.3В) | ||
| + | |||
| + | ** JP2 ** | ||
| + | ^ -1- | _ ^ -2- ^ -3- ^ -4- ^ | ||
| + | ^ TX | _ ^ VCC ^ GND ^ RX ^ | ||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Installing ===== | ||
| + | |||
| + | The DWL-2100AP' | ||
| + | |||
| + | ==== Ramdisk Network Boot ==== | ||
| + | We can test OpenWrt without making any changes to flash. This way you can safely play with OpenWrt and preserve the original firmware in flash. If you backup the settings and config you made in OpenWrt and you need them later back, you can easily restore your saved backup. | ||
| + | | {{: | ||
| + | Wait for the bootup and press '' | ||
| + | < | ||
| + | $ae(1, | ||
| + | </ | ||
| + | where: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Original settings we get using command '' | ||
| + | < | ||
| + | ar531x rev 0x00005850 firmware startup... | ||
| + | SDRAM TEST...PASSED | ||
| + | |||
| + | |||
| + | |||
| + | WAP-G02A | ||
| + | --------------------------------------------------------- | ||
| + | Start ..Boot.B12.. | ||
| + | |||
| + | theros AR5001AP default version 3.0.0.43A | ||
| + | |||
| + | |||
| + | 1 | ||
| + | [Boot]: ? | ||
| + | |||
| + | ? | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | n netif - print network interface device address | ||
| + | | ||
| + | | ||
| + | boot device: tffs=drive, | ||
| + | Boot flags: | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | 0x100 - use proxy arp | ||
| + | |||
| + | available boot devices: | ||
| + | ae1 tffs | ||
| + | [Boot]: p | ||
| + | |||
| + | boot device | ||
| + | unit number | ||
| + | processor number | ||
| + | file name : /fl/APIMG1 | ||
| + | inet on ethernet (e) : 192.168.1.20: | ||
| + | flags (f) : 0x0 | ||
| + | other (o) : ae | ||
| + | </ | ||
| + | |||
| + | Changed settings (use command '' | ||
| + | < | ||
| + | [Boot]: p | ||
| + | |||
| + | boot device | ||
| + | unit number | ||
| + | processor number | ||
| + | host name : hai | ||
| + | file name : openwrt-atheros-vmlinux.elf | ||
| + | inet on ethernet (e) : 192.168.1.20: | ||
| + | host inet (h) : 192.168.1.254 | ||
| + | flags (f) : 0x80 | ||
| + | other (o) : ae | ||
| + | </ | ||
| + | |||
| + | ====Bootloader replacement==== | ||
| + | By replacing the stock loader with modified Redboot we can install OpenWrt permanently. Replacing the loader is tricky because you need to get a version tailored for your device (correct hw. revision and flash type) - see in the forum and below! Here is a [[https:// | ||
| + | |||
| + | ^ Vendor ^ Type ^ Loader ^ | ||
| + | | AMD | AM29LV320DB | [[http:// | ||
| + | | Atmel | AT49BV322A | [[http:// | ||
| + | | Spansion | S29AL032D | [[http:// | ||
| + | | Spansion | S29GL032D | [[http:// | ||
| + | | Spansion | S29GL032M | [[http:// | ||
| + | | Macronix | MX29LV320D | [[http:// | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | ===Install RedBoot using serial console=== | ||
| + | This is a experimental way to flash using only serial interface. RAM version of custom build RedBoot loader is needed from wich we can burn the permanent ROM version. | ||
| + | |||
| + | | {{: | ||
| + | |||
| + | * Plug the AP and press ESC until you are prompted to [boot] in terminal window. | ||
| + | * Send '' | ||
| + | < | ||
| + | boot device | ||
| + | unit number | ||
| + | processor number | ||
| + | file name : redboot.img | ||
| + | inet on ethernet (e) : 192.168.1.20: | ||
| + | host inet (h) : 192.168.1.254 | ||
| + | gateway inet (g) : | ||
| + | flags (f) : 0x80 | ||
| + | other (o) : ae | ||
| + | </ | ||
| + | |||
| + | * Reboot AP, redboot RAM version have to load, | ||
| + | * Install redboot into ROM with next commands: | ||
| + | < | ||
| + | fis init -f | ||
| + | load -r -b %{FREEMEMLO} redboot.bin -h 192.168.1.254 -m tftp | ||
| + | fis create RedBoot | ||
| + | reset | ||
| + | </ | ||
| + | * After AP reboot, redboot ROM version have to load and we are ready to install OpenWRT. | ||
| + | |||
| + | === Install RedBoot - jtag method === | ||
| + | The safest way to change the boot loader is by using both j-tag and serial interface. If something gets borked, you can re-install the original firmware. | ||
| + | |||
| + | Connect JTAG cable, run urjtag | ||
| + | < | ||
| + | jtag> cable WIGGLER PPDEV / | ||
| + | jtag> cable WIGGLER parallel 0x378 #this is for Windows world | ||
| + | jtag> detect | ||
| + | jtag> include atheros/ | ||
| + | jtag> poke 0x58400000 0x000e3ce1 | ||
| + | jtag> detectflash 0x1fc00000 | ||
| + | jtag> flashmem 0x1fc00000 {path to file}/ | ||
| + | </ | ||
| + | |||
| + | ==== Install OpenWRT ==== | ||
| + | |{{: | ||
| + | |||
| + | | {{: | ||
| + | |||
| + | Next step is set loader environment up: | ||
| + | < | ||
| + | fconfig boot_script true | ||
| + | fconfig boot_script_timeout 2 | ||
| + | fconfig | ||
| + | Run script at boot: true | ||
| + | Boot script: | ||
| + | .. | ||
| + | Enter script, terminate with empty line | ||
| + | >> fis load -l linux | ||
| + | >> go | ||
| + | >> | ||
| + | Boot script timeout (1000ms resolution): | ||
| + | Use BOOTP for network configuration: | ||
| + | Gateway IP address: 192.168.1.254 | ||
| + | Local IP address: 192.168.1.1 | ||
| + | Local IP address mask: 255.255.255.0 | ||
| + | Default server IP address: 192.168.1.254 | ||
| + | Console baud rate: 9600 | ||
| + | DNS server IP address: 192.168.1.254 | ||
| + | GDB connection port: 9000 | ||
| + | Force console for special debug messages: false | ||
| + | Network debug at boot time: false | ||
| + | Update RedBoot non-volatile configuration - continue (y/n)? y | ||
| + | reset | ||
| + | </ | ||
| + | |||
| + | After AP reboot and we are ready for OpenWRT install. // in this example ap is @192.168.1.1 & tftp server is @192.168.1.254// | ||
| + | < | ||
| + | fis init -f | ||
| + | load -r -b 0x80041000 openwrt-atheros-vmlinux.lzma | ||
| + | fis create -r 0x80041000 linux | ||
| + | load -r -b 0x80041000 openwrt-atheros-root.squashfs | ||
| + | fis create -r 0x80041000 -e 0x0 rootfs | ||
| + | reset | ||
| + | </ | ||
| + | |||
| + | ==== Recovery Board Config ==== | ||
| + | Connect JTAG cable, run urjtag | ||
| + | < | ||
| + | jtag> cable WIGGLER PPDEV / | ||
| + | jtag> detect | ||
| + | jtag> include atheros/ | ||
| + | jtag> poke 0x58400000 0x000e3ce1 | ||
| + | jtag> detectflash 0x1FFF0000 | ||
| + | jtag> flashmem 0x1FFF0000 {path to file}/ | ||
| + | </ | ||
| + | |||
| + | [[ftp:// | ||
| + | |||
| + | ===== JTAG ===== | ||
| + | {{http:// | ||
| + | |||
| + | [[oldwiki: | ||
| + | |||
| + | See [[doc: | ||
| + | |||
| + | ===== Other Info ===== | ||
| + | |||
| + | [[oldwiki: | ||
| + | |||
| + | ===== Тэги ===== | ||
| + | {{tag> | ||