Jump to content

7profy

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

1359 profile views
  1. SOLVED! Here is solution (for H3): 1. Convert script.bin to FEX: cd /boot bin2fex script.bin script.fex 2. Edit script.fex to enable UART3: sudo nano script.fex Find section [uart0] and set the next to disable uart0-2 and enable uart3 only with 2-pin mode on pin 8/10: [uart0] uart_used = 0 uart_port = 0 uart_type = 2 uart_tx = port:PA04<2><1><default><default> uart_rx = port:PA05<2><1><default><default> [uart1] uart_used = 0 uart_port = 1 uart_type = 4 uart_tx = port:PG06<2><1><default><default> uart_rx = port:PG07<2><1><default><default> uart_rts = port:PG08<2><1><default><default> uart_cts = port:PG09<2><1><default><default> [uart2] uart_used = 0 uart_port = 2 uart_type = 4 uart_tx = port:PA00<2><1><default><default> uart_rx = port:PA01<2><1><default><default> uart_rts = port:PA02<2><1><default><default> uart_cts = port:PA03<2><1><default><default> [uart3] uart_used = 1 uart_port = 3 uart_type = 2 uart_tx = port:PA13<2><1><default><default> uart_rx = port:PA14<2><1><default><default> ;uart_rts = port:PA15<3><1><default><default> ;uart_cts = port:PA16<3><1><default><default> Remark: I don't find description for value <2> in PA13<2> but it works as expected. 3. Save changes. 4. Convert FEX to bin fex2bin script.fex script.bin 5. Reboot. 6. Device name is ttyS3. Default speed = 57600. To test it type "echo TEST > /dev/ttyS3" PS. Some times after apt-get upgrade script.bin replaces to default values, so it need to repeat all steps.
  2. About month ago I install from armbian.com this os. root@orangepione ~ # uname -a Linux orangepione 3.4.112-sun8i #8 SMP PREEMPT Tue May 31 19:00:17 CEST 2016 armv7l GNU/Linux How to find out it using FEX or DTS? I have the next device list: root@orangepione ~ # ls /dev/ android_adb input ram1 tty18 tty45 uinput apm_bios ion ram2 tty19 tty46 urandom autofs kmsg ram3 tty2 tty47 usb_accessory block lircd ram4 tty20 tty48 usbdev1.1 btrfs-control log ram5 tty21 tty49 usbdev2.1 bus loop0 ram6 tty22 tty5 usbdev3.1 cachefiles loop1 ram7 tty23 tty50 usbdev4.1 cedar_dev loop2 random tty24 tty51 usbdev5.1 char loop3 rfkill tty25 tty52 usbdev6.1 console loop4 rtc tty26 tty53 usbdev7.1 cpu_dma_latency loop5 rtc0 tty27 tty54 usbdev8.1 cuse loop6 shm tty28 tty55 vcs disk loop7 snd tty29 tty56 vcs1 disp loop-control spidev0.0 tty3 tty57 vcs2 ecryptfs mapper stderr tty30 tty58 vcs3 fb0 mem stdin tty31 tty59 vcs4 fb1 misc_fatfs stdout tty32 tty6 vcs5 fb2 mmcblk0 sunxi-reg tty33 tty60 vcs6 fb3 mmcblk0p1 sunxi_soc_info tty34 tty61 vcsa fb4 mqueue tty tty35 tty62 vcsa1 fb5 mtp_usb tty0 tty36 tty63 vcsa2 fb6 net tty1 tty37 tty7 vcsa3 fb7 network_latency tty10 tty38 tty8 vcsa4 fd network_throughput tty11 tty39 tty9 vcsa5 full null tty12 tty4 ttyGS0 vcsa6 fuse ppp tty13 tty40 ttyGS1 vmouse hdmi psaux tty14 tty41 ttyGS2 watchdog i2c-0 ptmx tty15 tty42 ttyGS3 xconsole i2c-1 pts tty16 tty43 ttyS0 zero initctl ram0 tty17 tty44 uhid GPIO: +-----+-----+----------+------+---+--OrangePiPC--+---+------+---------+-----+--+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 2 | 8 | SDA.0 | ALT5 | 0 | 3 || 4 | | | 5V | | | | 3 | 9 | SCL.0 | ALT5 | 0 | 5 || 6 | | | 0v | | | | 4 | 7 | GPIO.7 | ALT3 | 0 | 7 || 8 | 0 | ALT3 | TxD3 | 15 | 14 | | | | 0v | | | 9 || 10 | 0 | ALT3 | RxD3 | 16 | 15 | | 17 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | OUT | GPIO.1 | 1 | 18 | | 27 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 22 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 23 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 24 | | 10 | 12 | MOSI | ALT4 | 0 | 19 || 20 | | | 0v | | | | 9 | 13 | MISO | ALT4 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 25 | | 11 | 14 | SCLK | ALT4 | 0 | 23 || 24 | 0 | ALT4 | CE0 | 10 | 8 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 7 | | 0 | 30 | SDA.1 | ALT4 | 0 | 27 || 28 | 0 | ALT4 | SCL.1 | 31 | 1 | | 5 | 21 | GPIO.21 | ALT3 | 0 | 29 || 30 | | | 0v | | | | 6 | 22 | GPIO.22 | ALT3 | 0 | 31 || 32 | 1 | OUT | RTS1 | 26 | 12 | | 13 | 23 | GPIO.23 | ALT3 | 0 | 33 || 34 | | | 0v | | | | 19 | 24 | GPIO.24 | OUT | 1 | 35 || 36 | 1 | OUT | CTS1 | 27 | 16 | | 26 | 25 | GPIO.25 | ALT3 | 0 | 37 || 38 | 1 | OUT | TxD1 | 28 | 20 | | | | 0v | | | 39 || 40 | 1 | OUT | RxD1 | 29 | 21 | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+----------+------+---+--OrangePIPC--+------+----------+-----+-----+ Although GPIO allows to change pins values ALTx, but actually they are not changed. What I have to do?
  3. And how to "tweak"? And what is "FEX"? I'm trying to migrate from Rasperry to Orange. Almost all done. I'm not powerful linux user.
  4. I'm looking at pin 8 and pin 10. Device ttyS3 not available too.
  5. I'm using Orange Pi One with ARMBIAN Debian GNU/Linux 8 (jessie) 3.4.112-sun8i. To access to UART I'm using function serialOpen() of WiringPi library. Default device name for Raspberry is '/dev/ttyAMA0'. But I can't open this device (No such file or directory). How to enable ttyAMA0?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines