martinayotte

Developers
  • Content Count

    1824
  • Joined

  • Last visited

 Content Type 

Forums

Member Map

Store

Crowdfunding

Raffles

Everything posted by martinayotte

  1. martinayotte

    Lichee Pi zero

    You're lucky ... Usually I can get china post too, for example from Xulung it is $4.95 if I remember, but not with this merchant ... EDIT : Oh ! with the new link you've provided, I can get it to Canada for $2.35 standard mail ...
  2. martinayotte

    Allwinner H5 SID

    Good catch !!! The original file from https://bootlin.com/pub/mirror/devmem2.c is only supporting 32bits SoC, so for 64bits accesses, those 2 addresses are invalid. I've found patches written by denix0 here : https://github.com/openembedded/meta-openembedded/tree/master/meta-oe/recipes-support/devmem2/devmem2 The first patch to apply is "devmem2-fixups-2.patch", then we can apply "0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch" ... Then run the following : d0=`./devmem2 0x01c14200 l|grep Read|sed 's/^.*: 0x/ /'` d1=`./devmem2 0x01c14208 l|grep Read|sed 's/^.*: 0x/ /'` echo $d0 $d1
  3. martinayotte

    Lichee Pi zero

    I won't buy it either since the only shipping offered is DHL at US$29, making a total at US$45, too expensive ...
  4. martinayotte

    SSH doesn't work on Orange Pi Zero

    Do you have a USB-TTL Serial dongle ? Log yourself thru that, and then check if you have those files : -rw------- 1 root root 227 Nov 13 17:54 /etc/ssh/ssh_host_ecdsa_key -rw-r--r-- 1 root root 181 Nov 13 17:54 /etc/ssh/ssh_host_ecdsa_key.pub -rw------- 1 root root 411 Nov 13 17:54 /etc/ssh/ssh_host_ed25519_key -rw-r--r-- 1 root root 101 Nov 13 17:54 /etc/ssh/ssh_host_ed25519_key.pub -rw------- 1 root root 1675 Nov 13 17:54 /etc/ssh/ssh_host_rsa_key -rw-r--r-- 1 root root 401 Nov 13 17:54 /etc/ssh/ssh_host_rsa_key.pub if you don't have them, then execute "ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key" and do about the equivalent for "ecdsa" and "ed25519" ...
  5. martinayotte

    GPIO Orange PI WIN PLus

    What do you means, there is no such pins for 31, neither than 29,33,35, gpio numbers are the ones in the BCM column ... So that is why sysfs gives errors. For "gpio readall" outputs, it is reflecting the reality when you change value of 37, the V columns is appearing accordingly...
  6. martinayotte

    GPIO Orange PI WIN PLus

    Good ! Simple bash script to toogle every half seconds : #!/bin/bash echo 37 > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio37/direction while true; do echo 0 > /sys/class/gpio/gpio37/value sleep 0.5 echo 1 > /sys/class/gpio/gpio37/value sleep 0.5 done
  7. martinayotte

    GPIO Orange PI WIN PLus

    Simple ... echo 0 > /sys/class/gpio/gpio37/value
  8. martinayotte

    GPIO Orange PI WIN PLus

    Sorry, I did some typos, it should be : echo 37 > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio37/direction echo 1 > /sys/class/gpio/gpio37/value
  9. martinayotte

    RTL8723BS Bluetooth

    The script doesn't match the schematic : script is using gpio149 while PL4 should be gpio356
  10. martinayotte

    GPIO Orange PI WIN PLus

    You could use gpio sysfs as it is the most easy way. pin31,33,35,37 are respectively PB5,PB6,PB7 and PD5. In gpio sysfs, they becomes gpio37,gpio38,gpio39 and gpio101. Here are the command to turn a gpio37 into output and set level output state : echo 37 > /sys/class/gpio/export echo "out" > /sys/class/gpio37/direction echo 1 > /sys/class/gpio37/value Simply repeat the code for other gpios ...
  11. martinayotte

    Activate RTS CTS on serial port

    I wasn't talking about hardware SoC itself, but the Linux "dw-apb-uart" kernel driver. If you are in hurry, your software application would need to set manually RTS high/low according to your data flow. If you are not in hurry, wait until I provide my "em485 emulator" patches to Armbian dev tree.
  12. martinayotte

    RK3288 device tree overlays

    Right @zador.blood.stained ! It is what I did here two week ago : https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-rockchip64-dev/enable-DT-overlays-support.patch But I didn't do any overlays things for others families, such as https://github.com/armbian/build/tree/master/patch/u-boot/u-boot-rockchip/board_tinkerboard , I will leave @TonyMac32 pursing his walk learning ... EDIT : Oupps ! I forgot that I didn't do the same for meson64, since I was testing overlays in runtime/userspace mode. Still, I've just check, overlays are loading, but, of course, if fixup.scr is needed, it is required. So, I will add that patch a.s.a.p ...
  13. martinayotte

    RK3288 device tree overlays

    On 2 or 4 feet ?
  14. martinayotte

    Do you used luma.lcd on Orange Pi Zero?

    I usually using this one for several OPis : https://github.com/duxingkei33/orangepi_PC_gpio_pyH3 This one is a fork specific to OPiZero : https://github.com/nvl1109/orangepi_zero_gpio
  15. martinayotte

    RK3288 device tree overlays

    It can become more awful when we will need to add parameters in fixup.scr, for SPI as an example ...
  16. martinayotte

    Do you used luma.lcd on Orange Pi Zero?

    According to https://github.com/rm-hull/luma.core/blob/master/luma/core/lib.py#L23 , it is still using "import RPi.GPIO as GPIO" . You would have to change that with "import OPi.GPIO as GPIO" and maybe at some other places ...
  17. martinayotte

    RK3288 device tree overlays

    Ah ! Ok ! Since I don't have this board, I've never prepared an image for it ...
  18. martinayotte

    RK3288 device tree overlays

    Are you sure ? Last build I've done a week ago, we were using https://github.com/ayufan-rock64/linux-u-boot branch.
  19. martinayotte

    RK3288 device tree overlays

    Did you changed the rockchip-fixup.scr ? (The original I've commit doesn't do that on my rockpro64, and actually load the i2c8 overlay, since the source rockchip-fixup.scr-cmd is almost empty, only text comments)
  20. martinayotte

    RK3288 device tree overlays

    Do you mean that you are trying to add fdt command in rockchip-fixup.scr for configurable parameters ? I must admit that I didn't tested that since i2c overlay didn't required that ... Maybe you're right and u-boot config need to be added ... EDIT : I did a quick look at both mainlined u-boot and u-boot-rockhip, both ".config" look similar in terms of FDT, but maybe I missed some ...
  21. martinayotte

    issues when using the lastest U-boot on Lite2

    Did you tried the images from there : https://dl.armbian.com/orangepilite2/
  22. martinayotte

    Disable console @ ttyS3

    Good ! Can you share what you did to make it work ?
  23. martinayotte

    RTL8723BS Bluetooth

    Yes ! you're right, my yesterday's commit was with '=m', and I didn't tested it ... I've fixed it by now ...
  24. martinayotte

    Disable console @ ttyS3

    Glad to ear that you can at least use it via USB ... According to schematic you've provided, it seem connected to UART1, but there several other GPIOs that probably need to be setup properly to get this device running, such RST, 5320_ON/OFF and PWREN. Since I don't own a Tinkerboard-S, I'm not aware of the default states of those GPIOs...
  25. martinayotte

    Disable console @ ttyS3

    Do you mean UART3 ? Could be UART1 or UART2 ? Did you got chance to get schematic of this hat ? Did you check what is in the DT ?