Bit of an update, after a lot of false starts (including u-boot TFTP which just doesnt seem to want to work) I have managed to get a initrd image (RAM only) booting with eth0 detected (not eth1) and I can now see the MTD, so not far off a basic flash image, although only one ethernet port, no wireless. I also have USB, WPS, and (green) WAN LED and (orange) power LEDs working.
To get the image to boot I had to use kermit over the serial console (!), first time I have used kermit since BBSing with my Commodore 64 about 20 years ago...
U-Boot 1.1.4 (Sep 21 2010 - 12:20:01)
AP101 (ar7242 - Virian) U-boot
DRAM:
sri
ar7240_ddr_initial_config(133): virian ddr1 init
#### TAP VALUE 1 = 0x2, 2 = 0x2 [0xffffffff: 0xffffffff]
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 235k for U-Boot at: 81fc4000
Reserving 192k for malloc() at: 81f94000
Reserving 44 Bytes for Board Info at: 81f93fd4
Reserving 36 Bytes for Global Data at: 81f93fb0
Reserving 128k for boot params() at: 81f73fb0
Stack Pointer at: 81f73f98
Now running in RAM - U-Boot at: 81fc4000
id read 0x100000ff
sector count = 128
Flash: 8 MB
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
Fetching MAC Address from 0x81fecb90
Fetching MAC Address from 0x81fecb90
: cfg1 0xf cfg2 0x7114
eth0: b8:a3:86:4e:7c:f2
eth0 up
: cfg1 0xf cfg2 0x7114
eth1: b8:a3:86:4e:7c:f2
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot: 0
ar7240> loadb
## Ready for binary (kermit) download to 0x81000000 at 115200 bps...
----------------------------------------------------
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/develop/openwrt/repos/openwrt/bin/ar71xx/) C-Kermit>send openwrt-ar71xx-generic-dir-632-a1-initramfs-uImage.bin
(/develop/openwrt/repos/openwrt/bin/ar71xx/) C-Kermit>c
Connecting to /dev/ttyUSB0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
## Total Size = 0x002a0d4c = 2755916 Bytes
## Start Addr = 0x81000000
ar7240> bootm 81000000
## Booting image at 81000000 ...
Image Name: MIPS OpenWrt Linux-3.8.6
Created: 2013-04-14 13:38:12 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2755852 Bytes = 2.6 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
[ 0.000000] Linux version 3.8.6 (andrew@atlantis3) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r36329) ) #3 Sun Apr 14 23:07:35 CST 2013
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x01ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x01ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=DIR-632-A1 console=ttyS0,115200 root=/dev/mtd3 mtdparts=ar7240-nor0:256k(u-boot)ro,64k(nvram),1984k(linux),5568k(rootfs),64k(MAC),192k(LP),64k(ART)ro,7488k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 27128k/32768k available (2192k kernel code, 5640k reserved, 587k data, 1952k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] NET: Registered protocol family 16
[ 0.100000] MIPS: machine is D-Link DIR-632 rev. A1
[ 0.100000] dir_632_a1_setup()
[ 0.130000] dir_632_a1_setup() register_mdio:
[ 0.140000] dir_632_a1_setup() register_eth:
[ 0.340000] ar71xx: invalid PHY interface mode for GE1
[ 0.340000] dir_632_a1_setup() register_m25p80:
[ 0.350000] dir_632_a1_setup() register_leds:
[ 0.350000] dir_632_a1_setup() pci_init:
[ 0.360000] registering PCI controller with io_map_base unset
[ 0.370000] bio: create slab <bio-0> at 0
[ 0.380000] PCI host bridge to bus 0000:00
[ 0.380000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.390000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.390000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.400000] pci 0000:00:00.0: fixup device configuration
[ 0.400000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[ 0.410000] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.410000] Switching to clocksource MIPS
[ 0.420000] NET: Registered protocol family 2
[ 0.420000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.430000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.440000] TCP: Hash tables configured (established 512 bind 512)
[ 0.440000] TCP: reno registered
[ 0.450000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.450000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.460000] NET: Registered protocol family 1
[ 3.750000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.750000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.770000] msgmni has been set to 52
[ 3.770000] io scheduler noop registered
[ 3.770000] io scheduler deadline registered (default)
[ 3.780000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 3.810000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 3.810000] console [ttyS0] enabled, bootconsole disabled
[ 3.810000] console [ttyS0] enabled, bootconsole disabled
[ 3.830000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[ 3.830000] m25p80 spi0.0: found mx25l6405d, expected m25p80
[ 3.840000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[ 3.860000] libphy: ag71xx_mdio: probed
[ 3.870000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII
[ 4.420000] ag71xx ag71xx.0 eth0: connected to PHY at ag71xx-mdio.0:00 [uid=00000000, driver=Generic PHY]
[ 4.430000] TCP: cubic registered
[ 4.440000] NET: Registered protocol family 17
[ 4.440000] 8021q: 802.1Q VLAN Support v1.8
[ 4.460000] Freeing unused kernel memory: 1952k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -
init started: BusyBox v1.19.4 (2013-04-13 16:51:22 CST)
[ 10.670000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[ 10.680000] Backport based on wireless-testing.git master-2013-02-22
[ 10.690000] compat.git: wireless-testing.git
[ 10.720000] cfg80211: Calling CRDA to update world regulatory domain
[ 10.720000] cfg80211: World regulatory domain updated:
[ 10.730000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 10.740000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 10.740000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 10.750000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 10.760000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 10.770000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 10.880000] usbcore: registered new interface driver usbfs
[ 10.880000] usbcore: registered new interface driver hub
[ 10.890000] usbcore: registered new device driver usb
[ 11.010000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 11.040000] ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xb0000000, irq=40
[ 11.050000] cfg80211: Calling CRDA for country: US
[ 11.050000] cfg80211: Regulatory domain changed to country: US
[ 11.060000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 11.070000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 11.070000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[ 11.080000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 11.090000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 11.100000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 11.110000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[ 11.160000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.300000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 11.320000] ehci-platform: EHCI generic platform driver
[ 11.340000] nf_conntrack version 0.5.0 (454 buckets, 1816 max)
[ 11.570000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Please press Enter to activate this console. sysinit: 1+0 records in
sysinit: 1+0 records out
sysinit: 1+0 records in
sysinit: 1+0 records out
sysinit: 1+0 records in
sysinit: 1+0 records out
[ 14.080000] device eth0 entered promiscuous mode
sysinit: 'radio0' is disabled
sysinit: 'radio0' is disabled
sysinit: 'radio0' is disabled
BusyBox v1.19.4 (2013-04-13 16:51:22 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
BARRIER BREAKER (Bleeding Edge, r36329)
-----------------------------------------------------
* 1/2 oz Galliano Pour all ingredients into
* 4 oz cold Coffee an irish coffee mug filled
* 1 1/2 oz Dark Rum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
-----------------------------------------------------
root@OpenWrt:/# lspci
00:00.0 Network controller: Atheros Communications Inc. AR9287 Wireless Network Adapter (PCI-Express) (rev 01)
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00010000 "spi0.0"
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 1A:64:1B:01:E5:A3
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 1A:64:1B:01:E5:A3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:4