Port-arm archive

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

Re: NetBSD on beaglebone

On Sun, Jan 13, 2013 at 04:51:48AM -0700, Andy Ruhl wrote:
> On Sun, Jan 13, 2013 at 4:36 AM, Manuel Bouyer 
> <bouyer%antioche.eu.org@localhost> wrote:
> > thanks. But does this apply to the beaglebone as is ?
> > Especially, is the load address the same on the beaglebone ?
> I think for Sheevaplug the load address is the same between FreeBSD
> and NetBSD, therefore, the load address on Beaglebone should also be
> the same between the two I guess.
> >From this page:
> http://people.freebsd.org/~dmarion/beaglebone/creating_bootable_sd_card/
> Looks like it's 0x80200000
> Worth a try anyway.

thanks. The first information is that the default boot command is hardcoded
in the u-boot binary. I was looking for a text file with this command.
This page also gives the magic commands to load the kernel from
the fat partition of the sd card.

It also seems that one can rebuild a u-boot for this board. I wonder how hard
it would be to add ffs support to u-boot (but maybe it's not worth the

I've compiled a netbsd-BEAGLEBONE kernel from the last -current sources.
'file' against netbsd.ub tells me that the load address is 0x80300000

I've loaded a kernel this way and got:
## Starting application at 0x80300000 ...
deghuboot arg = 0x1, 0x8ff7a684, 0x8ff7a684, 0x80300000
[ Kernel symbol table missing! ]
Loaded initial symtab at 0x805347a8, strtab at 0x8055ab44, # entries 9704
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
    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 6.99.16 (BEAGLEBONE) #0: Sun Jan 13 13:24:30 CET 2013
total memory = 256 MB
avail memory = 247 MB
cprng kernel: WARNING insufficient entropy at creation.
mainbus0 (root)
cpu0 at mainbus0 core 0: 500 MHz Cortex-A8 r3p2 (Cortex core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB/64B 4-way L1 Instruction cache
cpu0: 32KB/64B 4-way write-back-locking-C L1 Data cache
cpu0: 256KB/64B 8-way write-through L2 Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+)
obio0 at mainbus0 base 0x44000000-0x4fffffff: On-Board IO
omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
prcm0 at obio0 addr 0x44e00000-0x44e01fff: Power, Reset and Clock Management
gpmc0 at mainbus0 base 0x50000000: General Purpose Memory Controller, rev 6.0
gpmc0: CS#0 valid, addr 0x08000000, size 256MB
com0 at obio0 addr 0x44e09000-0x44e09fff intr 72: ns16550a, working fifo
com0: console
sdhc0 at obio0 addr 0x48060100-0x48060fff intr 64: SDHC controller
sdhc0: SD Host Specification 2.0, rev.49
sdmmc0 at sdhc0 slot 0
omapdmtimer0 at obio0 addr 0x48040000-0x48040fff intr 68: DMTIMER2
omapdmtimer1 at obio0 addr 0x44e31000-0x44e31fff intr 67: DMTIMER1ms
omapdmtimer2 at obio0 addr 0x48044000-0x48044fff intr 92: DMTIMER4
omapwdt32k0 at obio0 addr 0x44e35000-0x44e35fff: rev 0.1
cpsw0 at obio0 addr 0x4a100000-0x4a107fff intrbase 40: TI CPSW Ethernet
cpsw0: Ethernet address 00:18:31:92:0f:24
ukphy0 at cpsw0 phy 0: OUI 0x00800f, model 0x000f, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
data_abort_handler: data_aborts fsr=0x1808 far=0xe0231010
Fatal kernel mode data abort: 'External Non-Linefetch Abort (S)'
trapframe: 0x805eff00
FSR=00001808, FAR=e0231010, spsr=60000193
r0 =00000000, r1 =e0231000, r2 =00000010, r3 =00000002
r4 =8ffca1b8, r5 =00000002, r6 =000003e8, r7 =00000000
r8 =80531a50, r9 =00000000, r10=00000000, r11=805eff68
r12=80309c34, ssp=805eff50, slr=803efc74, pc =80309c34

Stopped in pid 0.1 (system) at  netbsd:generic_bs_w_4:  str     r3, [r1, r2]
db> tr
        pc =0x803efc44 rlv=0x803f0268 (netbsd:cpu_initclocks+0xb0)
        rsp=0x805eff6c rfp=0x805eff84
        r6=0x8ffca1e8 r5=0x805c845c
        pc =0x803f0268 rlv=0x80378800 (netbsd:initclocks+0x3c)
        rsp=0x805eff88 rfp=0x805eff9c
        r6=0xfff00000 r5=0x80531978
        pc =0x80378800 rlv=0x8035c404 (netbsd:main+0x210)
        rsp=0x805effa0 rfp=0x805effec
        r5=0x805bf2bc r4=0x00003332
        pc =0x8035c404 rlv=0x803001b0 (netbsd:kernel_text+0x50)
        rsp=0x805efff0 rfp=0x805efffc
        r10=0x00000000 r9=0x00000000
        r8=0x80531a50 r7=0x00000000 r6=0xfff00000 r5=0x80300160
        pc =0x803001b0 rlv=0x8042c3b8 (netbsd:printf+0x58)
        pc =0x803001b0 rlv=0x8042c3b8 (netbsd:printf+0x58)
        rsp=0x805f0000 rfp=0x00000000

Is NetBSD on the beaglebone supposed to work yet ?
If no, is a missing items list available somewhere ?

Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index