Jump to content

Boot with gps on UART


snaker

Recommended Posts

Cubieboard2

How to create the armbian image with capability of  booting with gps connected to the uart port ?
The armbian can't start if gps connected to the uart port and vice versa - It starts with unpluged gps.
After system is started up, I do connect the gps and can easily get the gps data from /dev/ttyS0

As I understand - it's happened because of ttyS0 can be using as keyboard, so bootload is interrupting.

Also it's can be a problem while initial password changing.

Link to comment
Share on other sites

dear sir.

First check wheter you enable ttyS1 or not.

If no, and if you use 3.x kernel :
1. cd /boot
2. bin2fex ./script.bin script.fex

3. cp ./script.fex ./script.fex.orig    (just incase)
4. look for uart_paraX section that have type=2 , and enable it
i.e :

[uart_para4]
uart_used = 1
uart_port = 4
uart_type = 2
uart_tx = port:PG10<4><1><default><default>
uart_rx = port:PG11<4><1><default><default>


5. fex2bin ./script.fex ./script.bin

6. reboot

7. the easiest method to use gps is via gpsd ...install it
8. edit /etc/default/gpsd :
+ set USBAUTO to false
+ set the device to ttyS1
details at : http://www.catb.org/gpsd/

here is mine
 

cat /etc/default/gpsd 
# Default settings for gpsd.
# Please do not edit this file directly - use `dpkg-reconfigure gpsd' to
# change the options.
START_DAEMON="true"
GPSD_OPTIONS="-b -n"
DEVICES="/dev/ttyS1"
USBAUTO="false"
GPSD_SOCKET="/var/run/gpsd.sock"

sincerely
-bino-

Edited by Bino Oetomo
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