Jump to content

Teslacreiste

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. no i found a way so i bought a new board the orange pi zero plus
  2. The problem with the 5.10.60 kernel continues, has someone already solved this problem? http://ix.io/3Mg2 Time CPU load %cpu %sys %usr %nice %io %irq CPU C.St. 15:54:22: 1008MHz 0.00 0% 0% 0% 0% 0% 0% 2.2°C 0/4 15:54:27: 480MHz 0.00 0% 0% 0% 0% 0% 0% 2.9°C 0/4 15:54:32: 480MHz 0.00 1% 0% 0% 0% 0% 0% 3.1°C 0/4 15:54:38: 480MHz 0.00 1% 0% 0% 0% 0% 0% 2.7°C 0/4 15:54:43: 480MHz 0.00 1% 0% 0% 0% 0% 0% 2.7°C 0/4 I can't find any solution in the whole armbian forum
  3. I still have the same problem, has anyone already solved it? http://ix.io/3Mg2 I have searched everywhere, and it mentions the problem but never any solution for the orange pi zero LTS with H2+
  4. Sorry for my English, I use a translator.. I have had the same error report, however if the operating system starts me, but the temperatures of the orange pi zero LTS with the H2+ are very low, they are erroneous measurements, does anyone know how I can solve this problem [ 11.042639] kernel: zram: Added device: zram0 [ 11.045370] kernel: zram: Added device: zram1 [ 11.048901] kernel: zram: Added device: zram2 [ 11.229264] kernel: core: _opp_supported_by_regulators: OPP minuV: 1320000 maxuV: 1320000, not supported by regulator [ 11.229304] kernel: cpu cpu0: _opp_add: OPP not supported by regulators (1104000000) [ 11.229547] kernel: core: _opp_supported_by_regulators: OPP minuV: 1320000 maxuV: 1320000, not supported by regulator [ 11.229567] kernel: cpu cpu0: _opp_add: OPP not supported by regulators (1200000000) [ 11.229808] kernel: core: _opp_supported_by_regulators: OPP minuV: 1340000 maxuV: 1340000, not supported by regulator [ 11.229831] kernel: cpu cpu0: _opp_add: OPP not supported by regulators (1296000000) [ 11.230071] kernel: core: _opp_supported_by_regulators: OPP minuV: 1400000 maxuV: 1400000, not supported by regulator [ 11.230092] kernel: cpu cpu0: _opp_add: OPP not supported by regulators (1368000000) [ 11.231038] kernel: thermal thermal_zone0: binding zone cpu_thermal with cdev thermal-cpufreq-0 failed:-22 [ 11.322014] kernel: zram0: detected capacity change from 0 to 257781760 [ 11.601861] systemd[1]: Found device /dev/ttyS0. [ 11.743540] kernel: cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 11.749298] kernel: cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 11.869109] kernel: rtl8188fu: loading out-of-tree module taints kernel. [ 11.967820] kernel: rtl8188fu: module verification failed: signature and/or required key missing - tainting kernel [ 11.996768] systemd[1]: Condition check resulted in Dispatch Password Requests to Console Directory Watch when bootsplash is active being skipped. [ 11.998115] systemd[1]: Condition check resulted in Huge Pages File System being skipped. [ 11.999138] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 11.999670] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped. [ 12.000082] systemd[1]: Condition check resulted in Commit a transient machine-id on disk being skipped. [ 12.000381] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped. what does this error mean and if it has any correlation with having very low temperatures in the orange pi zero LTS > thermal thermal_zone0: binding zone cpu_thermal with cdev thermal-cpufreq-0 failed:-22 Time CPU load %cpu %sys %usr %nice %io %irq CPU C.St. 03:37:18: 1008MHz 0.04 1% 1% 0% 0% 0% 0% 5.3°C 0/4 03:37:23: 1008MHz 0.03 2% 1% 0% 0% 0% 0% 5.1°C 0/4 03:37:28: 480MHz 0.03 2% 1% 0% 0% 0% 0% 4.6°C 0/4 03:37:34: 1008MHz 0.03 2% 2% 0% 0% 0% 0% 5.8°C 0/4 03:37:39: 480MHz 0.03 2% 1% 0% 0% 0% 0% 4.1°C 0/4 this is my armbian version.. root@orangepizero:~# uname -a Linux orangepizero 5.10.60-sunxi #21.08.2 SMP Tue Sep 14 16:28:44 UTC 2021 armv7l armv7l armv7l GNU/Linux
  5. Solve the problem by downloading an outdated version of armbian, armbian 20.05.4, it seems that the last version of armbian 20.08.1 works badly, when restarting it freezes and also the pin CS0 and CS1 are not activated, generating the communication problem by SPI, since the other pins are activated. Anyway I hope someone will be of help to my solution, because it cost me time because I am a novice at this.
  6. I have tried everything I realized that the cs0 pin, which is the PC05 pin, only stays high as long as the clock, the PC00 pin gives a pulse every time the Read () function is called, the clock should not be a Independent frequency to the calls of Read (), example if it is time.sleep (1) the PC00 pin of the clock will be 1Hz and if I decrease it will increase, this behavior should not be that of cs0? root@orangepilite2:~# dmesg | grep spi [ 2.067074] sun6i-spi 5010000.spi: there is not valid maps for state default [ 2.067129] sun50i-h6-pinctrl 300b000.pinctrl: pin-64 (5010000.spi) status -517 [ 2.067141] sun6i-spi 5010000.spi: Error applying setting, reverse things back [ 2.179882] sun6i-spi 5010000.spi: there is not valid maps for state default [ 2.179919] sun50i-h6-pinctrl 300b000.pinctrl: pin-64 (5010000.spi) status -517 [ 2.179931] sun6i-spi 5010000.spi: Error applying setting, reverse things back [ 2.182803] sun6i-spi 5010000.spi: there is not valid maps for state default [ 2.182840] sun50i-h6-pinctrl 300b000.pinctrl: pin-64 (5010000.spi) status -517 [ 2.182851] sun6i-spi 5010000.spi: Error applying setting, reverse things back [ 2.557945] sun6i-spi 5010000.spi: there is not valid maps for state default [ 2.557996] sun50i-h6-pinctrl 300b000.pinctrl: pin-64 (5010000.spi) status -517 [ 2.558008] sun6i-spi 5010000.spi: Error applying setting, reverse things back [ 2.582175] sun6i-spi 5010000.spi: there is not valid maps for state default [ 4.840175] spidev spi0.0: probing from DT set again the armbianEnv.txt verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun50i-h6 rootdev=UUID=07e078d5-15c7-4e03-8ec7-edf62ab350ed rootfstype=ext4 overlays=spi-add-cs1 spi-spidev param_spidev_spi_bus=0 param_spidev_spi_cs=0 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u and the code I have changed import spidev import time spi = spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz = 1000000 def Read(): adc = spi.xfer2([1,8<<4,0]) data = ((adc[1] & 3) << 8) + adc[2] return data while True: print Read() time.sleep(0.08) something funny is that if I disconnect the cs0 pin of the MCP3008 it starts receiving data sometimes. the sun50i-h6-spi-spidev.dts /dts-v1/; / { compatible = "allwinner,sun50i-h6"; fragment@0 { target-path = "/aliases"; __overlay__ { spi0 = "/soc/spi@5010000"; spi1 = "/soc/spi@5011000"; }; }; fragment@1 { target = <0xffffffff>; __overlay__ { #address-cells = <0x1>; #size-cells = <0x0>; spidev { compatible = "spidev"; status = "disabled"; reg = <0x0>; spi-max-frequency = <0xf4240>; }; }; }; fragment@2 { target = <0xffffffff>; __overlay__ { #address-cells = <0x1>; #size-cells = <0x0>; spidev { compatible = "spidev"; status = "disabled"; reg = <0x0>; spi-max-frequency = <0xf4240>; }; }; }; __fixups__ { spi0 = "/fragment@1:target:0"; spi1 = "/fragment@2:target:0"; }; }; }; I don't know what to do anymore, I need help (._.)
  7. I bought an orange pi lite 2 and I would like to use it with the ADC MCP3008 but when executing the code in python using the spidev library, it always returns the value of 1023 and when I disconnect the ADC it keeps showing the same value, it is as if there was no communication , The ADC is not the one with the problem since I tried it with an arduino mega and it works perfectly, it is in the orange pi lite 2 where it does not work. the connections are: VDD=3.3V VREF=3.3V AGND=GND CLK= (PC00) SPIO_CLK DOUT=(PC03) MISO DINT=(PC02) MOSI CS = (PC05) SPI0_CS0 DGND= GND import spidev import time spi = spidev.SpiDev() spi.open(0, 0) def read() adc = spi.xfer2([1,8<<4,0]) data = ((adc[1] & 3) << 8) + adc[2] return data while True: print(====================) print(read()) time.sleep(0.5) The only thing that returns is 1023 always if I have the spidev0.0 my armbianEnv.txt verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun50i-h6 rootdev=UUID=07e078d5-15c7-4e03-8ec7-edf62ab350ed rootfstype=ext4 overlays=spi-spidev w1-gpio param_spidev_spi_bus=0 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u check the connection more than once, I don't know if the pins of MOSI, MISO, CLK and CS0; They are well configured with the ADC, I support myself for the connection with the following image. I speak Spanish, so I used google translator, therefore I apologize if I do not explain myself well.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines