Jump to content

lagerschaden

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by lagerschaden

  1. I tried also external and internal pullup, Kernel is Armbian 20.08.17 Bionic with Linux 5.8.16-sunxi L.
  2. I tried other pins and other DS18B20 and there was the same issue. Same issue with an Orange Pi one. Then I tested two Rasperries -> everything is ok. I will switch to a Raspberry. L.
  3. Now I removed the DS18B20 from the Orange Pi zero and Uuups: pi@orangepizero:~$ ls -l /sys/bus/w1/devices/ total 0 lrwxrwxrwx 1 root root 0 Nov 17 17:33 00-100000000000 -> ../../../devices/w1_bus_master1/00-100000000000 lrwxrwxrwx 1 root root 0 Nov 17 17:34 00-500000000000 -> ../../../devices/w1_bus_master1/00-500000000000 lrwxrwxrwx 1 root root 0 Nov 17 17:33 00-900000000000 -> ../../../devices/w1_bus_master1/00-900000000000 lrwxrwxrwx 1 root root 0 Nov 17 17:25 w1_bus_master1 -> ../../../devices/w1_bus_master1 pi@orangepizero:~$ dmesg | grep w1 [ 10.748887] w1-gpio onewire@0: there is not valid maps for state default [ 13.130265] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search. [ 59.998244] w1_master_driver w1_bus_master1: Attaching one wire slave 00.800000000000 crc 8c [ 60.004443] w1_master_driver w1_bus_master1: Family 0 for 00.800000000000.8c is not registered. [ 118.654109] w1_master_driver w1_bus_master1: Attaching one wire slave 00.400000000000 crc 46 [ 118.660629] w1_master_driver w1_bus_master1: Family 0 for 00.400000000000.46 is not registered. [ 165.419201] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c00000000000 crc ca [ 165.425341] w1_master_driver w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered. [ 235.897723] w1_master_driver w1_bus_master1: Attaching one wire slave 00.200000000000 crc 23 [ 235.906918] w1_master_driver w1_bus_master1: Family 0 for 00.200000000000.23 is not registered. [ 294.510450] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a00000000000 crc af [ 294.519639] w1_master_driver w1_bus_master1: Family 0 for 00.a00000000000.af is not registered. [ 329.522339] w1_master_driver w1_bus_master1: Attaching one wire slave 00.600000000000 crc 65 [ 329.530005] w1_master_driver w1_bus_master1: Family 0 for 00.600000000000.65 is not registered. [ 366.223328] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e00000000000 crc e9 [ 366.232760] w1_master_driver w1_bus_master1: Family 0 for 00.e00000000000.e9 is not registered. [ 424.435951] w1_master_driver w1_bus_master1: Attaching one wire slave 00.100000000000 crc 9d [ 424.445176] w1_master_driver w1_bus_master1: Family 0 for 00.100000000000.9d is not registered. [ 460.228297] w1_master_driver w1_bus_master1: Attaching one wire slave 00.900000000000 crc 11 [ 460.237421] w1_master_driver w1_bus_master1: Family 0 for 00.900000000000.11 is not registered. [ 529.876961] w1_master_driver w1_bus_master1: Attaching one wire slave 00.500000000000 crc db [ 529.886380] w1_master_driver w1_bus_master1: Family 0 for 00.500000000000.db is not registered. [ 577.468995] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d00000000000 crc 57 [ 577.474916] w1_master_driver w1_bus_master1: Family 0 for 00.d00000000000.57 is not registered. [ 601.542743] w1_master_driver w1_bus_master1: Attaching one wire slave 00.300000000000 crc be [ 601.551880] w1_master_driver w1_bus_master1: Family 0 for 00.300000000000.be is not registered. pi@orangepizero:~$ "Zombie" 1-wire-devices ??? L.
  4. pi@orangepizero:~$ dmesg | grep w1 [ 10.918414] w1-gpio onewire@0: there is not valid maps for state default [ 13.026099] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search. [ 60.043354] w1_master_driver w1_bus_master1: Attaching one wire slave 00.800000000000 crc 8c [ 60.053853] w1_master_driver w1_bus_master1: Family 0 for 00.800000000000.8c is not registered. [ 118.651988] w1_master_driver w1_bus_master1: Attaching one wire slave 00.400000000000 crc 46 [ 118.661513] w1_master_driver w1_bus_master1: Family 0 for 00.400000000000.46 is not registered. [ 165.455530] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c00000000000 crc ca [ 165.461396] w1_master_driver w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered. [ 235.892434] w1_master_driver w1_bus_master1: Attaching one wire slave 00.200000000000 crc 23 [ 235.898397] w1_master_driver w1_bus_master1: Family 0 for 00.200000000000.23 is not registered. [ 294.518468] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a00000000000 crc af [ 294.527735] w1_master_driver w1_bus_master1: Family 0 for 00.a00000000000.af is not registered. [ 329.521925] w1_master_driver w1_bus_master1: Attaching one wire slave 00.600000000000 crc 65 [ 329.528850] w1_master_driver w1_bus_master1: Family 0 for 00.600000000000.65 is not registered. [ 366.186710] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e00000000000 crc e9 [ 366.193140] w1_master_driver w1_bus_master1: Family 0 for 00.e00000000000.e9 is not registered. [ 424.451012] w1_master_driver w1_bus_master1: Attaching one wire slave 00.100000000000 crc 9d [ 424.456823] w1_master_driver w1_bus_master1: Family 0 for 00.100000000000.9d is not registered. [ 460.156559] w1_master_driver w1_bus_master1: Attaching one wire slave 00.900000000000 crc 11 [ 460.165709] w1_master_driver w1_bus_master1: Family 0 for 00.900000000000.11 is not registered. [ 529.873516] w1_master_driver w1_bus_master1: Attaching one wire slave 00.500000000000 crc db [ 529.880819] w1_master_driver w1_bus_master1: Family 0 for 00.500000000000.db is not registered. [ 577.478516] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d00000000000 crc 57 [ 577.486009] w1_master_driver w1_bus_master1: Family 0 for 00.d00000000000.57 is not registered. [ 601.598000] w1_master_driver w1_bus_master1: Attaching one wire slave 00.300000000000 crc be [ 601.604024] w1_master_driver w1_bus_master1: Family 0 for 00.300000000000.be is not registered. [ 647.507023] w1_master_driver w1_bus_master1: Attaching one wire slave 00.b00000000000 crc 32 [ 647.513166] w1_master_driver w1_bus_master1: Family 0 for 00.b00000000000.32 is not registered. [ 683.415700] w1_master_driver w1_bus_master1: Attaching one wire slave 00.700000000000 crc f8 [ 683.421654] w1_master_driver w1_bus_master1: Family 0 for 00.700000000000.f8 is not registered. [ 730.960493] w1_master_driver w1_bus_master1: Attaching one wire slave 00.f00000000000 crc 74 [ 730.966974] w1_master_driver w1_bus_master1: Family 0 for 00.f00000000000.74 is not registered. [ 788.901338] w1_master_driver w1_bus_master1: Attaching one wire slave 00.080000000000 crc c2 [ 788.907217] w1_master_driver w1_bus_master1: Family 0 for 00.080000000000.c2 is not registered. [ 837.233978] w1_master_driver w1_bus_master1: Attaching one wire slave 00.880000000000 crc 4e [ 837.240541] w1_master_driver w1_bus_master1: Family 0 for 00.880000000000.4e is not registered. [ 872.307557] w1_master_driver w1_bus_master1: Attaching one wire slave 00.480000000000 crc 84 [ 872.314802] w1_master_driver w1_bus_master1: Family 0 for 00.480000000000.84 is not registered. [ 919.036110] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c80000000000 crc 08 [ 919.043360] w1_master_driver w1_bus_master1: Family 0 for 00.c80000000000.08 is not registered. [ 989.661007] w1_master_driver w1_bus_master1: Attaching one wire slave 00.280000000000 crc e1 [ 989.670331] w1_master_driver w1_bus_master1: Family 0 for 00.280000000000.e1 is not registered. [ 1048.216544] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a80000000000 crc 6d [ 1048.222266] w1_master_driver w1_bus_master1: Family 0 for 00.a80000000000.6d is not registered. [ 1106.778063] w1_master_driver w1_bus_master1: Attaching one wire slave 00.680000000000 crc a7 [ 1106.783881] w1_master_driver w1_bus_master1: Family 0 for 00.680000000000.a7 is not registered. [ 1143.420175] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e80000000000 crc 2b [ 1143.429445] w1_master_driver w1_bus_master1: Family 0 for 00.e80000000000.2b is not registered. [ 1201.748193] w1_master_driver w1_bus_master1: Attaching one wire slave 00.180000000000 crc 5f [ 1201.754066] w1_master_driver w1_bus_master1: Family 0 for 00.180000000000.5f is not registered. [ 1237.584915] w1_master_driver w1_bus_master1: Attaching one wire slave 00.980000000000 crc d3 [ 1237.590931] w1_master_driver w1_bus_master1: Family 0 for 00.980000000000.d3 is not registered. [ 1283.465783] w1_master_driver w1_bus_master1: Attaching one wire slave 00.580000000000 crc 19 [ 1283.472311] w1_master_driver w1_bus_master1: Family 0 for 00.580000000000.19 is not registered. [ 1331.134640] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d80000000000 crc 95 [ 1331.140569] w1_master_driver w1_bus_master1: Family 0 for 00.d80000000000.95 is not registered. [ 1355.295052] w1_master_driver w1_bus_master1: Attaching one wire slave 00.380000000000 crc 7c [ 1355.301015] w1_master_driver w1_bus_master1: Family 0 for 00.380000000000.7c is not registered. [ 1401.263815] w1_master_driver w1_bus_master1: Attaching one wire slave 00.b80000000000 crc f0 [ 1401.269638] w1_master_driver w1_bus_master1: Family 0 for 00.b80000000000.f0 is not registered. [ 1460.613998] w1_master_driver w1_bus_master1: Attaching one wire slave 00.780000000000 crc 3a [ 1460.623177] w1_master_driver w1_bus_master1: Family 0 for 00.780000000000.3a is not registered. [ 1508.269479] w1_master_driver w1_bus_master1: Attaching one wire slave 00.f80000000000 crc b6 [ 1508.275477] w1_master_driver w1_bus_master1: Family 0 for 00.f80000000000.b6 is not registered. [ 1566.259014] w1_master_driver w1_bus_master1: Attaching one wire slave 00.040000000000 crc 61 [ 1566.266563] w1_master_driver w1_bus_master1: Family 0 for 00.040000000000.61 is not registered. [ 1614.675262] w1_master_driver w1_bus_master1: Attaching one wire slave 00.840000000000 crc ed [ 1614.681407] w1_master_driver w1_bus_master1: Family 0 for 00.840000000000.ed is not registered. [ 1673.243833] w1_master_driver w1_bus_master1: Attaching one wire slave 00.440000000000 crc 27 [ 1673.249694] w1_master_driver w1_bus_master1: Family 0 for 00.440000000000.27 is not registered. [ 1720.024472] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c40000000000 crc ab [ 1720.030365] w1_master_driver w1_bus_master1: Family 0 for 00.c40000000000.ab is not registered. [ 1743.204900] w1_master_driver w1_bus_master1: Attaching one wire slave 00.240000000000 crc 42 [ 1743.211094] w1_master_driver w1_bus_master1: Family 0 for 00.240000000000.42 is not registered. [ 1801.818256] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a40000000000 crc ce [ 1801.825776] w1_master_driver w1_bus_master1: Family 0 for 00.a40000000000.ce is not registered. [ 1826.570166] w1_master_driver w1_bus_master1: Attaching one wire slave 00.640000000000 crc 04 [ 1826.575799] w1_master_driver w1_bus_master1: Family 0 for 00.640000000000.04 is not registered. [ 1873.306830] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e40000000000 crc 88 [ 1873.313309] w1_master_driver w1_bus_master1: Family 0 for 00.e40000000000.88 is not registered. [ 1931.903404] w1_master_driver w1_bus_master1: Attaching one wire slave 00.140000000000 crc fc [ 1931.909127] w1_master_driver w1_bus_master1: Family 0 for 00.140000000000.fc is not registered. [ 1967.740962] w1_master_driver w1_bus_master1: Attaching one wire slave 00.940000000000 crc 70 [ 1967.750266] w1_master_driver w1_bus_master1: Family 0 for 00.940000000000.70 is not registered. [ 2037.280620] w1_master_driver w1_bus_master1: Attaching one wire slave 00.540000000000 crc ba [ 2037.286595] w1_master_driver w1_bus_master1: Family 0 for 00.540000000000.ba is not registered. [ 2084.890718] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d40000000000 crc 36 [ 2084.899901] w1_master_driver w1_bus_master1: Family 0 for 00.d40000000000.36 is not registered. [ 2156.095202] w1_master_driver w1_bus_master1: Attaching one wire slave 00.340000000000 crc df [ 2156.101045] w1_master_driver w1_bus_master1: Family 0 for 00.340000000000.df is not registered. [ 2202.016954] w1_master_driver w1_bus_master1: Attaching one wire slave 00.b40000000000 crc 53 [ 2202.024525] w1_master_driver w1_bus_master1: Family 0 for 00.b40000000000.53 is not registered. [ 2237.818316] w1_master_driver w1_bus_master1: Attaching one wire slave 00.740000000000 crc 99 [ 2237.827495] w1_master_driver w1_bus_master1: Family 0 for 00.740000000000.99 is not registered. [ 2285.430112] w1_master_driver w1_bus_master1: Attaching one wire slave 00.f40000000000 crc 15 [ 2285.435977] w1_master_driver w1_bus_master1: Family 0 for 00.f40000000000.15 is not registered. [ 2343.519916] w1_master_driver w1_bus_master1: Attaching one wire slave 00.0c0000000000 crc a3 [ 2343.526649] w1_master_driver w1_bus_master1: Family 0 for 00.0c0000000000.a3 is not registered. [ 2391.853559] w1_master_driver w1_bus_master1: Attaching one wire slave 00.8c0000000000 crc 2f [ 2391.862673] w1_master_driver w1_bus_master1: Family 0 for 00.8c0000000000.2f is not registered. [ 2427.009253] w1_master_driver w1_bus_master1: Attaching one wire slave 00.4c0000000000 crc e5 [ 2427.015645] w1_master_driver w1_bus_master1: Family 0 for 00.4c0000000000.e5 is not registered. [ 2473.778242] w1_master_driver w1_bus_master1: Attaching one wire slave 00.cc0000000000 crc 69 [ 2473.784744] w1_master_driver w1_bus_master1: Family 0 for 00.cc0000000000.69 is not registered. [ 2496.842353] w1_master_driver w1_bus_master1: Attaching one wire slave 00.2c0000000000 crc 80 [ 2496.848331] w1_master_driver w1_bus_master1: Family 0 for 00.2c0000000000.80 is not registered. [ 2555.408580] w1_master_driver w1_bus_master1: Attaching one wire slave 00.ac0000000000 crc 0c [ 2555.415890] w1_master_driver w1_bus_master1: Family 0 for 00.ac0000000000.0c is not registered. [ 2603.884316] w1_master_driver w1_bus_master1: Attaching one wire slave 00.6c0000000000 crc c6 [ 2603.890262] w1_master_driver w1_bus_master1: Family 0 for 00.6c0000000000.c6 is not registered. [ 2650.613148] w1_master_driver w1_bus_master1: Attaching one wire slave 00.ec0000000000 crc 4a [ 2650.619205] w1_master_driver w1_bus_master1: Family 0 for 00.ec0000000000.4a is not registered. [ 2709.155413] w1_master_driver w1_bus_master1: Attaching one wire slave 00.1c0000000000 crc 3e [ 2709.164588] w1_master_driver w1_bus_master1: Family 0 for 00.1c0000000000.3e is not registered. [ 2745.016024] w1_master_driver w1_bus_master1: Attaching one wire slave 00.9c0000000000 crc b2 [ 2745.025158] w1_master_driver w1_bus_master1: Family 0 for 00.9c0000000000.b2 is not registered. [ 2790.984781] w1_master_driver w1_bus_master1: Attaching one wire slave 00.5c0000000000 crc 78 [ 2790.993984] w1_master_driver w1_bus_master1: Family 0 for 00.5c0000000000.78 is not registered. [ 2838.616666] w1_master_driver w1_bus_master1: Attaching one wire slave 00.dc0000000000 crc f4 [ 2838.623070] w1_master_driver w1_bus_master1: Family 0 for 00.dc0000000000.f4 is not registered. [ 2909.653619] w1_master_driver w1_bus_master1: Attaching one wire slave 00.3c0000000000 crc 1d [ 2909.659207] w1_master_driver w1_bus_master1: Family 0 for 00.3c0000000000.1d is not registered. [ 2955.667376] w1_master_driver w1_bus_master1: Attaching one wire slave 00.bc0000000000 crc 91 [ 2955.674685] w1_master_driver w1_bus_master1: Family 0 for 00.bc0000000000.91 is not registered. [ 3015.127169] w1_master_driver w1_bus_master1: Attaching one wire slave 00.7c0000000000 crc 5b [ 3015.133061] w1_master_driver w1_bus_master1: Family 0 for 00.7c0000000000.5b is not registered. [ 3062.731951] w1_master_driver w1_bus_master1: Attaching one wire slave 00.fc0000000000 crc d7 [ 3062.737811] w1_master_driver w1_bus_master1: Family 0 for 00.fc0000000000.d7 is not registered. [ 3085.180293] w1_master_driver w1_bus_master1: Attaching one wire slave 00.020000000000 crc bc [ 3085.186235] w1_master_driver w1_bus_master1: Family 0 for 00.020000000000.bc is not registered. [ 3120.996817] w1_master_driver w1_bus_master1: Attaching one wire slave 00.820000000000 crc 30 [ 3121.002685] w1_master_driver w1_bus_master1: Family 0 for 00.820000000000.30 is not registered. [ 3180.465728] w1_master_driver w1_bus_master1: Attaching one wire slave 00.420000000000 crc fa [ 3180.471665] w1_master_driver w1_bus_master1: Family 0 for 00.420000000000.fa is not registered. [ 3227.978446] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c20000000000 crc 76 [ 3227.985100] w1_master_driver w1_bus_master1: Family 0 for 00.c20000000000.76 is not registered. [ 3309.320910] w1_master_driver w1_bus_master1: Attaching one wire slave 00.220000000000 crc 9f [ 3309.330184] w1_master_driver w1_bus_master1: Family 0 for 00.220000000000.9f is not registered. [ 3345.124197] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a20000000000 crc 13 [ 3345.130176] w1_master_driver w1_bus_master1: Family 0 for 00.a20000000000.13 is not registered. [ 3381.024729] w1_master_driver w1_bus_master1: Attaching one wire slave 00.620000000000 crc d9 [ 3381.030641] w1_master_driver w1_bus_master1: Family 0 for 00.620000000000.d9 is not registered. [ 3438.733732] w1_master_driver w1_bus_master1: Attaching one wire slave 00.e20000000000 crc 55 [ 3438.739413] w1_master_driver w1_bus_master1: Family 0 for 00.e20000000000.55 is not registered. [ 3474.839350] w1_master_driver w1_bus_master1: Attaching one wire slave 00.120000000000 crc 21 [ 3474.848520] w1_master_driver w1_bus_master1: Family 0 for 00.120000000000.21 is not registered. [ 3533.467650] w1_master_driver w1_bus_master1: Attaching one wire slave 00.920000000000 crc ad [ 3533.475242] w1_master_driver w1_bus_master1: Family 0 for 00.920000000000.ad is not registered. [ 3592.079815] w1_master_driver w1_bus_master1: Attaching one wire slave 00.520000000000 crc 67 [ 3592.085701] w1_master_driver w1_bus_master1: Family 0 for 00.520000000000.67 is not registered. [ 3638.896493] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d20000000000 crc eb [ 3638.902422] w1_master_driver w1_bus_master1: Family 0 for 00.d20000000000.eb is not registered. [ 3651.693922] w1_master_driver w1_bus_master1: Attaching one wire slave 00.320000000000 crc 02 [ 3651.703123] w1_master_driver w1_bus_master1: Family 0 for 00.320000000000.02 is not registered. [ 3710.317520] w1_master_driver w1_bus_master1: Attaching one wire slave 00.b20000000000 crc 8e [ 3710.323562] w1_master_driver w1_bus_master1: Family 0 for 00.b20000000000.8e is not registered. [ 3745.386025] w1_master_driver w1_bus_master1: Attaching one wire slave 00.720000000000 crc 44 [ 3745.391997] w1_master_driver w1_bus_master1: Family 0 for 00.720000000000.44 is not registered. pi@orangepizero:~$
  5. Didn't help pi@orangepizero:~$ ls -l /sys/bus/w1/devices/ total 0 lrwxrwxrwx 1 root root 0 Nov 17 16:07 w1_bus_master1 -> ../../../devices/w1_bus_master1
  6. The names of the files in /sys/bus/w1/devices/ change every few seconds and there is never a /sys/bus/w1/devices/00-............/w1-slave
  7. I have the same problem like other users here, the 1-wire doesn't run correctly, I added 1-wire to armbianEnv.txt, 1-wire drivers are loaded, but I cannot access the data of DS18B20 attached to PA06. L. ___ ____ _ _____ / _ \| _ \(_) |__ /___ _ __ ___ | | | | |_) | | / // _ \ '__/ _ \ | |_| | __/| | / /| __/ | | (_) | \___/|_| |_| /____\___|_| \___/ Welcome to Armbian 20.08.17 Bionic with Linux 5.8.16-sunxi System load: 26% Up time: 0 min Memory usage: 14% of 491M IP: 192.168.3.163 CPU temp: 45°C Usage of /: 4% of 29G Last login: Tue Nov 17 15:06:39 2020 from 192.168.3.31 pi@orangepizero:~$ cat /boot/armbianEnv.txt verbosity=7 logo=disabled console=serial disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 rootdev=UUID=4618846b-19e6-421b-8872-767a46ed5e1e rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u overlays=w1-gpio param_w1_pin=PA06 # desired pin param_w1_pin_int_pullup=1 # internal pullup-resistor: 1=on, 0=off pi@orangepizero:~$ ls -l /sys/bus/w1/devices/ total 0 lrwxrwxrwx 1 root root 0 Nov 17 15:09 w1_bus_master1 -> ../../../devices/w1_bus_master1 pi@orangepizero:~$ sudo cat /sys/kernel/debug/gpio [sudo] password for pi: gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl: gpio-11 ( |sysfs ) out lo gpio-17 ( |orangepi:red:status ) out lo gpio-20 ( |reg_vcc_wifi ) out hi gpio-110 ( |onewire@0 ) out lo <-------------------- gpio-166 ( |cd ) in lo ACTIVE LOW gpio-204 ( |usb0_id_det ) in hi IRQ gpiochip1: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl: gpio-358 ( |vdd-cpux ) out hi gpio-359 ( |reset ) out hi ACTIVE LOW gpio-362 ( |orangepi:green:pwr ) out hi pi@orangepizero:~$ lsmod Module Size Used by aes_arm_bs 20480 2 crypto_simd 16384 1 aes_arm_bs ccm 20480 6 xradio_wlan 114688 1 mac80211 516096 1 xradio_wlan cfg80211 471040 2 mac80211,xradio_wlan lima 45056 0 rfkill 20480 3 cfg80211 gpu_sched 28672 1 lima libarc4 16384 1 mac80211 sun4i_gpadc_iio 16384 0 industrialio 53248 1 sun4i_gpadc_iio sun8i_thermal 16384 0 sun8i_ce 24576 0 crypto_engine 16384 1 sun8i_ce sun8i_di 20480 0 sunxi_cedrus 32768 0 w1_gpio 16384 0 <------------- zram 24576 2 wire 32768 1 w1_gpio cn 16384 1 wire uio_pdrv_genirq 16384 0 uio 16384 1 uio_pdrv_genirq cpufreq_dt 20480 0 sch_fq_codel 20480 6 usb_f_acm 20480 1 u_serial 24576 3 usb_f_acm g_serial 16384 0 libcomposite 45056 2 g_serial,usb_f_acm ip_tables 24576 0 x_tables 24576 1 ip_tables autofs4 36864 2 pwrseq_simple 16384 1 sunxi 20480 0 phy_generic 20480 2 sunxi pi@orangepizero:~$ ls -l /boot/dtb/overlay/ total 384 -rw-r--r-- 1 root root 5448 Oct 20 22:15 README.sun4i-a10-overlays -rw-r--r-- 1 root root 3262 Oct 20 22:15 README.sun5i-a13-overlays -rw-r--r-- 1 root root 6817 Oct 20 22:15 README.sun7i-a20-overlays -rw-r--r-- 1 root root 4736 Oct 20 22:15 README.sun8i-h3-overlays -rw-r--r-- 1 root root 267 Oct 20 22:15 sun4i-a10-analog-codec.dtbo -rw-r--r-- 1 root root 387 Oct 20 22:15 sun4i-a10-can.dtbo -rw-r--r-- 1 root root 4832 Oct 20 22:15 sun4i-a10-fixup.scr -rw-r--r-- 1 root root 500 Oct 20 22:15 sun4i-a10-i2c1.dtbo -rw-r--r-- 1 root root 500 Oct 20 22:15 sun4i-a10-i2c2.dtbo -rw-r--r-- 1 root root 2301 Oct 20 22:15 sun4i-a10-nand.dtbo -rw-r--r-- 1 root root 778 Oct 20 22:15 sun4i-a10-pps-gpio.dtbo -rw-r--r-- 1 root root 443 Oct 20 22:15 sun4i-a10-pwm.dtbo -rw-r--r-- 1 root root 1040 Oct 20 22:15 sun4i-a10-spdif-out.dtbo -rw-r--r-- 1 root root 1093 Oct 20 22:15 sun4i-a10-spi-jedec-nor.dtbo -rw-r--r-- 1 root root 1069 Oct 20 22:15 sun4i-a10-spi-spidev.dtbo -rw-r--r-- 1 root root 949 Oct 20 22:15 sun4i-a10-uart2.dtbo -rw-r--r-- 1 root root 1205 Oct 20 22:15 sun4i-a10-uart3.dtbo -rw-r--r-- 1 root root 935 Oct 20 22:15 sun4i-a10-uart4.dtbo -rw-r--r-- 1 root root 802 Oct 20 22:15 sun4i-a10-uart5.dtbo -rw-r--r-- 1 root root 806 Oct 20 22:15 sun4i-a10-uart6.dtbo -rw-r--r-- 1 root root 806 Oct 20 22:15 sun4i-a10-uart7.dtbo -rw-r--r-- 1 root root 777 Oct 20 22:15 sun4i-a10-w1-gpio.dtbo -rw-r--r-- 1 root root 267 Oct 20 22:15 sun5i-a13-analog-codec.dtbo -rw-r--r-- 1 root root 2146 Oct 20 22:15 sun5i-a13-fixup.scr -rw-r--r-- 1 root root 500 Oct 20 22:15 sun5i-a13-i2c1.dtbo -rw-r--r-- 1 root root 500 Oct 20 22:15 sun5i-a13-i2c2.dtbo -rw-r--r-- 1 root root 1239 Oct 20 22:15 sun5i-a13-nand.dtbo -rw-r--r-- 1 root root 382 Oct 20 22:15 sun5i-a13-pwm.dtbo -rw-r--r-- 1 root root 1069 Oct 20 22:15 sun5i-a13-spi-jedec-nor.dtbo -rw-r--r-- 1 root root 1045 Oct 20 22:15 sun5i-a13-spi-spidev.dtbo -rw-r--r-- 1 root root 974 Oct 20 22:15 sun5i-a13-spi0.dtbo -rw-r--r-- 1 root root 936 Oct 20 22:15 sun5i-a13-spi1.dtbo -rw-r--r-- 1 root root 563 Oct 20 22:15 sun5i-a13-spi2.dtbo -rw-r--r-- 1 root root 795 Oct 20 22:15 sun5i-a13-uart0.dtbo -rw-r--r-- 1 root root 505 Oct 20 22:15 sun5i-a13-uart1.dtbo -rw-r--r-- 1 root root 505 Oct 20 22:15 sun5i-a13-uart2.dtbo -rw-r--r-- 1 root root 505 Oct 20 22:15 sun5i-a13-uart3.dtbo -rw-r--r-- 1 root root 267 Oct 20 22:15 sun7i-a20-analog-codec.dtbo -rw-r--r-- 1 root root 386 Oct 20 22:15 sun7i-a20-can.dtbo -rw-r--r-- 1 root root 5532 Oct 20 22:15 sun7i-a20-fixup.scr -rw-r--r-- 1 root root 500 Oct 20 22:15 sun7i-a20-i2c1.dtbo -rw-r--r-- 1 root root 500 Oct 20 22:15 sun7i-a20-i2c2.dtbo -rw-r--r-- 1 root root 500 Oct 20 22:15 sun7i-a20-i2c3.dtbo -rw-r--r-- 1 root root 766 Oct 20 22:15 sun7i-a20-i2c4.dtbo -rw-r--r-- 1 root root 590 Oct 20 22:15 sun7i-a20-mmc2.dtbo -rw-r--r-- 1 root root 2301 Oct 20 22:15 sun7i-a20-nand.dtbo -rw-r--r-- 1 root root 778 Oct 20 22:15 sun7i-a20-pps-gpio.dtbo -rw-r--r-- 1 root root 443 Oct 20 22:15 sun7i-a20-pwm.dtbo -rw-r--r-- 1 root root 1040 Oct 20 22:15 sun7i-a20-spdif-out.dtbo -rw-r--r-- 1 root root 556 Oct 20 22:15 sun7i-a20-spi-add-cs1.dtbo -rw-r--r-- 1 root root 1093 Oct 20 22:15 sun7i-a20-spi-jedec-nor.dtbo -rw-r--r-- 1 root root 1069 Oct 20 22:15 sun7i-a20-spi-spidev.dtbo -rw-r--r-- 1 root root 808 Oct 20 22:15 sun7i-a20-uart2.dtbo -rw-r--r-- 1 root root 1078 Oct 20 22:15 sun7i-a20-uart3.dtbo -rw-r--r-- 1 root root 513 Oct 20 22:15 sun7i-a20-uart4.dtbo -rw-r--r-- 1 root root 513 Oct 20 22:15 sun7i-a20-uart5.dtbo -rw-r--r-- 1 root root 513 Oct 20 22:15 sun7i-a20-uart6.dtbo -rw-r--r-- 1 root root 513 Oct 20 22:15 sun7i-a20-uart7.dtbo -rw-r--r-- 1 root root 777 Oct 20 22:15 sun7i-a20-w1-gpio.dtbo -rw-r--r-- 1 root root 339 Oct 20 22:15 sun8i-h3-analog-codec.dtbo -rw-r--r-- 1 root root 384 Oct 20 22:15 sun8i-h3-cir.dtbo -rw-r--r-- 1 root root 478 Oct 20 22:15 sun8i-h3-cpu-clock-1.2GHz-1.3v.dtbo -rw-r--r-- 1 root root 982 Oct 20 22:15 sun8i-h3-cpu-clock-1.368GHz-1.3v.dtbo -rw-r--r-- 1 root root 898 Oct 20 22:15 sun8i-h3-cpu-clock-1.3GHz-1.3v.dtbo -rw-r--r-- 1 root root 4185 Oct 20 22:15 sun8i-h3-fixup.scr -rw-r--r-- 1 root root 374 Oct 20 22:15 sun8i-h3-i2c0.dtbo -rw-r--r-- 1 root root 374 Oct 20 22:15 sun8i-h3-i2c1.dtbo -rw-r--r-- 1 root root 374 Oct 20 22:15 sun8i-h3-i2c2.dtbo -rw-r--r-- 1 root root 778 Oct 20 22:15 sun8i-h3-pps-gpio.dtbo -rw-r--r-- 1 root root 862 Oct 20 22:15 sun8i-h3-pwm.dtbo -rw-r--r-- 1 root root 1040 Oct 20 22:15 sun8i-h3-spdif-out.dtbo -rw-r--r-- 1 root root 1177 Oct 20 22:15 sun8i-h3-spi-add-cs1.dtbo -rw-r--r-- 1 root root 804 Oct 20 22:15 sun8i-h3-spi-jedec-nor.dtbo -rw-r--r-- 1 root root 788 Oct 20 22:15 sun8i-h3-spi-spidev.dtbo -rw-r--r-- 1 root root 502 Oct 20 22:15 sun8i-h3-uart1.dtbo -rw-r--r-- 1 root root 502 Oct 20 22:15 sun8i-h3-uart2.dtbo -rw-r--r-- 1 root root 502 Oct 20 22:15 sun8i-h3-uart3.dtbo -rw-r--r-- 1 root root 504 Oct 20 22:15 sun8i-h3-usbhost0.dtbo -rw-r--r-- 1 root root 504 Oct 20 22:15 sun8i-h3-usbhost1.dtbo -rw-r--r-- 1 root root 504 Oct 20 22:15 sun8i-h3-usbhost2.dtbo -rw-r--r-- 1 root root 504 Oct 20 22:15 sun8i-h3-usbhost3.dtbo -rw-r--r-- 1 root root 777 Oct 20 22:15 sun8i-h3-w1-gpio.dtbo <----------- -rw-r--r-- 1 root root 374 Oct 20 22:15 sun8i-r40-i2c2.dtbo -rw-r--r-- 1 root root 374 Oct 20 22:15 sun8i-r40-i2c3.dtbo -rw-r--r-- 1 root root 547 Oct 20 22:15 sun8i-r40-spi-spidev0.dtbo -rw-r--r-- 1 root root 547 Oct 20 22:15 sun8i-r40-spi-spidev1.dtbo -rw-r--r-- 1 root root 505 Oct 20 22:15 sun8i-r40-uart2.dtbo -rw-r--r-- 1 root root 505 Oct 20 22:15 sun8i-r40-uart4.dtbo -rw-r--r-- 1 root root 505 Oct 20 22:15 sun8i-r40-uart5.dtbo -rw-r--r-- 1 root root 505 Oct 20 22:15 sun8i-r40-uart7.dtbo pi@orangepizero:~$ ls -l /sys/bus/w1/devices/ total 0 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-300000000000 -> ../../../devices/w1_bus_master1/00-300000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-700000000000 -> ../../../devices/w1_bus_master1/00-700000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-b00000000000 -> ../../../devices/w1_bus_master1/00-b00000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:09 w1_bus_master1 -> ../../../devices/w1_bus_master1 pi@orangepizero:~$ ls -l /sys/bus/w1/devices/ total 0 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-700000000000 -> ../../../devices/w1_bus_master1/00-700000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-b00000000000 -> ../../../devices/w1_bus_master1/00-b00000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:09 w1_bus_master1 -> ../../../devices/w1_bus_master1 pi@orangepizero:~$ ls -l /sys/bus/w1/devices/ total 0 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-700000000000 -> ../../../devices/w1_bus_master1/00-700000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-b00000000000 -> ../../../devices/w1_bus_master1/00-b00000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-f00000000000 -> ../../../devices/w1_bus_master1/00-f00000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:09 w1_bus_master1 -> ../../../devices/w1_bus_master1 pi@orangepizero:~$ ls -l /sys/bus/w1/devices total 0 lrwxrwxrwx 1 root root 0 Nov 17 15:22 00-080000000000 -> ../../../devices/w1_bus_master1/00-080000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-700000000000 -> ../../../devices/w1_bus_master1/00-700000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:21 00-f00000000000 -> ../../../devices/w1_bus_master1/00-f00000000000 lrwxrwxrwx 1 root root 0 Nov 17 15:09 w1_bus_master1 -> ../../../devices/w1_bus_master1 pi@orangepizero:~$ ls -l /sys/bus/w1/devices/00-700000000000/ ls: cannot access '/sys/bus/w1/devices/00-700000000000/': No such file or directory pi@orangepizero:~$ ls -l /sys/bus/w1/devices/00-080000000000/ total 0 lrwxrwxrwx 1 root root 0 Nov 17 15:23 driver -> ../../../bus/w1/drivers/w1_slave_driver -r--r--r-- 1 root root 4096 Nov 17 15:23 id -r--r--r-- 1 root root 4096 Nov 17 15:23 name drwxr-xr-x 2 root root 0 Nov 17 15:23 power -rw-r--r-- 1 root root 4096 Nov 17 15:23 rw lrwxrwxrwx 1 root root 0 Nov 17 15:23 subsystem -> ../../../bus/w1 -rw-r--r-- 1 root root 4096 Nov 17 15:22 uevent pi@orangepizero:~$ ls -l /sys/bus/w1/devices/00-f00000000000/ ls: cannot access '/sys/bus/w1/devices/00-f00000000000/': No such file or directory
  8. I found an error in the U-boot messages: ** File not found /boot/boot.env ** Therefore I took a new SD-card and copied Armbian 5.65 with kernel 4.14.78 onto it. Same error occurs. Could this be the reason for the wrong display mode?
  9. I have the same problem with an orangepi one and ARMBIAN 5.60 stable Debian GNU/Linux 9 (stretch) 4.14.70-sunxi I have a VGA Monitor connected via a HDMI-to-VGA adpater which runs well under Armbian 3.4 and h3disp set to 1024x768@60 which is the max resolution of this monitor. The adapter also runs fine with my normal monitor Hanns.G and with any PC I own and any resolution. When I changed to Armbian 4.14, the resolution of the video output is always set to 1920x1080@60, regardless which parameter I change in /boot/armbianEnv.txt or /boot/boot.cmd recompile and boot twice. I also tried 800x600 and 640x480, nothing works. Tnx L
  10. Try the /etc/udev/rules.d/97-gpio.rules from https://linux-sunxi.org/GPIO
  11. The Orange Pi Zero Plus has only a CVBS/FBAS/RCA video output, therefore I believe that only a televison but no VGA or DVI/HDMI monitor can be used (or headless use). Has anybody an idea how to convert CVBS to VGA or DVI/HDMI? L.
  12. It also runs on Armbian 4.14.18 and 4.14.65 with no root privileges, but you must change the file # /etc/udev/rules.d/97-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 0770 /sys/class/gpio &&\ chown -R root:gpio /sys/devices/platform/soc && chmod -R 0770 /sys/devices/platform/soc'" add a group gpio and make the user member of this group, then reboot
  13. I downloaded Armbian_5.38_Debian_stretch_next_4.14.14 for the orangepi-one and startet armbian-config. In dpkg-reconfigure keyboard-configuration I changed the layout to german-german but it has no effect, the layout remains to the international layout (qwerty etc).
  14. Hi, can anybody tell me, why the rights on the serial port ttyS0 are R/W for the user (root), but only W for the group (tty) ??? crw--w---- 1 root tty 251, 0 Jan 24 19:45 /dev/ttyS0 Hardware is orangepi one, OS is Linux pi-one 3.4.113-sun8i #6 SMP PREEMPT Tue Jan 16 14:36:25 CET 2018 armv7l GNU/Linux I can change the rights with chmod, but the change is not permanent after a reboot. L.
  15. It seems to be alright now: pi@pi-one:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 7 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up systemd (215-17+deb8u7) ... addgroup: The group `systemd-journal' already exists as a system group. Exiting. Failed to try-restart systemd-logind.service: Connection reset by peer /var/lib/dpkg/info/systemd.postinst: 150: /var/lib/dpkg/info/systemd.postinst: cannot open /run/systemd/was-enabled: No such file Setting up hostapd (2:2.6-4~armbian5.37.180112+1) ... Failed to execute operation: Connection timed out Failed to execute operation: Connection timed out Setting up linux-image-sun8i (5.37.180112) ... update-initramfs: Generating /boot/initrd.img-3.4.113-sun8i update-initramfs: Converting to u-boot format Setting up linux-jessie-root-orangepione (5.37.180112) ... Setting up linux-libc-dev:armhf (3.16.51-3+deb8u1) ... Setting up linux-u-boot-orangepione-default (5.37.180112) ... Updating u-boot on /dev/mmcblk0 Setting up sunxi-tools (1.4.2-2~armbian5.37.180112+1) ... Processing triggers for initramfs-tools (0.120+deb8u3) ... update-initramfs: Generating /boot/initrd.img-3.4.113-sun8i update-initramfs: Converting to u-boot format pi@pi-one:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I think it is ok now L
  16. today I made an update an got the following message The following packages will be upgraded: hostapd linux-image-sun8i linux-jessie-root-orangepione linux-libc-dev linux-u-boot-orangepione-default sunxi-tools 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 13,9 MB/15,0 MB of archives. After this operation, 2.048 B of additional disk space will be used. Get:1 http://beta.armbian.com/ jessie/jessie-utils hostapd armhf 2:2.6-4~armbian5.37.180112+1 [363 kB] Get:2 http://beta.armbian.com/ jessie/main linux-image-sun8i armhf 5.37.180112 [12,9 MB] Get:3 http://beta.armbian.com/ jessie/main linux-jessie-root-orangepione armhf 5.37.180112 [485 kB] Get:4 http://beta.armbian.com/ jessie/main linux-u-boot-orangepione-default armhf 5.37.180112 [183 kB] Get:5 http://beta.armbian.com/ jessie/jessie-utils sunxi-tools armhf 1.4.2-2~armbian5.37.180112+1 [36,2 kB] Fetched 13,9 MB in 8s (1.690 kB/s) (Reading database ... 32065 files and directories currently installed.) Preparing to unpack .../hostapd_2%3a2.6-4~armbian5.37.180112+1_armhf.deb ... Failed to execute operation: Connection timed out Unpacking hostapd (2:2.6-4~armbian5.37.180112+1) over (2:2.6-4~armbian5.37.171231+1) ... Failed to execute operation: Connection timed out Preparing to unpack .../linux-image-sun8i_5.37.180112_armhf.deb ... Unpacking linux-image-sun8i (5.37.180112) over (5.37.171231) ... Preparing to unpack .../linux-jessie-root-orangepione_5.37.180112_armhf.deb ... Leaving 'diversion of /etc/mpv/mpv.conf to /etc/mpv/mpv-dist.conf by linux-jessie-root-orangepione' Unpacking linux-jessie-root-orangepione (5.37.180112) over (5.37.171231) ... Preparing to unpack .../linux-libc-dev_3.16.51-3+deb8u1_armhf.deb ... Unpacking linux-libc-dev:armhf (3.16.51-3+deb8u1) over (3.16.51-3) ... Preparing to unpack .../linux-u-boot-orangepione-default_5.37.180112_armhf.deb ... Unpacking linux-u-boot-orangepione-default (5.37.180112) over (5.37.171231) ... Preparing to unpack .../sunxi-tools_1.4.2-2~armbian5.37.180112+1_armhf.deb ... Unpacking sunxi-tools (1.4.2-2~armbian5.37.180112+1) over (1.4.2-2~armbian5.37.171231+1) ... Processing triggers for systemd (215-17+deb8u7) ... Failed to execute operation: Connection timed out dpkg: error processing package systemd (--unpack): subprocess installed post-installation script returned error exit status 1 Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for initramfs-tools (0.120+deb8u3) ... update-initramfs: Generating /boot/initrd.img-3.4.113-sun8i update-initramfs: Converting to u-boot format Errors were encountered while processing: systemd E: Sub-process /usr/bin/dpkg returned an error code (1) what shall I do now ?
  17. A question abaout iozone: is it possible to use another SDCard eg in an USB-reader in the USB-port ?
  18. a Toshiba Exceria 32GB on an OrangePi One - ARMBIAN 5.37.171221 nightly Debian GNU/Linux 8 (jessie) 3.4.113-sun8i random random kB reclen write rewrite read reread read write 102400 4 1646 1719 7660 7658 6295 167 102400 16 5743 5283 14291 14254 13093 37 102400 512 11085 10968 22590 21994 20114 1146 102400 1024 14581 14444 22596 22597 22549 2344 102400 16384 15162 13057 22762 22763 22758 12308 and the 2. run: random random kB reclen write rewrite read reread read write 102400 4 1883 1907 7834 7834 6543 184 102400 16 7406 7107 13679 14571 13393 38 102400 512 15185 15097 22614 22615 22518 1189 102400 1024 14787 17266 22630 22632 22586 2372 102400 16384 17930 15759 22750 22754 22753 10334 and the MMC-Info mmc0:1234 info: cid: 02544d5341333247252735f690011683 csd: 400e00325b590000e74f7f800a4000d5 scr: 0235840301000000 date: 06/2017 name: SA32G type: SD preferred_erase_size: 4194304 fwrev: 0x5 hwrev: 0x2 oemid: 0x544d manfid: 0x000002 serial: 0x2735f690 uevent: DRIVER=mmcblk MMC_TYPE=SD MMC_NAME=SA32G MODALIAS=mmc:block erase_size: 512
  19. under armbian 5.35 Debian Jessie 3.4.113-sun8i I added the following file /lib/systemd/system/getty@tty1.service.d/20-autologin.conf with root privileges: # /lib/systemd/system/getty@tty1.service.d/20-autologin.conf [Service] ExecStart= ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM If needed, change 'pi' with another username. Then reboot.
  20. It would be fine and eysier for newbies if the udev-rule would be integrated in Armbian or in armbian-config.
  21. I found a method to access gpio without root privileges, look here
  22. Thats's easy to find out. Look at the directory /sys/class/gpio, there is a link to /sys/devices/platform/whatsoever/gpio/gpiochip0, change whatsoever with the real findings and drop gpiochip0. That's the way I did it. Maybe it depends on the hardware (I use an opi one) or the Linux (I use Armbian 5.35 Debian Jessie 3.4.113).
  23. on Orangepi One you have to add a file like /etc/udev/rules.d/99-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\ chown -R root:gpio /sys/devices/platform/sunxi-pinctrl/gpio && chmod -R 770 /sys/devices/platform/sunxi-pinctrl/gpio;\ '" add a group gpio and add the user to it, then you have rootless access to gpio
  24. It would be GREAT if rootless access to gpio was integrated in armbian (just like in raspbian). I made a little test on my Orangepi-One: created a group gpio and added the user to the group gpio, then created the file /etc/udev/rules/99-gpio.rules, this makes the access rootless # /etc/udev/rules/99-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\ chown -R root:gpio /sys/devices/platform/sunxi-pinctrl/gpio && chmod -R 770 /sys/devices/platform/sunxi-pinctrl/gpio;\ '" Edit (02/09/2018): for later versions of armbian the file must change (tested with 4.14.18 and 4.14.65): # /etc/udev/rules.d/97-gpio.rules SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\ chown -R root:gpio /sys/class/gpio && chmod -R 0770 /sys/class/gpio &&\ chown -R root:gpio /sys/devices/platform/soc && chmod -R 0770 /sys/devices/platform/soc'" Now you can use the access on the bash for the PIN PA12 (calculation see https://linux-sunxi.org/GPIO) echo 12 > /sys/class/gpio/export # enable access to PA12 sleep 0.1 # wait some time to become gpio12 active echo out > /sys/class/gpio/gpio12/direction # PA12 is output echo 0 > /sys/class/gpio/gpio12/value # PA12 is low echo 1 > /sys/class/gpio/gpio12/value # PA12 is high echo 12 > /sys/class/gpio/unexport # disable access to PA12 My skills in programming are not good enough to transform this to C, C+, Python etc, but you don't need any root privileges.
  25. The problem seems to access /dev/mem, crw-r----- 1 root kmem 1, 1 Nov 28 22:17 /dev/mem If you change the group or add normal user to group kmem nothing changes -> you must be root to access. Also if you chmod /dev/mem to 0777 -> you must be root. Perhaps the makers of armbian can change something here.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines