mbrennfleck Posted April 28, 2016 Posted April 28, 2016 Hi, am new on orangePI, Hope my question is not to dumb. I am using the Armbian_5.05_Orangepih3_Debian_jessie_3.4.110.raw image. Kernel is Linux orangepipc 3.4.110-sun8i #18 SMP PREEMPT Tue Mar 8 20:03:32 CET 2016 armv7l GNU/Linux I want to access a serial device connectet to the pins 8 and 10 on the GPIO connector, described at uart 3. /dev/ttyS0 is the 3 connector pin close to the power plug. there is no /dev/ttySn with n>0 and the /dev/ttyGSn are also not the ones to use. How can I create the right device? Same about the IR receiver, Is there any device that represents the IR receiver? Are there modules to load? thanks a lot for help
martinayotte Posted April 29, 2016 Posted April 29, 2016 Are you running Legacy or Mainline ? In mainline, only the UART0 is exposed in the DTS. I've submitted a patch to linux-sunxi to have UART1/2/3 exposed (along with I2Cs), but they didn't merge my patch yet. https://groups.google.com/forum/#!topic/linux-sunxi/pON_W0tlI3g
tkaiser Posted April 29, 2016 Posted April 29, 2016 Regarding UARTs it's easy: They're disabled by default and the pins might be defined as GPIO. So you need bin2fex and fex2bin and adjust the following to your needs: https://github.com/igorpecovnik/lib/blob/master/config/fex/orangepipc.fex#L166-L191 Regarding parameters please have a look at http://linux-sunxi.org/Fex_Guide#uart_configuration And keep in mind that when you enable UART interfaces, the pins used there have to be commented/removed in the [gpio_para] section! Regarding IR please have a look at http://irclog.whitequark.org/linux-sunxi/2016-04-28#16304769;and report back
mbrennfleck Posted May 1, 2016 Author Posted May 1, 2016 UARTS: I followed the instructions from tkaiser. Success Thank you. About the IR reveiver: I found that the module sunxi_cir provides me a working /dev/lirc0 device. Did not see that before. One more question: where do i find documentation about the mapping of the pins described in script.fex (like PAXX, PCXX, PGXX) to the actual physical mapping on my Orange PI PC board? Thanks, I like that forum
Recommended Posts