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

The release build worked, but can not boot installer....

Please confirm the dmesg attached in this mail.

Thank you.

Your Yuqing.


On 07/16/2017 03:41 PM, Yuqing.Guo wrote:
Hi Jared

Thank you very much. It works now.

Yours Yuqing.


On 07/09/2017 06:42 PM, Jared McNeill wrote:
Hi Yuqing --

You must be using bash as /bin/sh to get that error? If so I've checked in a fix. Thanks for the report!

Cheers,
Jared


On Sun, 9 Jul 2017, Yuqing.Guo wrote:

Hi Jared

I try to do an release building today, but it failed with the flowing error.
   >> src/distrib/utils/embedded/conf/armv7.conf: unexpected '}'

unless to comment out the "populate_sunxi()" function in armv7.conf.

Can you check out this?

Thank you.
Your Yuqing.

On 07/08/2017 07:52 AM, Yuqing.Guo wrote:
Hi Jared

Oh, this is an excellent feature!
I will update my source tree and confirm this.

Thank you for your effort^_^

Yours Yuqing


On 07/07/2017 06:55 AM, Jared McNeill wrote:
This should all be working now -- there should now be an installation/ramdisk/ramdisk.ub as part of your release build.

Cheers,
Jared

On Wed, 5 Jul 2017, Jared McNeill wrote:

Fantastic news Yuqing! I'll hook this up to the build once I figure out how :)

Cheers,
Jared


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

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 
reading netbsd.ub
6608468 bytes read in 330 ms (19.1 MiB/s)
reading sun8i-h3-orangepi-pc-plus.dtb
15603 bytes read in 26 ms (585.9 KiB/s)
reading ramdisk.ub
3145792 bytes read in 164 ms (18.3 MiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   NetBSD/sunxi 8.99.1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6608404 Bytes = 6.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   NetBSD/earmv7hf 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) #3: Sun Jul 16 15:34:30 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
fclock0 at fdt2: 24000000 Hz fixed clock
ffclock0 at fdt2: x1 /1 fixed-factor clock
fclock1 at fdt2: 32768 Hz fixed clock
sunxigates0 at fdt2
sunxiresets0 at fdt1
gtmr0 at fdt0: Generic Timer
armgtmr0 at gtmr0: ARMv7 Generic 64-bit Timer (24000 kHz)
armgtmr0: interrupting on irq 27
sunxigpio0 at fdt1: PIO
gpio0 at sunxigpio0: 94 pins
sunxigpio1 at fdt1: PIO
gpio1 at sunxigpio1: 12 pins
sun8ih3ccu0 at fdt1: H3 CCU
fregulator0 at fdt0: vcc3v3
fregulator1 at fdt0: vcc3v0
fregulator2 at fdt0: vcc5v0
sunxiusbphy0 at fdt1: USB PHY
/soc/dma-controller@01c02000 at fdt1 not configured
/soc/codec-analog@01f015c0 at fdt1 not configured
/clocks/ir_clk@01f01454 at fdt2 not configured
psci0 at fdt0: PSCI 0.1
gpioleds0 at fdt0: orangepi:green:pwr orangepi:red:status
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
ehci0 at fdt1: EHCI
ehci0: interrupting on GIC irq 106
ehci0: 1 companion controller, 1 port
usb0 at ehci0: USB revision 2.0
ohci0 at fdt1: OHCI
ohci0: interrupting on GIC irq 107
ohci0: OHCI version 1.0
usb1 at ohci0: USB revision 1.0
ehci1 at fdt1: EHCI
ehci1: interrupting on GIC irq 108
ehci1: 1 companion controller, 1 port
usb2 at ehci1: USB revision 2.0
ohci1 at fdt1: OHCI
ohci1: interrupting on GIC irq 109
ohci1: OHCI version 1.0
usb3 at ohci1: USB revision 1.0
ehci2 at fdt1: EHCI
ehci2: interrupting on GIC irq 110
ehci2: 1 companion controller, 1 port
usb4 at ehci2: USB revision 2.0
ohci2 at fdt1: OHCI
ohci2: interrupting on GIC irq 111
ohci2: OHCI version 1.0
usb5 at ohci2: USB revision 1.0
/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
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
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
sdmmc0 at sunximmc0
sdmmc1 at sunximmc1
sdmmc2 at sunximmc2
uhub0 at usb0: Generic (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub1 at usb2: Generic (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub2 at usb3: Generic (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub3 at usb1: Generic (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub4 at usb5: Generic (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub5 at usb4: Generic (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
ld2 at sdmmc2: <0x15:0x0100:8WPD3R:0x00:0xaa245315:0x000>
sdmmc0: SD card status: 4-bit, C10
ld0 at sdmmc0: <0x03:0x5344:SL08G:0x80:0x4c231f44:0x107>
ld2: 7456 MB, 3787 cyl, 64 head, 63 sec, 512 bytes/sect x 15269888 sectors
ld0: 7580 MB, 3850 cyl, 64 head, 63 sec, 512 bytes/sect x 15523840 sectors
(manufacturer 0x24c, product 0xf179, standard function interface code 0x7)at sdmmc1 function 1 not configured
ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
ld2: 8-bit width, 52.000 MHz
boot device: ld0
root on md0a dumps on md0b
root file system type: ffs
kern.module.path=/stand/evbarm/8.99.1/modules
WARNING: clock lost 6406 days
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
panic: init died (signal 6, exit 13)
Stopped in pid 1.1 (init) at    netbsd:cpu_Debugger+0x4:        bx      r14
db{0}> reboot
syncing disks... done
rebooting...
 


Home | Main Index | Thread Index | Old Index