Jump to content

Lamobo R1 - PL2303HX and RTC DS3231


Rui Ribeiro

Recommended Posts

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º.

 

post-448-0-75001300-1459275661_thumb.jpg

 

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines