Jump to content

Recommended Posts

Posted (edited)
19 hours ago, lvmc said:

I don't have the board yet, it's on the way. Nora Lee has kindly sent one, so i will try to help here with some hints.

Below are the hints to fix the errors (or warnings):

 


[    0.000000] cma: dma_declare_contiguous(266): ION reserve size should be 4m align! adjust size to 128MBytes

Try to increase ion_memsize: Change #define DEFAULT_SUNXI_ION_RESERVE_SIZE    96 to 128


[    0.786562] mousedev: PS/2 mouse device common for all mice
[    0.786807] sunxikbd_init failed.
[    0.787376] ls_fetch_sysconfig_para: type err  device_used = -1073057264.
[    0.787388] =========script_get_err============
[    0.787397] ltr_init: ls_fetch_sysconfig_para err.

Change Kernel config to:

CONFIG_KEYBOARD_SUNXI=m

CONFIG_INPUT_LTR501ALS=m


[    0.789001] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[    0.789171] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[    0.789338] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1a)
[    0.789503] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[    0.789669] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2a)
[    0.789835] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2b)
[    0.790001] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[    0.790201] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4d)
[    0.790371] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4e)
[    0.790574] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x18)
[    0.790771] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x19)
[    0.790968] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x1a)
[    0.791164] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x29)
[    0.791360] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2a)
[    0.791555] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2b)
[    0.791751] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4c)
[    0.791948] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4d)
[    0.792144] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4e)

If i recall correctly, FE has this fixed on their kernel but there was some complain about breaking I2C compatibility with some device/protocol, or something like that, so i am not sure how to fix this.

Or just comment the line but you won't please the hw guys, so leave it as is.


[    0.799377] no green_led, ignore it!
[    0.799386] no blue_led, ignore it!
[    0.799651] Registered led device: red_led
[    0.799668] no led_0, ignore it!
[    0.799676] no led_1, ignore it!
[    0.799683] no led_2, ignore it!
[    0.799690] no led_3, ignore it!
[    0.799697] no led_4, ignore it!
[    0.799704] no led_5, ignore it!
[    0.799711] no led_6, ignore it!
[    0.799718] no led_7, ignore it!

Change kernel config to:

CONFIG_SUNXI_LEDS=m
CONFIG_SUNXI_LEDS_COM=m
 

and load at boot time the sunxi-leds module or just chose one of the two and mark one as built in. (=y)

If you choose sunxi-leds-com, make sure you setup led_x in script.bin correctly.

 


[    0.800622] usbcore: registered new interface driver usbhid
[    0.800634] usbhid: USB HID core driver
[    0.801827] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    0.802002] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    0.802016] [DAUDIO0] driver not init,just return.

This is just a message telling you DAUDIO and I2S are not in use, it's harmless.


[    0.811799] [HDMI] power vcc-hdmi-18
[    0.842954] ths_fetch_sysconfig_para: type err  device_used = 1.
[    0.844386] CPU Budget:corekeeper enabled
[    0.844639] CPU Budget:Register notifier
[    0.844654] CPU Budget:register Success


Try this in your FEX:

[ths_para]
ths_trend = 0
 


 

 

BTW, banana pi zero and nano pi air makes a perfect board for using OV5640 sensor, so i would like to ask @Robert LabTeam if you are going to share your work on the OV5640 to be able to reach 60 fps or 90 fps, will you?

 

 

Edited by @lex
Tried to fix the text format!
Posted

Hi @lex,
To reach 60 FPS, or more, just changa VTS/HTS value. I created some tool (I launch it in DevC++) that shows what is the end FPS and some other parameters. Just play with the registers:
 

#define MCLK (20*1000*1000)  --> usually 24 MHz is used
#define MCLK_DIV 1

#define REG_3034  0x18
#define REG_3037  0x4
#define REG_3036 (4*20)
#define REG_3035 0x11
#define REG_3108 0x01

And VTS /HTS values here:
 

  hts_high = 0x07;    // 0x380c
  hts_low =0xf4;        // 0x380d

  vts_high = 0x07;    //0x380e,
  vts_low = 0xac;     //0x380f

I have also noticed that almost all drivers are not appropriate for OV5640 (it seems they wrtitten based on OV5642 software application note - for example max lines is different for both sensors: 1964/1968). I found this doc for OV5640 and fixed some things. You can also find there 90 FPS for VGA configuration:

https://wenku.baidu.com/view/6b48a191f90f76c661371afa.html

main.cpp

Posted
1 hour ago, Robert LabTeam said:

Hi @lex,
To reach 60 FPS, or more, just changa VTS/HTS value. I created some tool (I launch it in DevC++) that shows what is the end FPS and some other parameters. Just play with the registers:
 


#define MCLK (20*1000*1000)  --> usually 24 MHz is used
#define MCLK_DIV 1

#define REG_3034  0x18
#define REG_3037  0x4
#define REG_3036 (4*20)
#define REG_3035 0x11
#define REG_3108 0x01

And VTS /HTS values here:
 


  hts_high = 0x07;    // 0x380c
  hts_low =0xf4;        // 0x380d

  vts_high = 0x07;    //0x380e,
  vts_low = 0xac;     //0x380f

I have also noticed that almost all drivers are not appropriate for OV5640 (it seems they wrtitten based on OV5642 software application note - for example max lines is different for both sensors: 1964/1968). I found this doc for OV5640 and fixed some things. You can also find there 90 FPS for VGA configuration:

https://wenku.baidu.com/view/6b48a191f90f76c661371afa.html

main.cpp

 

Hi @Robert LabTeam, thank you, good work.  Let's see how far we can go.

@lvmc, there is some work with CSI on mainline kernel for a different board but maybe this could help: https://groups.google.com/forum/#!topic/linux-sunxi/GQC-cXOB1U4[26-50]

 

Posted (edited)

booting with kernel 4.14.3-sunix

Spoiler

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.3-sunxi (root@bpi-iot-ros-ai) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #3 SMP Sun Dec 3 09:39:16 CST 2017
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[    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 BPI-M2-Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x59c00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0dd8840, node_mem_map dfb58000
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 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] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @dfafc000 s39884 r8192 d21556 u69632
[    0.000000] pcpu-alloc: s39884 r8192 d21556 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: root=UUID=8c4f1a2b-8898-463b-9be2-0208814e68d5 rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=7fb14e9f-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 524288 bytes of page_ext
[    0.000000] Memory: 432916K/524288K available (8192K kernel code, 944K rwdata, 2340K rodata, 1024K init, 346K bss, 25836K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf800000 - 0xbfe00000   (   6 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0dec2d4   ( 945 kB)
                      .bss : 0xc0df5e0c - 0xc0e4c71c   ( 347 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 36960 entries in 73 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    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.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000014] Switching to timer-based delay loop, resolution 41ns
[    0.000209] Console: colour dummy device 80x30
[    0.000224] console [tty1] enabled
[    0.000253] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000264] pid_max: default: 32768 minimum: 301
[    0.000450] Security Framework initialized
[    0.000462] AppArmor: AppArmor disabled by boot time parameter
[    0.000519] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000529] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001358] CPU: Testing write buffer coherency: ok
[    0.001753] /cpus/cpu@0 missing clock-frequency property
[    0.001773] /cpus/cpu@1 missing clock-frequency property
[    0.001792] /cpus/cpu@2 missing clock-frequency property
[    0.001811] /cpus/cpu@3 missing clock-frequency property
[    0.001822] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002185] Setting up static identity map for 0x40100000 - 0x40100054
[    0.002293] Hierarchical SRCU implementation.
[    0.003014] smp: Bringing up secondary CPUs ...
[    0.013728] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.024500] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.035212] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.035290] smp: Brought up 1 node, 4 CPUs
[    0.035298] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.035302] CPU: All CPU(s) started in HYP mode.
[    0.035304] CPU: Virtualization extensions available.
[    0.036229] devtmpfs: initialized
[    0.043083] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.043325] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.043343] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.046142] xor: measuring software checksum speed
[    0.145039]    arm4regs  :  1255.600 MB/sec
[    0.245090]    8regs     :   748.000 MB/sec
[    0.345147]    32regs    :   765.600 MB/sec
[    0.445205]    neon      :  1271.200 MB/sec
[    0.445209] xor: using function: neon (1271.200 MB/sec)
[    0.445303] pinctrl core: initialized pinctrl subsystem
[    0.446254] NET: Registered protocol family 16
[    0.449129] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.449990] cpuidle: using governor ladder
[    0.450020] cpuidle: using governor menu
[    0.450988] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.450993] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.625656] raid6: int32x1  gen()   189 MB/s
[    0.795518] raid6: int32x1  xor()   160 MB/s
[    0.965600] raid6: int32x2  gen()   255 MB/s
[    1.135738] raid6: int32x2  xor()   194 MB/s
[    1.305795] raid6: int32x4  gen()   258 MB/s
[    1.475839] raid6: int32x4  xor()   192 MB/s
[    1.646040] raid6: int32x8  gen()   247 MB/s
[    1.816060] raid6: int32x8  xor()   172 MB/s
[    1.986081] raid6: neonx1   gen()   494 MB/s
[    2.156179] raid6: neonx1   xor()   461 MB/s
[    2.326272] raid6: neonx2   gen()   663 MB/s
[    2.496392] raid6: neonx2   xor()   594 MB/s
[    2.666480] raid6: neonx4   gen()   798 MB/s
[    2.836532] raid6: neonx4   xor()   670 MB/s
[    3.006667] raid6: neonx8   gen()   717 MB/s
[    3.176749] raid6: neonx8   xor()   606 MB/s
[    3.176753] raid6: using algorithm neonx4 gen() 798 MB/s
[    3.176756] raid6: .... xor() 670 MB/s, rmw enabled
[    3.176760] raid6: using neon recovery algorithm
[    3.178315] SCSI subsystem initialized
[    3.178527] libata version 3.00 loaded.
[    3.178719] usbcore: registered new interface driver usbfs
[    3.178758] usbcore: registered new interface driver hub
[    3.178818] usbcore: registered new device driver usb
[    3.178993] media: Linux media interface: v0.10
[    3.179020] Linux video capture interface: v2.00
[    3.179090] pps_core: LinuxPPS API ver. 1 registered
[    3.179094] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.179108] PTP clock support registered
[    3.180450] clocksource: Switched to clocksource arch_sys_counter
[    3.281393] VFS: Disk quotas dquot_6.6.0
[    3.281482] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.289035] NET: Registered protocol family 2
[    3.289641] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    3.289690] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    3.289749] TCP: Hash tables configured (established 4096 bind 4096)
[    3.289852] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    3.289891] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    3.290120] NET: Registered protocol family 1
[    3.290654] RPC: Registered named UNIX socket transport module.
[    3.290659] RPC: Registered udp transport module.
[    3.290662] RPC: Registered tcp transport module.
[    3.290665] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.290911] Trying to unpack rootfs image as initramfs...
[    3.639553] Freeing initrd memory: 5684K
[    3.641208] audit: initializing netlink subsys (disabled)
[    3.641462] audit: type=2000 audit(3.630:1): state=initialized audit_enabled=0 res=1
[    3.641662] Initialise system trusted keyrings
[    3.641827] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    3.646630] zbud: loaded
[    3.648739] NFS: Registering the id_resolver key type
[    3.648773] Key type id_resolver registered
[    3.648777] Key type id_legacy registered
[    3.648789] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.648793] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.649820] JFS: nTxBlock = 3938, nTxLock = 31508
[    3.657053] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    3.663854] Key type asymmetric registered
[    3.663948] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    3.664079] io scheduler noop registered
[    3.664083] io scheduler deadline registered
[    3.664354] io scheduler cfq registered (default)
[    3.664360] io scheduler mq-deadline registered
[    3.664364] io scheduler kyber registered
[    3.664491] io scheduler bfq registered
[    3.665525] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    3.669053] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    3.670569] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    3.715560] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    3.718502] console [ttyS0] disabled
[    3.738665] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 35, base_baud = 1500000) is a U6_16550A
[    3.738735] console [ttyS0] enabled
[    3.759843] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 36, base_baud = 1500000) is a U6_16550A
[    3.763346] brd: module loaded
[    3.768908] loop: module loaded
[    3.770402] libphy: Fixed MDIO Bus: probed
[    3.771071] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.771077] ehci-platform: EHCI generic platform driver
[    3.771337] ehci-platform 1c1a000.usb: EHCI Host Controller
[    3.771397] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    3.772203] ehci-platform 1c1a000.usb: irq 28, io mem 0x01c1a000
[    3.800453] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    3.800781] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.800790] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.800795] usb usb1: Product: EHCI Host Controller
[    3.800801] usb usb1: Manufacturer: Linux 4.14.3-sunxi ehci_hcd
[    3.800807] usb usb1: SerialNumber: 1c1a000.usb
[    3.801371] hub 1-0:1.0: USB hub found
[    3.801430] hub 1-0:1.0: 1 port detected
[    3.801884] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.801932] ohci-platform: OHCI generic platform driver
[    3.802175] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    3.802197] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    3.802481] ohci-platform 1c1a400.usb: irq 29, io mem 0x01c1a400
[    3.874736] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    3.874744] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.874749] usb usb2: Product: Generic Platform OHCI controller
[    3.874755] usb usb2: Manufacturer: Linux 4.14.3-sunxi ohci_hcd
[    3.874760] usb usb2: SerialNumber: 1c1a400.usb
[    3.875235] hub 2-0:1.0: USB hub found
[    3.875281] hub 2-0:1.0: 1 port detected
[    3.875810] usbcore: registered new interface driver usb-storage
[    3.876374] mousedev: PS/2 mouse device common for all mice
[    3.876837] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    3.876844] sun6i-rtc 1f00000.rtc: RTC enabled
[    3.877017] i2c /dev entries driver
[    3.878581] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.930483] sunxi-mmc 1c0f000.mmc: base:0xe0b90000 irq:25
[    3.932549] ledtrig-cpu: registered to indicate activity on CPUs
[    3.932626] hidraw: raw HID events driver (C) Jiri Kosina
[    3.932766] usbcore: registered new interface driver usbhid
[    3.932770] usbhid: USB HID core driver
[    3.933717] NET: Registered protocol family 10
[    3.952365] Segment Routing with IPv6
[    3.952468] NET: Registered protocol family 17
[    3.952678] Key type dns_resolver registered
[    3.953089] Registering SWP/SWPB emulation handler
[    3.953755] registered taskstats version 1
[    3.953762] Loading compiled-in X.509 certificates
[    3.953843] zswap: loaded using pool lzo/zbud
[    3.955558] Btrfs loaded, crc32c=crc32c-generic
[    3.964136] Key type encrypted registered
[    3.972030] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    3.972457] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    3.972470] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    3.972819] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    3.972828] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.972834] usb usb3: Product: MUSB HDRC host driver
[    3.972839] usb usb3: Manufacturer: Linux 4.14.3-sunxi musb-hcd
[    3.972845] usb usb3: SerialNumber: musb-hdrc.1.auto
[    3.973410] hub 3-0:1.0: USB hub found
[    3.973452] hub 3-0:1.0: 1 port detected
[    3.975552] core: _opp_supported_by_regulators: OPP minuV: 1320000 maxuV: 1320000, not supported by regulator
[    3.975565] cpu cpu0: _opp_add: OPP not supported by regulators (1296000000)
[    3.975931] thermal thermal_zone0: binding zone cpu-thermal with cdev thermal-cpufreq-0 failed:-17
[    3.980010] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.985665] alloc_contig_range: [59e05, 59e06) PFNs busy
[    3.989915] mmc0: new high speed SDHC card at address aaaa
[    3.990591] mmcblk0: mmc0:aaaa SL08G 7.40 GiB 
[    3.990895] of_cfs_init
[    3.991021] of_cfs_init: OK
[    3.991182] vdd-cpux-dummy: disabling
[    3.991189] vcc3v0: disabling
[    3.991194] vcc5v0: disabling
[    3.991934]  mmcblk0: p1
[    3.994066] alloc_contig_range: [59e05, 59e06) PFNs busy
[    3.994146] alloc_contig_range: [59e06, 59e07) PFNs busy
[    3.994379] Freeing unused kernel memory: 1024K
[    4.487530] alloc_contig_range: [59e05, 59e06) PFNs busy
[    4.562894] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    4.562905] [drm] No driver support for vblank timestamp query.
[    4.573035] sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_platform_driver_exit [sun8i_mixer])
[    4.573444] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    4.573470] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops sun4i_tcon_platform_driver_exit [sun4i_tcon])
[    4.573965] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[    4.630604] sunxi-mmc 1c10000.mmc: base:0xe0c3a000 irq:26
[    4.648827] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    4.650407] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.651988] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.655873] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    4.662679] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[    4.700710] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[    4.701413] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[    4.701841] sun4i-drm display-engine: bound 1ee0000.hdmi (ops sun8i_dw_hdmi_ops [sun8i_dw_hdmi])
[    4.701927] [drm] Cannot find any crtc or sizes
[    4.702334] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    4.752614] mmc1: new high speed SDIO card at address 0001
[    4.860473] rc_core: IR keymap rc-cec not found
[    4.860483] Registered IR keymap rc-empty
[    4.860640] rc rc0: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc0
[    4.860785] input: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc0/input0
[    5.391768] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    5.760746] [drm] Cannot find any crtc or sizes
[    5.978627] systemd[1]: System time before build time, advancing clock.
[    6.060496] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    6.061051] systemd[1]: Detected architecture arm.
[    6.110894] systemd[1]: Set hostname to <bananapim2zero>.
[    6.722810] systemd[1]: Listening on udev Kernel Socket.
[    6.751291] systemd[1]: Created slice User and Session Slice.
[    6.795186] systemd[1]: Listening on Journal Socket.
[    6.849549] systemd[1]: Reached target Encrypted Volumes.
[    6.900652] systemd[1]: Listening on Syslog Socket.
[    6.930927] systemd[1]: Listening on udev Control Socket.
[    6.960831] systemd[1]: Listening on Journal Socket (/dev/log).
[    7.324953] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[    7.369403] g_serial gadget: Gadget Serial v2.4
[    7.369415] g_serial gadget: g_serial ready
[    7.479742] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 30 2016 11:30:56 version 7.45.77.h8.4 FWID 01-ee8a6268
[    7.667739] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[    9.569691] thermal thermal_zone0: failed to read out thermal zone (-110)
[    9.584926] asoc-simple-card sound: i2s-hifi <-> 1c22800.i2s mapping ok
[    9.981235] systemd-journald[386]: Received request to flush runtime journal from PID 1
[   10.261440] random: crng init done
[   10.642844] thermal thermal_zone0: failed to read out thermal zone (-110)
[   11.680557] thermal thermal_zone0: failed to read out thermal zone (-110)
[   11.869302] zram: Added device: zram0
[   11.870139] zram: Added device: zram1
[   11.871190] zram: Added device: zram2
[   11.871965] zram: Added device: zram3
[   11.939655] zram0: detected capacity change from 0 to 64663552
[   12.015616] Adding 63144k swap on /dev/zram0.  Priority:5 extents:1 across:63144k SSFS
[   12.017617] zram1: detected capacity change from 0 to 64663552
[   12.039362] Adding 63144k swap on /dev/zram1.  Priority:5 extents:1 across:63144k SSFS
[   12.041717] zram2: detected capacity change from 0 to 64663552
[   12.062385] Adding 63144k swap on /dev/zram2.  Priority:5 extents:1 across:63144k SSFS
[   12.064659] zram3: detected capacity change from 0 to 64663552
[   12.087828] Adding 63144k swap on /dev/zram3.  Priority:5 extents:1 across:63144k SSFS
[   13.952471] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   13.990617] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   14.606976] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   52.913891] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

 

 

Edited by Igor
spoiler
Posted

Hmm... Waiting for 4.4 on A64/H5...

 

I asked myself why did i rush to 4.14.y when:

"LTS is LTS. Greg Kroah-Hartman, the LTS maintainer, is committing to do [a six-year LTS]. Not because of Google or Android or Treble, but because everything is on LTS; it’s not on upstream." [itsfoss]

 

 

Posted

I just received my BPI-M2 Zero board and put it through its paces. Seems to perform similar to other H2+ boards. I added a Pin->GPIO map to my SPI_LCD and ArmbianIO projects (https://github.com/bitbank2).

 

Observations:

 

1) The SPI driver has that same odd issue where it occasionally spits out errors and runs a little slower than it should. 

2) It doesn't come with an IPX antenna, but you need to add one to use wifi unless you're sitting on top of your access point.

3) A small passive heat sink seems to be plenty when running the mainline (4.1x) kernel.

4) The default HDMI out resolution is 1920x1080p@60fps. This causes a "jumpy" display on my monitor. Switching to 1280x720 fixed it. I've seen this on other AllWinner H2/H3 boards, so it's probably something strange with the mainline kernel hdmi code.

 

Overall I'm happy with the board.  It would be nice to use the bluetooth. Does anyone know how to enable it?

 

Posted

I received a few of these boards recently, I think they are very good value, however to have subsequently discovered this thread is very disappointing.

The lack of formal Armbian support is a big negative, and whilst its clear there is some progress toward resolving the issues that are preventing that, I can not help but observe that the technical obstacles are somewhat obscured by dialogue that is uninteresting to Armbian and BPI users alike.

Please play the ball, not the man.

 

Posted

Wow. How childish. Having worked in software and electronics most of my working life, the self-entitled attitude here is plain childish.

The only thing I can say to those who think the world should revolve around you: Its a piece of hardware that will be redundant in 12 months, get over it. If you are not happy, change and move on. There is no point or value in being rude or over-bearing about an issue just because you think you are more knowing than others. Buy some humility and grow up. 

The discussion here just shows how much arrogance some people display without thinking about bigger pictures. You all live in a world of choice. So stop complaining, and choose something else.

 

Posted

Wow, what a groundbreaking contribution to this thread. Especially cause you pointed clearly out 

  • What's childish
  • the bigger picture
  • what you think what should change

[/sarcasm]

 

For your notes: I've this board at home,  I did some tests with it and finally lost the interest... I'm not a:

58 minutes ago, David Lannan said:

Having worked in software and electronics most of my working life

guy, so doing this stuff needs much more time for me than for a professional (and get false or not properly written stuff from professionals annoys me quite fast)... Even before I had the board at hand, we (as armbian community) pushed the vendor to:

  • Fix voltage regulation for CPU
  • Release schematics
  • Figured out that ETH is on CON4 (you could figure it out when reading the schematics carefully, but nowhere else)

So even if this board does not get 'official armbian support', the childish armbian community helped to improve the situation for this board. To my knowledge, neither the boardmaker nor someone else sent a PR with the needed patches for full or csc support for this board to armbians github... 

Posted
On 16.11.2017 at 6:50 AM, Lion Wang said:

 

I'm used to have just debian on my other Pis (Raspbian / Bananian)

 

How do I get close using above image?

 

Looks like somebody has modified Armbian for bpi zero allready for that image, so it's Armbian with Ubuntu on top?

 

Posted
Quote

 or Armbian officially


:wacko::angry: 

 

Quote

Sadly, Armbian does not support headless config for wifi and since there is no onboard ethernet I have to do the initial setup using monitor, keyboard, and mouse.


That actually works, but we obviously lack a properly placed how-to.

Posted
1 hour ago, Igor said:
Quote

 or Armbian officially


:wacko::angry: 

 

Well, as expected.

 

1 hour ago, Igor said:

That actually works, but we obviously lack a properly placed how-to

Talking about this https://github.com/armbian/build/blob/master/packages/bsp/common/usr/lib/armbian/armbian-firstrun-config?

 

If so this is as useless for average users as what I do all the time: let customize.sh throw an appropriate NM profile into /etc/NetworkManager/system-connections/ at image creation time. Average users would need a FAT partition so they can access it from Windows or macOS. But instead we should emphasize that on our officially supported boards w/o Ethernet a remote console sits on the MicroUSB port waiting for the user to login.

Posted
1 hour ago, tkaiser said:

But instead we should emphasize that on our officially supported boards w/o Ethernet a remote console sits on the MicroUSB port waiting for the user to login.

Quite honestly my favorite feature when I was introduced to this project when hacking music players out of NanoPi Neo's...

Posted
On 9/12/2018 at 2:42 PM, tkaiser said:

But instead we should emphasize that on our officially supported boards w/o Ethernet a remote console sits on the MicroUSB port waiting for the user to login.

never tested but:

https://github.com/armbian/build/blob/8ea0b98845e9759266108e699d11aefd55cac882/config/boards/bananapim2zero.csc#L7 even on the CSC it should be there.. ;) 

Maybe we should point it out in the documentation e.g.

Quote

How to login?

Login as root on console (HDMI / serial) or via SSH and use password 1234. You will be prompted to change this password at first login. You will then be asked to create a normal user account that is sudo enabled (beware of default QWERTY keyboard settings at this stage). Please use this tool, to find your board IP address.

e.g.:

For the following boards:

- nanopineoplus2
- nanopineocore2
- nanopineo2
- nanopim3
- nanopifire3
- bananapim2plus
- orangepizeroplus
- bananapim2zero

Serial console can be accessed via USB with gserial (link to a little how-to to work with gserial). 
 

On 2/9/2018 at 1:13 AM, iwl said:

Looks like somebody has modified Armbian for bpi zero allready for that image, so it's Armbian with Ubuntu on top?

the board is csc supported, even with a patch which shouldn't harm other boards and make sure that your boards survives a kernel and/or u-boot update. https://github.com/armbian/build/blob/8ea0b98845e9759266108e699d11aefd55cac882/patch/u-boot/u-boot-sunxi/add-bananapi-bpi-zero.patch#L184

you've to build it on your own but besides that, the board should work and survive updates (mine is collecting dust since months due to no need for it at the moment, never did long run tests to keep an eye on durability).

 

 

Posted

CSC supported is just as great as any other boards. The only thing I could not get working is hdmi sound, wifi works fine, both spi channels work fine - but not as well as other boards (more 110 errors), perhaps hardware related? I use it as a laptop with my lap dock, and a bluetooth dongle for sound.

 

 

 

_9130751.JPG

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines