Skip to content

Instantly share code, notes, and snippets.

@josla972
Created August 5, 2018 07:49
Show Gist options
  • Save josla972/ee619a4aa9c112f547ac5bc88fc7e3a2 to your computer and use it in GitHub Desktop.
Save josla972/ee619a4aa9c112f547ac5bc88fc7e3a2 to your computer and use it in GitHub Desktop.
Boot WZR-HP_AG300H 2:nd attempt
BUFFALO U-BOOT Ver 1.01
== CPU:680MHz, DDR:340MHz, AHB:170MHz ==
AP96 (ar7100) U-boot 0.0.1
DRAM: 128 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 266k 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 [W25Q128BV, blk:0x10000, sectors:256]
flash bank #1 found 16 MB flash [W25Q128BV, 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 start(84000000) end(88000000) size(04000000)
Pattern 00000000 Writing... Reading...
Memory Test OK
### buf_ver=[1.01] U-Boot Ver.=[1.01]
### build_date(env)=[Jan 14 2011 - 05:47:09] build_date(bin)=[Jan 14 2011 - 05:47:09]
ag7100_enet_initialize...
Reading MAC Address from ENV(0x83f8c2f4)
Port 0, Neg Success
Port 1, Neg Success
Port 2, Neg Success
Port 3, Neg Success
eth0: Phy Specific Status=0010
eth0: Phy Specific Status=0010
eth0: Phy Specific Status=0010
eth0: Phy Specific Status=0010;��eth0: 02:aa:bb:cc:dd:20
eth0 up
Reading MAC Address from ENV(0x83f8c2f4)
Port 4, Neg Success
eth1: Phy Specific Status=0010
eth1: 02:aa:bb:cc:dd:21
eth1 up
eth0 02:AA:BB:CC:DD:20
, eth1 02:AA:BB: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ooooooooooooooooooooo
096 oooooooooooooooooooooooooooooooo
128 oooooooooooooooooooooooooooooooo
160 oooooooooooooooooooooooooooooooo
192 oooooooooooooooooooooooooooooooo
224 oooooooooooooooooooooooooooooooo
BANK #2 (0 : 255)
000 oooooooooooooooooooooooooooooooo
032 oooooooooooooooooooooooooooooooo
064 oooooooooooooooooooooooooooooooo
096 oooooooooooooooooooooooooooooooo
128 oooooooooooooooooooooooooooooooo
160 oooooooooooooooooooooooooooooooo
192 oooooooooooooooooooooooooooooooo
224 oooooooooooooooooooooooooooooooo
First 0x6 last 0xff sector size 0x10000
255
First 0x0 last 0xff sector size 0x10000
255
Erased 506 sectors
Copy to Flash...
Copy 9341440 byte to Flash(fw)...
write data: 84000200 --> bf060000 (len:8e8a00)
done
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64k@320k(ART),64k@8128k(properties),8192k@8192k(flash1),M
## Booting image at bf060000 ...
Image Name: FreeBSD Kernel Image
Created: 2018-08-03 10:44:58 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1700651 Bytes = 1.6 MB
Load Address: 80001120
Entry Point: 80001120
Verifying Checksum ... crc32_fw: bf060040 - bf1ff36a (len:0019f32b) calc...
crc32_fw: range1 bf060040 - bf1ff36a
OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001120) ...
## Giving linux memsize in bytes, 134217728
Starting kernel ...
CPU platform: Atheros AR7161 rev 2
CPU Frequency=680 MHz
CPU DDR Frequency=340 MHz
CPU AHB Frequency=170 MHz
platform frequency: 680 MHz
CPU reference clock: 40 MHz
CPU MDIO clock: 40 MHz
arguments:
a0 = ffffffff
a1 = 80520454
a2 = 00000100
a3 = 805c8100
Cmd line:
Environment:
envp is invalid
Cache info:
picache_stride = 4096
picache_loopcount = 16
pdcache_stride = 4096
pdcache_loopcount = 8
max line size = 32
cpu0: MIPS Technologies processor v116.147
MMU: Standard TLB, 16 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)
L1 i-cache: 4 ways of 512 sets, 32 bytes per line
L1 d-cache: 4 ways of 256 sets, 32 bytes per line
L2 cache: disabled
Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
Config2=0x80000000
Config3=0x20
Config7=0x0
Physical memory chunk(s):
0x602000 - 0x7ffffff, 127918080 bytes (31230 pages)
Maxmem is 0x8000000
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2018 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 12.0-CURRENT #0 1181fcf5315(AG300H): Fri Aug 3 19:44:26 JST 2018
root@freebsd-virtual:/usr/home/josef/ZRouter/obj/usr/home/josef/ZRouter/ZRouter/tmp/usr/home/josef/freebsd/mips.mips/sys/Buffalo_WZR-HP-AG300H mips
gcc version 4.2.1 20070831 patched [FreeBSD]
Preloaded elf kernel "kernel" at 0x805fc040.
real memory = 134217728 (131072K bytes)
Physical memory chunk(s):
0x0068e000 - 0x07de1fff, 125124608 bytes (30548 pages)
avail memory = 124145664 (118MB)
arc4random: no preloaded entropy cache
wlan: <802.11 Link Layer>
random: entropy device external interface
mem: <memory>
null: <full device, null device, zero device>
nexus0: <MIPS32 root nexus>
random: harvesting attach, 8 bytes (4 bits) from nexus0
argemdio0: <Atheros AR71xx built-in ethernet interface, MDIO controller> at mem 0x19000000-0x19000fff on nexus0
mdio0: <MDIO> on argemdio0
mdioproxy0: <MII/MDIO proxy, MDIO side> on mdio0
random: harvesting attach, 8 bytes (4 bits) from mdioproxy0
arswitch0: <Atheros AR8316 Ethernet Switch (ver 1 rev 1)> on mdio0
arswitch0: ar8316_hw_setup: MAC port == RGMII, port 4 = dedicated PHY
arswitch0: ar8316_hw_setup: port 4 RGMII workaround
miibus0: <MII bus> on arswitch0
ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
ukphy0: OUI 0x00c82e, model 0x0004, rev. 1
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from ukphy0
random: harvesting attach, 8 bytes (4 bits) from miibus0
miibus1: <MII bus> on arswitch0
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
ukphy1: OUI 0x00c82e, model 0x0004, rev. 1
ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from ukphy1
random: harvesting attach, 8 bytes (4 bits) from miibus1
miibus2: <MII bus> on arswitch0
ukphy2: <Generic IEEE 802.3u media interface> PHY 2 on miibus2
ukphy2: OUI 0x00c82e, model 0x0004, rev. 1
ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from ukphy2
random: harvesting attach, 8 bytes (4 bits) from miibus2
miibus3: <MII bus> on arswitch0
ukphy3: <Generic IEEE 802.3u media interface> PHY 3 on miibus3
ukphy3: OUI 0x00c82e, model 0x0004, rev. 1
ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from ukphy3
random: harvesting attach, 8 bytes (4 bits) from miibus3
etherswitch0: <Switch controller> on arswitch0
random: harvesting attach, 8 bytes (4 bits) from etherswitch0
mdio1: <MDIO> on arswitch0
mdioproxy1: <MII/MDIO proxy, MDIO side> on mdio1
random: harvesting attach, 8 bytes (4 bits) from mdioproxy1
random: harvesting attach, 8 bytes (4 bits) from mdio1
random: harvesting attach, 8 bytes (4 bits) from arswitch0
random: harvesting attach, 8 bytes (4 bits) from mdio0
random: harvesting attach, 8 bytes (4 bits) from argemdio0
clock0: <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" frequency 340000000 Hz quality 800
Event timer "MIPS32" frequency 340000000 Hz quality 800
random: harvesting attach, 8 bytes (4 bits) from clock0
apb0 at irq 4 on nexus0
uart0: <16550 or compatible> at mem 0x18020003-0x18020022 irq 3 flags 0x30 on apb0
uart0: console (115200,n,8,1)
uart0: fast interrupt
uart0: PPS capture mode: DCD
random: harvesting attach, 8 bytes (4 bits) from uart0
ohci0: <AR71XX integrated OHCI controller> at mem 0x1c000000-0x1cffffff irq 6 on apb0
usbus0 on ohci0
ohci0: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus0
random: harvesting attach, 8 bytes (4 bits) from ohci0
gpio0: <Atheros AR71XX GPIO driver> at mem 0x18040000-0x18040fff irq 2 on apb0
gpio0: [GIANT-LOCKED]
gpio0: gpio pinmask=0xfff
gpiobus0: <GPIO bus> on gpio0
gpiobus0: invalid pin 12, max: 11
gpioled0: <GPIO led> at pin 0 on gpiobus0
random: harvesting attach, 8 bytes (4 bits) from gpioled0
gpioled1: <GPIO led> at pin 1 on gpiobus0
random: harvesting attach, 8 bytes (4 bits) from gpioled1
gpioled2: <GPIO led> at pin 11 on gpiobus0
random: harvesting attach, 8 bytes (4 bits) from gpioled2
random: harvesting attach, 8 bytes (4 bits) from gpiobus0
gpioc0: <GPIO controller> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpioc0
random: harvesting attach, 8 bytes (4 bits) from gpio0
random: harvesting attach, 8 bytes (4 bits) from apb0
ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff irq 1 on nexus0
usbus1: EHCI version 1.0
usbus1 on ehci0
ehci0: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus1
random: harvesting attach, 8 bytes (4 bits) from ehci0
arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0
arge0: arge_attach: overriding MII mode to 'RGMII'
arge0: Generating random ethernet address.
mii_attach_proxy: not attaching, no mdio device hint for arge0
arge0: finishing attachment, phymask 0000, proxy null
arge0: bpf attached
arge0: Ethernet address: 62:73:64:0a:08:f5
random: harvesting attach, 8 bytes (4 bits) from arge0
arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0
arge1: arge_attach: overriding MII mode to 'RGMII'
arge1: Generating random ethernet address.
miiproxy0: <MII/MDIO proxy, MII side> on arge1
random: harvesting attach, 8 bytes (4 bits) from miiproxy0
miiproxy0: attached to target mdio1
arge1: finishing attachment, phymask 0010, proxy set
miibus4: <MII bus> on miiproxy0
ukphy4: <Generic IEEE 802.3u media interface> PHY 4 on miibus4
ukphy4: OUI 0x00c82e, model 0x0004, rev. 1
ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from ukphy4
random: harvesting attach, 8 bytes (4 bits) from miibus4
arge1: bpf attached
arge1: Ethernet address: 62:73:64:48:eb:bb
random: harvesting attach, 8 bytes (4 bits) from arge1
spi0: <AR71XX SPI> at mem 0x1f000000-0x1fffffff on nexus0
spibus0: <spibus bus> on spi0
mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0
mx25l0: device type w25q128, size 16384K in 256 sectors of 64K, erase size 4K
random: harvesting attach, 8 bytes (4 bits) from mx25l0
mx25l1: <M25Pxx Flash Family> at cs 1 mode 0 on spibus0
mx25l1: device type w25q128, size 16384K in 256 sectors of 64K, erase size 4K
random: harvesting attach, 8 bytes (4 bits) from mx25l1
random: harvesting attach, 8 bytes (4 bits) from spibus0
random: harvesting attach, 8 bytes (4 bits) from spi0
ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
random: harvesting attach, 8 bytes (4 bits) from ar71xx_wdog0
Device configuration finished.
Timecounters tick every 1.000 msec
vlan: initialized, using hash tables with chaining
lo0: bpf attached
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 2048
arswitch0port1: link state changed to DOWN
arswitch0port2: link state changed to DOWN
arswitch0port3: link state changed to DOWN
arswitch0port4: link state changed to DOWN
GEOM: new disk flash/spi0
GEOM: new disk flash/spi1
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
MAP: flash/spi0: 0x40000, data=0x40000 "/dev/map/bootloader"
MAP: flash/spi0: 40000x10000, data=0x10000 "/dev/map/bootloader-env"
MAP: flash/spi0: 50000x10000, data=0x10000 "/dev/map/art"
MAP: flash/spi0: 60000x760000, data=0x760000 "/dev/map/upgrade"
MAP: search flash/spi0 for key ".!/bin/sh" from 0x100000, step 0x10000
ugen0.1: <Atheros OHCI root HUB> at usbus0
uhub0: <Atheros OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Atheros EHCI root HUB> at usbus1
uhub1: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
MAP: flash/spi0: 60000x1a0000, data=0x1a0000 "/dev/map/kernel"
MAP: search flash/spi0 for key ".!/bin/sh" from 0x100000, step 0x10000
MAP: flash/spi0: 200000x5c0000, data=0x5c0000 "/dev/map/rootfs"
MAP: No valid partition found at flash/spi1
Trying to mount root from cd9660:/dev/map/rootfs.uzip []...
Root mount waiting for: usbus1 usbus0
uhub0: 2 ports with 2 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub0
arswitch0: arswitch_miipollstat: port 3: port -> UP
arswitch0port4: link state changed to UP
uhub1: 2 ports with 2 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub1
mountroot: waiting for device /dev/map/rootfs.uzip...
Mounting from cd9660:/dev/map/rootfs.uzip failed with error 19.
Loader variables:
Manual root filesystem specification:
<fstype>:<device> [options]
Mount <device> using filesystem <fstype>
and with the specified (optional) option list.
eg. ufs:/dev/da0s1a
zfs:tank
cd9660:/dev/cd0 ro
(which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)
? List valid disk boot devices
. Yield 1 second (for background tasks)
<empty line> Abort manual input
mountroot>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment