bl4ckc00k1e Posted January 14, 2016 Posted January 14, 2016 Hi again guys, I buy some usb wireless boards to connect to the GPIO with the UART Pines, but in the especifications of the GPIO, only i see 1: Has you can see only GPIO 14 and 15 have TXD and RXD... I will use too the SPI to add other ethernet so... its possible use other GPIO for TXD and RXD?? In my Pixhawk (board for drones) i use I2C for monitoring stats via wireless (2.4Ghz), maybe this pines can work for usb wireless. If is possible, how can i program other pines for that? will be any diference? (more slow or more cpu resources or whatever?) Thanks like always!
tkaiser Posted January 14, 2016 Posted January 14, 2016 Be very very careful. There exist no correct specification regarding GPIO pin layout for the Banana Pi M2: http://www.bananapi.com/index.php/forum/general-discussion-for-bpi-m2/411-m2-gpio-defininiton?start=6#2648 All the glorious 'Team BPi' (that provided so much crappy software and wrong informations and is responsible for missing informations and support) did, is to steal the above picture from http://www.raspberrypi-spy.co.uk and remove their logo. Don't expect that any pin mapping is correct, it's just a manipulated picture stolen from somewhere else. Please crawl through the two most horrible forums ever to get a clue how much of this stuff simply is wrong: http://www.bananapi.com/index.php/forum/general-discussion-for-bpi-m2 (this is 'Team BPi's former official Banana Pi forum abandoned a few months ago) http://forum.banana-pi.org/c/bpi-m2 (this is the current official forum -- maybe they already prepare to abandon this and start over with a fresh one somewhere else? At least the most moronic marketing person ever that normally floods the forum with useless crap is quiet. Not a single @sinovoip post the last days!) The best thing you can do with a M2 is to use it as headless server or throw it into the bin. Ok, to be a bit more constructive: UART pin mappings depend on the device tree definitions when using Armbian (mainline kernel only available for M2). Maybe others can assist you. I won't waste my time with any of 'Team BPi's products any more (R1, M2, M3 -- I'm sure they already develop an M4 and M5). 1
bl4ckc00k1e Posted January 15, 2016 Author Posted January 15, 2016 Be very very careful. There exist no correct specification regarding GPIO pin layout for the Banana Pi M2: http://www.bananapi.com/index.php/forum/general-discussion-for-bpi-m2/411-m2-gpio-defininiton?start=6#2648 All the glorious 'Team BPi' (that provided so much crappy software and wrong informations and is responsible for missing informations and support) did, is to steal the above picture from http://www.raspberrypi-spy.co.uk and remove their logo. Don't expect that any pin mapping is correct, it's just a manipulated picture stolen from somewhere else. Please crawl through the two most horrible forums ever to get a clue how much of this stuff simply is wrong: http://www.bananapi.com/index.php/forum/general-discussion-for-bpi-m2 (this is 'Team BPi's former official Banana Pi forum abandoned a few months ago) http://forum.banana-pi.org/c/bpi-m2 (this is the current official forum -- maybe they already prepare to abandon this and start over with a fresh one somewhere else? At least the most moronic marketing person ever that normally floods the forum with useless crap is quiet. Not a single @sinovoip post the last days!) The best thing you can do with a M2 is to use it as headless server or throw it into the bin. Ok, to be a bit more constructive: UART pin mappings depend on the device tree definitions when using Armbian (mainline kernel only available for M2). Maybe others can assist you. I won't waste my time with any of 'Team BPi's products any more (R1, M2, M3 -- I'm sure they already develop an M4 and M5). Thanks for the answer @tkaiser, in theory, in the oficial documentation is like that: https://drive.google.com/file/d/0B4PAo2nW2KfnV2tGT0pSNWJ0QkU/view . For now the hardware for me working well, the oficial images sucks, thats its true, and for that i use armbian . In raspbian i have rasp-config and there i can activate some GPIO, no sure about armbian have something like this or where i must edit code.
tkaiser Posted January 15, 2016 Posted January 15, 2016 the oficial documentation is like that: https://drive.google.com/file/d/0B4PAo2nW2KfnV2tGT0pSNWJ0QkU/view Good luck, I wouldn't call that documentation and I can remember that someone on the bananapi.com forum discovered that the Pin assignments are wrong there (IIRC he tried to connect an LCD and figured out that at least 1 pin assigned to LVDS according to 'documentation' was also used for another purpose). As already said: You have to look into the device tree stuff yourself. Won't spend any time on products from vendors one should avoid.
bl4ckc00k1e Posted January 22, 2016 Author Posted January 22, 2016 @tkaiser Do you know if the GPIO drivers are compiled yet in armbian?
Igor Posted January 24, 2016 Posted January 24, 2016 I am not sure about M2 but GPIOs are available in the kernel. I was doing something on A20 based boards and it's working out of the box. http://linux-sunxi.org/GPIO 1
Recommended Posts