Port-evbmips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Recent NetBSD and MERAKI kernel



Hello,

I’m trying to boot NetBSD on a Fonera 2g (2202) with the goal of running
it as a router but I’m facing some problems with recent NetBSD versions.

The hardware is similar to the one of the Fonera 2100 which is in turn
really similar to the Meraki mini, so the MERAKI kernel should at least
boot on this device.

I remember giving it a try while NetBSD 5 was the latest version and it
worked back then. I tried again building and booting NetBSD 5 lately
just to make sure, and it does boot using the SREC image of the kernel
but not the ELF image. (see the first attachment for the boot log)

I built the kernel using 5.2.1 sources and this command line:
./build.sh -m evbmips-eb -O ../obj_mipseb -T ../tools_mipseb -U -u -j4 
kernel=MERAKI


I then tried to build the same kernel with netbsd-6 and netbsd-current
sources, using the same command line.

It appears that the build is broken under netbsd-6, it stops at kernel
link time, complaining about symbol table size.

The build ends correctly with netbsd-current sources but only the ELF
image is built and there is no SREC image anymore, so I generated it
with the following command:
/f/netbsd-dist/edge/tools_mipseb/bin/mipseb--netbsd-strip -O srec -o 
netbsd.srec netbsd
like it was done during the NetBSD 5 build process.

But, when I then try to boot the device using this image, everything
just hangs after trying to execute the kernel. (see the second
attachment for the boot log with this image)

So, I would like to know if it’s a normal behaviour that I can’t boot
using the ELF image.
I would also like to know if anyone has an idea why nothing happens when I try
running NetBSD 6/current.


Thank you in advance. I hope there’s enough information in this mail for
you to have a good idea of what I’m trying to do. If there isn’t please
tell me anything I should add.

Have a nice day.

-- 
Envoyé depuis ma GameBoy.
 
PGP key: D674 0670 BF8E 6A82 43C0 F317 AEC9 29D0 E8D7 F7B7
RedBoot> load netbsd5
Using default protocol (TFTP)
*** Abort! Attempt to load ELF data to address: 0x80040074 which is not in RAM

RedBoot> load netbsd5.srec
Using default protocol (TFTP)
Entry point: 0x80041000, address range: 0x80041000-0x8029b2c0
RedBoot> go
MIPS32/64 params: cpu arch: 32
MIPS32/64 params: TLB entries: 16
MIPS32/64 params: Icache: line = 16, total = 16384, ways = 4
                 sets = 256
MIPS32/64 params: Dcache: line = 16, total = 16384, ways = 4
                 sets = 256
  picache_stride    = 4096
  picache_loopcount = 4
  pdcache_stride    = 4096
  pdcache_loopcount = 4
Memory size: 0x02000000
[ Kernel symbol table missing! ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.2.1 (MERAKI) #0: Sat Nov  9 21:46:26 UTC 2013
        
root%compile.upyum.com@localhost:/f/netbsd-dist/netbsd-5.2.1/obj_mipseb/sys/arch/evbmips/compile/MERAKI
Atheros AR2315
total memory = 32768 KB
avail memory = 29020 KB
mainbus0 (root)
cpu0 at mainbus0: 184.00MHz (hz cycles = 920000, delay divisor = 92)
cpu0: MIPS 4KEc (Rev 2) (0x19064) Rev. 100 with software emulated floating point
cpu0: 16KB/16B 4-way set-associative L1 Instruction cache, 16 TLB entries
cpu0: 16KB/16B 4-way set-associative write-back L1 Data cache
wdog0 at mainbus0: 5 second period
arbus0 at mainbus0
com0 at arbus0 addr 0x11100000 cpu irq 0 misc irq 0: ns16550a, working fifo
com0: console
ae0 at arbus0 addr 0x10500000 cpu irq 2: Atheros AR531X 10/100 Ethernet
ae0: Ethernet address 00:18:84:d0:6a:ec
ukphy0 at ae0 phy 16: Generic IEEE 802.3u media interface
ukphy0: Marvell 88E6060 10/100 5-port PHY switch (OUI 0x000ac2, model 0x0008), 
rev. 7
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy1 at ae0 phy 17: Generic IEEE 802.3u media interface
ukphy1: Marvell 88E6060 10/100 5-port PHY switch (OUI 0x000ac2, model 0x0008), 
rev. 7
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy2 at ae0 phy 18: Generic IEEE 802.3u media interface
ukphy2: Marvell 88E6060 10/100 5-port PHY switch (OUI 0x000ac2, model 0x0008), 
rev. 7
ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy3 at ae0 phy 19: Generic IEEE 802.3u media interface
ukphy3: Marvell 88E6060 10/100 5-port PHY switch (OUI 0x000ac2, model 0x0008), 
rev. 7
ukphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy4 at ae0 phy 20: Generic IEEE 802.3u media interface
ukphy4: Marvell 88E6060 10/100 5-port PHY switch (OUI 0x000ac2, model 0x0008), 
rev. 7
ukphy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ae0: WARNING: powerhook_establish is deprecated
ath0 at arbus0 addr 0x10000000 cpu irq 1: Unknown AR531X WLAN
ath0: unable to attach hardware; HAL status 36
ath0: ath_attach failed
arspi0 at arbus0 addr 0x11300000 cpu irq 0 misc irq 2: Atheros SPI controller
spi0 at arspi0: SPI bus
m25p0 at spi0 slave 0: unknown or unsupported device
root device:
RedBoot> load netbsd
Using default protocol (TFTP)
*** Abort! Attempt to load ELF data to address: 0x80040074 which is not in RAM

RedBoot> load netbsd.srec
Using default protocol (TFTP)
Entry point: 0x80041000, address range: 0x80041000-0x8031b710
RedBoot> go
(nothing happens after that and I’m forced to reset the device)


Home | Main Index | Thread Index | Old Index