Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Installation on an Orange Pi Plus 2 (Allwinner H3)
Hi Daniel Ziltener,
I am porting NetBSD to Allwinner H3 platform(NanoPi-M1) personally, now.
The following is the dmesg, until ask the root device.
But it needs much more time to make all hardware to work,
and unfortunately I have no more free time to work with it recently.
We can have a talk with each other.
------------dmesg------------------------------------------
## Starting application at 0x40008000 ...
@DFG01H1IJKLMZMP<A3112@BC-FG01H1IJKLM3@BC-FG01H1IJKLM@BC-FG01H1IJKLM>
Early console started
CPU Speed is 408000000
Determining GPIO configuration free PA=18 PB=24 PC=25 PD=28 PE=12 PF=6
PG=12 PH=28 PI=22
awin_bootstrap: cpu status: 0=0x1 1=0x3 2=0x3 3=0x3
awin_bootstrap: 4 cpus present
uboot arg = 0x2, 0x7bf86f6c, 0x7bf86f6c, 0x40008000
NetBSD/evbarm (nanopi_m3) booting ...
initarm: Configuring system ...
initarm: cbar=0x1c80000
memprobe not supported on A31
arm32_bootmem_init: memstart=0x40000000, memsize=0x40000000,
kernelstart=0x40008000
arm32_bootmem_init: kernelend=0x40678000
arm32_bootmem_init: adding 130244 free pages: [0x40678000..0x7fffffff]
(VA 0x80678000)
arm32_bootmem_init: adding 4 free pages: [0x40000000..0x40007fff] (VA
0x80000000)
arm32_kernel_vm_init: 1 L2 pages are needed to map 0x6c8000 kernel bytes
arm32_kernel_vm_init: allocating page tables for kerneladd_pages: adding
pv 0x80648b94 (pa 0x40678000, va 0x80678000, 2 pages) at tail
add_pages: appending pv 0x80658e44 (0x4067c000..0x4067dfff) to
0x40678000..0x4067bfff
vmadd_pages: appending pv 0x80658e58 (0x4067e000..0x4067ffff) to
0x40678000..0x4067dfff
add_pages: appending pv 0x80658e6c (0x40680000..0x40681fff) to
0x40678000..0x4067ffff
add_pages: appending pv 0x80658e80 (0x40682000..0x40683fff) to
0x40678000..0x40681fff
add_pages: appending pv 0x80658e94 (0x40684000..0x40685fff) to
0x40678000..0x40683fff
add_pages: appending pv 0x80658ea8 (0x40686000..0x40687fff) to
0x40678000..0x40685fff
add_pages: appending pv 0x80658ebc (0x40688000..0x40689fff) to
0x40678000..0x40687fff
add_pages: appending pv 0x80658ed0 (0x4068a000..0x4068bfff) to
0x40678000..0x40689fff
add_pages: appending pv 0x80658ee4 (0x4068c000..0x4068dfff) to
0x40678000..0x4068bfff
arm32_kernel_vm_init: allocating stacks
add_pages: appending pv 0x80659644 (0x4068e000..0x40695fff) to
0x40678000..0x4068dfff
add_pages: appending pv 0x80659630 (0x40696000..0x4069dfff) to
0x40678000..0x40695fff
add_pages: appending pv 0x8065961c (0x4069e000..0x406a5fff) to
0x40678000..0x4069dfff
add_pages: appending pv 0x80659608 (0x406a6000..0x406adfff) to
0x40678000..0x406a5fff
add_pages: appending pv 0x806595f4 (0x406ae000..0x406b5fff) to
0x40678000..0x406adfff
add_pages: appending pv 0x80659658 (0x406b6000..0x406b7fff) to
0x40678000..0x406b5fff
add_pages: appending pv 0x80648bd8 (0x406b8000..0x406bbfff) to
0x40678000..0x406b7fff
Creating L1 page table at 0x40678000
arm32_kernel_vm_init: adding L2 pt (VA 0x8067c000, PA 0x4067c000) for VA
0x80000000 (kernel)
arm32_kernel_vm_init: adding L2 pt (VA 0x8067e000, PA 0x4067e000) for VA
0xc0000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80680000, PA 0x40680000) for VA
0xc0800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80682000, PA 0x40682000) for VA
0xc1000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80684000, PA 0x40684000) for VA
0xc1800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80686000, PA 0x40686000) for VA
0xc2000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80688000, PA 0x40688000) for VA
0xc2800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8068a000, PA 0x4068a000) for VA
0xc3000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8068c000, PA 0x4068c000) for VA
0xc3800000 (vm)
Mapping kernel
arm32_kernel_vm_init: adding chunk for kernel text
0x40008000..0x404bdfff (VA 0x80008000)
add_pages: adding pv 0x80648b80 (pa 0x40008000, va 0x80008000, 603
pages) before pa 0x40678000
arm32_kernel_vm_init: adding chunk for kernel data/bss
0x404be000..0x40677fff (VA 0x804be000)
add_pages: adding pv 0x80648b6c (pa 0x404be000, va 0x804be000, 221
pages) before pa 0x40678000
Listing Chunks
arm32_kernel_vm_init: pv 0x80648b80: chunk VA 0x80008000..0x804bdfff (PA
0x40008000, prot 7, cache 1)
arm32_kernel_vm_init: pv 0x80648b6c: chunk VA 0x804be000..0x80677fff (PA
0x404be000, prot 3, cache 1)
arm32_kernel_vm_init: pv 0x80648b94: chunk VA 0x80678000..0x806bbfff (PA
0x40678000, prot 3, cache 1)
Mapping Chunks
arm32_kernel_vm_init: mapping chunk VA 0x80000000..0x80007fff (PA
0x40000000, prot 3, cache 1)
pmap_map_chunk: pa=0x40000000 va=0x80000000 size=0x8000 resid=0x8000
prot=0x3 cache=1
PPPP
arm32_kernel_vm_init: mapping chunk VA 0x80008000..0x804bdfff (PA
0x40008000, prot 7, cache 1)
pmap_map_chunk: pa=0x40008000 va=0x80008000 size=0x4b6000 resid=0x4b6000
prot=0x7 cache=1
PPPPLLLLLLLLLLLLLLLSSSLLLLLLLLLLLPPPPPPP
arm32_kernel_vm_init: mapping last chunk VA 0x804be000..0xbfffffff (PA
0x404be000, prot 3, cache 1)
pmap_map_chunk: pa=0x404be000 va=0x804be000 size=0x3fb42000
resid=0x3fb42000 prot=0x3 cache=1
PLLLLSSSSSSSSSSSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsS
devmap: 01c00000 -> 01ffffff @ e4000000
pmap_map_chunk: pa=0x1c00000 va=0xe4000000 size=0x400000 resid=0x400000
prot=0x3 cache=0
SSSS
devmap: 00000000 -> 000fffff @ e4400000
pmap_map_chunk: pa=0x0 va=0xe4400000 size=0x100000 resid=0x100000
prot=0x3 cache=1
S
Physical Virtual Num
Starting Ending Starting Ending Pages
SDRAM: 0x40000000 0x7fffffff 0x80000000 0xbfffffff 131072
text section: 0x40008000 0x404bdfff 0x80008000 0x804bdfff 603
data section: 0x40550000 0x40648458 0x80550000 0x80648458 125
bss section: 0x40648458 0x40677978 0x80648458 0x80677978 24
L1 page directory: 0x40678000 0x4067bfff 0x80678000 0x8067bfff 2
ABT stack (CPU 0): 0x4068e000 0x4068ffff 0x8068e000 0x8068ffff 1
FIQ stack (CPU 0): 0x40696000 0x40697fff 0x80696000 0x80697fff 1
IRQ stack (CPU 0): 0x4069e000 0x4069ffff 0x8069e000 0x8069ffff 1
UND stack (CPU 0): 0x406a6000 0x406a7fff 0x806a6000 0x806a7fff 1
IDLE stack (CPU 0): 0x406ae000 0x406affff 0x806ae000 0x806affff 1
SVC stack: 0x406b6000 0x406b7fff 0x806b6000 0x806b7fff 1
Message Buffer: 0x406b8000 0x406bbfff 0x806b8000 0x806bbfff 2
Free Memory: 0x406bc000 0x7fffffff 130210
Free Memory: 0x40000000 0x40007fff 4
TTBR0=0x47ffc05b TTBR1=0x47ffc05b TTBCR=0x1 CONTEXTIDR=0
switching to new L1 page table @0x40678000... ttb (TTBCR=0x11
TTBR0=0x4067805b TTBR1=0x4067805b)
hatchlingscpu_boot_secondary_processors: writing mbox with 0xe
OK
Started by <u-boot go?> command. bootargs=<root=ld0a>
nfreeblocks = 2, free_pages = 130214 (0x1fca6)
bootstrap done.
vectors vbar=0x80024d60 0x80024d60
init subsystems: stacks vectors undefined page pmap_physload pmap kpm
tlb0 kcpusets locks l1pt cache(l1pt) specials pools [ Kernel symbol
table missing! ]
done.
Loaded initial symtab at 0x80586868, strtab at 0x805d2e48, # entries 19530
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
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.39 (YQ_H3) #44: Thu Oct 13 20:11:19 CST 2016
total memory = 1024 MB
avail memory = 1007 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
mainbus0 (root)
cpu0 at mainbus0 core 0: 408 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 512KB/64B 8-way write-through 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
armgic0 at armperiph0: Generic Interrupt Controller, 160 sources (151 valid)
armgic0: 32 Priorities, 128 SPIs, 7 PPIs, 16 SGIs
armgtmr0 at armperiph0: ARMv7 Generic 64-bit Timer (24000 kHz)
armgtmr0: interrupting on irq 27
awinio0 at mainbus0: H3 (0x1680)
awingpio0 at awinio0
awingpio0: interrupting on irq 0
gpio0 at awingpio0 port A: 18 pins
gpio1 at awingpio0 port B: 24 pins
gpio2 at awingpio0 port C: 25 pins
gpio3 at awingpio0 port D: 28 pins
gpio4 at awingpio0 port E: 12 pins
gpio5 at awingpio0 port F: 6 pins
gpio6 at awingpio0 port G: 12 pins
gpio7 at awingpio0 port H: 28 pins
gpio8 at awingpio0 port I: 22 pins
cpu_boot_secondary_processors: writing mbox with 0xe
cpu_hatch(cpu1): vectors vbar=0x80024d60cpu_hatch(cpu3): vectors
stacks vbar=0x80024d60cpu_hatch(cpu2): stacks vectors vbar=0x80024d60
tlb stacks tlbcpu1 tlb: 408 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu1: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu1: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfpvfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
interruptscpu2 md(0x8000cc38) done!
: 408 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu2: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu2: 32KB/32B 2-way L1 VIPT Instruction cache
cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu2: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfpvfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
interruptscpu3 md(0x8000cc38) done!
: 408 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu3: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu3: 32KB/32B 2-way L1 VIPT Instruction cache
cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu3: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfpvfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
interrupts md(0x8000cc38) done!
boot device: <unknown>
unknown device major 0xffffffffffffffff
root device:
-----------------------------------------------------------------------
Yours, Yuqing
On 2016年12月19日 07:35, Daniel Ziltener wrote:
Hello!
I bought an Orange Pi Plus 2 with the Allwinner H3 chip. As I've seen
at least one person managed to run NetBSD on this board. Now, since I
got a bit confused by the instructions and also don't know which
kernel I need, I request your help.
What I've done so far:
I downloaded the armv7.img, I dd'ed a compatible
u-boot-sunxi-with-spl.bin into it and then dd'ed the resulting
armv7.img onto the microSD. I also downloaded the matching .fex file.
I know I have to compile the .fex, and am currently trying to get the
tools to do that to compile on by NetBSD box. But after that I'm
pretty much stuck and don't know how to proceed.
So, what I need advice for:
What kernel do I need for this device? How do I know what my boot.cmd
needs? And do I need to do something else before plugging in the microSD?
Thank you very much in advance, and best regards,
Daniel Ziltener
Home |
Main Index |
Thread Index |
Old Index