Posted: Wed Feb 09, 2011 21:10 Post subject: D-Link DAP-1353
Hi!
I have a D-link DAP-1353 that i would love to use dd-wrt on. The hardware is as follows:
CPU: Intel IXP420BC 420Mhz
Flash: Spansion 8MB S29JL064H70TF100
RAM: Mira 32MB 2x P2V28S40CTP
Switch: Realtek RTL8305SC 100Mbit (only 1 port installed, but the pcb seems to support all 5)
WLAN: Atheros AR5416-AC1A MiniPCI
[quote="Sash"]add serial and give us some console info[/quote]
It is a late reply but I found this thread and would be very happy to run dd-wrt on this nearly unsupported AP ! Thanks in advance. Here is console info:
---------------------------------
RedBoot(tm) bootstrap and debug environment [ROM]
AlphaNetworks release, version RH2.02.14(v014) - built 16:10:46, Aug 7 2007
Platform: DAP-1353 Development Platform (IXP420 ABC 400MHz) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
RAM: 0x00000000-0x02000000, [0x0002be00-0x01fd2000] available
FLASH: 0x50000000 - 0x50800000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abort
RedBoot> fload -l
Lzma decompressing...
Image loaded from 0x00208000-0x003e06f4
RedBoot> exec
fload success--do exec..
Using base address 0x00208000 and length 0x001d86f4
Linux version 2.6.13.2 (erick@march) (gcc version 3.4.5) #1 Thu Oct 25 15:15:16 CST 2007
CPU: XScale-IXP42x Family [690541d2] revision 2 (ARMv5TE)
Machine: AP71 Platform
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists
Kernel command line: console=ttyS1,115200 noinitrd ip=off root=/dev/mtdblock0 rw mem=32M@0x00000000
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 30396KB available (1499K code, 148K data, 312K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers enabled
dmabounce: registered device 0000:00:01.0 on pci bus
request IRQ for SWRESET GPIO 1 OK
NetWinder Floating Point Emulator V0.97 (double precision)
Squashfs 2.2-r2 (released 2005/09/08) (C) 2002-2005 Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Initializing Cryptographic API
HDLC line discipline: version $Revision: #1 $, maxframe=4096
N_HDLC line discipline registered.
IXP4xx Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: #1 $ 2 ports, IRQ sharing disabled
ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
io scheduler noop registered
io scheduler cfq registered
PPP generic driver version 2.4.2
NET: Registered protocol family 24
APAPPS physmap flash device: 800000 at 50000000
APAPPS physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
APAPPS physically mapped flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
APAPPS physically mapped flash: squashfs filesystem found at offset 1048576
Creating 6 MTD partitions on "APAPPS physically mapped flash":
0x00100020-0x003c7020 : "rootfs"
0x00050000-0x007e0000 : "upgrade"
0x007e0000-0x007f0000 : "rgdb"
0x00000000-0x00050000 : "RedBoot"
0x007f0000-0x00800000 : "Boot Config"
0x00000000-0x00800000 : "flash"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 312K
init started: BusyBox v1.00 (2007.10.25-07:15+0000) multi-call binary
Starting pid 14, console /dev/tts/1: '/etc/init.d/rcS'
[/etc/init.d/S03config.sh]
Mounting proc and var ...
Inserting modules ...
Using /lib/modules/ixp400.ko
ixp400: module license 'unspecified' taints kernel.
Using /lib/modules/ixp400_eth.ko
ixp400_eth: Initializing IXP400 NPE Ethernet driver software v. 1.4A
ixp400_eth: CPU clock speed (approx) = 399 MHz
[warning] Warning: the NPE A component you specified does not exist
ixp400_eth: ixp0 is using NPEB and the PHY at address 4
ixp400_eth: ixp1 is using NPEC and the PHY at address 0
ixp400_eth: Use default MAC address 00:02:b3:01:01:01 for port 0
ixp400_eth: Use default MAC address 00:02:b3:02:02:02 for port 1
Using /lib/modules/ixp42x_access.ko
AP71/IXP42X GPIO/MII/RESET accesss driver !
Watchdog enabled!!
Using /lib/modules/ifresetcnt.ko
Network interface reset count v1.0
Start xmldb ...
[/etc/scripts/misc/profile.sh] get ...
[/etc/scripts/misc/defnodes.sh] ...
PHP [/etc/defnodes/S10setnodes.php] ...
[/etc/defnodes/S10setnodes.sh] ...
PHP [/etc/defnodes/S20setnodes.php] ...
PHP [/etc/defnodes/S40brand.php] ...
[/etc/templates/timezone.sh] ...
[/etc/templates/logs.sh] ...
[/var/run/logs_run.sh] ...
Set gpio 2 to output mode!
[/etc/init.d/S03config.sh] done!
[/etc/init.d/S10system.sh]
start Layout ...
[/etc/scripts/layout.sh] ...
[/var/run/layout_start.sh] ...
Start bridge layout ...
device ixp0 entered promiscuous mode
br0: port 1(ixp0) entering learning state
br0: topology change detected, propagating
br0: port 1(ixp0) entering forwarding state
start LAN ...
[/etc/templates/lan.sh] ...
[/var/run/lan_start.sh] ...
Bridge mode selected, LAN is disabled !
start web server ...
[/etc/templates/webs.sh] ...
[/var/run/webs_start.sh] ...
Starting HTTPD ...
start fresetd ...
Set gpio 3 to output mode!
enable LAN ports ...
[/etc/scripts/enlan.sh] ...
start WLAN ...
[/etc/templates/wlan.sh] start ...
[/var/run/wlan_start.sh] ...
Start WLAN interface ath0 ...
Using /lib/modules/wlan.ko
wlan: 0.8.4.2 (Atheros/multi-bss)
Using /lib/modules/wlan_xauth.ko
Using /lib/modules/wlan_ccmp.ko
Using /lib/modules/wlan_tkip.ko
Using /lib/modules/wlan_wep.ko
Using /lib/modules/wlan_acl.ko
wlan: mac acl policy registered
Using /lib/modules/wlan_scan_ap.ko
Using /lib/modules/ath_dfs.ko
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
Using /lib/modules/ath_hal.ko
ath_hal: 0.9.14.25 (AR5416, DEBUG, REGOPS_FUNC)
Using /lib/modules/ath_rate_atheros.ko
ath_rate_atheros: Version 2.0.1
Copyright (c) 2001-2004 Atheros Communications, Inc, All Rights Reserved
Using /lib/modules/ath_pci.ko
ath_pci: 0.9.4.5 (Atheros/multi-bss)
PCI: enabling device 0000:00:01.0 (0340 -> 0342)
Chan Freq RegPwr HT CTL CTL_U CTL_L DFS
1 2412n 20 HT20 1 0 1 N
1 2412n 20 HT40 1 0 1 N
2 2417n 20 HT40 1 0 1 N
3 2422n 20 HT40 1 1 1 N
4 2427n 20 HT40 1 1 1 N
5 2432n 20 HT40 1 1 1 N
6 2437n 20 HT40 1 1 1 N
7 2442n 20 HT40 1 1 1 N
8 2447n 20 HT40 1 1 1 N
9 2452n 20 HT40 1 1 1 N
10 2457n 20 HT40 1 1 1 N
11 2462n 20 HT40 1 1 1 N
12 2467n 20 HT40 1 1 0 N
13 2472n 20 HT40 1 1 0 N
wifi0: 11ng rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11ng MCS: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
wifi0: mac 13.2 phy 8.1 radio 13.0
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5416 PCI: mem=0x48000000, irq=28 hw_base=0xc2820000
ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
TPC Enabled 1 1 0
ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
ath0
device ath0 entered promiscuous mode
Error for wireless request "Set Bit Rate" (8B20) :
SET failed on device ath0 ; Invalid argument.
never heard of command [ethlink]
commands:
\0x09addbr\0x09\0x09<bridge>\0x09\0x09add bridge
\0x09addif\0x09\0x09<bridge> <device>\0x09add interface to bridge
\0x09delbr\0x09\0x09<bridge>\0x09\0x09delete bridge
\0x09delif\0x09\0x09<bridge> <device>\0x09delete interface from bridge
\0x09show\0x09\0x09\0x09\0x09\0x09show a list of bridges
\0x09showmacs\0x09<bridge>\0x09\0x09show a list of mac addrs
\0x09showstp\0x09\0x09<bridge>\0x09\0x09show bridge stp info
\0x09setageing\0x09<bridge> <time>\0x09\0x09set ageing time
\0x09setbridgeprio\0x09<bridge> <prio>\0x09\0x09set bridge priority
\0x09setfd\0x09\0x09<bridge> <time>\0x09\0x09set bridge forward delay
\0x09setgcint\0x09<bridge> <time>\0x09\0x09set garbage collection interval
\0x09sethello\0x09<bridge> <time>\0x09\0x09set hello time
\0x09setmaxage\0x09<bridge> <time>\0x09\0x09set max message age
\0x09setpathcost\0x09<bridge> <port> <cost>\0x09set path cost
\0x09setportprio\0x09<bridge> <port> <prio>\0x09set port priority
\0x09stp\0x09\0x09<bridge> <state>\0x09turn stp on/off
\0x09showapoperatemode\0x09\0x09<bridge>\0x09\0x09show bridge ap_operate_mode info
\0x09apc\0x09\0x09<bridge> <state>\0x09turn apc on/off
\0x09apr\0x09\0x09<bridge> <state>\0x09turn apr on/off
\0x09showe_partition\0x09\0x09<bridge>\0x09\0x09show bridge e_partition info
\0x09e_partition\0x09\0x09<bridge> <state>\0x09turn e_partition on/off
\0x09showe_show_mat\0x09\0x09<bridge>\0x09\0x09show bridge show_mat info
\0x09show_mat\0x09\0x09<bridge> <state>\0x09turn show_mat on/off
\0x09showprimaryvid\0x09\0x09<bridge> \0x09 show_primary_vid
\0x09setprimaryvid\0x09\0x09<bridge> <vid>\0x09set primary vlan ID
\0x09showwtpstate\0x09\0x09<bridge> \0x09 show wtp state
\0x09setwtpstate\0x09\0x09<bridge> <state>\0x09set wtp state
\0x09showwtptcpport\0x09\0x09<bridge> \0x09 show wtp TCP port number
\0x09setwtptcpport\0x09\0x09<bridge> <tcp port>\0x09set wtp TCP port number
\0x09showwtpguestvlanid\0x09\0x09<bridge> \0x09 show wtp guest VLAN ID
\0x09setwtpguestvlanid\0x09\0x09<bridge> <vid>\0x09set wtp guest VLAN ID
\0x09showwtpacl\0x09\0x09<bridge> \0x09 show wtp ACL
\0x09setwtpaclmacadd\0x09\0x09<bridge> <mac>\0x09add wtp ACL MAC address
\0x09setwtpaclmacdel\0x09\0x09<bridge> <mac>\0x09del wtp ACL MAC address
\0x09setbwctrl\0x09<bridge> <port> <bdwh>\0x09set multicast bandwidth (kbps)
killall: hostapd: no process killed
Start hostapd ...
Configuration file: /var/run/hostapd.conf
ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
TPC Enabled 1 1 0
Force rf_pwd_icsyndiv to 2 on 2412 (0 2)
ALPHA:[Wireless]Initiate Wireless success
ath_newstate: Resetting VAP dfswait_run
ath_newstate: Resetting VAP dfswait_run
Force rf_pwd_icsyndiv to 2 on 2452 (0 2)
ar5416SetPowerPerRateTable() syn 2452 ctl 2452 ext 2452 is40 0
ath_chan_set: Changing to channel 2452, Flags 30080, PF 0
br0: port 2(ath0) entering learning state
br0: topology change detected, propagating
br0: port 2(ath0) entering forwarding state
incorrect number of arguments for command
br0: port 2(ath0) entering disabled state
...
...
--------------------------------------------------------
RedBoot> version
version
RedBoot(tm) bootstrap and debug environment [ROM]
AlphaNetworks release, version RH2.02.14(v014) - built 16:10:46, Aug 7 2007
Platform: DAP-1353 Development Platform (IXP420 ABC 400MHz) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
RAM: 0x00000000-0x02000000, [0x0002be00-0x01fd2000] available
FLASH: 0x50000000 - 0x50800000, 128 blocks of 0x00010000 bytes each.
--------------------------------------------------------
Unfortunately ...
RedBoot> fis list
fis list
*** invalid 'fis' command: unrecognized command
Usage:
fis erase -f <flash_addr> -l <length>
fis write -f <flash_addr> -b <mem_base> -l <image_length>
--------------------------------------------------------
This is supported in RedBoot. wow. But the output is poor.
RedBoot> lspci --v --n
lspci --v --n
0:21:0 Vendor[168c] Device[0023] Type[00] Class[028000]
--------------------------------------------------------
lspci is not part of OS.
--------------------------------------------------------
lsmod
Module Size Used by
ath_pci 115216 0 - Live 0xbf13b000
ath_rate_atheros 25540 1 ath_pci, Live 0xbf133000
ath_hal 162896 3 ath_pci,ath_rate_atheros, Live 0xbf10a000
ath_dfs 21708 1 ath_pci, Live 0xbf103000
wlan_scan_ap 6148 0 - Live 0xbf100000
wlan_acl 2208 1 - Live 0xbf0fe000
wlan_wep 4128 0 - Live 0xbf0fb000
wlan_tkip 9856 0 - Live 0xbf0f7000
wlan_ccmp 5664 1 - Live 0xbf0f4000
wlan_xauth 384 0 - Live 0xbf0f2000
wlan 178788 9 ath_pci,ath_rate_atheros,wlan_scan_ap,wlan_acl,wlan_wep,wlan_tkip,wlan_ccmp,wlan_xauth, Live 0xbf0c5000
ifresetcnt 708 0 - Live 0xbf0c3000
ixp42x_access 3220 0 - Live 0xbf0c1000
ixp400_eth 17480 0 - Live 0xbf0bb000
ixp400 759488 2 ixp42x_access,ixp400_eth, Live 0xbf000000
--------------------------------------------------------
It is not compiled there. I can try to compile it out of box, upload there and run but I am not sure if this is a real way how to win. RedBoot's lspci does not implement any parameters, seems so.
Look which binaries we have:
/sbin
ifconfig syslogd route lsmod httpd xgi
insmod modprobe rmmod klogd init atp
/usr/sbin
slinktype switch tlogs wlanconfig
athstats submit stats iwconfig
wlxmlpatch reboot snmpd time
wlanled iwpriv rgcfg sshd
wpa_supplicant fresetd rgbin scut
ntpclient stunnel pfile rgdb
openssl gethostip neaps psts
hostapd smtpclient login wan
xmldbc telnetd lldpd sys
diagnostic rstrcmp lld2d mfc
syslog rebootlog ctest cli
udhcpd watchdogd chnet
udhcpc xmldb brctl
/bin
busybox touch mkdir chmod kill date cat mv
umount sleep fgrep zcat gzip sed sh ls
gunzip mount false true grep pwd rm ln
uname mknod egrep ping echo msh ps cp
/usr/bin
basename logger killall test yes tr
bootloader ftpput dirname free cut [
uptime ftpget tftp expr wc
Maybe this output will help:
# cat /proc/pci
PCI devices found:
Bus 0, device 1, function 0:
Network controller: PCI device 168c:0023 (Atheros Communications, Inc.) (rev 1).
IRQ 28.
Master Capable. Latency=168.
Non-prefetchable 32 bit memory at 0x48000000 [0x4800ffff].