zhen8838

Members
  • Content Count

    12
  • Joined

  • Last visited

About zhen8838

  • Rank
    Member

Recent Profile Visitors

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

  1. thank you very much . i have solved this problem.
  2. thanks for your reply. i will read the doc to learn more .I will try your dtbo tomorrow.
  3. … i am noob .last month i build my board kernel version is 4.14 ,but now i don’t know how to build the last version kernel …
  4. I get the source and find the linux-4.17-y/arm64/boot/dts/allwinner/overlay/sun50i-h5-spi-spidev.dts : the spi status is disable. I modified “disable” to “okay”, then rebuild the .dts to .dtbo . and put the sun50i-h5-spi-spider.dtbo into the board. finally i insmod /lib/module/linux-4.17-y/kernel/drives/spi/spidev.ko But still can’t fix this problem … does anybody can help me?
  5. thanks for your advice. But I remove spi-jedec-nor overlay , Still no spidev ...
  6. I use the Armbian_5.45_Orangepizeroplus2-h5_Debian_stretch_next_4.14.44.img. I want to use a sensor based on the spi protocol. In armbian-config i enable the spi ,the armbianEnv.txt like this: verbosity=1 console=both overlay_prefix=sun50i-h5 overlays=i2c0 i2c1 spdif-out spi-add-cs1 spi-jedec-nor spi-spidev uart1 uart2 usbhost2 usbhost3 rootdev=UUID=bb48b498-7bd1-4018-b77d-ba00fa61a33d rootfstype=ext4 param_uart1_rtscts=1 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u But in /dev on spi-dev root@H5:~# ls /dev/s shm/ snd/ stderr stdin stdout Is it because there is no code adaptation spi-dev? if not ,I want to try to transplant the spi-dev code,Can give me some guiding advice?
  7. I solved this problem,I refer to the answer to this question. This is indeed caused by the serial port baud rate being too low. I modified /etc/init.d/ap6212-bluetooth hciattach /dev/$PORT bcm43xx 115200 flow bdaddr $MAC_OPTIONS to hciattach /dev/$PORT bcm43xx 1500000 flow bdaddr $MAC_OPTIONS
  8. My Development board is Orange Pi zero plus2 H5. My bluetooth already in work,but I try to play a .wav for test.this circumstance occurs. This is my test wav file: 1045.wav I use : aplay 1045.wav Playing WAVE '1045.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo then I record the sounds as mypaly.mp3. I guess this problem is due to uart Baud rate 115200 is not high enough . How can i fix this? 1045.wav mypaly.mp3
  9. My problem has been solved,I compiled a new image :Armbian_5.45_Orangepizeroplus2-h5_Debian_stretch_next_4.14.44.img .
  10. Thank you ! I'm so sad , Because when i use Armbian_5.38_Orangepizeroplus2-h5_Ubuntu_xenial_next_4.14.14.img, This problem has arisen "Starting kernel" reboots. Now i try to use the nanopi-neo-plus2 image . If I successfully solve, I will feedback in time
  11. Thank you for your reply! but I'am already install devmem2,I think my mistake is somewhere else. i use this script to test: #!/bin/bash PORT="ttyS1" MAC_OPTIONS="43:29:B1:55:01:01" rfkill unblock all echo "0" > /sys/class/rfkill/rfkill0/state echo "1" > /sys/class/rfkill/rfkill0/state echo " " > /dev/$PORT devmem2 0x1f00060 b 1 echo 10 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio10/direction echo 0 > /sys/class/gpio/gpio10/value echo 1 > /sys/class/gpio/gpio10/value sleep 0.1 hciattach /dev/$PORT bcm43xx 115200 flow bdaddr $MAC_OPTIONS hciconfig hci0 up result: root@H5:~# ./blue.sh /dev/mem opened. Memory mapped at address 0xffff9eab1000. Value at address 0x1F00060 (0xffff9eab1060): 0x1 Written 0x1; readback 0x1 bcm43xx_init Initialization timed out. Can't get device info: No such device devmem2 seems are correct... I don't know what to do now
  12. I use this solution what you had wrote,but the effect is not significant. my img is Armbian_5.42_Orangepizeroplus2-h5_Debian_stretch_dev_4.16.img . It's my armbianEnv.txt: verbosity=1 console=both overlay_prefix=sun50i-h5 overlays=analog-codec i2c0 i2c1 i2c2 spdif-out spi-add-cs1 spi-jedec-nor spi-spi dev uart1 uart2 uart3 usbhost2 usbhost3 rootdev=UUID=7c11e787-9feb-44a1-9942-c646b86c1d10 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u param_uart1_rtscts=1 It's my /etc/init.d/ap6212-bluetoot # Start patching rfkill unblock all echo "0" > /sys/class/rfkill/rfkill0/state echo "1" > /sys/class/rfkill/rfkill0/state echo " " > /dev/$PORT devmem2 0x1f00060 b 1 echo 10 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio10/direction echo 0 > /sys/class/gpio/gpio10/value echo 1 > /sys/class/gpio/gpio10/value sleep 0.1 #on orangepi win following command never ends on first try... force to r un with a timeout... #timeout 5s echo " " > /dev/$PORT #if [ $? != 0 ]; then #timed out... retry # echo " " > /dev/$PORT #fi hciattach /dev/$PORT bcm43xx 115200 flow bdaddr $MAC_OPTIONS hciconfig hci0 up but when i reboot or use this /etc/init.d/ap6212-bluetooth start return [....] Starting ap6212-bluetooth (via systemctl): ap6212-bluetooth.serviceWarning: ap6212-bluetooth.service changed on disk. Run 'systemctl daemon-reload' to reload units. Job for ap6212-bluetooth.service failed because the control process exited with error code. See "systemctl status ap6212-bluetooth.service" and "journalctl -xe" for details. failed! the log: root@H5:~# systemctl status ap6212-bluetooth.service ● ap6212-bluetooth.service - LSB: Patch firmware for ap6212 adapter Loaded: loaded (/etc/init.d/ap6212-bluetooth; generated; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2018-05-27 06:20:39 UTC; 2min 16s ago Docs: man:systemd-sysv-generator(8) Process: 2164 ExecStart=/etc/init.d/ap6212-bluetooth start (code=exited, status=1/FAILURE) May 27 06:20:29 H5 ap6212-bluetooth[2164]: Value at address 0x1F00060 (0xffff97239060): 0x1 May 27 06:20:29 H5 ap6212-bluetooth[2164]: Written 0x1; readback 0x1 May 27 06:20:29 H5 ap6212-bluetooth[2164]: sh: echo: I/O error May 27 06:20:39 H5 ap6212-bluetooth[2164]: Initialization timed out. May 27 06:20:39 H5 ap6212-bluetooth[2164]: bcm43xx_init May 27 06:20:39 H5 ap6212-bluetooth[2164]: Can't get device info: No such device May 27 06:20:39 H5 systemd[1]: ap6212-bluetooth.service: Control process exited, code=exited status=1 May 27 06:20:39 H5 systemd[1]: Failed to start LSB: Patch firmware for ap6212 adapter. May 27 06:20:39 H5 systemd[1]: ap6212-bluetooth.service: Unit entered failed state. May 27 06:20:39 H5 systemd[1]: ap6212-bluetooth.service: Failed with result 'exit-code'. Warning: ap6212-bluetooth.service changed on disk. Run 'systemctl daemon-reload' to reload units. Is it wrong to use it? or How can i fix it?