Skip to content

Instantly share code, notes, and snippets.

@ryo
Created September 24, 2014 08:00
Show Gist options
  • Save ryo/21aa83c938ec4f4c837f to your computer and use it in GitHub Desktop.
Save ryo/21aa83c938ec4f4c837f to your computer and use it in GitHub Desktop.
NetBSD/evbarm (nitrogen6) booting ...
initarm: Configuring system (4 cpus, hatched 0xe), CLIDR=1110000003 CTR=0x83338003
arm32_bootmem_init: memstart=0x10000000, memsize=0x40000000, kernelstart=0x10800000
arm32_bootmem_init: kernelend=0x10e78000
arm32_bootmem_init: adding 129220 free pages: [0x10e78000..0x4fffffff] (VA 0x80e78000)
arm32_bootmem_init: adding 1024 free pages: [0x10000000..0x107fffff] (VA 0x80000000)
arm32_kernel_vm_init: 0 L2 pages are needed to map 0x6c8000 kernel bytes
arm32_kernel_vm_init: allocating page tables for kernel vmadd_pages: adding pv 0x80e4c260 (pa 0x10e78000, va 0x80e78000, 2 pages) at tail
add_pages: appending pv 0x80e4cef4 (0x10e7c000..0x10e7dfff) to 0x10e78000..0x10e7bfff
add_pages: appending pv 0x80e4cf08 (0x10e7e000..0x10e7ffff) to 0x10e78000..0x10e7dfff
add_pages: appending pv 0x80e4cf1c (0x10e80000..0x10e81fff) to 0x10e78000..0x10e7ffff
add_pages: appending pv 0x80e4cf30 (0x10e82000..0x10e83fff) to 0x10e78000..0x10e81fff
add_pages: appending pv 0x80e4cf44 (0x10e84000..0x10e85fff) to 0x10e78000..0x10e83fff
add_pages: appending pv 0x80e4cf58 (0x10e86000..0x10e87fff) to 0x10e78000..0x10e85fff
add_pages: appending pv 0x80e4cf6c (0x10e88000..0x10e89fff) to 0x10e78000..0x10e87fff
add_pages: appending pv 0x80e4cf80 (0x10e8a000..0x10e8bfff) to 0x10e78000..0x10e89fff
arm32_kernel_vm_init: allocating stacks
add_pages: appending pv 0x80e4d238 (0x10e8c000..0x10e93fff) to 0x10e78000..0x10e8bfff
add_pages: appending pv 0x80e4d224 (0x10e94000..0x10e9bfff) to 0x10e78000..0x10e93fff
add_pages: appending pv 0x80e4d210 (0x10e9c000..0x10ea3fff) to 0x10e78000..0x10e9bfff
add_pages: appending pv 0x80e4d1fc (0x10ea4000..0x10eabfff) to 0x10e78000..0x10ea3fff
add_pages: appending pv 0x80e4d1e8 (0x10eac000..0x10eb3fff) to 0x10e78000..0x10eabfff
add_pages: appending pv 0x80e4d24c (0x10eb4000..0x10eb5fff) to 0x10e78000..0x10eb3fff
add_pages: appending pv 0x80e4c298 (0x10eb6000..0x10eb9fff) to 0x10e78000..0x10eb5fff
Creating L1 page table at 0x10e78000
arm32_kernel_vm_init: adding L2 pt (VA 0x80e7c000, PA 0x10e7c000) for VA 0xc0000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80e7e000, PA 0x10e7e000) for VA 0xc0800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80e80000, PA 0x10e80000) for VA 0xc1000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80e82000, PA 0x10e82000) for VA 0xc1800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80e84000, PA 0x10e84000) for VA 0xc2000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80e86000, PA 0x10e86000) for VA 0xc2800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80e88000, PA 0x10e88000) for VA 0xc3000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80e8a000, PA 0x10e8a000) for VA 0xc3800000 (vm)
Mapping kernel
arm32_kernel_vm_init: adding chunk for kernel text 0x10800000..0x10d43fff (VA 0x80800000)
add_pages: adding pv 0x80e4c24c (pa 0x10800000, va 0x80800000, 674 pages) before pa 0x10e78000
arm32_kernel_vm_init: adding chunk for kernel data/bss 0x10d44000..0x10e77fff (VA 0x80d44000)
add_pages: appending pv 0x80e4c2c0 (0x10d44000..0x10e77fff) to 0x10800000..0x10d43fff
add_pages: merging pv 0x80e4c260 (0x10e78000..0x10eb9fff) to 0x10800000..0x10e77fff
Listing Chunks
arm32_kernel_vm_init: pv 0x80e4c24c: chunk VA 0x80800000..0x80eb9fff (PA 0x10800000, prot 3, cache 1)
Mapping Chunks
arm32_kernel_vm_init: mapping last chunk VA 0x80000000..0xbfffffff (PA 0x10000000, prot 3, cache 1)
pmap_map_chunk: pa=0x10000000 va=0x80000000 size=0x40000000 resid=0x40000000 prot=0x3 cache=1
sSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsS
devmap: 02000000 -> 021fffff @ ff000000
pmap_map_chunk: pa=0x2000000 va=0xff000000 size=0x200000 resid=0x200000 prot=0x3 cache=0
SS
devmap: 00a00000 -> 00afffff @ ff200000
pmap_map_chunk: pa=0xa00000 va=0xff200000 size=0x100000 resid=0x100000 prot=0x3 cache=0
S
Physical Virtual Num
Starting Ending Starting Ending Pages
SDRAM: 0x10000000 0x4fffffff 0x80000000 0xbfffffff 131072
text section: 0x10800000 0x10d43fff 0x80800000 0x80d43fff 674
data section: 0x10d50000 0x10e4bb40 0x80d50000 0x80e4bb40 126
bss section: 0x10e4bb40 0x10e774c8 0x80e4bb40 0x80e774c8 23
L1 page directory: 0x10e78000 0x10e7bfff 0x80e78000 0x80e7bfff 2
ABT stack (CPU 0): 0x10e8c000 0x10e8dfff 0x80e8c000 0x80e8dfff 1
FIQ stack (CPU 0): 0x10e94000 0x10e95fff 0x80e94000 0x80e95fff 1
IRQ stack (CPU 0): 0x10e9c000 0x10e9dfff 0x80e9c000 0x80e9dfff 1
UND stack (CPU 0): 0x10ea4000 0x10ea5fff 0x80ea4000 0x80ea5fff 1
IDLE stack (CPU 0): 0x10eac000 0x10eadfff 0x80eac000 0x80eadfff 1
SVC stack: 0x10eb4000 0x10eb5fff 0x80eb4000 0x80eb5fff 1
Message Buffer: 0x10eb6000 0x10eb9fff 0x80eb6000 0x80eb9fff 2
Free Memory: 0x10eba000 0x4fffffff 129187
Free Memory: 0x10000000 0x107fffff 1024
TTBR0=0x1fffc05b TTBR1=0x1fffc05b TTBCR=0x1 CONTEXTIDR=0
switching to new L1 page table @0x10e78000... ttb (TTBCR=0x11 TTBR0=0x10e7805b TTBR1=0x10e7805b) hatchlingscpu_boot_secondary_processors: writing mbox with 0xe
OK
nfreeblocks = 2, free_pages = 130211 (0x1fca3)
bootstrap done.
vectors vbar=0x80bca920 0x80bca920
init subsystems: stacks vectors undefined page pmap_physload pmap kpm tlb0 kcpusets locks l1pt cache(l1pt) specials pools [ Kernel symbol table missing! ]
done.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
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 7.99.1 (NITROGEN6X.MP) #109: Wed Sep 24 16:43:20 JST 2014
ryo@phenomena:/src/cvs/NetBSD/sys/arch/evbarm/compile/NITROGEN6X.MP
total memory = 1024 MB
avail memory = 1007 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
kern.module.path=/stand/evbarm/7.99.1/modules
mainbus0 (root)
cpu0 at mainbus0 core 0: 792 MHz Cortex-A9 r3p10 (Cortex V7A core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB/32B 4-way L1 VIPT Instruction cache
cpu0: 32KB/32B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 1024KB/32B 16-way write-back-locking-D L2 PIPT Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu1 at mainbus0 core 1
cpu2 at mainbus0 core 2
cpu3 at mainbus0 core 3
armperiph0 at mainbus0
arml2cc0 at armperiph0: ARM PL310 r3p1a L2 Cache Controller (disabled)
arml2cc0: cache enabled
armgic0 at armperiph0: Generic Interrupt Controller, 160 sources (149 valid)
armgic0: 32 Priorities, 128 SPIs, 5 PPIs, 16 SGIs
a9tmr0 at armperiph0: A9 Global 64-bit Timer (396 MHz)
a9tmr0: interrupting on irq 27
axi0 at mainbus0: Advanced eXtensible Interface
imxccm0 at axi0 addr 0x20c4000: Clock Control Module
imxocotp0 at axi0 addr 0x21bc000: On-Chip OTP Controller
imxocotp0: OCOTP_VERSION 2.0.0
imxgpio0 at axi0 addr 0x209c000 intr 98 irqbase 256: interrupts 256..287
imxgpio1 at axi0 addr 0x20a0000 intr 100 irqbase 288: interrupts 288..319
imxgpio2 at axi0 addr 0x20a4000 intr 102 irqbase 320: interrupts 320..351
imxgpio3 at axi0 addr 0x20a8000 intr 104 irqbase 352: interrupts 352..383
imxgpio4 at axi0 addr 0x20ac000 intr 106 irqbase 384: interrupts 384..415
imxgpio5 at axi0 addr 0x20b0000 intr 108 irqbase 416: interrupts 416..447
imxgpio6 at axi0 addr 0x20b4000 intr 110 irqbase 448: interrupts 448..479
imxiomux0 at axi0 addr 0x20e0000: IOMUX Controller
imxuart0 at axi0 addr 0x2020000 intr 58
imxuart1 at axi0 addr 0x21e8000 intr 59
imxuart1: console
ahcisata0 at axi0 addr 0x2200000 intr 71: AHCI Controller
ahcisata0: AHCI revision 1.30, 1 port, 32 slots, CAP 0x6f26ff80<CCCS,PSC,SSC,PMD,SPM,SAM,ISS=0x2=Gen2,SCLO,SAL,SALP,SSS,SSNTF,SNCQ>
atabus0 at ahcisata0 channel 0
imxwdog0 at axi0 addr 0x20bc000 intr 112: i.MX Watchdog Timer, default period is 10 seconds
enet0 at axi0 addr 0x2188000 intr 150: Gigabit Ethernet Controller
enet0: Ethernet address 00:19:b8:00:f2:f8
micphy0 at enet0 phy 6: Micrel KSZ9021RNI 10/100/1000 PHY, rev. 1
micphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
imxusbc0 at axi0 addr 0x2184000: Universal Serial Bus Controller
ehci0 at imxusbc0 unit 0 intr 75: i.MX USB Controller
ehci0: id=5 revision=1 HCI revision=0x100
ehci0: 1 host port, device capable, 8 endpoints
usb0 at ehci0: USB revision 2.0
ehci1 at imxusbc0 unit 1 intr 72: i.MX USB Controller
ehci1: id=5 revision=1 HCI revision=0x100
ehci1: 1 host port
usb1 at ehci1: USB revision 2.0
cpu_boot_secondary_processors: writing mbox with 0xe
cpu_hatch(cpu1): cpu_hatch(cpu2): vectorscpu_hatch(cpu3): vectors vectors vbar=0x80bca920 vbar=0x80bca920 vbar=0x80bca920 stacks stacks tlb tlb stackscpu1 tlb: 792 MHz Cortex-A9 r3p10 (Cortex V7A core)
cpu3cpu2: 792 MHz Cortex-A9 r3p10 (Cortex V7A core)
cpu3: DC enabledcpu1:: 792 MHz Cortex-A9 r3p10 (Cortex V7A core)
IC enabled DC enabled IC enabledcpu2: DC enabled WB disabled IC enabled WB disabled EABT branch prediction enabled
EABT WB disabled EABT branch prediction enabled branch prediction enabled
cpu2: 32KB/32B 4-way L1 VIPT Instruction cache
cpu1: 32KB/32B 4-way L1 VIPT Instruction cache
cpu2: 32KB/32B 4-way write-back-locking-C L1 PIPT Data cache
cpu1: 32KB/32B 4-way write-back-locking-C L1 PIPT Data cache
cpu1: 1024KB/32B 16-way write-back-locking-D L2 PIPT Unified cache
cpu3: 32KB/32B 4-way L1 VIPT Instruction cache
cpu2: 1024KB/32B 16-way write-back-locking-D L2 PIPT Unified cache
cpu3: 32KB/32B 4-way write-back-locking-C L1 PIPT Data cache
vfp vfpcpu3: 1024KB/32B 16-way write-back-locking-D L2 PIPT Unified cache
vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
vfpvfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
interrupts interrupts md(0x80951cf8) done!
md(0x80951cf8) interrupts done!
md(0x80951cf8) done!
gpio0 at imxgpio0: 32 pins
gpio1 at imxgpio1: 32 pins
gpio2 at imxgpio2: 32 pins
gpio3 at imxgpio3: 32 pins
gpio4 at imxgpio4: 32 pins
gpio5 at imxgpio5: 32 pins
gpio6 at imxgpio6: 32 pins
uhub0 at usb0: i.MX EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1 at usb1: i.MX EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
WARNING: module error: can't find builtin dependency `iic'
WARNING: module error: can't find builtin dependency `au8522'
WARNING: module error: can't find builtin dependency `iic'
WARNING: module error: can't find builtin dependency `iic'
WARNING: module error: can't find builtin dependency `iic'
WARNING: module error: can't find builtin dependency `iic'
ahcisata0 port 0: device present, speed: 3.0Gb/s
wd0 at atabus0 drive 0
wd0: <WDC WD10EADS-00L5B1>
wd0: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 sectors
uhub2 at uhub1 port 1: SMSC product 2513, class 9/0, rev 2.00/b.b3, addr 2
uhub2: multiple transaction translators
boot device: <unknown>
root on wd0a dumps on wd0b
/: replaying log to memory
root file system type: ffs
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
Tue Sep 16 19:41:46 JST 2014
Starting root file system check:
/dev/rwd0a: file system is journaled; not checking
/: replaying log to disk
Starting file system checks:
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: nitro
IPv6 mode: host
Configuring network interfaces: enet0.
Adding interface aliases:.
add net default: gateway fd00::69
Building databases: dev, utmp, utmpx.
Starting syslogd.
Mounting all filesystems...
Clearing temporary files.
Updating fontconfig cache: done.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
swapctl: adding /var/swapfile as swap device at priority 0
Starting virecover.
Checking for core dump...
savecore: /dev/rwd0b: Device not configured
Starting local daemons:.
Updating motd.
Starting sshd.
Starting inetd.
Starting cron.
Tue Sep 16 19:41:58 JST 2014
NetBSD/evbarm (nitro) (console)
login: root
Last login: Tue Sep 16 19:41:14 2014 on console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
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 7.99.1 (NITROGEN6X.MP) #109: Wed Sep 24 16:43:20 JST 2014
Welcome to NetBSD!
Terminal type is vt100.
We recommend that you create a non-root account and use su(1) for root access.
# uname -a
NetBSD nitro 7.99.1 NetBSD 7.99.1 (NITROGEN6X.MP) #109: Wed Sep 24 16:43:20 JST 2014 ryo@phenomena:/src/cvs/NetBSD/sys/arch/evbarm/compile/NITROGEN6X.MP evbarm
nitro# cpuctl list
Num HwId Unbound LWPs Interrupts Last change #Intr
---- ---- ------------ ---------- ------------------------ -----
0 0 online intr Tue Sep 16 19:41:46 2014 0
1 1 online intr Tue Sep 16 19:41:46 2014 0
2 2 online intr Tue Sep 16 19:41:46 2014 0
3 3 online intr Tue Sep 16 19:41:46 2014 0
nitro# cpuctl
usage: cpuctl identify cpuno
cpuctl list
cpuctl offline cpuno
cpuctl online cpuno
cpuctl intr cpuno
cpuctl nointr cpuno
cpuctl ucode [file]
nitro# cpuctl identify 0
cpu0: isa features: Swap, Bitcount, Bitfield, CmpBranch, Coproc=0, Debug
cpu0: isa features: Endian, Except, Except_AR, Extend=2, IfThen, Immediate
cpu0: isa features: Interwork=3, Jazelle, LoadStore, MemHint=4
cpu0: isa features: MultAccessInt=0, Mult=2, MultS=3, MultU=2, PSR_AR
cpu0: isa features: Reversal=2, Saturate, SIMD=3, SVC, SynchPrim=2, TabBranch
cpu0: isa features: ThumbCopy, TrueNOP, ThumbEE_Extn, Unpriv=2, WithShifts=4
cpu0: isa features: Writeback, SMC, Barrier
cpu0: memory model: VMSA-Support=3, Outermost-Shareablity=1
cpu0: memory model: Shareability-Levels=0, Auxilary-Registers=1
cpu0: memory model: Branch-Predictor=2, Unified-TLB=3, Mem-Barrier=2
cpu0: memory model: WFI-Stall=1, Cache-Maintenance-MVA=1
cpu0: memory model: Cache-Maintenance-Set/Way=1, BP-Maintenance=1
cpu0: memory model: Maintenance-Broadcast=2, Coherent-Tablewalk=1
cpu0: processor features: ThumbEE=1, Jazelle=3, Thumb=2, ARM=1, Programmer=1
cpu0: processor features: Security=1
cpu0: media and VFP features: ASIMD-Registers=2, Single-Precision=2
cpu0: media and VFP features: Double-Precision=2, Divide=1, Square-Root=1
cpu0: media and VFP features: VFP-Rounding-Modes=1, Flush-To-Zero=1
cpu0: media and VFP features: Default-NaN=1, ASIMD-Load/Store=1
cpu0: media and VFP features: ASIMD-Integer=1, ASIMD-SPFP=1, ASIMD-HPFP=1
cpu0: media and VFP features: VFP-HPFP=1
nitro# cpuctl identify 3
cpu3: isa features: Swap, Bitcount, Bitfield, CmpBranch, Coproc=0, Debug
cpu3: isa features: Endian, Except, Except_AR, Extend=2, IfThen, Immediate
cpu3: isa features: Interwork=3, Jazelle, LoadStore, MemHint=4
cpu3: isa features: MultAccessInt=0, Mult=2, MultS=3, MultU=2, PSR_AR
cpu3: isa features: Reversal=2, Saturate, SIMD=3, SVC, SynchPrim=2, TabBranch
cpu3: isa features: ThumbCopy, TrueNOP, ThumbEE_Extn, Unpriv=2, WithShifts=4
cpu3: isa features: Writeback, SMC, Barrier
cpu3: memory model: VMSA-Support=3, Outermost-Shareablity=1
cpu3: memory model: Shareability-Levels=0, Auxilary-Registers=1
cpu3: memory model: Branch-Predictor=2, Unified-TLB=3, Mem-Barrier=2
cpu3: memory model: WFI-Stall=1, Cache-Maintenance-MVA=1
cpu3: memory model: Cache-Maintenance-Set/Way=1, BP-Maintenance=1
cpu3: memory model: Maintenance-Broadcast=2, Coherent-Tablewalk=1
cpu3: processor features: ThumbEE=1, Jazelle=3, Thumb=2, ARM=1, Programmer=1
cpu3: processor features: Security=1
cpu3: media and VFP features: ASIMD-Registers=2, Single-Precision=2
cpu3: media and VFP features: Double-Precision=2, Divide=1, Square-Root=1
cpu3: media and VFP features: VFP-Rounding-Modes=1, Flush-To-Zero=1
cpu3: media and VFP features: Default-NaN=1, ASIMD-Load/Store=1
cpu3: media and VFP features: ASIMD-Integer=1, ASIMD-SPFP=1, ASIMD-HPFP=1
cpu3: media and VFP features: VFP-HPFP=1
nitro# top -1|cat
load averages: 0.02, 0.01, 0.00; up 0+00:02:00 19:43:16
10 processes: 8 sleeping, 2 on CPU
CPU0 states: 0.0% user, 0.0% nice, 1.0% system, 0.0% interrupt, 99.0% idle
CPU1 states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU2 states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU3 states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Memory: 20M Act, 6808K Exec, 9576K File, 975M Free
Swap: 1024M Total, 1024M Free
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
0 root 0 0 0K 8256K CPU/3 0:01 0.00% 0.00% [system]
367 root 43 0 4296K 1680K CPU/0 0:00 0.00% 0.00% top -1
324 root 85 0 8880K 3320K wait/2 0:00 0.00% 0.00% login
298 root 85 0 9904K 2768K select/2 0:00 0.00% 0.00% /usr/sbin/ss
146 root 85 0 6688K 2136K kqueue/2 0:00 0.00% 0.00% /usr/sbin/sy
341 root 85 0 3864K 1520K nanosl/0 0:00 0.00% 0.00% /usr/sbin/cr
282 root 85 0 4048K 1456K kqueue/0 0:00 0.00% 0.00% /usr/sbin/in
1 root 85 0 3928K 1416K wait/2 0:00 0.00% 0.00% init
344 root 85 0 1496K 1184K pause/0 0:00 0.00% 0.00% -csh
41 root 85 0 3672K 1168K pipe_r/0 0:00 0.00% 0.00% cat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment