thc013

Members
  • Content Count

    17
  • Joined

  • Last visited

About thc013

  • Rank
    Member

Recent Profile Visitors

505 profile views
  1. install dev2mem and adjust and make /etc/init.d/ap6212-bluetooth look like this comment out the copy firmware and adjust the rest works for me can change with kernel updates # copy firmware #if [ -f "/lib/firmware/ap6212/bcm43438a0.hcd" ] && [ ! -f /etc/firmware/ap6212/4343A0.hcd ]; then # mkdir -p /etc/firmware/ap6212 # cp /lib/firmware/ap6212/bcm43438a0.hcd /etc/firmware/ap6212/4343A0.hcd #fi #if [ -f "/lib/firmware/ap6212/bcm43438a1.hcd" ] && [ ! -f /etc/firmware/ap6212/BCM43430A1.hcd ]; then # mkdir -p /etc/firmware/ap6212 # cp /lib/firmware/ap6212/bcm43438a1.hcd /etc/firmware/ap6212/BCM43430A1.hcd #fi . /lib/lsb/init-functions do_start () { if [ ! -z $(hciconfig | /bin/grep UART | /usr/bin/cut -d: -f1) ] then echo "ap6212 BT device allready initialized" hcitool dev else # Select MAC address if [ -z "$MAC_ADDR" ]; then MAC_OPTIONS="11:22:33:44:55:66" else MAC_OPTIONS="$MAC_ADDR" fi # Select tty port if [ -z "$PORT" ]; then log_warning_msg "No PORT set in /etc/default/ap6212, will use ttyS1" PORT="ttyS1" fi # Start patching rfkill unblock all echo "0" > /sys/class/rfkill/rfkill0/state echo "1" > /sys/class/rfkill/rfkill0/state #on orangepi win following command never ends on first try... force to run with a timeout... timeout 5s echo " " > /dev/$PORT #if [ $? != 0 ]; then # #timed out... retry # echo " " > /dev/$PORT #fi 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 fi }
  2. thnks didn't compile armbian for a few weeks so got some catch up to do and stupid me the compile.sh script changed it automaticly to master by not finding sunxi-4.18
  3. where moved the sunxi-4.18 build to it is not on armbian git ?
  4. a bit futher make sure devmem2 0x1f00060 b 1 give as result Value at address 0x1F00060 (0xffff9eab1060): 0x1
  5. thnx zhen8883 i didm't notice that bluetooth was again not working . last weeks i fighting with spi and a nrf20l01 i can't get it working with mysensors and the rf24 lib works a bit but i tried al armbians from 5.38 till 5.46 and kernels from 4.14.14 till 4.14.48 and suddenly it is not working anymore . and i saw your blogs and tried a orangepi distro and works right away when activate it . only thing that was mentioned in the mailine bluetooth thread was that the rts and cts are not bind to uart1 in the dts file so i include them and and put them both in the main dts but no effect i got the info from other threads but hte problems are similar i guess it is the binding of uart1 or the wake up routine is not going well
  6. huh wipe out you only have to add the clock and extra gpio pin in the dts file .
  7. nah that is to short to help what did you used for spi device wich pins on opi you are using how looks your armbianenv. file dig you include in overlays spi and did you set it to 1 or if you using a flash device your armbianenv is different
  8. all this could be implanted in the dts file its only uart1 on default and pin 10 enabled oh yeah and the clock
  9. enable overlay uart 1 and add param_uart1_rtscts=1 to armbianenv.txt and adjust /etc/init.d/ap6212-bluetooth so it looks like this # 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 hciattach /dev/$PORT bcm43xx 115200 flow bdaddr $MAC_OPTIONS hciconfig hci0 up and reboot oh you might need to install devmem2
  10. also add param_uart1_rtscts=1 and it also works with the script to eneable bt and if you add the script to /etc/init.d/ap6212-bluetooth it will work out of the box # 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 hciattach /dev/$PORT bcm43xx 115200 flow bdaddr $MAC_OPTIONS hciconfig hci0 up
  11. well with armbian it only boots with 1 gb dtb when i try a 2g dtb it wont boot it is only 2gb with specific android image with kernel in it named vincent@ubuntu i once get a error in ota tool in android that it could not flash the image because it was 2gb image and 1gb board that was then i tried the 1gb dtb's and got succes of booting armbian libreelec etc and very annoying that i cant find serial so will try if adb makes some more info 1 other weird thing can backup everything with trwp but when i backup that specific image always system got corrupted with untarring only big difference i see that the fake 2gb android image use /dev/tee
  12. yup that is the image and played a little with it major difference is that uses /dev/tee and so far i think it is done in the kernel somehow because if i change uboot or something it still says 2 gigabyte but if i use another kernel it wont boot if i use the flashed partions setup if i flash another x96 image all kernel boot execept the vencent one
  13. i posted a question a few posts back that i couldn't find the serial port of a box . still didn't find it But i got a little futher with that box the original image shows 2 gigabyte of memory and armbian and everything else says it is a 1 gigabyte board so i openend it up and found h5tq2g63dfa 2 gigabit memoy modules so 4x2 makes 8 and 8 is 1 gigabyte so in my opinion the others are right and the original is tempered because it shows 2 gigabyte so finnaly after searching i found the tempered original image for that 1 gig faked as 2 gig board https://mega.nz/#!vhQmAJhb!zL_E5NHYconOsuAczfz43-LNq0urbNmyFilr18z7qRY comes from this thread http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/s905x/593186-purchased-xgody-x96-2g-16g-from-ebay/page8 now my question is where to look how they tempred it with would it be the dtb or uboot or the ddr.usb file ?
  14. there is a ir led on the board left on the front picture just behind the red en blue led for frontpanel
  15. the armbian image is the only image where the usb port works well with the t3 air mouse and the other thing was that it was sold as 2gb but it has only 1gb memory they even faked it in android and only on 4pda there is some information for that board but 500+ pages in russian not very handy to search