Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
ru:toh:d-link:dwl-2100ap [2015/10/16 20:13] – Link changed from external to internal tmomasru:toh:d-link:dwl-2100ap [2018/02/11 17:02] – external edit
Line 1: Line 1:
 +====== D-Link DWL-2100AP ======
  
 +===== Поддерживаемые версии =====
 +^ Версия/Модель ^ H/W Ревизия ^ Дата запуска ^ S/N  ^ Поддержка версии OpenWrt ^ Спецификация модели  ^
 +| - | A2  | - | - | [[https://forum.openwrt.org/viewtopic.php?id=27470 | backfire-10.03.1-rc1]] & [[http://downloads.openwrt.org/snapshots/trunk/atheros/|trunk]] | - |
 +| - | A3  | - | - | [[https://forum.openwrt.org/viewtopic.php?id=27470 | backfire-10.03.1-rc1]] & [[http://downloads.openwrt.org/snapshots/trunk/atheros/|trunk]] | - |
 +| - | A4  | - | - | [[https://forum.openwrt.org/viewtopic.php?id=27470 | backfire-10.03.1-rc1]] & [[http://downloads.openwrt.org/snapshots/trunk/atheros/|trunk]] | - |
 +| - | A5  | - | - | [[https://forum.openwrt.org/viewtopic.php?id=27470 | backfire-10.03.1-rc1]] & [[http://downloads.openwrt.org/snapshots/trunk/atheros/|trunk]] | - |
 +
 +===== Аппаратная основа =====
 +^ CPU                        ^ Ram     ^ Flash   ^ Network   ^ USB   ^ Serial   ^ JTag   ^
 +| Atheros AR2313A @180MHz?   | 16MiB   | 4MiB    | 1         | No    | Yes      | Yes    |
 +
 +===== Hardware =====
 +==== Info ====
 +
 +| **Architecture:** MIPS 4Kc| 
 +| **Vendor:** D-Link | 
 +| **Bootloader:** (VxWorks) | 
 +| **Wireless System-On-Chip:** Atheros AR2313A | 
 +| **CPU Speed:** 180/240 MHz | 
 +| **Flash-Chip:** [[http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/23579c6.pdf|AMD AM29LV320DB]] (A2) / [[http://www.atmel.com/dyn/resources/prod_documents/doc3308.pdf|Atmel AT49BV322A]] (A2, A3) / [[http://www.spansion.com/Support/Datasheets/s29gl-m_00_b8_e.pdf|Spansion S29GL032M]] (A4) / [[http://datasheet.octopart.com/MX29LV320DBTI-70G-Macronix-datasheet-8325138.pdf|Macronix MX29LV320D]] (A5) | 
 +| **Flash size:** 4 MiB | 
 +| **RAM:** 16 MiB | 
 +| **Wireless:** Atheros AR2112A | 
 +| **Ethernet:** [[http://www.icplus.com.tw/pp-IP101.html|IC+ IP101]] (A2) / [[http://www.icplus.com.tw/pp-IP101A.html|IC+ IP101A]] (A2/A3/A4) |
 +| **USB:** No | 
 +| **Serial:** [[:toh:d-link/dwl-2100ap#serial|Yes]] 9600-8N1| 
 +| **JTAG:** [[doc:hardware:port.jtag|Yes]] |
 +
 +Плата устройства используется также в точке доступа Alpha Networks WAP-D19.
 +
 +DWL-2100 A5 использует две антенны: одна вытравлена у переднего края печатной платы справа от светодиода WLAN, вторая - внешняя. Они программно переключаются.
 +
 +==== 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//\\
 +{{:media:dlink:dwl-2100ap:dwl-2100ap_board.png?400|PCB with four modifications: three solder bridges and one soldering attempt at JP1 pin 2}}
 +
 +//Main PCB H/W Ver. A4, A5//\\
 +{{:media:dlink:dwl-2100ap:dwl-2100ap_a4_internal.jpg?400|No modification needed}}
 +
 +==== Serial ====
 +
 +-> [[doc:hardware:port.serial]].
 +
 +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 ''ESC'' on bootup until you get a boot prompt and change the bootloader enviroment settings.
 +
 +| {{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}} | The serial communication signals on the 2100AP are ranging from 0 to 3.3V. These **must not** be connected directly to a RS232 cable, which operates at much broader voltage range (-12 to +12V). An appropriate level coupler must be built for this purpose. There are many such circuits on the net, and the simplest ones might use a common MAX 3232 chip.|
 +
 +=== Rev. A2, A3 ===
 +
 +JTAG: J5
 +
 +Двенадцатиконтактный нераспаяный разъём JP1 - последовательный порт. Его цоколёвка такая же, как в [[oldwiki:openwrtdocs:hardware:netgear:wpn824|Netgear WPN824]] (собранный также, как и DWL-2100, на AR2313) и  [[oldwiki:openwrtdocs:hardware:netgear:wgt624|Netgear WGT624]] (на AR231**2**).
 +
 +<code>
 +          JP1
 + VCC - [] () - VCC
 +  RX - () ()
 +       () ()
 +       () ()
 +  TX - () ()
 +GND? - () () - GND?
 +</code>
 +
 + Внимание! VCC - +3.3 Вольта, такие же и уровни сигналов TX и RX.
 +
 +В **Rev. A2** некоторые резисторы отсутствуют (R264, R273, R275), поэтому последовательный порт не работает. //Их можно просто закоротить припоем и порт будет работать. Это не нужно в Rev. A3.//\\
 +Проверьте напряжение на выводе "земли" разъёма JP1. Если "земли" там нет, возьмите "землю" с клеммы 2 порта J5. (Также для Rev. A2.)
 +
 +//Solder bridges at R275, R273 and R264 for rev. A2//
 +
 +{{:media:dlink:dwl-2100ap:dwl-2100ap_serial_a2.png?300|Solder bridges on rev. A2}}
 +
 +=== Rev. A4, A5 ===
 +JTAG: J5\\
 +Serial: JP2 (уровни TTL 3.3В)
 +
 +** JP2 **
 +^ -1-   | _   ^ -2-   ^ -3-   ^ -4-   ^
 +^ TX    | _   ^ VCC   ^ GND   ^ RX    ^
 +{{:media:dlink:dwl-2100ap:dwl-2100ap_serial.gif?300|}}
 +
 +{{:media:dlink:dwl-2100ap:dwl-2100ap_a4_serial_and_jtag.jpg?200|JTAG-J5;Serial-JP2}}
 +
 +===== Installing =====
 +
 +The DWL-2100AP's firmware is [[http://www.windriver.com/products/vxworks/|VxWorks]] rtos with its own boot loader. Factory boot loader can load via TFTP and execute a MIPS elf executable. MIPS elf executable can be a OpenWrt ramdisk or modified bootloader.
 +
 +==== 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.
 +| {{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}} | You need a tftp server with [[http://downloads.openwrt.org/backfire/10.03.1-rc6/atheros/openwrt-atheros-vmlinux.elf|openwrt-atheros-vmlinux.elf]] boot image in it's root folder.|
 +Wait for the bootup and press ''ESC'' until you get a boot prompt.
 +<code>
 +$ae(1,0)hai:openwrt-atheros-vmlinux.elf h=192.168.1.254 e=192.168.1.20:0xffffff00 f=0x80
 +</code>
 +where: 
 +  * ''hai'' is the hostname of the computer running tftp (not needed to be correct)
 +  * ''h='' sets the host computer ip adress
 +  * ''e='' sets the network adress and mask of the ap
 +  * ''f='' sets the flags to tftp boot and run
 +
 +Original settings we get using command ''p'' to print settings):
 +<code>
 +ar531x rev 0x00005850 firmware startup...
 +SDRAM TEST...PASSED
 +
 +
 +
 +  WAP-G02A  Boot Procedure                       V1.0
 +---------------------------------------------------------
 +  Start ..Boot.B12..
 +
 +theros AR5001AP default version 3.0.0.43A
 +
 +
 + 1
 +[Boot]: ?
 +
 + ?                     - print this list
 +                     - boot (load and go)
 +                     - print boot params
 +                     - change boot params
 +                     - print fatal exception
 +                     - print version
 +                     - change board data
 +                     - show board data
 + n netif               - print network interface device address
 + $dev(0,procnum)host:/file h=# e=# b=# g=# u=usr [pw=passwd] f=# 
 +                           tn=targetname s=script o=other 
 + boot device: tffs=drive,removable     file name: /tffs0/vxWorks 
 + Boot flags:           
 +   0x02  - load local system symbols 
 +   0x04  - don't autoboot 
 +   0x08  - quick autoboot (no countdown) 
 +   0x20  - disable login security 
 +   0x40  - use bootp to get boot parameters 
 +   0x80  - use tftp to get boot image 
 +   0x100 - use proxy arp 
 +
 +available boot devices:Enhanced Network Devices
 + ae1 tffs
 +[Boot]: p
 +
 +boot device          : tffs:
 +unit number          : 0 
 +processor number     : 0 
 +file name            : /fl/APIMG1
 +inet on ethernet (e) : 192.168.1.20:0xffffff00
 +flags (f)            : 0x0 
 +other (o)            : ae
 +</code>
 +
 +Changed settings (use command ''c'' to change settings):
 +<code>
 +[Boot]: p
 +
 +boot device          : ae
 +unit number          : 1 
 +processor number     : 0 
 +host name            : hai
 +file name            : openwrt-atheros-vmlinux.elf
 +inet on ethernet (e) : 192.168.1.20:0xffffff00
 +host inet (h)        : 192.168.1.254
 +flags (f)            : 0x80 
 +other (o)            : ae
 +</code>
 +
 +====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://forum.openwrt.org/viewtopic.php?id=6357&p=1|forum thread]] where RedBoot loader was discussed.
 +
 +^ Vendor ^ Type ^ Loader ^
 +| AMD | AM29LV320DB | [[http://rghost.net/22011231|Redboot]] |
 +| Atmel | AT49BV322A | [[http://rghost.ru/58414270|Redboot]] |
 +| Spansion | S29AL032D | [[http://rghost.net/22011231|Redboot]] |
 +| Spansion | S29GL032D | [[http://rghost.net/22011231|Redboot]] |
 +| Spansion | S29GL032M | [[http://rghost.ru/58414270|Redboot]] |
 +| Macronix | MX29LV320D | [[http://rghost.ru/58414270|Redboot]] |
 +
 +[[http://xoomer.virgilio.it/ramponis/Pages/flash.htm|Compiled RedBoot, need file "BootLoader Redboot con support Lzma (molto più veloce) per OpenWRT sul 2100AP"]]
 +
 +===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.
 +
 +| {{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}} | You need a TFTP server with both ''redboot.img'' (RAM version) and ''redboot.bin'' (ROM version) for your flash chip in it's root folder. |
 +
 +  * Plug the AP and press ESC until you are prompted to [boot] in terminal window.
 +  * Send ''p'' and write all lines from terminal output (to restore if needed), then with ''c'' change settings:
 +<code>
 +boot device          : ae1
 +unit number          : 0
 +processor number     : 0
 +file name            : redboot.img
 +inet on ethernet (e) : 192.168.1.20:ffffff00 //this is AP IP address
 +host inet (h)        : 192.168.1.254         //this is tftpd server IP address
 +gateway inet (g)     :
 +flags (f)            : 0x80
 +other (o)            : ae
 +</code>
 +
 +  * Reboot AP, redboot RAM version have to load,
 +  * Install redboot into ROM with next commands:
 +<code>
 +fis init -f
 +load -r -b %{FREEMEMLO} redboot.bin -h 192.168.1.254 -m tftp
 +fis create RedBoot
 +reset
 +</code>
 +  * 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
 +<code>
 +jtag> cable WIGGLER PPDEV /dev/parport0 #this is for linux
 +jtag> cable WIGGLER parallel 0x378 #this is for Windows world
 +jtag> detect
 +jtag> include atheros/ar2312/ar2312
 +jtag> poke 0x58400000 0x000e3ce1
 +jtag> detectflash 0x1fc00000
 +jtag> flashmem 0x1fc00000 {path to file}/redboot(lzma).bin
 +</code>
 +
 +==== Install OpenWRT ====
 +|{{:meta:icons:tango:dialog-information.png?nolink}}|DWL-2100AP is supported from Backfire [[http://downloads.openwrt.org/backfire/10.03.1-rc1/atheros/|10.03.1-rc1]] on. ***(Rev. A2 [[https://forum.openwrt.org/viewtopic.php?pid=122738#p122738|tested]]) and trunk branch is working out of the box too. |
 +
 +| {{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}} | You need a redboot loader for your flash chip installed and a TFTP server with ''openwrt-atheros-vmlinux.lzma'' (kernel) and ''openwrt-atheros-root.squashfs'' (root file system) in it's root folder. |
 +
 +Next step is set loader environment up:
 +<code>
 +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): 2
 +Use BOOTP for network configuration: false
 +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
 +</code>
 +
 +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//
 +<code>
 +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
 +</code>
 +
 +==== Recovery Board Config ====
 +Connect JTAG cable, run urjtag
 +<code>
 +jtag> cable WIGGLER PPDEV /dev/parport0
 +jtag> detect
 +jtag> include atheros/ar2312/ar2312
 +jtag> poke 0x58400000 0x000e3ce1
 +jtag> detectflash 0x1FFF0000
 +jtag> flashmem 0x1FFF0000 {path to file}/eeprom_dwl2100hw4_3FFF0000-3FFF0800.bin
 +</code>
 +
 +[[ftp://188.134.16.241/openwrt/DWL2100AP-A4/|Here]] is eeprom_dwl2100hw4_3FFF0000-3FFF0800.bin
 +
 +===== JTAG =====
 +{{http://www.lan23.ru/wifi/JTag/post-1-1224568532.gif}}
 +
 +[[oldwiki:openwrtdocs:hardware:d_link:dwl_2100ap#jtag|old Wiki page]]
 +
 +See [[doc:hardware:port.jtag]] for more JTAG details.
 +
 +===== Other Info =====
 +
 +[[oldwiki:openwrtdocs:hardware:d_link:dwl_2100ap|old Wiki page]]
 +
 +===== Тэги =====
 +{{tag>FastEthernet MIPS MIPS32}}
  • Last modified: 2019/05/30 09:03
  • by jalakas