ページ

2012年12月4日火曜日

NetBSD / ZEDBOARD

とりあえずブートしたので記念に。

補足:
  1. 現状 1 コアしか動いてません。
  2. マルチユーザは動作しません。
ということでまだまだですのであしからず。
U-Boot 2011.03-dirty (Jul 11 2012 - 16:07:00)

DRAM:  512 MiB
MMC:   SDHCI: 0
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   zynq_gem
Hit any key to stop autoboot:  0
zed-boot> mmcinfo;fatload mmc 0 0x00800000 netbsd.gz.ub;bootm 0x00800000
Device: SDHCI
Manufacturer ID: 6f
OEM: 0
Name: SMI
Tran Speed: 25000000
Rd Block Len: 512
SD version 1.10
High Capacity: Yes
Capacity: 3987734528
Bus Width: 1-bit
reading netbsd.gz.ub

1451670 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   NetBSD/ 6.99.15
   Created:      2012-12-04   5:31:18 UTC
   Image Type:   ARM NetBSD Kernel Image (gzip compressed)
   Data Size:    1451606 Bytes = 1.4 MiB
   Load Address: 00100000
   Entry Point:  00100000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Transferring control to NetBSD stage-2 loader (at address 00100000) ...
@ABDEFGHIJK
uboot arg = 0x1fb74fe8, 0, 0x1ffa86a5, 0x1ffa86a5

NetBSD/evbarm (zedboard) booting ...
initarm: Configuring system, CLIDR=1110000003 CTR=0x83338003
arm32_bootmem_init: memstart=0, memsize=0x20000000, kernelstart=0x100000
arm32_bootmem_init: kernelend=0x422000
arm32_bootmem_init: adding 130014 free pages: [0x422000..0x1fffffff] (VA 0x80422000)
arm32_bootmem_init: adding 256 free pages: [0..0xfffff] (VA 0x80000000)
arm32_kernel_vm_init: 2 L2 pages are needed to map 0x44a000 kernel bytes
arm32_kernel_vm_init: allocating page tables for vectoradd_pages: adding pv 0x80406ef4 (pa 0x422000, va 0x80422000, 1 pages) at tail
 kerneladd_pages: appending pv 0x80407094 (0x423000..0x423fff) to 0x422000..0x422fff
add_pages: appending pv 0x8041422c (0x424000..0x427fff) to 0x422000..0x423fff
add_pages: appending pv 0x804070a8 (0x428000..0x428fff) to 0x422000..0x427fff
 vmadd_pages: appending pv 0x804070bc (0x429000..0x429fff) to 0x422000..0x428fff
add_pages: appending pv 0x804070d0 (0x42a000..0x42afff) to 0x422000..0x429fff
add_pages: appending pv 0x804070e4 (0x42b000..0x42bfff) to 0x422000..0x42afff
add_pages: appending pv 0x804070f8 (0x42c000..0x42cfff) to 0x422000..0x42bfff
add_pages: appending pv 0x8040710c (0x42d000..0x42dfff) to 0x422000..0x42cfff
add_pages: appending pv 0x80407120 (0x42e000..0x42efff) to 0x422000..0x42dfff
add_pages: appending pv 0x80407134 (0x42f000..0x42ffff) to 0x422000..0x42efff
add_pages: appending pv 0x80407148 (0x430000..0x430fff) to 0x422000..0x42ffff
add_pages: appending pv 0x8040735c (0x431000..0x431fff) to 0x422000..0x430fff
add_pages: appending pv 0x80407370 (0x432000..0x432fff) to 0x422000..0x431fff
add_pages: appending pv 0x80407384 (0x433000..0x433fff) to 0x422000..0x432fff
add_pages: appending pv 0x80407398 (0x434000..0x434fff) to 0x422000..0x433fff
add_pages: appending pv 0x80407334 (0x435000..0x436fff) to 0x422000..0x434fff
add_pages: appending pv 0x80407348 (0x437000..0x438fff) to 0x422000..0x436fff
add_pages: appending pv 0x80406f68 (0x439000..0x439fff) to 0x422000..0x438fff
Creating L1 page table at 0x00424000
arm32_kernel_vm_init: adding L2 pt (VA 0x80422000, PA 0x422000) for VA 0xffff0000
 (vectors)arm32_kernel_vm_init: adding L2 pt (VA 0x80423000, PA 0x423000) for VA 0x80000000 (kernel)
arm32_kernel_vm_init: adding L2 pt (VA 0x80428000, PA 0x428000) for VA 0x80400000 (kernel)
arm32_kernel_vm_init: adding L2 pt (VA 0x80429000, PA 0x429000) for VA 0xc0000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8042a000, PA 0x42a000) for VA 0xc0400000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8042b000, PA 0x42b000) for VA 0xc0800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8042c000, PA 0x42c000) for VA 0xc0c00000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8042d000, PA 0x42d000) for VA 0xc1000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8042e000, PA 0x42e000) for VA 0xc1400000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8042f000, PA 0x42f000) for VA 0xc1800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80430000, PA 0x430000) for VA 0xc1c00000 (vm)
Mapping kernel
arm32_kernel_vm_init: adding chunk for kernel text 0x100000..0x368fff (VA 0x80100000)
add_pages: adding pv 0x80406ee0 (pa 0x100000, va 0x80100000, 617 pages) before pa 0x422000
arm32_kernel_vm_init: adding chunk for kernel data/bss 0x369000..0x421fff (VA 0x80369000)
add_pages: appending pv 0x80406f40 (0x369000..0x421fff) to 0x100000..0x368fff
add_pages: merging pv 0x80406ef4 (0x422000..0x439fff) to 0x100000..0x421fff
Listing Chunks
arm32_kernel_vm_init: pv 0x80406ee0: chunk VA 0x80100000..0x80439fff (PA 0x100000, prot 3, cache 1)

Mapping Chunks
arm32_kernel_vm_init: mapping last chunk VA 0x80000000..0x9fffffff (PA 0, prot 3, cache 1)
pmap_map_chunk: pa=0x0 va=0x80000000 size=0x20000000 resid=0x20000000 prot=0x3 cache=1
sSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsS
devmap: e0000000 -> e01fffff @ ffc00000
pmap_map_chunk: pa=0xe0000000 va=0xffc00000 size=0x200000 resid=0x200000 prot=0x3 cache=0
SS
devmap: f8f00000 -> f8ffffff @ ffe00000
pmap_map_chunk: pa=0xf8f00000 va=0xffe00000 size=0x100000 resid=0x100000 prot=0x3 cache=0
S
                             Physical              Virtual        Num
                       Starting    Ending    Starting    Ending   Pages
               SDRAM: 0x00000000 0x1fffffff 0x80000000 0x9fffffff 131072
        text section: 0x00100000 0x00368fff 0x80100000 0x80368fff 617
        data section: 0x00370000 0x004067c0 0x80370000 0x804067c0 151
         bss section: 0x004067c0 0x00421c64 0x804067c0 0x80421c64 28
   L1 page directory: 0x00424000 0x00427fff 0x80424000 0x80427fff 4
   ABT stack (CPU 0): 0x00431000 0x00431fff 0x80431000 0x80431fff 1
   FIQ stack (CPU 0): 0x00432000 0x00432fff 0x80432000 0x80432fff 1
   IRQ stack (CPU 0): 0x00433000 0x00433fff 0x80433000 0x80433fff 1
   UND stack (CPU 0): 0x00434000 0x00434fff 0x80434000 0x80434fff 1
  IDLE stack (CPU 0): 0x00435000 0x00436fff 0x80435000 0x80436fff 2
           SVC stack: 0x00437000 0x00438fff 0x80437000 0x80438fff 2
      Message Buffer: 0x00439000 0x00439fff 0x80439000 0x80439fff 1
   Exception Vectors: 0x0043a000 0x0043afff 0xffff0000 0xffff0fff 1
         Free Memory: 0x0043b000 0x1fffffff                       129989
         Free Memory: 0x00000000 0x000fffff                       256
switching to new L1 page table @0x424000...TTBR0=0x42405b OK
nfreeblocks = 2, free_pages = 130245 (0x1fcc5)
bootstrap done.
init subsystems: stacks vectors undefined page pmap_physload pmap [ Kernel symbol table missing! ]
done.
Loaded initial symtab at 0x80374de4, strtab at 0x8039e490, # entries 10521
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
    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.15 (ZEDBOARD) #276: Tue Dec  4 14:31:15 JST 2012
        root@hogehoge:/home/kenichi/netbsd/local/obj/sys/arch/evbarm/compile/ZEDBOARD
total memory = 512 MB
avail memory = 498 MB
cprng kernel: WARNING insufficient entropy at creation.
mainbus0 (root)
cpu0 at mainbus0 core 0: Cortex-A9 r4p0 (Cortex core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB/32B 4-way L1 Instruction cache
cpu0: 32KB/32B 4-way write-back-locking-C L1 Data cache
cpu0: 512KB/32B 8-way write-back-locking-D L2 Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+)
armperiph0 at mainbus0
arml2cc0 at armperiph0: ARM PL310 r3p2 L2 Cache Controller (disabled)
arml2cc0: cache enabled
armgic0 at armperiph0: Generic Interrupt Controller, 96 sources (85 valid)
armgic0: 32 Priorities, 64 SPIs, 5 PPIs, 16 SGIs
a9tmr0 at armperiph0: A9 Global 64-bit Timer (166 MHz)
a9tmr0: interrupting on irq 27
a9wdt0 at armperiph0: A9 Watchdog Timer, default period is 12 seconds
axi0 at mainbus0: Advanced eXtensible Interface
zynqslcr0 at axi0 addr 0xf8000000: System Level Control Module
zynqslcr_dumpclocks
REF      :   33 MHz
ARM_PLL  : 1333 MHz
DDR_PLL  : 1067 MHz
IO_PLL   : 1000 MHz
CPU_6X4X :  667 MHz
CPU_3X2X :  333 MHz
CPU_2X   :  222 MHz
CPU_1X   :  111 MHz
DDR_3X   :  533 MHz
DDR_2X   :  356 MHz
DDR_DCI  :   10 MHz
SMC      :   17 MHz
QSPI     :  143 MHz
GIGE0    :   25 MHz
GIGE1    :   17 MHz
SDIO     :   50 MHz
UART     :   50 MHz
SPI      :   16 MHz
CAN      :    8 MHz
PCAP     :  200 MHz
DBG      :   67 MHz
FCLK0    :  100 MHz
FCLK1    :  167 MHz
FCLK2    :  200 MHz
FCLK3    :   25 MHz
ehci0 at axi0 addr 0xe0002000 intr 53
ehci0: Zynq USB Controller id=5 revision=2 version=2
ehci0: HCI revision=0x100
ehci0: 1 host port, device capable, 12 endpoints
ehci0: ULPI phy VID 0x0451 PID 0x1507
usb0 at ehci0: USB revision 2.0
zynquart0 at axi0 addr 0xe0000000 intr 59
zynquart1 at axi0 addr 0xe0001000 intr 82
clock: hz=100 stathz = 0
uhub0 at usb0: Xilinx EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1 at uhub0 port 1: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/5.07, addr 2
uhub1: single transaction translator
umass0 at uhub1 port 4 configuration 1 interface 0
umass0: Generic USB Storage, rev 2.00/2.50, addr 3
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0:  disk removable
sd0: fabricating a geometry
sd0: 3781 MB, 3781 cyl, 64 head, 32 sec, 512 bytes/sect x 7744512 sectors
sd0: fabricating a geometry
cprng sysctl: WARNING insufficient entropy at creation.
boot device: 
root device:

0 件のコメント:

コメントを投稿