Hi,
I'm trying to get a D-Link DAP2553 to work with OpenWRT. I think it has all the right qualifications: supported processor (AR9132), "familiar" wifi chip (Atheros 9106, we'll see if it works), serial connection with root (without password) after startup, u-boot, and there's even GPL sources for the (ancient, 2.6.something) kernel that D-Link runs normally.
However, I'm stuck right after the beginning. After flashing a rather random openwrt-ar71xx (I chose the DIR 615 C1 because it somewhat seems to resemble this one), U-boot complains " Check Image ...
imghdr magic:a14e7dec, not match with:20040220
Image has problem! ... "
Would anyone know what's going on here? Is this some sort of hacked up u-boot that does it's own magical testing, or am I just missing a crucial step in getting things to work?
The flash writing and boot sequence goes something like this:
ar7100> loady 0x81000000
## Ready for binary (ymodem) download to 0x81000000 at 115200 bps...
C## Total Size = 0x003c0018 = 3932184 Bytes
Control flag in image header: 0x00000001
Control flag in boot config: 0x00000001
Upload file OK!
ar7100> erase bf0a0000 +400000
Erase Flash from 0xbf0a0000 to 0xbf49ffff in Bank # 1 First 0x5 last 0x24
100%
Erased 32 sectors
ar7100> cp.b 0x80002000 0xbf0a0000 0x003c0018
Copy to Flash...
100%
done
ar7100> bootm 0xbf0a0000 0x80060000
---------1activeregion:1----------
Protect off BF040000 ... BF05FFFF
Un-Protecting sectors 2..2 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erase Flash from 0xbf040000 to 0xbf05ffff in Bank # 1 First 0x22
100%
Erased 1 sectors
Writing to Flash...
100%
done
Protecting sectors 2..2 in bank 1
Protected 1 sectors
---------2activeregion:1----------
env_relocate_dual_config[317] malloced ENV at 83fa4360, size()=4
----------dual gd->env_valid == 1----------
---------dual env flash---------
---------dual env flash 4---------
env_ptr_dual_config->data=83fa4371
env_ptr_dual_config->data=83f84019
---------after relocate_dual_config 3 activeregion:2----------
env_ptr_dual_config->data=83fa4364
env_ptr_dual_config->data=83f8400c
oldval==d
&env_data[ENV_SIZE]=83fa8360,env=83fa4364
len=10, env_data=3ffc
&env_data[ENV_SIZE]=83fa8360,env=83fa4364
=====env_ptr_dual_config->crc=84ed927a----ENV_SIZE=3ffc======
-------test dual_config CFG_ENV_SECT_SIZE 3-------
-------test dual_config CONFIG_INFERNO 4-------
=====env_ptr_dual_config->crc=84ed927a----ENV_SIZE=3ffc======
Protect off BFFA0000 ... BFFBFFFF
Un-Protecting sectors 125..125 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erase Flash from 0xbffa0000 to 0xbffbffff in Bank # 1 First 0x7d
100%
Erased 1 sectors
Writing to Flash...
100%
done
Protecting sectors 125..125 in bank 1
Protected 1 sectors
env_ptr_dual_config->data=83fa4371
env_ptr_dual_config->data=83f84019
---------4activeregion:2----------
## Booting image at bf0a0000 ...
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2013-03-23 16:54:11 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 957188 Bytes = 934.8 kB
Load Address: 80060000
Entry Point: 80060000
Uncompressing Kernel Image with LZMA ...
Check Image ...
imghdr magic:a14e7dec, not match with:20040220
Image has problem! ...
On a regular boot, the boot sequence says:
U-Boot 1.1.4 (May 20 2011 - 16:44:33)
ALPHA U-boot v2.00r009
DRAM:
sri
64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 227k for U-Boot at: 83fc4000
Reserving 256k for malloc() at: 83f84000
Reserving 44 Bytes for Board Info at: 83f83fd4
Reserving 36 Bytes for Global Data at: 83f83fb0
Reserving 128k for boot params() at: 83f63fb0
Stack Pointer at: 83f63f98
Now running in RAM - U-Boot at: 83fc4000
Name: AMD-SPANSION Flash id: 0x1227E, Size: 16777216 bytes.
Flash: 16 MB
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
: cfg1 0xf cfg2 0x7114
ATHRF1E: Port 0, Neg Success
ATHRF1E: unit 0 phy addr 0 ATHRF1E: reg0 1000
eth0: 00:05:0d:06:01:03
eth0 up
eth0
### main_loop entered: bootdelay=1
### main_loop: bootcmd="run runtime"
press 'q' to stop autoboot: 0
---------1activeregion:1----------
Protect off BF040000 ... BF05FFFF
Un-Protecting sectors 2..2 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erase Flash from 0xbf040000 to 0xbf05ffff in Bank # 1 First 0x2 last 0x2
^H^H^H^H^H 100%
Erased 1 sectors
Writing to Flash...
^H^H^H^H^H 100%
done
Protecting sectors 2..2 in bank 1
Protected 1 sectors
---------2activeregion:1----------
env_relocate_dual_config[317] malloced ENV at 83fa4360, size()=4
----------dual gd->env_valid == 1----------
---------dual env flash---------
---------dual env flash 4---------
env_ptr_dual_config->data=83fa4371
env_ptr_dual_config->data=83f84019
---------after relocate_dual_config 3 activeregion:2----------
env_ptr_dual_config->data=83fa4364
env_ptr_dual_config->data=83f8400c
oldval==d
&env_data[ENV_SIZE]=83fa8360,env=83fa4364
len=10, env_data=3ffc
&env_data[ENV_SIZE]=83fa8360,env=83fa4364
=====env_ptr_dual_config->crc=84ed927a----ENV_SIZE=3ffc======
-------test dual_config CFG_ENV_SECT_SIZE 3-------
-------test dual_config CONFIG_INFERNO 4-------
=====env_ptr_dual_config->crc=84ed927a----ENV_SIZE=3ffc======
Protect off BFFA0000 ... BFFBFFFF
Un-Protecting sectors 125..125 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erase Flash from 0xbffa0000 to 0xbffbffff in Bank # 1 First 0x7d last 0x7d
^H^H^H^H^H 100%
Erased 1 sectors
Writing to Flash...
^H^H^H^H^H 100%
done
Protecting sectors 125..125 in bank 1
Protected 1 sectors
env_ptr_dual_config->data=83fa4371
env_ptr_dual_config->data=83f84019
---------4activeregion:2----------
## Booting image at bf0a0000 ...
Image Name: 7zip Linux Kernel
Created: 1970-01-01 0:00:00 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: -1 Bytes = 4096 MB
Load Address: 80002000
Entry Point: 80002000
Uncompressing Kernel Image with LZMA ...
Check Image ...
Image OK!
OK
No initrd
## Transferring control to Linux (at address 80002000) ...
## Giving linux memsize in bytes, 67108864
Starting kernel ...
After which:
Linux version 2.6.15--LSDK-7.1.3.63 (release@J10) (gcc version 3.4.4) #2 Wed Sep 25 10:58:25 CST 2013
flash_size passed from bootloader = 16
CPU revision is: 00019374
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock0 rw mem=64m
Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 512 (order: 9, 8192 bytes)
Using 200.000 MHz high precision timer.
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 62220k/65536k available (1949k kernel code, 3256k reserved, 402k data, 124k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
calling simple_config callback..
SCSI subsystem initialized
AR7100 GPIOC major 0
squashfs: version 3.1 (2006/08/19) Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 65536K size 1024 blocksize
ELBOX CFI physmap flash device: 1000000 at bf000000
FLASH ID: AMD-SPANSION SIZE: (16 MB)
AR9100 serial flash !!
ar9100-nor0: squashfs filesystem found at offset 0x00170000
Creating 10 MTD partitions on "ar9100-nor0":
0x001700c0-0x01000000 : "rootfs"
0x000a0000-0x00fc0000 : "upgrade"
0x00060000-0x00080000 : "rgdb"
0x00040000-0x00060000 : "bdcfg"
0x00080000-0x000a0000 : "langpack"
0x00fc0000-0x00fe0000 : "certificate"
0x00fe0000-0x01000000 : "radiocfg"
0x00000000-0x01000000 : "flash"
0x00000000-0x00040000 : "bootloader"
0x00040000-0x00060000 : "boot config"
FLASH ID: AMD-SPANSION SIZE: (16 MB)
u32 classifier
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
arp_tables: (C) 2002 David S. Miller
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
ar7100wdt_init: Registering WDT success
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 124k freed
init started: BusyBox v1.00 (2013.09.25-02:40+0000) multi-call binary
Starting pid 14, console /dev/tts/0: '/etc/init.d/rcS'
[/etc/init.d/S03config.sh]
Mounting proc and var ...
Inserting modules ...
Inserting Rebootm ...
Using /lib/modules/rebootm.ko
Rebootm loading ...
Inserting atheros ethernet ...
Using /lib/modules/ag7100_mod.ko
Inserting gpio ...
Using /lib/modules/gpio.ko
GPIO driver initialized.
done.
Start xmldb ...
[/etc/scripts/misc/profile.sh] get ...
[/etc/scripts/misc/defnodes.sh] ...
[/etc/defnodes/S10setext.sh] ...
PHP [/etc/defnodes/S11setnodes.php] ...
PHP [/etc/defnodes/S12features.php] ...
PHP [/etc/defnodes/S13flashspeed.php] ...
PHP [/etc/defnodes/S20setnodes.php] ...
SQUASHFS error: Can't find a SQUASHFS superblock on mtdblock4
mount: Mounting /dev/mtdblock/4 on /www/locale/alt failed: Invalid argument
PHP [/etc/defnodes/S40brand.php] ...