1 1
Emil

One wire DS18B20 on 4.19.13-sunxi

Recommended Posts

hello

after updating from

 

cat /proc/version
Linux version 4.14.84-sunxi (root@armbian.com) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #3 SMP Sat Dec 1 07:18:41 CET 2018

to

Linux version 4.19.13-sunxi (root@armbian.com) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #5.70 SMP Sat Jan 12 15:43:21 CET 2019

 

my one wire thermometer stopped working - is there some additional steps needed now?

 

I didn't change my configuration


 

overlays=w1-gpio

param_w1_pin=PB10

param_w1_pin_int_pullup=0 

 

 

and now I have

dmesg

[ 1174.451457] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e80000000000 crc 2b
[ 1174.456242] w1_master_driver w1_bus_master1: Family 0 for 00.e80000000000.2b is not registered.
[ 1234.023523] w1_master_driver w1_bus_master1: Attaching one wire slave 00.180000000000 crc 5f
[ 1234.029428] w1_master_driver w1_bus_master1: Family 0 for 00.180000000000.5f is not registered.

...
ls /sys/bus/w1/devices

00-180000000000  00-580000000000  00-980000000000  w1_bus_master1

(00-... directories names and count changes after every minute)


 

cat /sys/kernel/debug/gpio

gpiochip0: GPIOs 0-287, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
 gpio-40  (                    |ahci-5v             ) out hi
 gpio-224 (                    |cd                  ) in  lo IRQ
 gpio-225 (                    |cd                  ) in  lo IRQ
 gpio-227 (                    |usb2-vbus           ) out hi
 gpio-228 (                    |usb0_id_det         ) in  hi IRQ
 gpio-230 (                    |usb1-vbus           ) out hi
 gpio-244 (                    |cubieboard2:green:us) out lo
 gpio-245 (                    |cubieboard2:blue:usr) out lo
 gpio-271 (                    |onewire@0           ) in  lo

gpiochip1: GPIOs 413-415, parent: platform/axp20x-gpio, axp20x-gpio, can sleep:

 

there is no "gpio-42" line, old was
 

 cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-287, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
 gpio-40  (                    |ahci-5v             ) out hi
 gpio-42  (                    |w1                  ) in  hi
 gpio-224 (                    |cd                  ) in  lo IRQ
 gpio-225 (                    |cd                  ) in  lo IRQ
 gpio-227 (                    |usb2-vbus           ) out hi
 gpio-228 (                    |usb0_id_det         ) in  hi IRQ
 gpio-230 (                    |usb1-vbus           ) out hi
 gpio-244 (                    |cubieboard2:green:us) out lo
 gpio-245 (                    |cubieboard2:blue:usr) out lo

gpiochip1: GPIOs 413-415, parent: platform/axp20x-gpio, axp20x-gpio, can sleep:

 

Share this post


Link to post
Share on other sites

Hi @Emil,

I can confirm this issue. It did not work either on my BananaPi M1 Plus after kernel upgrade.

Problem is it stopped accepting pin value and whatever is in config file output of command below remained after reboot the same:

cat /sys/kernel/debug/gpio

 

Fastest solution is to run armbian-config and change kernel to previous version.

 

 

Share this post


Link to post
Share on other sites

@martinayotte

This dmesg output:

 

Spoiler

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.13-sunxi (root@armbian.com) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #5.70 SMP Sat Jan 12 15:43:21 CET 2019
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (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-M1-Plus
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 128 MiB at 0x77c00000
[    0.000000] On node 0 totalpages: 261738
[    0.000000]   Normal zone: 1728 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 65130 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: get_random_bytes called from start_kernel+0x8d/0x3c2 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41484 r8192 d24052 u73728
[    0.000000] pcpu-alloc: s41484 r8192 d24052 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260010
[    0.000000] Kernel command line: root=UUID=078696dc-d479-4821-8b2f-47fa5c0e05f1 rootwait rootfstype=btrfs console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=081bc7ef-01 ubootsource=mmc usb-storage.quirks=0x152d:0x1561:u,0x2537:0x1066:u,0x2537:0x1068:u,0x0bc2:0x61b7:u,0x152d:0x9561:u net.ifnames=0 biosdevname=0  sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] allocated 1051048 bytes of page_ext
[    0.000000] Memory: 886052K/1046952K available (8192K kernel code, 896K rwdata, 2420K rodata, 1024K init, 316K bss, 29828K reserved, 131072K cma-reserved, 129448K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                   lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf800000 - 0xbfe00000   (   6 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 897 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 317 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 36585 entries in 72 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    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.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000371] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000612] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000882] Console: colour dummy device 80x30
[    0.000900] console [tty1] enabled
[    0.000962] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000975] pid_max: default: 32768 minimum: 301
[    0.001267] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001280] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002258] CPU: Testing write buffer coherency: ok
[    0.002697] /cpus/cpu@0 missing clock-frequency property
[    0.002709] /cpus/cpu@1 missing clock-frequency property
[    0.002722] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003349] Setting up static identity map for 0x40100000 - 0x40100054
[    0.003528] rcu: Hierarchical SRCU implementation.
[    0.004576] smp: Bringing up secondary CPUs ...
[    0.015406] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.015563] smp: Brought up 1 node, 2 CPUs
[    0.015573] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.015577] CPU: All CPU(s) started in HYP mode.
[    0.015580] CPU: Virtualization extensions available.
[    0.016870] devtmpfs: initialized
[    0.025884] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.026151] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.026173] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.031396] xor: measuring software checksum speed
[    0.071424]    arm4regs  :  1137.000 MB/sec
[    0.111478]    8regs     :   677.000 MB/sec
[    0.151543]    32regs    :   693.000 MB/sec
[    0.191606]    neon      :  1151.000 MB/sec
[    0.191611] xor: using function: neon (1151.000 MB/sec)
[    0.191695] pinctrl core: initialized pinctrl subsystem
[    0.192908] NET: Registered protocol family 16
[    0.195852] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.196431] audit: initializing netlink subsys (disabled)
[    0.196709] audit: type=2000 audit(0.188:1): state=initialized audit_enabled=0 res=1
[    0.197349] cpuidle: using governor ladder
[    0.197389] cpuidle: using governor menu
[    0.197995] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.198000] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.280319] raid6: int32x1  gen()   170 MB/s
[    0.348329] raid6: int32x1  xor()   145 MB/s
[    0.416292] raid6: int32x2  gen()   231 MB/s
[    0.484511] raid6: int32x2  xor()   179 MB/s
[    0.552713] raid6: int32x4  gen()   234 MB/s
[    0.620723] raid6: int32x4  xor()   174 MB/s
[    0.688862] raid6: int32x8  gen()   223 MB/s
[    0.757012] raid6: int32x8  xor()   155 MB/s
[    0.825089] raid6: neonx1   gen()   447 MB/s
[    0.893239] raid6: neonx1   xor()   416 MB/s
[    0.961411] raid6: neonx2   gen()   600 MB/s
[    1.029461] raid6: neonx2   xor()   537 MB/s
[    1.097659] raid6: neonx4   gen()   721 MB/s
[    1.165759] raid6: neonx4   xor()   605 MB/s
[    1.233911] raid6: neonx8   gen()   649 MB/s
[    1.302062] raid6: neonx8   xor()   548 MB/s
[    1.302067] raid6: using algorithm neonx4 gen() 721 MB/s
[    1.302070] raid6: .... xor() 605 MB/s, rmw enabled
[    1.302074] raid6: using neon recovery algorithm
[    1.303818] SCSI subsystem initialized
[    1.304172] libata version 3.00 loaded.
[    1.304409] usbcore: registered new interface driver usbfs
[    1.304452] usbcore: registered new interface driver hub
[    1.304515] usbcore: registered new device driver usb
[    1.304760] media: Linux media interface: v0.10
[    1.304792] videodev: Linux video capture interface: v2.00
[    1.304942] pps_core: LinuxPPS API ver. 1 registered
[    1.304947] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.304964] PTP clock support registered
[    1.306884] clocksource: Switched to clocksource arch_sys_counter
[    1.402509] VFS: Disk quotas dquot_6.6.0
[    1.402595] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.403386] simple-framebuffer 7fe79000.framebuffer: framebuffer at 0x7fe79000, 0x178e00 bytes, mapped to 0x(ptrval)
[    1.403398] simple-framebuffer 7fe79000.framebuffer: format=x8r8g8b8, mode=656x536x32, linelength=2880
[    1.411040] fbcon_init: disable boot-logo (boot-logo bigger than screen).
[    1.411052] Console: switching to colour frame buffer device 82x33
[    1.417980] simple-framebuffer 7fe79000.framebuffer: fb0: simplefb registered!
[    1.426291] NET: Registered protocol family 2
[    1.427249] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    1.427282] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.427375] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.427498] TCP: Hash tables configured (established 8192 bind 8192)
[    1.427634] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.427699] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.427961] NET: Registered protocol family 1
[    1.428668] RPC: Registered named UNIX socket transport module.
[    1.428673] RPC: Registered udp transport module.
[    1.428677] RPC: Registered tcp transport module.
[    1.428680] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.428917] Trying to unpack rootfs image as initramfs...
[    1.764942] Freeing initrd memory: 4528K
[    1.765734] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    1.766139] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    1.767743] Initialise system trusted keyrings
[    1.768031] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    1.774349] zbud: loaded
[    1.777036] NFS: Registering the id_resolver key type
[    1.777070] Key type id_resolver registered
[    1.777074] Key type id_legacy registered
[    1.777088] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.777093] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.778482] JFS: nTxBlock = 7981, nTxLock = 63853
[    1.797861] Key type asymmetric registered
[    1.797873] Asymmetric key parser 'x509' registered
[    1.797944] bounce: pool size: 64 pages
[    1.798023] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.798258] io scheduler noop registered
[    1.798264] io scheduler deadline registered
[    1.798529] io scheduler cfq registered (default)
[    1.798536] io scheduler mq-deadline registered
[    1.798540] io scheduler kyber registered
[    1.798687] io scheduler bfq registered
[    1.800127] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    1.803729] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.863818] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.866530] console [ttyS0] disabled
[    1.886709] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 48, base_baud = 1500000) is a U6_16550A
[    1.886778] console [ttyS0] enabled
[    1.891178] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.891550] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc097eed4)
[    1.891581] sun4i-backend 1e40000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.891852] sun4i-drm display-engine: bound 1e40000.display-backend (ops 0xc097eed4)
[    1.892273] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    1.892291] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc097de54)
[    1.892639] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    1.892657] sun4i-drm display-engine: bound 1c0d000.lcd-controller (ops 0xc097de54)
[    1.893550] sun4i-drm display-engine: bound 1c16000.hdmi (ops 0xc097f8e0)
[    1.893562] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.893565] [drm] No driver support for vblank timestamp query.
[    1.893575] checking generic (7fe79000 178e00) vs hw (0 ffffffff)
[    1.893579] fb: switching to sun4i-drm-fb from simple
[    1.893720] Console: switching to colour dummy device 80x30
[    2.394108] [drm] Cannot find any crtc or sizes
[    2.394707] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    2.398751] brd: module loaded
[    2.406024] loop: module loaded
[    2.462923] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    2.462966] ahci-sunxi 1c18000.sata: SSS flag set, parallel bus scan disabled
[    2.462995] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    2.463008] ahci-sunxi 1c18000.sata: flags: ncq sntf stag pm led clo only pio slum part ccc
[    2.464674] scsi host0: ahci-sunxi
[    2.465101] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 36
[    2.467268] libphy: Fixed MDIO Bus: probed
[    2.467912] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    2.467924] sun7i-dwmac 1c50000.ethernet: no reset control found
[    2.469081] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.469087] ehci-platform: EHCI generic platform driver
[    2.469471] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.469500] ohci-platform: OHCI generic platform driver
[    2.470242] usbcore: registered new interface driver usb-storage
[    2.471397] sunxi-rtc 1c20d00.rtc: registered as rtc0
[    2.471406] sunxi-rtc 1c20d00.rtc: RTC enabled
[    2.471547] i2c /dev entries driver
[    2.472642] axp20x-i2c 1-0034: AXP20x variant AXP209 found
[    2.487533] input: axp20x-pek as /devices/platform/soc@1c00000/1c2ac00.i2c/i2c-1/1-0034/axp20x-pek/input/input0
[    2.488228] ldo1: supplied by regulator-dummy
[    2.488516] ldo2: supplied by regulator-dummy
[    2.489592] ldo3: supplied by regulator-dummy
[    2.490294] ldo4: supplied by regulator-dummy
[    2.490481] ldo5: supplied by regulator-dummy
[    2.491564] dcdc2: supplied by regulator-dummy
[    2.492204] dcdc3: supplied by regulator-dummy
[    2.496434] axp20x-i2c 1-0034: Backup (RTC) battery charging is disabled
[    2.496561] axp20x-i2c 1-0034: AXP20X driver loaded
[    2.498520] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.499935] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[    2.500572] ledtrig-cpu: registered to indicate activity on CPUs
[    2.500676] hidraw: raw HID events driver (C) Jiri Kosina
[    2.500707] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    2.500837] usbcore: registered new interface driver usbhid
[    2.500840] usbhid: USB HID core driver
[    2.502041] Initializing XFRM netlink socket
[    2.502777] NET: Registered protocol family 10
[    2.523363] Segment Routing with IPv6
[    2.523480] NET: Registered protocol family 17
[    2.523511] NET: Registered protocol family 15
[    2.523584] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.523639] 8021q: 802.1Q VLAN Support v1.8
[    2.523694] Key type dns_resolver registered
[    2.524202] Registering SWP/SWPB emulation handler
[    2.524953] registered taskstats version 1
[    2.524960] Loading compiled-in X.509 certificates
[    2.525047] zswap: loaded using pool lzo/zbud
[    2.526499] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    2.527178] sunxi-mmc 1c12000.mmc: Linked as a consumer to regulator.2
[    2.527710] Btrfs loaded, crc32c=crc32c-generic
[    2.528297] random: fast init done
[    2.528858] sunxi-mmc 1c12000.mmc: Dropping the link to regulator.2
[    2.538429] Key type encrypted registered
[    2.552115] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    2.552131] sun7i-dwmac 1c50000.ethernet: no reset control found
[    2.552255] sun7i-dwmac 1c50000.ethernet: Linked as a consumer to regulator.12
[    2.561711] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.563635] mmc0: new high speed SDHC card at address 0001
[    2.565019] mmcblk0: mmc0:0001 EB1QT 29.8 GiB
[    2.566841]  mmcblk0: p1 p2
[    2.659174] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    2.659190] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    2.659198] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[    2.659206] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    2.659212] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[    2.677915] libphy: stmmac: probed
[    2.677937] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    2.677946] RTL8211E Gigabit Ethernet stmmac-0:01: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    2.682190] sunxi-mmc 1c12000.mmc: Linked as a consumer to regulator.2
[    2.685503] of_cfs_init
[    2.685638] of_cfs_init: OK
[    2.685869] vcc3v0: disabling
[    2.685877] vcc5v0: disabling
[    2.685898] usb0-vbus: disabling
[    2.687039] sunxi-mmc 1c12000.mmc: Dropping the link to regulator.2
[    2.690727] sunxi-mmc 1c12000.mmc: Linked as a consumer to regulator.2
[    2.691636] sunxi-mmc 1c12000.mmc: Dropping the link to regulator.2
[    2.777456] ata1: SATA link down (SStatus 0 SControl 300)
[    2.782194] Freeing unused kernel memory: 1024K
[    2.782394] Run /init as init process
[    2.843590] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.844307] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.844456] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.306259] sunxi-mmc 1c12000.mmc: Linked as a consumer to regulator.2
[    3.311715] sunxi-mmc 1c12000.mmc: allocated mmc-pwrseq
[    3.335028] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB
[    3.361526] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    3.363347] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.365055] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.369451] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    3.393328] mmc1: new high speed SDIO card at address 0001
[    3.575236] axp20x-gpio axp20x-gpio: DMA mask not set
[    3.623298] axp20x-gpio axp20x-gpio: AXP209 pinctrl and GPIO driver loaded
[    4.399090] [drm] Cannot find any crtc or sizes
[    4.958867] BTRFS: device fsid 078696dc-d479-4821-8b2f-47fa5c0e05f1 devid 1 transid 11558 /dev/mmcblk0p2
[    5.104156] BTRFS info (device mmcblk0p2): disk space caching is enabled
[    5.104169] BTRFS info (device mmcblk0p2): has skinny extents
[    5.133591] BTRFS info (device mmcblk0p2): enabling ssd optimizations
[    5.781516] systemd[1]: System time before build time, advancing clock.
[    5.830620] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    5.831427] systemd[1]: Detected architecture arm.
[    5.849065] systemd[1]: Set hostname to <bpi>.
[    6.324784] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    6.339481] systemd[1]: Listening on RPCbind Server Activation Socket.
[    6.351382] systemd[1]: Listening on Syslog Socket.
[    6.364169] systemd[1]: Created slice System Slice.
[    6.380158] systemd[1]: Mounting Debug File System...
[    6.396937] systemd[1]: Mounting RPC Pipe File System...
[    6.411771] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    6.652601] BTRFS warning (device mmcblk0p2): excessive commit interval 600
[    6.652620] BTRFS info (device mmcblk0p2): use lzo compression, level 0
[    6.652629] BTRFS info (device mmcblk0p2): disk space caching is enabled
[    6.806006] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.869386] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.876334] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.876354] platform regulatory.0: Falling back to syfs fallback for: regulatory.db
[    6.928780] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43362-sdio for chip BCM43362/1
[    6.944163] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    6.969637] Driver for 1-wire Dallas network protocol.
[    7.504515] systemd-journald[243]: Received request to flush runtime journal from PID 1
[    7.837111] cfg80211: failed to load regulatory.db
[    8.716434] cpu cpu0: Linked as a consumer to regulator.9
[    8.716509] cpu cpu0: Dropping the link to regulator.9
[    8.716748] cpu cpu0: Linked as a consumer to regulator.9
[    8.750793] gpio-271 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    9.059207] sun4i-ss 1c15000.crypto-engine: Die ID 0
[    9.150707] Registered IR keymap rc-empty
[    9.150844] rc rc0: sunxi-ir as /devices/platform/soc@1c00000/1c21800.ir/rc/rc0
[    9.151124] input: sunxi-ir as /devices/platform/soc@1c00000/1c21800.ir/rc/rc0/input1
[    9.162277] rc rc0: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter
[    9.169495] sunxi-ir 1c21800.ir: initialized sunXi IR driver
[    9.348446] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory
[    9.352055] axp20x-adc axp20x-adc: DMA mask not set
[    9.385920] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    9.386460] axp20x-battery-power-supply axp20x-battery-power-supply: DMA mask not set
[    9.388839] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
[    9.392841] sun4i-usb-phy 1c13400.phy: Linked as a consumer to regulator.11
[    9.394120] ehci-platform 1c14000.usb: EHCI Host Controller
[    9.394183] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[    9.400999] ehci-platform 1c14000.usb: irq 32, io mem 0x01c14000
[    9.402771] lima 1c40000.gpu: bus rate = 300000000
[    9.402785] lima 1c40000.gpu: mod rate = 384000000
[    9.415011] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    9.415369] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    9.415379] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.415384] usb usb1: Product: EHCI Host Controller
[    9.415390] usb usb1: Manufacturer: Linux 4.19.13-sunxi ehci_hcd
[    9.415396] usb usb1: SerialNumber: 1c14000.usb
[    9.416389] hub 1-0:1.0: USB hub found
[    9.416497] hub 1-0:1.0: 1 port detected
[    9.417722] ehci-platform 1c1c000.usb: EHCI Host Controller
[    9.417761] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[    9.418508] ehci-platform 1c1c000.usb: irq 37, io mem 0x01c1c000
[    9.419808] [TTM] Zone  kernel: Available graphics memory: 381078 kiB
[    9.419817] [TTM] Zone highmem: Available graphics memory: 511338 kiB
[    9.419821] [TTM] Initializing pool allocator
[    9.420892] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[    9.420954] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[    9.421017] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[    9.421064] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[    9.430999] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    9.431325] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    9.431335] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.431341] usb usb2: Product: EHCI Host Controller
[    9.431347] usb usb2: Manufacturer: Linux 4.19.13-sunxi ehci_hcd
[    9.431353] usb usb2: SerialNumber: 1c1c000.usb
[    9.432058] [drm] Initialized lima 1.0.0 20170325 for 1c40000.gpu on minor 1
[    9.432175] hub 2-0:1.0: USB hub found
[    9.432245] hub 2-0:1.0: 1 port detected
[    9.433475] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    9.433514] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[    9.453435] ohci-platform 1c14400.usb: irq 33, io mem 0x01c14400
[    9.515335] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    9.515348] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.515355] usb usb3: Product: Generic Platform OHCI controller
[    9.515361] usb usb3: Manufacturer: Linux 4.19.13-sunxi ohci_hcd
[    9.515366] usb usb3: SerialNumber: 1c14400.usb
[    9.516273] hub 3-0:1.0: USB hub found
[    9.516347] hub 3-0:1.0: 1 port detected
[    9.517620] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    9.517669] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[    9.521685] ohci-platform 1c1c400.usb: irq 38, io mem 0x01c1c400
[    9.587393] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[    9.587410] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.587421] usb usb4: Product: Generic Platform OHCI controller
[    9.587429] usb usb4: Manufacturer: Linux 4.19.13-sunxi ohci_hcd
[    9.587446] usb usb4: SerialNumber: 1c1c400.usb
[    9.588829] hub 4-0:1.0: USB hub found
[    9.591050] hub 4-0:1.0: 1 port detected
[    9.592542] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    9.592627] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    9.593190] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    9.593210] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 5
[    9.603336] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    9.603349] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.603355] usb usb5: Product: MUSB HDRC host driver
[    9.603361] usb usb5: Manufacturer: Linux 4.19.13-sunxi musb-hcd
[    9.603366] usb usb5: SerialNumber: musb-hdrc.1.auto
[    9.611121] hub 5-0:1.0: USB hub found
[    9.611217] hub 5-0:1.0: 1 port detected
[    9.958974] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[    9.958994] brcmfmac: brcmf_bus_started: failed: -110
[    9.959022] brcmfmac: brcmf_attach: dongle is not responding: err=-110
[    9.994419] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
[   10.189081] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: commit=600,errors=remount-ro
[   11.439379] zram: Added device: zram0
[   11.443992] zram: Added device: zram1
[   11.446622] zram: Added device: zram2
[   11.448511] zram: Added device: zram3
[   11.638271] zram1: detected capacity change from 0 to 261808128
[   11.823975] Adding 255668k swap on /dev/zram1.  Priority:5 extents:1 across:255668k SSFS
[   11.831466] zram2: detected capacity change from 0 to 261808128
[   12.005365] Adding 255668k swap on /dev/zram2.  Priority:5 extents:1 across:255668k SSFS
[   12.119635] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search.
[   12.328865] random: crng init done
[   12.328875] random: 7 urandom warning(s) missed due to ratelimiting
[   12.448387] zram0: detected capacity change from 0 to 52428800
[   13.900195] EXT4-fs (zram0): mounted filesystem without journal. Opts: discard
[   28.869916] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   28.870677] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[   28.883043] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found
[   28.883058] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled
[   28.883069] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available
[   28.883077] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW
[   28.883533] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.943861] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   31.943917] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

 

Share this post


Link to post
Share on other sites
1 minute ago, technik007_cz said:

This dmesg output:

Not "dmesg", this is only kernel logs ...

You need to grab u-boot log using USB-TTL Serial dongle, way before kernel start booting.

Something like :



U-Boot 2018.09-rc1-armbian (Jan 14 2019 - 16:06:32 -0500) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: OrangePi Lite 2
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from FAT... Unable to use mmc 0:1... Failed (-5)
Using device 'sun50i_dw_hdmi', disp_uc_priv=0000000079f33320
sunxi_de3_init: device 'sunxi_de3' display won't probe (ret=-1)
Using device 'sun50i_dw_hdmi', disp_uc_priv=0000000079f33320
sunxi_de3_init: device 'sunxi_de3' display won't probe (ret=-1)
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3042 bytes read in 17 ms (173.8 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
167 bytes read in 13 ms (11.7 KiB/s)
19059 bytes read in 43 ms (432.6 KiB/s)
4155 bytes read in 55 ms (73.2 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)                            <------- this is where it is important to look : if Apply then Ok, if Revert than it failed ...
## Executing script at 44000000
5325073 bytes read in 562 ms (9 MiB/s)
14422024 bytes read in 1478 ms (9.3 MiB/s)
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    5325009 Bytes = 5.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 49aeb000, end 49fff0d1 ... OK
   reserving fdt memory region: addr=4fa00000 size=6a000
   Loading Device Tree to 0000000049a7e000, end 0000000049aeafff ... OK
Setting up simplefb
DE3 present but not probed

Starting kernel ...

Share this post


Link to post
Share on other sites

My output seems to be shorter:

Spoiler

DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2018.05-armbian (Oct 26 2018 - 12:03:14 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
I2C:   ** File not found /boot/boot.env **

** Unable to read "/boot/boot.env" from mmc0:1 **
In:    serial
Out:   vga
Err:   vga
SCSI:  flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
 (10.5 MiB/s)
starting USB...
USB0:   USB EHCI 1.00
USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
0 Storage Device(s) found
4797011 bytes read in 282 ms
 (700.2 KiB/s) (15.6 KiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
4796947 Bytes = 4   Loading Ramdisk to 49b6c000, end 49fff213 ...    Loading Device Tree to 49af8000, end 49b6bfff ... Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Begin: Running /scripts/init-bottom ...
Welcome to Debian GNU/Linux 9 (stretch)!

 

Share this post


Link to post
Share on other sites
2 hours ago, technik007_cz said:

0 Storage Device(s) found
4797011 bytes read in 282 ms
 (700.2 KiB/s) (15.6 KiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
4796947 Bytes = 4   Loading Ramdisk to 49b6c000, end 49fff213 ...    Loading Device Tree to 49af8000, end 49b6bfff ... Begin: Loading essential drivers ... done.

Weird !!!

I don't see even any read for "Boot script loaded from mmc", neither for /boot/armbianEnv.txt or DT file here. and even less for overlays ...

Since it is an upgrade that you have done, could you try a "virgin" image on new SDCard instead ?

 

EDIT : On your updated card, can you do a "ls -l /boot", I bet the boot.src isn't there at all ...

 

EDIT2 :

@Igor Is that possible that u-boot update is deleting the boot.src but doesn't write new one ?

Share this post


Link to post
Share on other sites

I check our community website, downloaded and flashed latest stretch image for bananapi and during routine upgrade right after logging in and etc I found that image is not latest because it started downloading kernel packages.

Share this post


Link to post
Share on other sites
44 minutes ago, technik007_cz said:

downloaded and flashed latest stretch image

Please, let isolate the issue : don't do any update/upgrade, simply check the u-boot on freshly burned image to see if you have same issue. And please, tell us if /boot/boot.scr was there in your previous attempt ...

Share this post


Link to post
Share on other sites
13 minutes ago, martinayotte said:

And please, tell us if /boot/boot.scr was there in your previous attempt ...

Yes, it was present. (I did not do any edit of that file and that image is about 2 weeks old.)

14 minutes ago, martinayotte said:

check the u-boot on freshly burned image

Here is u-boot from image I downloaded few minutes ago.

Spoiler

Trying to boot from MMC1


U-Boot 2018.05-armbian (Jan 09 2019 - 16:25:26 +0100) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from EXT4... ** File not found /boot/boot.env **

** Unable to read "/boot/boot.env" from mmc0:1 **
Failed (-5)
Setting up a 720x576i composite-pal console (overscan 32x20)
Error: no valid bmp image at 66000000
In:    serial
Out:   vga
Err:   vga
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
230454 bytes read in 37 ms (5.9 MiB/s)
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
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3798 bytes read in 43 ms (85.9 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
410 bytes read in 34 ms (11.7 KiB/s)
4918209 bytes read in 331 ms (14.2 MiB/s)
6906920 bytes read in 445 ms (14.8 MiB/s)
Found mainline kernel configuration
40056 bytes read in 54 ms (723.6 KiB/s)
777 bytes read in 151 ms (4.9 KiB/s)
Applying kernel provided DT overlay sun7i-a20-w1-gpio.dtbo
** File not found /boot/dtb/overlay/sun7i-a20-uart1.dtbo **
** File not found /boot/dtb/overlay/sun7i-a20-i2c0.dtbo **
1057 bytes read in 146 ms (6.8 KiB/s)
Applying kernel provided DT overlay sun7i-a20-spi-spidev.dtbo
5925 bytes read in 137 ms (42 KiB/s)
Applying kernel provided DT fixup script (sun7i-a20-fixup.scr)
## Executing script at 44000000
tmp_bank=D
tmp_pin=14
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Sorry, I could not convert " 3 14 0>"
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4918145 Bytes = 4.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Ramdisk to 49b4f000, end 49fffb81 ... OK
   reserving fdt memory region: addr=43000000 size=70000
   Loading Device Tree to 49adc000, end 49b4efff ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

 

I made only one change, right after rootfstype=ext4 was added to armbianEnv.txt this:

Spoiler

fdtfile=sun7i-a20-bananapi-m1-plus.dtb
extraargs=net.ifnames=0 biosdevname=0
overlays=w1-gpio uart1 i2c0 spi-spidev
param_w1_pin=PD14
param_w1_pin_int_pullup=1
usbstoragequirks=0x152d:0x1561:u,0x2537:0x1066:u,0x2537:0x1068:u,0x0bc2:0x61b7:u,0x152d:0x9561:u

It is exactly same like in non working image with latest kernel.

Share this post


Link to post
Share on other sites
11 minutes ago, technik007_cz said:

Boot script loaded from mmc
410 bytes read in 34 ms (11.7 KiB/s)                  <----- this is boot.src
4918209 bytes read in 331 ms (14.2 MiB/s)       <----- this is the uInitrd
6906920 bytes read in 445 ms (14.8 MiB/s)       <----- this is the kernel
Found mainline kernel configuration
40056 bytes read in 54 ms (723.6 KiB/s)            <---- this is the DTB
777 bytes read in 151 ms (4.9 KiB/s)                  <---- this is the W1-GPIO overlay
Applying kernel provided DT overlay sun7i-a20-w1-gpio.dtbo
** File not found /boot/dtb/overlay/sun7i-a20-uart1.dtbo **
** File not found /boot/dtb/overlay/sun7i-a20-i2c0.dtbo **
1057 bytes read in 146 ms (6.8 KiB/s)               <---- this is the SPIDEV overlay
Applying kernel provided DT overlay sun7i-a20-spi-spidev.dtbo
5925 bytes read in 137 ms (42 KiB/s)               <----- this is the fixup.scr
Applying kernel provided DT fixup script (sun7i-a20-fixup.scr)

As you can see here, it is a bit better ...

16 minutes ago, technik007_cz said:

## Executing script at 44000000
tmp_bank=D
tmp_pin=14
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Sorry, I could not convert " 3 14 0>"
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND

But those look bad and probably the issue ... I've never seen such error ...

 

I will dig more this issue ...

Share this post


Link to post
Share on other sites

And here is output of /sys/kernel/debug/gpio from the "virgin" image:

Spoiler

root@bananapi:/# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-287, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
 gpio-41  (                    |usb0-vbus           ) out lo    
 gpio-228 (                    |usb0_id_det         ) in  hi IRQ
 gpio-234 (                    |cd                  ) in  lo IRQ
 gpio-246 (                    |reset               ) out hi    
 gpio-247 (                    |gmac-3v3            ) out hi    
 gpio-248 (                    |bananapi-m1-plus:gre) out lo    
 gpio-249 (                    |bananapi-m1-plus:pwr) out hi    
 gpio-271 (                    |onewire@0           ) in  lo    

gpiochip1: GPIOs 413-415, parent: platform/axp20x-gpio, axp20x-gpio, can sleep:

onewire stays on value 271 like @Emil posted

Share this post


Link to post
Share on other sites

... and wifi is not accessible:

[    9.702977] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[    9.702998] brcmfmac: brcmf_bus_started: failed: -110
[    9.703025] brcmfmac: brcmf_attach: dongle is not responding: err=-110
[    9.719331] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed

Share this post


Link to post
Share on other sites
3 hours ago, technik007_cz said:

I carry on watching movie so I will be not accessible for change

No worries !

 

Anyway, I think I found something interesting about overlays fixup scripts ... But this means it will take time to fix and get new build done for download ...

 

For WiFi brcmfmac, please, create a new thread to avoid mixing issues ...

 

EDIT : fixes are there :

 

NEXT : https://github.com/armbian/build/commit/592c8bd76b006c64564d88145c867f231e5e3791

DEV : https://github.com/armbian/build/commit/88317839596ef844b3899c027d008f2b5911b96e

 

EDIT2 : BTW, this bug seems to be present since months until now for A10./A13/A20 but not for H3/H5/H6, probably just because there are not a lots of overlays users on those platforms, and we didn't get any feedback about it, probably present since more than 8 months ...

 

Share this post


Link to post
Share on other sites
10 hours ago, martinayotte said:

probably present since more than 8 months

I bought 2pcs of BananaPi M1 Plus and received them about 2 weeks ago. I can't use legacy kernel because I want filesystem with compression support. This requirement matches only btrfs filesystem which is best supported on mainline kernels.
Secondly this board supports lipol battery and this was second reason why I bought it. Even it cannot power sata drive while it is only battery powered (not tested on this board but on BananaPi few years ago) it was cheapest option with this feature among all SBC's on the market.

 

11 hours ago, martinayotte said:

there are not a lots of overlays users on those platforms,

Get right gpio pin numbering for my board is horrible experience for me. What I am missing is simple conversion software/script between what provides command

cat /sys/kernel/debug/gpio

and what is present in file:

armbianEnv.txt

I found one script but it is one way only. So I stick with with BPI-WiringPi2 => 'gpio readall' table and pin definition found there:

https://bananapi.gitbooks.io/bpi-m1-bpi-m1-plus-/content/zh/bpi-m1+_gpio_pin_define.html

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1