Rui Ribeiro Posted March 29, 2016 Posted March 29, 2016 Just a small post about how to connect the PL2303HX RS-232 adaptor cable and the Real Time Clock. Do not trust the Banana pi photos as the I2C bus in the Lamobo/Banana PI R1 is inverted. As they say a picture is better than a thousand words. Often the online Banana PI/Lamobo PI diagrams can be confusing, and do not even try to guide yourself by Banana PI pinouts / photos of placement of hardware products/extensions. I will reiterate again, as this can be a source of confusion, the Banana PI is a rebranded Lamobo product, and the GPIO bus is different/rotated 180º. To scan the GPIO: $sudo i2cdetect -l i2c-0 i2c mv64xxx_i2c adapter I2C adapter i2c-1 i2c mv64xxx_i2c adapter I2C adapter $sudo i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- $sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- The 68 is the RTC. For the PL2303HX I also have in /etc/inittab: T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 and add to the kernel bootargs in /boot/boot.scr : setenv bootargs "console=tty1 console=ttyS0,115200n8 and to finish: $sudo mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr 2
wildcat_paris Posted March 31, 2016 Posted March 31, 2016 hello Rui, tkaiser put a picture of the GPIO pins issue on L-R1 quite a while ago http://linux-sunxi.org/Lamobo_R1#Pictures=> http://linux-sunxi.org/File:Addon_Board_on_Lamobo_R1_Fixed_Orientation.JPG My "picoolfan" module (RTC+fan) on my R1 is "out of the box" http://www.voc-electronics.com/a-37420681/gpio-extensions/picoolfan/ 1
Rui Ribeiro Posted March 31, 2016 Author Posted March 31, 2016 I see. I put that for the benefit of others googling about the cable and the clock/RTC add on. I just did not brick my R1 by sheer luck on both counts.
Recommended Posts