kernel build fails for Routerboard 450g
Stefan Kooman
stefan at kooman.org
Fri Feb 1 12:20:46 UTC 2013
On Thu, Jan 31, 2013 at 05:15:41PM -0200, Luiz Otavio O Souza wrote:
>
> Hi!
>
> Sorry for the long hiatus, i'm trying to catch up.
No problem, thanks for helping me out.
>
> Please try the following kernel and hints:
>
> http://loos.no-ip.org/rb/RB450G
> http://loos.no-ip.org/rb/RB450G.hints
>
> You'll need to disable the mmc/sd and the nand device from kernel as
> they are not committed yet.
I've disabled mmc/sd and nand from kernel config, as well as references
to "rb4xx" and "AR71XX_ROUTERBOOT" (they don't exist in mips src tree).
> diff -u RB450G /data/mips/src/sys/mips/conf/RB450G
--- RB450G 2013-01-31 20:12:13.000000000 +0100
+++ /data/mips/src/sys/mips/conf/RB450G 2013-02-01 10:29:59.000000000 +0100
@@ -10,20 +10,20 @@
# RB450[G] doesn't have any minipci slots, flash and usb ports
nodevice pci
-nodevice ar71xx_pci
+#nodevice ar71xx_pci
nodevice mx25l
nodevice usb
nodevice ehci
nodevice umass
# RouterBoard RB4XX support
-device rb4xx
-device nand
+#device rb4xx
+#device nand
# MMC/SD SPI slot
-device mmc
-device mmcsd
-device mmcspi
+#device mmc
+#device mmcsd
+#device mmcspi
# GEOM modules
#device geom_redboot # to get access to the SPI flash partitions
@@ -34,7 +34,7 @@
options MSDOSFS
# RouterBoot support
-options AR71XX_ROUTERBOOT
+#options AR71XX_ROUTERBOOT
# For etherswitch support
options ARGE_MDIO
@@ -52,6 +52,7 @@
options BOOTP_NFSV3
options BOOTP_WIRED_TO=arge1
options BOOTP_COMPAT
-#options ROOTDEVNAME=\"nfs:192.168.0.10:/data/rb/rb450g/nfsroot\"
+options ROOTDEVNAME=\"nfs:192.168.2.103:/mnt/bsd\"
Booting up the RB450G yields:
trying dhcp protocol... OK
resolved mac address 00:25:22:8F:4F:CE
Gateway: 192.168.2.1
transfer started .............................................. transfer ok, time=2.03s
setting up elf image... OK
jumping to kernel code
CPU platform: Atheros AR7161 rev 2
CPU Frequency=680 MHz
CPU DDR Frequency=340 MHz
CPU AHB Frequency=170 MHz
platform frequency: 680000000
arguments:
a0 = 0000000b
a1 = a0871c00
a2 = 00000000
a3 = 00000000
Cmd line: console=ttyS0,115200 parts=1 boot_part_size=4194304 gpio=1983 HZ=340000000 mem=256M kmac=D4:CA:6D:59:DC:EF
board=450G ver=3.02 boot=1 mlc=4
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
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 #0 r245698: Fri Feb 1 10:30:56 CET 2013
root at frisbee:/data/mips/src/obj/mips/mips.mips/data/mips/src/sys/RB450G mips
WARNING: WITNESS option enabled, expect reduced performance.
MEMGUARD DEBUGGING ALLOCATOR INITIALIZED:
MEMGUARD map base: 0xc0400000
MEMGUARD map limit: 0xc3460000
MEMGUARD map size: 49536 KBytes
real memory = 33554432 (32768K bytes)
avail memory = 24829952 (23MB)
random device not loaded; using insecure entropy
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" frequency 340000000 Hz quality 800
Event timer "MIPS32" frequency 340000000 Hz quality 800
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
apb0 at irq 4 on nexus0
uart0: <16550 or compatible> on apb0
uart0: console (115200,n,8,1)
gpio0: <Atheros AR71XX GPIO driver> on apb0
gpio0: [GIANT-LOCKED]
gpio0: gpio pinmask=0xff
gpioc0: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
gpioled0: <GPIO led> at pin(s) 4 on gpiobus0
arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0
arge0: arge_attach: overriding MII mode to 'RGMII'
arge0: finishing attachment, phymask 0000, proxy null
arge0: Ethernet address: d4:ca:6d:59:dc:ef
arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0
arge1: arge_attach: overriding MII mode to 'RGMII'
miiproxy0: <MII/MDIO proxy, MII side> on arge1
arge1: can't attach proxy
arge1: finishing attachment, phymask 0010, proxy null
arge1: unable to attach PHY 4: 6
device_attach: arge1 attach returned 6
spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0
spibus0: <spibus bus> on spi0
spibus0: <unknown card> at cs 0
spibus0: <unknown card> at cs 0
spibus0: <unknown card> at cs 1
ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
Timecounters tick every 1.000 msec
bootpc_init: wired to interface 'arge1'
panic: bootpc_init: Could not find interface specified by BOOTP_WIRED_TO: arge1
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at kdb_enter+0x4c: lui at,0x8051
db>
> Let me know if you have any problem.
Same result, arge1 can't be attached.
Are the "rb4xx" and "AR71XX_ROUTERBOOT" references I've commented out essential
for a working kernel?
Thanks,
Stefan
More information about the freebsd-mips
mailing list