NetBSD on BeagleBoard

IGEPv2 用のパッチ(http://armagedon.se/cortexa8-omap3530-netbsd.diff)を当てて -current カーネルを作成。conf/std.beagleboard などもちょいと調整する必要あり。FAT フォーマットの SD カードに netbsd.bin を入れて fatload & go

Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
Reading boot sector
Error: reading boot sector
Loading u-boot.bin from nand


U-Boot 2009.03 (Apr 21 2009 - 20:27:07)

OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
DRAM: 256 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Board revision C
Die ID #4e8600030000000004013f8a17012022
Hit any key to stop autoboot: 0
reading uImage

Unable to read "uImage" from mmc 0:1 **

Wrong Image Format for bootm command
ERROR: can't get kernel image!
OMAP3 beagleboard.org # fatload mmc 0 0x80300000 netbsd.bin
reading netbsd.bin

2361752 bytes read
OMAP3 beagleboard.org # go 0x80300000
## Starting application at 0x80300000 ...
dfgh
NetBSD/evbarm (beagle) booting ...
initarm: Configuring system ...
Allocating page tables
setup_real_page_tables: physical_freestart 0x80576000
setup_real_page_tables: kernel_l1pt: 0x80578000:0x80578000
setup_real_page_tables: kernel_pt_table:
0x80576000:0x80576000
0x80577000:0x80577000
0x8057c000:0x8057c000
0x8057d000:0x8057d000
0x8057e000:0x8057e000
0x8057f000:0x8057f000
0x80580000:0x80580000
0x80581000:0x80581000
0x80582000:0x80582000
Creating L1 page table at 0x80578000
Mapping kernel
pmap_map_chunk: pa=0x80300000 va=0x80300000 size=0x1f0000 resid=0x1f0000 prot=0x5 cache=1
SLLLLLLLLLLLLLLL
pmap_map_chunk: pa=0x804f0000 va=0x804f0000 size=0x90000 resid=0x90000 prot=0x3 cache=1
LLLLLLLLL
Constructing L2 page tables
pmap_map_chunk: pa=0x80584000 va=0x80584000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x80585000 va=0x80585000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x80586000 va=0x80586000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x80587000 va=0x80587000 size=0x1000 resid=0x1000 prot=0x3 cache=1
P
pmap_map_chunk: pa=0x80588000 va=0x80588000 size=0x2000 resid=0x2000 prot=0x3 cache=1
PP
pmap_map_chunk: pa=0x80578000 va=0x80578000 size=0x4000 resid=0x4000 prot=0x3 cache=2
PPPP
pmap_map_chunk: pa=0x80576000 va=0x80576000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x80577000 va=0x80577000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x8057c000 va=0x8057c000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x8057d000 va=0x8057d000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x8057e000 va=0x8057e000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x8057f000 va=0x8057f000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x80580000 va=0x80580000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x80581000 va=0x80581000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
pmap_map_chunk: pa=0x80582000 va=0x80582000 size=0x1000 resid=0x1000 prot=0x3 cache=2
P
devmap: 48000000 -> 480fffff @ a5000000
pmap_map_chunk: pa=0x48000000 va=0xa5000000 size=0x100000 resid=0x100000 prot=0x3 cache=0
S
devmap: 49000000 -> 490fffff @ a6000000
pmap_map_chunk: pa=0x49000000 va=0xa6000000 size=0x100000 resid=0x100000 prot=0x3 cache=0
S
devmap: 48300000 -> 483fffff @ a6100000
pmap_map_chunk: pa=0x48300000 va=0xa6100000 size=0x100000 resid=0x100000 prot=0x3 cache=0
S
Physical Virtual Num
Starting Ending Starting Ending Pages
SDRAM: 0x80300000 0x8fffffff 0x80300000 0x8fffffff 64768
text section: 0x80300000 0x804e277b 0x80300000 0x804e277b 496
data section: 0x804f0000 0x80540998 0x804f0000 0x80540998 81
bss section: 0x80540998 0x80575b8c 0x80540998 0x80575b8c 54
L1 page directory: 0x80578000 0x8057bfff 0x80578000 0x8057bfff 4
Exception Vectors: 0x80583000 0x80583fff 0xffff0000 0xffff0fff 1
FIQ stack: 0x80584000 0x80584fff 0x80584000 0x80584fff 1
IRQ stack: 0x80585000 0x80585fff 0x80585000 0x80585fff 1
ABT stack: 0x80586000 0x80586fff 0x80586000 0x80586fff 1
UND stack: 0x80587000 0x80587fff 0x80587000 0x80587fff 1
SVC stack: 0x80588000 0x80589fff 0x80588000 0x80589fff 2
Message Buffer: 0x8058a000 0x8058afff 1
Free Memory: 0x8058b000 0x8fffffff 0x8058b000 0x8fffffff 64117
switching to new L1 page table @0x80578000...OK.
bootstrap done.
init subsystems: stacks vectors undefined page pmap done.
[ Kernel symbol table missing! ]
initarm done.
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.99.29 (BEAGLEBOARD) #3: Tue May 18 20:14:37 JST 2010
root@x24:/ext/NetBSD-current/src/evbarm.obj/sys/arch/evbarm/compile/BEAGLEBOARD
total memory = 253 MB
avail memory = 244 MB
mainbus0 (root)
cpu0 at mainbus0: Cortex-A8 r1p3 (ARM11J core)
cpu0: DC disabled IC disabled WB disabled EABT
cpu0: 0KB/0B 0-way Instruction cache
cpu0: 126KB/256B 4-way write-back-locking-C Data cache
cpu0: This kernel does not fully support this CPU.
cpu0: Recompile with "options CPU_ARM11" to correct this.
obio0 at mainbus0 base 0x48000000-0x48ffffff: On-Board IO
omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
obio1 at mainbus0 base 0x48300000-0x4833ffff: On-Board IO
omapgpio0 at obio1 addr 0x48310000-0x483103ff intr 29 intrbase 96: interrupts 96..127, intr 29
obio2 at mainbus0 base 0x49000000-0x490fffff: On-Board IO
com0 at obio2 addr 0x49020000-0x490203ff intr 74: ns16550a, working fifo
com0: console
omapgpio4 at obio2 addr 0x49056000-0x490563ff intr 33 intrbase 224: interrupts 224..255, intr 33
omapmputmr0 at obio2 addr 0x49032000-0x490320ff intr 38: OMAP MPU Timer #2
omapmputmr1 at obio2 addr 0x49034000-0x490340ff intr 39: OMAP MPU Timer #3
omapmputmr2 at obio2 addr 0x49036000-0x490360ff intr 40: OMAP MPU Timer #4
omapwdt32k0 at obio2 addr 0x49030000-0x490307ff: rev 3.1
L3i0 at mainbus0: L3i Interconnect
gpmc0 at mainbus0 base 0x6e000000: General Purpose Memory Controller, rev 5.0
gpmc0: CS#0 valid, addr 0x30000000, size 128MB
clock: hz=100 stathz=64
gpio0 at omapgpio0: 32 pins
gpio1 at omapgpio4: 32 pins
boot device:
root device:

ここまでくればなんとかできそうだ。ユーザランドを用意して次に進もう。

と思ったら、まだ USB が使えないようだ。crunch で md を使うようにしないとダメか。