Buffalo Airstation build support
Sean Bruno
sean_bruno at yahoo.com
Fri Sep 6 19:13:45 UTC 2013
http://people.freebsd.org/~sbruno/buffalo_airstation_support.txt
Implement support for Buffalo, "OpenWRT Friendly" Atheros Mips 24k board
in the wifi builder.
I'm still working on the kernconf, but the wifi builder support will
create and image called /tftpboot/wzr300hp-tftp.bin that is accepted by
the router when pushed in via tftp and uboot following the instructions
at:
http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300h#oem.installation.using.the.tftp.method
The kernel panics right now, and I'll follow up with a kernconf/hints
patch for review once I have fixed my initial crash and burn.BUFFALO
U-BOOT Ver 1.00
== CPU:400MHz, DDR:400MHz, AHB:200MHz ==
PB93 (ar7241 - Virian) U-boot
DRAM: 64 MB
WAN port disabling: done
Top of RAM usable for U-Boot at: 84000000
Reserving 267k for U-Boot at: 83fbc000
Reserving 192k for malloc() at: 83f8c000
Reserving 44 Bytes for Board Info at: 83f8bfd4
Reserving 36 Bytes for Global Data at: 83f8bfb0
Reserving 128k for boot params() at: 83f6bfb0
Stack Pointer at: 83f6bf98
Now running in RAM - U-Boot at: 83fbc000
flash bank #0 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256]
flash bank #1 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256]
Flash: 32 MB
In: serial
Out: serial
Err: serial
Memory Test
uboot use 83F6BFB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000 Writing... Reading...
Memory Test OK
### buf_ver=[1.00] U-Boot Ver.=[1.00]
### build_date(env)=[May 21 2012 - 06:39:59] build_date(bin)=[May 21
2012 - 06:39:59]
ag7240_enet_initialize...
Reading MAC Address from ENV(0x83f8c2f8)
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0x7 cfg2 0x7014
eth0: 02:aa:bb:cc:dd:1a
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATH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
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
tftp server done
Bytes transferred = 7154208 (6d2a20 hex)
Airstation Public header
Recv fw image [7154176] bytes, now writing...
flash-addr 0xBF060000 - 0xBF73FFFF
search sector 0xbf060000 - 0xbf73ffff
BANK #1 (6 : 115)
000 PPPP.Poooooooooooooooooooooooooo
032 oooooooooooooooooooooooooooooooo
064 oooooooooooooooooooooooooooooooo
096 oooooooooooooooooooo............
128 ................................
160 ................................
192 ................................
224 ................................
BANK #2 (-1 : -1)
000 ................................
032 ................................
064 ................................
096 ................................
128 ................................
160 ................................
192 ................................
224 ................................
First 0x6 last 0x73 sector size 0x10000
115
Erased 110 sectors
Copy to Flash...
Copy 7154176 byte to Flash...
write data: 81f00020 --> bf060000 (len:6d2a00)
done
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init
mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1152k at 384k(uImage),6592k at 1536k(rootfs),64k at 320k(ART),64k at 8128k(properties) mem=64M product_rev=1 UART=1
## Booting image at bf060000 ...
Image Name: FreeBSD
Created: 2013-09-05 14:01:16 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1084688 Bytes = 1 MB
Load Address: 80050000
Entry Point: 80050100
Verifying Checksum ... crc32_fw: bf060040 - bf168d4f (len:00108d10)
calc...
crc32_fw: range1 bf060040 - bf168d4f
OK
Uncompressing Kernel Image ... OK
Ethernet Disabled!
No initrd
## Transferring control to Linux (at address 80050100) ...
## Giving linux memsize in bytes, 67108864
Starting kernel ...
CPU platform: Atheros AR7242 rev 1
CPU Frequency=400 MHz
CPU DDR Frequency=400 MHz
CPU AHB Frequency=200 MHz
platform frequency: 400000000
CPU reference clock: 5 MHz
arguments:
a0 = 00000009
a1 = a3f6bfb0
a2 = a3f6c490
a3 = 00000020
Cmd line:argv is invalid
Environment:
envp is invalid
Cache info:
picache_stride = 4096
picache_loopcount = 16
pdcache_stride = 4096
pdcache_loopcount = 8
cpu0: MIPS Technologies processor v116.147
MMU: Standard TLB, 16 entries
L1 i-cache: 4 ways of 512 sets, 32 bytes per line
L1 d-cache: 4 ways of 256 sets, 32 bytes per line
Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
Config3=0x20
Physical memory chunk(s):
0x541000 - 0x3ffffff, 61599744 bytes (15039 pages)
Maxmem is 0x4000000
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-CURRENT #8 r255228:255230M: Thu Sep 5 07:00:03 PDT 2013
sbruno at powernoodle:/home/sbruno/bsd/obj/mipseb/mips.mips/home/sbruno/bsd/head/sys/WZR-300HP mips
gcc version 4.2.1 20070831 patched [FreeBSD]
WARNING: WITNESS option enabled, expect reduced performance.
MEMGUARD DEBUGGING ALLOCATOR INITIALIZED:
MEMGUARD map base: 0xc0800000
MEMGUARD map size: 104860 KBytes
Preloaded elf kernel "kernel" at 0x8053b484.
real memory = 67108864 (65536K bytes)
Physical memory chunk(s):
0x005d5000 - 0x03eb8fff, 59654144 bytes (14564 pages)
avail memory = 58933248 (56MB)
random device not loaded; using insecure entropy
random: <Software, Yarrow> initialized
mem: <memory>
null: <null device, zero device>
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" frequency 200000000 Hz quality 800
Event timer "MIPS32" frequency 200000000 Hz quality 800
apb0 at irq 4 on nexus0
uart0: <16550 or compatible> on apb0
uart0: console (115200,n,8,1)
uart0: fast interrupt
gpio0: <Atheros AR71XX GPIO driver> on apb0
gpio0: [GIANT-LOCKED]
gpio0: gpio pinmask=0x0
gpioc0: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
pcib0 at irq 0 on nexus0
pcib0: ar71xx_pci_attach: missing hint 'baseslot', default to
AR71XX_PCI_BASE_SLOT
Trap cause = 7 (bus error (load or store) - kernel mode)
[ thread pid 0 tid 100000 ]
Stopped atpanic: corrupt spinlock
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20130906/72f1e070/attachment.sig>
More information about the freebsd-embedded
mailing list