Port-arm archive

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

Re: BPI-P2 zero questions



Wow, I used your image but overwrote u-boot-sunxi-with-spl.bin
 (orangepi-zero pkgsrc version) with
dd if=u-boot-sunxi-with-spl-opi.bin of=/dev/sdb bs=1k seek=8 conv=sync

Machine booted successfully and automatically! I have working
SD-card, network, only eMMC is not working.
[     2.280928] sdmmc1 at sunximmc1
[ 2.470931] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 1 not configured

That is great, thanks to you! I include dmesg output just in case.

31.05.2019 17:20, Jason Thorpe пишет:


On May 31, 2019, at 7:11 AM, Dima Veselov <kab00m%lich.phys.spbu.ru@localhost> wrote:

Unfortunately this image seem to have no network,
MMC and SD-card support.

Huh, ok.  I'll have to dig deeper, but won't be able to do that for a few days as I have family visiting from out-of-town.  I do have a couple of BPI-M2 Zero boards that I can test this with -- I just have to solder headers onto the board so I can get at the serial port (they're in the "projects not yet started" box :-) )

This P2 board probably requires its own DTB because the M2 Zero doesn't have it's on-board Ethernet wired up.


U-Boot SPL 2019.04-rc4 (May 30 2019 - 21:01:53 -0700)
DRAM: 512 MiB
Trying to boot from MMC1


U-Boot 2019.04-rc4 (May 30 2019 - 21:01:53 -0700) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Banana Pi BPI-M2-Zero
DRAM:  512 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... MMC: no card present
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
MMC: no card present
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No controllers found
No ethernet found.
No ethernet found.
=> fatload mmc 1:1 netbsd-BEAGLEBONE.ub
Card did not respond to voltage select!
=>

31.05.2019 8:19, Jason Thorpe пишет:
Here is an image that has the correct u-boot, anyhow...
	https://www.dropbox.com/s/nm5bej73kzfzi3m/armv7-bpi-m2-zero.img.gz
On May 30, 2019, at 2:59 PM, Jason Thorpe <thorpej%me.com@localhost> wrote:



On May 30, 2019, at 2:37 PM, Jason Thorpe <thorpej%me.com@localhost> wrote:



On May 30, 2019, at 1:26 PM, Dima Veselov <kab00m%lich.phys.spbu.ru@localhost> wrote:

Greetings,

I own BananaPI P2 Zero board and wish to run NetBSD on it.
BPI-P2 Zero is BPI-M2 Zero but have eMMC and PoE support.
According to Allwinner NetBSD evbarm wiki this board may
be supported like Orange PI Zero (the only board having
same H2+ CPU).

The BPI-M2 Zero also has an H2+ SoC.  I would expect that the BPI-M2 Zero u-boot and DTB would be what you want to use for this.

...aaaaand the version of u-boot that is most common in NetBSD pkgsrc (2008.11) does not have a M2 Zero configuration.  However, 2019.04 does, and we have at least one instance of that version of u-boot in pkgsrc (for the BPI-R2).  I'll put together a u-boot package for the M2-Zero and write it to a new image for you to try.  Stay tuned.



I have tried recipes from wiki: using armv7.img + u-boot.
It works but with different results on different u-boot
images.

OrangePi Zero u-boot make best result - it boots,
try to load PXE, succesfully loading dtb file from tftp, but
loading kernel fails with Bad Data CRC on kernel load
or with Kernel symbol table missing! on NetBSD stage-2
loader.

Loading kernel with "Kernel symbol table missing!" Is actually kind of normal, so don't sweat that one.

Orange Pi Plus 2E also works, but seem to have problems
with network, stage 2 also fail.

BPI u-boot do not work at all.

Which BPI u-boot image did you use?

If someone is interested to help me get it working - I have
full logs about this boots and can experiment with the board.

Can you send me logs from your "most successful" run?

-- thorpej


-- thorpej
-- thorpej

-- thorpej

[     1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[     1.000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[     1.000000] 2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
[     1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[     1.000000] The Regents of the University of California.  All rights reserved.

[     1.000000] NetBSD 8.99.41 (GENERIC) #0: Fri May 17 08:56:12 UTC 2019
[     1.000000]         mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC
[     1.000000] total memory = 512 MB
[     1.000000] avail memory = 496 MB
[     1.000000] timecounter: Timecounters tick every 10.000 msec
[     1.000000] armfdt0 (root)
[     1.000000] simplebus0 at armfdt0: Xunlong Orange Pi Zero
[     1.000000] simplebus1 at simplebus0
[     1.000000] simplebus2 at simplebus0
[     1.000000] cpus0 at simplebus0
[     1.000000] simplebus3 at simplebus0
[     1.000000] cpu0 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[     1.000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     1.000000] cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
[     1.000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     1.000000] cpu0: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     1.000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     1.000000] cpufreqdt0 at cpu0
[     1.000000] cpu1 at cpus0
[     1.000000] cpufreqdt1 at cpu1
[     1.000000] cpu2 at cpus0
[     1.000000] cpufreqdt2 at cpu2
[     1.000000] cpu3 at cpus0
[     1.000000] cpufreqdt3 at cpu3
[     1.000000] gic0 at simplebus1: GIC
[     1.000000] armgic0 at gic0: Generic Interrupt Controller, 160 sources (150 valid)
[     1.000000] armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
[     1.000000] fclock0 at simplebus2: 24000000 Hz fixed clock (osc24M)
[     1.000000] fclock1 at simplebus2: 32768 Hz fixed clock (osc32k)
[     1.000000] syscon0 at simplebus1: System Controller Registers
[     1.000000] fclock2 at simplebus2: 16000000 Hz fixed clock (iosc)
[     1.000000] gtmr0 at simplebus0: Generic Timer
[     1.000000] gtmr0: interrupting on GIC irq 27
[     1.000000] armgtmr0 at gtmr0: ARM Generic Timer (24000 kHz)
[     1.000000] timecounter: Timecounter "armgtmr0" frequency 24000000 Hz quality 500
[     1.000036] sun8ih3ccu0 at simplebus1: H3 CCU
[     1.000036] sun8ih3rccu0 at simplebus1: H3 PRCM CCU
[     1.000036] sunxigpio0 at simplebus1: PIO
[     1.000036] gpio0 at sunxigpio0: 94 pins
[     1.000036] sunxigpio0: interrupting on GIC irq 43
[     1.000036] sunxigpio1 at simplebus1: PIO
[     1.000036] gpio1 at sunxigpio1: 12 pins
[     1.000036] sunxigpio1: interrupting on GIC irq 77
[     1.000036] sunxisramc0 at simplebus1: SRAM Controller
[     1.000036] gregulator0 at simplebus0: vdd-cpux
[     1.000036] fregulator0 at simplebus0: vcc3v3
[     1.000036] fregulator1 at simplebus0: vcc-wifi
[     1.000036] fregulator2 at simplebus0: vcc3v0
[     1.000036] fregulator3 at simplebus0: vcc5v0
[     1.000036] sunxiusbphy0 at simplebus1: USB PHY
[     1.000036] /soc/clock@1000000 at simplebus1 not configured
[     1.000036] /soc/mixer@1100000 at simplebus1 not configured
[     1.000036] /soc/lcd-controller@1c0c000 at simplebus1 not configured
[     1.000036] mmcpwrseq0 at simplebus0: Simple MMC power sequence provider
[     1.000036] emac0 at simplebus1: EMAC
[     1.000036] emac0: Ethernet address 02:42:7b:a9:57:5a
[     1.000036] emac0: interrupting on GIC irq 114
[     1.000036] ukphy0 at emac0 phy 1: OUI 0x0088a0, model 0x0000, rev. 0
[     1.000036] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[     1.000036] sun6idma0 at simplebus1: DMA controller (12 channels)
[     1.000036] sun6idma0: interrupting on GIC irq 82
[     1.000036] h3codec0 at simplebus1: H3 Audio Codec (analog part)
[     1.000036] /soc/hdmi-phy@1ef0000 at simplebus1 not configured
[     1.000036] /opp_table0 at simplebus0 not configured
[     1.000036] sunximmc0 at simplebus1: SD/MMC controller
[     1.000036] sunximmc0: interrupting on GIC irq 92
[     1.000036] sunximmc1 at simplebus1: SD/MMC controller
[     1.000036] sunximmc1: interrupting on GIC irq 93
[     1.000036] motg0 at simplebus1: 'peripheral' mode not supported
[     1.000036] ehci0 at simplebus1: EHCI
[     1.000036] ehci0: interrupting on GIC irq 104
[     1.000036] ehci0: EHCI version 1.0
[     1.000036] ehci0: 1 companion controller, 1 port
[     1.000036] usb0 at ehci0: USB revision 2.0
[     1.000036] ohci0 at simplebus1: OHCI
[     1.000036] ohci0: interrupting on GIC irq 105
[     1.000036] ohci0: OHCI version 1.0
[     1.000036] usb1 at ohci0: USB revision 1.0
[     1.000036] ehci1 at simplebus1: EHCI
[     1.000036] ehci1: interrupting on GIC irq 106
[     1.000036] ehci1: EHCI version 1.0
[     1.000036] ehci1: 1 companion controller, 1 port
[     1.000036] usb2 at ehci1: USB revision 2.0
[     1.000036] ohci1 at simplebus1: OHCI
[     1.000036] ohci1: interrupting on GIC irq 107
[     1.000036] ohci1: OHCI version 1.0
[     1.000036] usb3 at ohci1: USB revision 1.0
[     1.000036] sunxiwdt0 at simplebus1: Watchdog
[     1.000036] sunxiwdt0: default watchdog period is 16 seconds
[     1.000036] com0 at simplebus1: ns16550a, working fifo
[     1.000036] com0: console
[     1.000036] com0: interrupting on GIC irq 32
[     1.000036] sunxirtc0 at simplebus1: RTC
[     1.000036] /soc/gpu@1c40000 at simplebus1 not configured
[     1.000036] psci0 at simplebus0: PSCI 0.1
[     1.000036] gpioleds0 at simplebus0: orangepi:green:pwr orangepi:red:status
[     1.000036] sunxitimer0 at simplebus1: Timer
[     1.000036] timecounter: Timecounter "Timer 2" frequency 24000000 Hz quality 200
[     1.000036] /soc/video-codec@01c0e000 at simplebus1 not configured
[     1.000036] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[     1.000036] cpu3: Cortex-A7 r0p5 (Cortex V7A core)
[     1.000036] cpu3: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     1.970927] cpu3: 32KB/32B 2-way L1 VIPT Instruction cache
[     1.970927] cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     1.980915] cpu3: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     1.990916] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     1.990916] cpu2: Cortex-A7 r0p5 (Cortex V7A core)
[     2.000915] cpu2: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     2.010916] cpu2: 32KB/32B 2-way L1 VIPT Instruction cache
[     2.010916] cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     2.020916] cpu2: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     2.020916] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     2.030917] cpu1: Cortex-A7 r0p5 (Cortex V7A core)
[     2.040916] cpu1: DC enabled IC enabled WB enabled LABT branch prediction enabled
[     2.040916] cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
[     2.050917] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[     2.060917] cpu1: 512KB/64B 8-way write-through L2 PIPT Unified cache
[     2.060917] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[     2.070917] cpufreqdt0: 648.000 MHz, 1040000 uV
[     2.070917] cpufreqdt0: 816.000 MHz, 1100000 uV
[     2.070917] cpufreqdt0: 1008.000 MHz, 1200000 uV
[     2.080921] sdmmc0 at sunximmc0
[     2.190921] uhub0 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[     2.200922] uhub0: 1 port with 1 removable, self powered
[     2.200922] uhub1 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[     2.210925] uhub1: 1 port with 1 removable, self powered
[     2.210925] uhub2 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[     2.220922] uhub2: 1 port with 1 removable, self powered
[     2.220922] uhub3 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[     2.230922] uhub3: 1 port with 1 removable, self powered
[     2.240927] sdmmc0: SD card status: 4-bit, C4
[     2.250925] ld0 at sdmmc0: <0x02:0x544d:SA04G:0x21:0x3c875c86:0x10b>
[     2.250925] ld0: 3724 MB, 1891 cyl, 64 head, 63 sec, 512 bytes/sect x 7626752 sectors
[     2.267663] IPsec: Initialized Security Association Processing.
[     2.270934] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[     2.280928] sdmmc1 at sunximmc1
[     2.470931] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 1 not configured
[     2.480958] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 2 not configured
[     2.940966] boot device: ld0
[     2.940966] root on ld0a dumps on ld0b
[     2.960968] root file system type: ffs
[     2.960968] kern.module.path=/stand/evbarm/8.99.41/modules
[     2.973884] WARNING: clock lost 7076 days
[     2.973884] WARNING: using filesystem time
[     2.981947] WARNING: CHECK AND RESET THE DATE!


Home | Main Index | Thread Index | Old Index