Looks like you picked a bad SD card or the sd card got corrupted after you flashed the img. Try with a well known brand and attach the complete log.
I tried another image 2018-07-07-raspbian-jessie-preview-bpi-m2z-sd-emmc.img.zip
Wifi worked without issues. I was just stumped by the uboot message about missing Ethernet. I tried another of your builds, bpi-m2z-8GB-sd-ubuntu_eoan_kernel_5.3.5.img. Same results. They both hang for five minutes on DHCP, before being able to log in.
The Raspbian image gave me this boot message:
U-Boot 2017.07 (Nov 13 2017 - 16:24:03 +0800) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: Banana Pi BPI-M2-Zero
DRAM: 512 MiB
MMC: SUNXI SD/MMC: 0
BPI: skip sunxi_mmc_getcd pin 166(1)
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: No ethernet found.
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: 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 usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
BPI: skip sunxi_mmc_getcd pin 166(1)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script bananapi/bpi-m2z/linux/boot.scr
I see that it found USB devices? Is that even image related?
The reason is i have built ethernet support for eth0 (which i use) and it boot fast (~10 secs) if you have soldered the ethernet conector ( [BPI-M2-Zero] Default supports 10/100 Ethernet ). For some reason, eth0 is raised and DHCP tries to get an IP for this interface and after it cannot get one it proceed with the wifi interface, see here https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/issues/33#issue-565762320
You can update the u-boot (only the u-boot part) as described here: https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v2.9
I tried to get the eth0 working, but could not get it working. I used 568b wiring, how did you wire it?
No idea about the RJ45 connector. The wiring for this RJ45 connector is generally known here as 10/100.
The white pins are wired:
Double checked the wiring, turned out I had a short. ETH0 is working now.
But, wlan is not. Iāll try the newest kernel see if it helps. And it did not.
Dmesg output: https://pastebin.com/N8tWEAGX
Never mind, it started working by itself.
Linux Kernel 5.6.0 is out and apparently working well on M2Z.
Working:
- HDMI
- HDMI sound out
- BT
- Wifi
- DVFS
Need some tests:
- cedrus
- lima
ubuntu@bpi-m2z:~$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 9a:32:7a:d3:47:dc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 38
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.254.103 netmask 255.255.0.0 broadcast 192.168.255.255
ether cc:b8:a8:a9:e5:66 txqueuelen 1000 (Ethernet)
RX packets 8954 bytes 479193 (479.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8692 bytes 1839068 (1.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.6.0 (alex@svn) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12-rc1)) #1 SMP Mon Mar 30 15:44:17 -03 2020
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Banana Pi M2 Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 128 MiB at 0x55c00000
[ 0.000000] On node 0 totalpages: 122880
[ 0.000000] Normal zone: 960 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 122880 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 15 pages/cpu s31180 r8192 d22068 u61440
[ 0.000000] pcpu-alloc: s31180 r8192 d22068 u61440 alloc=15*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 121920
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootfstype=ext4 root=/dev/mmcblk0p2 rw rootwait fsck.repair=yes panic=10 no_console_suspend consoleblank=0 drm_leak_fbdev_smem=1
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 341600K/491520K available (8192K kernel code, 449K rwdata, 2076K rodata, 1024K init, 265K bss, 18848K reserved, 131072K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] random: get_random_bytes called from start_kernel+0x548/0x6d4 with crng_init=0
[ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000230] Console: colour dummy device 80x30
[ 0.000277] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000290] pid_max: default: 32768 minimum: 301
[ 0.000442] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000455] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001264] CPU: Testing write buffer coherency: ok
[ 0.001761] CPU0: update cpu_capacity 1024
[ 0.001772] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002349] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002474] rcu: Hierarchical SRCU implementation.
[ 0.003030] smp: Bringing up secondary CPUs ...
[ 0.013834] CPU1: update cpu_capacity 1024
[ 0.013841] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.024781] CPU2: update cpu_capacity 1024
[ 0.024787] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.035594] CPU3: update cpu_capacity 1024
[ 0.035601] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.035689] smp: Brought up 1 node, 4 CPUs
[ 0.035714] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.035720] CPU: All CPU(s) started in HYP mode.
[ 0.035724] CPU: Virtualization extensions available.
[ 0.036432] devtmpfs: initialized
[ 0.043283] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.043517] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.043546] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.048439] pinctrl core: initialized pinctrl subsystem
[ 0.049091] thermal_sys: Registered thermal governor 'step_wise'
[ 0.050086] NET: Registered protocol family 16
[ 0.051905] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.052889] cpuidle: using governor menu
[ 0.053214] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.053222] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.077828] iommu: Default domain type: Translated
[ 0.078269] SCSI subsystem initialized
[ 0.078520] libata version 3.00 loaded.
[ 0.078746] usbcore: registered new interface driver usbfs
[ 0.078794] usbcore: registered new interface driver hub
[ 0.078877] usbcore: registered new device driver usb
[ 0.079101] mc: Linux media interface: v0.10
[ 0.079147] videodev: Linux video capture interface: v2.00
[ 0.079247] pps_core: LinuxPPS API ver. 1 registered
[ 0.079254] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.079276] PTP clock support registered
[ 0.079701] Advanced Linux Sound Architecture Driver Initialized.
[ 0.080315] Bluetooth: Core ver 2.22
[ 0.080392] NET: Registered protocol family 31
[ 0.080400] Bluetooth: HCI device and connection manager initialized
[ 0.080416] Bluetooth: HCI socket layer initialized
[ 0.080427] Bluetooth: L2CAP socket layer initialized
[ 0.080448] Bluetooth: SCO socket layer initialized
[ 0.081198] clocksource: Switched to clocksource arch_sys_counter
[ 0.089483] NET: Registered protocol family 2
[ 0.090064] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.090091] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.090143] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.090205] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.090364] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.090413] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.090621] NET: Registered protocol family 1
[ 0.091333] RPC: Registered named UNIX socket transport module.
[ 0.091347] RPC: Registered udp transport module.
[ 0.091353] RPC: Registered tcp transport module.
[ 0.091358] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.092135] Trying to unpack rootfs image as initramfs...
[ 0.136327] Freeing initrd memory: 960K
[ 0.137610] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 0.138875] Initialise system trusted keyrings
[ 0.139154] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.146823] NFS: Registering the id_resolver key type
[ 0.146867] Key type id_resolver registered
[ 0.146875] Key type id_legacy registered
[ 0.183179] Key type asymmetric registered
[ 0.183193] Asymmetric key parser 'x509' registered
[ 0.183308] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.183320] io scheduler mq-deadline registered
[ 0.183326] io scheduler kyber registered
[ 0.184498] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.189024] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.190780] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[ 0.241744] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.244120] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[ 0.245072] printk: console [ttyS0] disabled
[ 0.245226] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 42, base_baud = 1500000) is a 16550A
[ 0.918950] printk: console [ttyS0] enabled
[ 0.923743] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 0.934351] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 43, base_baud = 1500000) is a 16550A
[ 0.943228] serial serial0: tty port ttyS1 registered
[ 0.948939] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 44, base_baud = 1500000) is a 16550A
[ 0.963522] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc095a1e0)
[ 0.970718] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0956dc0)
[ 0.978457] sun8i-dw-hdmi 1ee0000.hdmi: 1ee0000.hdmi supply hvcc not found, using dummy regulator
[ 0.988293] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[ 0.998252] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[ 1.006010] sun4i-drm display-engine: bound 1ee0000.hdmi (ops 0xc09597c8)
[ 1.012804] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.019407] [drm] No driver support for vblank timestamp query.
[ 1.025791] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.236007] random: fast init done
[ 1.559091] Console: switching to colour frame buffer device 240x67
[ 1.597244] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[ 1.606636] libphy: Fixed MDIO Bus: probed
[ 1.611083] CAN device driver interface
[ 1.615502] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[ 1.621883] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[ 1.627933] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.633754] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.639711] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.646964] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.654193] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.659153] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.665960] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.671626] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.677292] dwmac-sun8i 1c30000.ethernet: device MAC address 9a:32:7a:d3:47:dc
[ 1.685071] libphy: stmmac: probed
[ 1.689062] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.695599] libphy: mdio_mux: probed
[ 1.699191] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.705566] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.712802] libphy: mdio_mux: probed
[ 1.716928] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.723484] ehci-platform: EHCI generic platform driver
[ 1.728952] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.734575] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.742741] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[ 1.771213] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.777511] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.06
[ 1.785789] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.793012] usb usb1: Product: EHCI Host Controller
[ 1.797884] usb usb1: Manufacturer: Linux 5.6.0 ehci_hcd
[ 1.803197] usb usb1: SerialNumber: 1c1a000.usb
[ 1.808312] hub 1-0:1.0: USB hub found
[ 1.812132] hub 1-0:1.0: 1 port detected
[ 1.817005] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.823230] ohci-platform: OHCI generic platform driver
[ 1.828633] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.835277] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.843274] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[ 1.915367] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.06
[ 1.923656] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.930869] usb usb2: Product: Generic Platform OHCI controller
[ 1.936796] usb usb2: Manufacturer: Linux 5.6.0 ohci_hcd
[ 1.942114] usb usb2: SerialNumber: 1c1a400.usb
[ 1.949486] hub 2-0:1.0: USB hub found
[ 1.953281] hub 2-0:1.0: 1 port detected
[ 1.959619] sun6i-rtc 1f00000.rtc: registered as rtc0
[ 1.964699] sun6i-rtc 1f00000.rtc: RTC enabled
[ 1.969430] i2c /dev entries driver
[ 1.975414] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.983744] sun8i-h3-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[ 1.994362] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 2.030439] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 2.038316] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 2.066687] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 2.074761] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.080658] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.081264] sun8i-ce 1c15000.crypto: Set mod clock to 50000000 (50 Mhz) from 24000000 (24 Mhz)
[ 2.090738] mmc0: new high speed SDHC card at address 59b4
[ 2.097594] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[ 2.103865] mmcblk0: mmc0:59b4 SDU1 7.52 GiB
[ 2.115568] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[ 2.117869] mmcblk0: p1 p2
[ 2.126503] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[ 2.130393] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.139846] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[ 2.141117] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.147591] sun8i-ce 1c15000.crypto: Register cbc(aes)
[ 2.154430] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.158484] sun8i-ce 1c15000.crypto: Register ecb(aes)
[ 2.166249] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2.168957] sun8i-ce 1c15000.crypto: Register cbc(des3_ede)
[ 2.177467] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[ 2.179978] sun8i-ce 1c15000.crypto: Register ecb(des3_ede)
[ 2.191093] sun8i-ce 1c15000.crypto: CryptoEngine Die ID 1
[ 2.196902] hid: raw HID events driver (C) Jiri Kosina
[ 2.202698] usbcore: registered new interface driver usbhid
[ 2.208263] usbhid: USB HID core driver
[ 2.216017] sun4i-codec 1c22c00.codec: Failed to register our card
[ 2.224087] NET: Registered protocol family 17
[ 2.228558] can: controller area network core (rev 20170425 abi 9)
[ 2.234856] NET: Registered protocol family 29
[ 2.239300] can: raw protocol (rev 20170425)
[ 2.243611] can: broadcast manager protocol (rev 20170425 t)
[ 2.249273] can: netlink gateway (rev 20190810) max_hops=1
[ 2.255122] Bluetooth: RFCOMM TTY layer initialized
[ 2.260008] Bluetooth: RFCOMM socket layer initialized
[ 2.265205] Bluetooth: RFCOMM ver 1.11
[ 2.268491] mmc1: new high speed SDIO card at address 0001
[ 2.268962] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.279749] Bluetooth: BNEP filters: protocol multicast
[ 2.285021] Bluetooth: BNEP socket layer initialized
[ 2.289981] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.295911] Bluetooth: HIDP socket layer initialized
[ 2.301105] Key type dns_resolver registered
[ 2.305637] Registering SWP/SWPB emulation handler
[ 2.310656] Loading compiled-in X.509 certificates
[ 2.327053] simple-framebuffer 5e000000.framebuffer: framebuffer at 0x5e000000, 0x7e9000 bytes, mapped to 0x(ptrval)
[ 2.337650] simple-framebuffer 5e000000.framebuffer: format=x8r8g8b8, mode=1920x1080x32, linelength=7680
[ 2.347682] simple-framebuffer 5e000000.framebuffer: fb1: simplefb registered!
[ 2.356491] ehci-platform 1c1b000.usb: EHCI Host Controller
[ 2.362192] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[ 2.370346] ehci-platform 1c1b000.usb: irq 29, io mem 0x01c1b000
[ 2.401213] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[ 2.407524] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.06
[ 2.415803] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.423029] usb usb3: Product: EHCI Host Controller
[ 2.427902] usb usb3: Manufacturer: Linux 5.6.0 ehci_hcd
[ 2.433217] usb usb3: SerialNumber: 1c1b000.usb
[ 2.438330] hub 3-0:1.0: USB hub found
[ 2.442127] hub 3-0:1.0: 1 port detected
[ 2.446883] ehci-platform 1c1c000.usb: EHCI Host Controller
[ 2.452496] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[ 2.460566] ehci-platform 1c1c000.usb: irq 31, io mem 0x01c1c000
[ 2.491223] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[ 2.497486] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.06
[ 2.505756] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.512981] usb usb4: Product: EHCI Host Controller
[ 2.517853] usb usb4: Manufacturer: Linux 5.6.0 ehci_hcd
[ 2.523168] usb usb4: SerialNumber: 1c1c000.usb
[ 2.528196] hub 4-0:1.0: USB hub found
[ 2.531988] hub 4-0:1.0: 1 port detected
[ 2.536667] ehci-platform 1c1d000.usb: EHCI Host Controller
[ 2.542273] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[ 2.550330] ehci-platform 1c1d000.usb: irq 33, io mem 0x01c1d000
[ 2.581211] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[ 2.587448] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.06
[ 2.595729] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.602956] usb usb5: Product: EHCI Host Controller
[ 2.607828] usb usb5: Manufacturer: Linux 5.6.0 ehci_hcd
[ 2.613145] usb usb5: SerialNumber: 1c1d000.usb
[ 2.618173] hub 5-0:1.0: USB hub found
[ 2.621982] hub 5-0:1.0: 1 port detected
[ 2.626650] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[ 2.633297] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[ 2.641326] ohci-platform 1c1b400.usb: irq 30, io mem 0x01c1b400
[ 2.715355] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.06
[ 2.723633] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.730845] usb usb6: Product: Generic Platform OHCI controller
[ 2.736768] usb usb6: Manufacturer: Linux 5.6.0 ohci_hcd
[ 2.742086] usb usb6: SerialNumber: 1c1b400.usb
[ 2.747616] hub 6-0:1.0: USB hub found
[ 2.751412] hub 6-0:1.0: 1 port detected
[ 2.756086] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[ 2.762743] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[ 2.770755] ohci-platform 1c1c400.usb: irq 32, io mem 0x01c1c400
[ 2.845363] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.06
[ 2.853641] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.860853] usb usb7: Product: Generic Platform OHCI controller
[ 2.866776] usb usb7: Manufacturer: Linux 5.6.0 ohci_hcd
[ 2.872092] usb usb7: SerialNumber: 1c1c400.usb
[ 2.877113] hub 7-0:1.0: USB hub found
[ 2.880886] hub 7-0:1.0: 1 port detected
[ 2.885582] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[ 2.892242] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[ 2.900234] ohci-platform 1c1d400.usb: irq 34, io mem 0x01c1d400
[ 2.975380] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.06
[ 2.983655] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.990867] usb usb8: Product: Generic Platform OHCI controller
[ 2.996794] usb usb8: Manufacturer: Linux 5.6.0 ohci_hcd
[ 3.002110] usb usb8: SerialNumber: 1c1d400.usb
[ 3.007133] hub 8-0:1.0: USB hub found
[ 3.010915] hub 8-0:1.0: 1 port detected
[ 3.015694] usb_phy_generic usb_phy_generic.3.auto: usb_phy_generic.3.auto supply vcc not found, using dummy regulator
[ 3.027044] musb-hdrc musb-hdrc.4.auto: MUSB HDRC host driver
[ 3.032839] musb-hdrc musb-hdrc.4.auto: new USB bus registered, assigned bus number 9
[ 3.040819] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.06
[ 3.049092] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.056320] usb usb9: Product: MUSB HDRC host driver
[ 3.061289] usb usb9: Manufacturer: Linux 5.6.0 musb-hcd
[ 3.066594] usb usb9: SerialNumber: musb-hdrc.4.auto
[ 3.072051] hub 9-0:1.0: USB hub found
[ 3.075826] hub 9-0:1.0: 1 port detected
[ 3.084409] debugfs: Directory '1c22c00.codec' with parent 'H3 Audio Codec' already present!
[ 3.094931] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 3.103834] sun6i-rtc 1f00000.rtc: setting system clock to 2020-03-30T20:24:20 UTC (1585599860)
[ 3.112815] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.131513] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.138266] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.147800] cfg80211: failed to load regulatory.db
[ 3.148145] ALSA device list:
[ 3.157750] #0: H3 Audio Codec
[ 3.163298] Freeing unused kernel memory: 1024K
[ 3.213001] Run /init as init process
[ 3.217082] with arguments:
[ 3.217202] /init
[ 3.217304] earlyprintk
[ 3.217383] with environment:
[ 3.217474] HOME=/
[ 3.217564] TERM=linux
[ 3.217663] drm_leak_fbdev_smem=1
[ 3.425903] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.561260] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 3.603766] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.36
[ 3.612077] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.619243] usb 1-1: Product: USB2.0 Hub
[ 3.624426] hub 1-1:1.0: USB hub found
[ 3.628622] hub 1-1:1.0: 4 ports detected
[ 3.981309] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
[ 4.023427] usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice= 9.01
[ 4.031888] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 4.039234] usb 1-1.2: Product: USB2.0 Hub
[ 4.062544] hub 1-1.2:1.0: USB hub found
[ 4.070587] hub 1-1.2:1.0: 4 ports detected
[ 4.612941] usb 1-1.2.3: new low-speed USB device number 4 using ehci-platform
[ 4.732111] systemd[1]: Failed to find module 'autofs4'
[ 4.775670] systemd[1]: systemd 242 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[ 4.777403] usb 1-1.2.3: New USB device found, idVendor=1c4f, idProduct=0002, bcdDevice= 1.10
[ 4.797903] systemd[1]: Detected architecture arm.
[ 4.805597] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.818371] usb 1-1.2.3: Product: USB Keyboard
[ 4.822832] usb 1-1.2.3: Manufacturer: SIGMACHIP
[ 4.833729] input: SIGMACHIP USB Keyboard as /devices/platform/soc/1c1a000.usb/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/0003:1C4F:0002.0001/input/input0
[ 4.912160] hid-generic 0003:1C4F:0002.0001: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-1c1a000.usb-1.2.3/input0
[ 4.931590] input: SIGMACHIP USB Keyboard Consumer Control as /devices/platform/soc/1c1a000.usb/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.1/0003:1C4F:0002.0002/input/input1
[ 4.958771] systemd[1]: Set hostname to <bpi-m2z>.
[ 4.976482] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[ 5.011884] input: SIGMACHIP USB Keyboard System Control as /devices/platform/soc/1c1a000.usb/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.1/0003:1C4F:0002.0002/input/input2
[ 5.027099] hid-generic 0003:1C4F:0002.0002: input,hidraw1: USB HID v1.10 Device [SIGMACHIP USB Keyboard] on usb-1c1a000.usb-1.2.3/input1
[ 5.553348] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 5.570792] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 6.054233] systemd[1]: /lib/systemd/system/dbus.socket:4: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket ā /run/dbus/system_bus_socket; please update the unit file accordingly.
[ 6.231885] systemd[1]: /etc/systemd/system/dhclient.service:8: PIDFile= references a path below legacy directory /var/run/, updating /var/run/dhclient.pid ā /run/dhclient.pid; please update the unit file accordingly.
[ 6.416104] systemd[1]: network.target: Found ordering cycle on networking-routes.service/start
[ 6.424955] systemd[1]: network.target: Found dependency on network.target/start
[ 6.468141] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.521797] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.570334] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.257538] EXT4-fs (mmcblk0p2): re-mounted. Opts: commit=600,errors=remount-ro
[ 7.961035] systemd-journald[184]: Received request to flush runtime journal from PID 1
[ 8.714745] sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.719514] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[ 8.722452] sun8i-di 1400000.deinterlace: Device registered as /dev/video1
[ 8.804273] Bluetooth: HCI UART driver ver 2.3
[ 8.804289] Bluetooth: HCI UART protocol H4 registered
[ 8.804644] Bluetooth: HCI UART protocol Broadcom registered
[ 8.906334] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 8.909299] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 8.934141] usbcore: registered new interface driver brcmfmac
[ 8.950380] lima 1c40000.gpu: IRQ ppmmu2 not found
[ 8.955381] lima 1c40000.gpu: IRQ ppmmu3 not found
[ 8.971906] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[ 8.972056] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[ 8.972117] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[ 8.972162] lima 1c40000.gpu: IRQ pp2 not found
[ 8.976708] lima 1c40000.gpu: IRQ pp3 not found
[ 8.981361] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[ 8.983739] lima 1c40000.gpu: bus rate = 200000000
[ 8.983753] lima 1c40000.gpu: mod rate = 384000000
[ 8.984319] [drm] Initialized lima 1.0.0 20190217 for 1c40000.gpu on minor 1
[ 9.010059] Registered IR keymap rc-empty
[ 9.010209] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0
[ 9.010382] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0/input3
[ 9.011155] sunxi-ir 1f02000.ir: initialized sunXi IR driver
[ 9.172531] Bluetooth: hci0: BCM: chip id 94
[ 9.173064] Bluetooth: hci0: BCM: features 0x2e
[ 9.175223] Bluetooth: hci0: BCM43430A1
[ 9.175247] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000
[ 9.186150] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 9.198034] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 9.235710] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Aug 29 2016 20:48:16 version 7.45.41.26 (r640327) FWID 01-4527cfab
[ 9.837108] asoc-simple-card soc:sound: i2s-hifi <-> 1c22800.i2s mapping ok
[ 9.984604] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0106
[ 14.317679] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 14.317741] ext4 filesystem being mounted at /boot supports timestamps until 2038 (0x7fffffff)
[ 15.045270] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY] (irq=POLL)
[ 15.054148] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 15.054171] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 15.054181] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 15.054199] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
[ 16.413032] zram: Added device: zram0
[ 16.413874] zram: Added device: zram1
[ 16.414531] zram: Added device: zram2
[ 16.415250] zram: Added device: zram3
[ 16.557555] zram0: detected capacity change from 0 to 60755968
[ 16.681317] random: crng init done
[ 16.681338] random: 7 urandom warning(s) missed due to ratelimiting
[ 16.933591] Adding 59328k swap on /dev/zram0. Priority:5 extents:1 across:59328k SS
[ 16.966248] zram1: detected capacity change from 0 to 60755968
[ 17.071381] Adding 59328k swap on /dev/zram1. Priority:5 extents:1 across:59328k SS
[ 17.073683] zram2: detected capacity change from 0 to 60755968
[ 17.171468] Adding 59328k swap on /dev/zram2. Priority:5 extents:1 across:59328k SS
[ 17.173775] zram3: detected capacity change from 0 to 60755968
[ 17.262743] Adding 59328k swap on /dev/zram3. Priority:5 extents:1 across:59328k SS
[ 18.203582] loop: module loaded
[ 33.768146] vcc3v0: disabling
[ 33.768204] vcc5v0: disabling
ubuntu@bpi-m2z:~$ ls *.mp3
SoundHelix-Song-1.mp3 ff-16b-2c-44100hz.mp3
ubuntu@bpi-m2z:~$ play SoundHelix-Song-1.mp3
SoundHelix-Song-1.mp3:
File Size: 8.95M Bit Rate: 192k
Encoding: MPEG audio Info: 2009
Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off Artist: SoundHelix
Duration: 00:06:12.73
In:100% 00:06:12.69 [00:00:00.04] Out:16.4M [ | ] Clip:0
Done.
ubuntu@bpi-m2z:~$ hcitool dev
Devices:
hci0 CC:B8:A8:A9:E5:67
ubuntu@bpi-m2z:~$ lsmod
Module Size Used by
loop 28672 0
zram 28672 4
snd_soc_hdmi_codec 16384 1
dw_hdmi_i2s_audio 16384 0
dw_hdmi_cec 16384 0
sunxi_cir 16384 0
lima 36864 0
brcmfmac 262144 0
gpu_sched 24576 1 lima
brcmutil 16384 1 brcmfmac
hci_uart 24576 0
btbcm 16384 1 hci_uart
sun8i_di 20480 0
sunxi_cedrus 32768 0
v4l2_mem2mem 20480 2 sunxi_cedrus,sun8i_di
videobuf2_dma_contig 20480 2 sunxi_cedrus,sun8i_di
videobuf2_memops 16384 1 videobuf2_dma_contig
videobuf2_v4l2 20480 3 sunxi_cedrus,sun8i_di,v4l2_mem2mem
videobuf2_common 36864 4 sunxi_cedrus,sun8i_di,v4l2_mem2mem,videobuf2_v4l2
ubuntu@bpi-m2z:~$ free -m
total used free shared buff/cache available
Mem: 463 54 296 3 111 395
Swap: 231 0 231
ubuntu@bpi-m2z:~$
In case someone Is interested I have released a Mainline kernel 5.6.5 with Mali GBM support instead of panfrost.
A Mali fbdev support will follow soon as time permitsā¦
hello. I created a sdcard image with Ubuntu Server 20.04 LTS and Kernel 5.6 based on this. You can find it here: https://open.lbry.com/@paju1986:c/ubuntu_20.04_bp0:1?r=7FrUxvGJDKbmVAwZuNcrRPHFrAT9Rekj
paju 1986 - pihole working ? Wifi ? thanks for ansver (i have try lots of system now ā¦ but i always run in problem no wifi or no working pihole)
Could you upload this image via github or torrent as the dl link is not very reliable.
Thank you.
Greetings,
The wiring for the eth0 found between the two usb connectors is:
BPI Zero RJ-45
1 = Square Hole 1
2 = Above 2
3 = diagonal to square hole 3
4 = what is left 6
See this picture: http://forum.banana-pi.org/uploads/default/original/2X/5/53966c47f31026920e1b4d59f089a884f4f76587.jpg
Note that AFAIK the wireless on the BPI-M2 Zero will not work without an antenna. I have ordered a 2.4G Soft Antenna (IPX IPEX Connector) WiFi Antenna, which will arrive in a few months. I will let you know if this fixes the wifi, which currently will not DHCP.
Flint
Iām having problems with the WiFi onboard. I have updated u-boot (U-Boot SPL 2019.07-rc3-00112-g6d277fb-dirty) and the kernel (Linux bpi-m2z 5.7.6 #1 SMP Sun Jun 28 00:11:55 -03 2020 armv7l armv7l armv7l GNU/Linux). My wlan0 gets associated to AP and assigned IP address via DHCP. However, any communication after that is close to impossible. Pings to the WiFi router either timeout or get reply with delay of hundreds seconds. Is there anything I can check. The same board and wifi/antenna works with other image.
Make sure you have set power_save to OFF.
Do the following procedures:
1 - Check power_save
- boot the board and login (HDMI)
- install iw (sudo apt install iw)
- check if power_save is off (sudo iw dev wlan0 get power_save)
If not you should:
sudo iw dev wlan0 set power_save off
2 - Mitigate power management issues (right after login with HDMI)
- ping from bpi-m2z to another board or PC, leave it running
- now ping from your PC (or the other board), leave it running
- try to ssh to the bpi-m2z and see if improves
3 - Disable eth0
- sudo ifconfig eth0 down
*obs: power_save can also be set to off in /etc/network/interfaces if you canāt install iw.
# Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)
# wireless-mode Managed
wireless-power off