Port-arm archive

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

Re: Allwinner H3 support added to -current



Hi Jared:

It is great!!
Using ramdisk to boot the installer SUCCEED!
See the attached dmesg, please.

Thank you, Thank you!

And wait your commit for including a ramdisk.fs/ramdisk.ub in the release build.

Yours Yuqing.

On 07/05/2017 08:06 PM, Jared McNeill wrote:
Hi Yuqing --

Thank you for the dmesg. Very excited to see other boards working with no changes.

I've committed support for another way to boot the installer, but haven't tested the entire process yet. Please try it and let me know how it goes.

If you do a full release build, there should be a 'ramdisk.fs' somewhere in the obj directory (I think). This is normally used as an embedded ramdisk image in the *_INSTALL kernels.

Instead, add a legacy U-Boot header to the ramdisk.fs file (make sure your mkubootimage is up to date, I checked in a fix for this last night):

$ mkubootimage -A arm -C none -O linux -T ramdisk -a 0 -n "NetBSD/sunxi ramdisk" ramdisk.fs ramdisk.ub

Copy 'ramdisk.ub' along with the 'netbsd.ub' from the SUNXI kernel to your SD card. Try booting like this:

 setenv kernel netbsd.ub
 setenv ramdisk ramdisk.ub
 fatload mmc 0:1 ${kernel_addr_r} ${kernel}
 fatload mmc 0:1 ${fdt_addr_r} ${fdtfile}
 fdt addr ${fdt_addr_r}
 fatload mmc 0:1 ${ramdisk_addr_r} ${ramdisk}
 bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}

If all goes well, it should use the ramdisk.ub file for the root fs and start the installer.

If this works, I'll remove the SUNXI_INSTALL kernel and include a ramdisk.fs/ramdisk.ub in the release build instead.

Cheers,
Jared


On Wed, 5 Jul 2017, Yuqing.Guo wrote:

Hi Jared:

I attached the dmesg of booting Orange Pi PC Plus.

I will try the flowing method as you mentioned to boot an install.ub.
Thank you again!

Yours Yuqing.


On 07/05/2017 07:15 AM, Jared McNeill wrote:
On Tue, 4 Jul 2017, Jared McNeill wrote:

Not sure yet how to boot with "go". I tried converting the .bin to a Legacy U-Boot image like this:

$ mkubootimage -A arm -C none -O linux -T kernel -a 40008000 -n "NetBSD/sunxi install" install.bin install.ub

Oops, there's a typo in that command -- the -a value needs to be specified in hex, so the correct command would be:

$ mkubootimage -A arm -C none -O linux -T kernel -a 0x40008000 -n "NetBSD/sunxi install" install.bin install.ub

Still need to increase CONFIG_SYS_BOOTM_LEN though.

Cheers,
Jared





U-Boot SPL 2017.05-01034-g3296af7b33 (Jul 04 2017 - 20:46:34)
DRAM: 1024 MiB
Trying to boot from MMC1


U-Boot 2017.05-01034-g3296af7b33 (Jul 04 2017 - 20:46:34 +0800) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC Plus
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
USB4:   USB EHCI 1.00
USB5:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
=>  setenv kernel netbsd.ub
=>  setenv ramdisk ramdisk.ub
=>  fatload mmc 0:1 ${kernel_addr_r} ${kernel}
reading netbsd.ub
6455828 bytes read in 314 ms (19.6 MiB/s)
=>  fatload mmc 0:1 ${fdt_addr_r} ${fdtfile}
reading sun8i-h3-orangepi-pc-plus.dtb
15603 bytes read in 28 ms (543.9 KiB/s)
=>  fdt addr ${fdt_addr_r}
=>  fatload mmc 0:1 ${ramdisk_addr_r} ${ramdisk}
reading ramdisk.ub
3145792 bytes read in 165 ms (18.2 MiB/s)
=>  bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   NetBSD/sunxi 8.99.1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6455764 Bytes = 6.2 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   NetBSD/sunxi ramdisk
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    3145728 Bytes = 3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Kernel Image ... OK
   Loading Ramdisk to 49d00000, end 4a000000 ... OK
   Loading Device Tree to 49cf9000, end 49cffcf2 ... OK

Starting kernel ...

[ Kernel symbol table missing! ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    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 8.99.1 (SUNXI) #4: Wed Jul  5 22:08:22 CST 2017
        yuqing@Yuqing-Kubuntu:/opt/NetBSD/z_obj/sys/arch/evbarm/compile/SUNXI
total memory = 1024 MB
avail memory = 1006 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
armfdt0 (root)
fdt0 at armfdt0: Xunlong Orange Pi PC Plus
fdt1 at fdt0
fdt2 at fdt0
cpus0 at fdt0
cpu0 at cpus0: 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 cpus0
cpu2 at cpus0
cpu3 at cpus0
gic0 at fdt1: GIC
armgic0 at gic0: Generic Interrupt Controller, 160 sources (150 valid)
armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
gtmr0 at fdt0: Generic Timer
armgtmr0 at gtmr0: ARMv7 Generic 64-bit Timer (24000 kHz)
armgtmr0: interrupting on irq 27
sunxigpio0 at fdt1: PIO
sunxigpio1 at fdt1: PIO
fclock0 at fdt2: 24000000 Hz fixed clock
fclock1 at fdt2: 32768 Hz fixed clock
sun8ih3ccu0 at fdt1: H3 CCU
fregulator0 at fdt0: vcc3v3
fregulator1 at fdt0: vcc3v0
fregulator2 at fdt0: vcc5v0
sunxiusbphy0 at fdt1: USB PHY
ohci0 at fdt1: OHCI
ohci0: interrupting on GIC irq 107
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
ohci1 at fdt1: OHCI
ohci1: interrupting on GIC irq 109
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
ohci2 at fdt1: OHCI
ohci2: interrupting on GIC irq 111
ohci2: OHCI version 1.0
usb2 at ohci2: USB revision 1.0
ehci0 at fdt1: EHCI
ehci0: interrupting on GIC irq 106
ehci0: companion controller, 1 port each: ohci0
usb3 at ehci0: USB revision 2.0
ehci1 at fdt1: EHCI
ehci1: interrupting on GIC irq 108
ehci1: companion controller, 1 port each: ohci1
usb4 at ehci1: USB revision 2.0
ehci2 at fdt1: EHCI
ehci2: interrupting on GIC irq 110
ehci2: companion controller, 1 port each: ohci2
usb5 at ehci2: USB revision 2.0
/clocks/apb0_clk at fdt2 not configured
/soc/dma-controller@01c02000 at fdt1 not configured
/soc/codec-analog@01f015c0 at fdt1 not configured
/clocks/clk@01f01428 at fdt2 not configured
/clocks/ir_clk@01f01454 at fdt2 not configured
/soc/reset@01f014b0 at fdt1 not configured
psci0 at fdt0: PSCI 0.1
/leds at fdt0 not configured
gpiokeys0 at fdt0: sw4
sunximmc0 at fdt1: SD/MMC controller
sunximmc0: interrupting on GIC irq 92
sunximmc1 at fdt1: SD/MMC controller
sunximmc1: interrupting on GIC irq 93
sunximmc2 at fdt1: SD/MMC controller
sunximmc2: interrupting on GIC irq 94
/soc/timer@01c20c00 at fdt1 not configured
/soc/watchdog@01c20ca0 at fdt1 not configured
/soc/codec@01c22c00 at fdt1 not configured
com0 at fdt1: ns16550a, working fifo
com0: console
com0: interrupting on GIC irq 32
sunxirtc0 at fdt1: RTC
/soc/ir@01f02000 at fdt1 not configured
cpu3: 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
vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu1: 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
vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu2: 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
vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
sdmmc0 at sunximmc0
sdmmc1 at sunximmc1
sdmmc2 at sunximmc2
uhub0 at usb1: Generic (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb0: Generic (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub2 at usb2: Generic (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub3 at usb3: Generic (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1

 NetBSD/evbarm 8.99.1

 This menu-driven tool is designed to help you install NetBSD to a hard disk,
 or upgrade an existing NetBSD system, with a minimum of work.
 In the following menus type the reference letter (a, b, c, ...) to select an
 item, or type CTRL+N/CTRL+P to select the next/previous item.
 The arrow keys and Page-up/Page-down may also work.
 Activate the current selection from the menu by typing the enter key.
 


                ┌─────────────────────────────────────────────┐
                │>a: Installation messages in English         │
                │ b: Mensajes de instalacion en castellano    │
                │ c: Komunikaty instalacyjne w jezyku polskim │
                │ d: Messages d'installation en fran�ais      │
                │ e: Installation auf Deutsch                 │
                └─────────────────────────────────────────────┘


Home | Main Index | Thread Index | Old Index