snaker Posted October 22, 2015 Posted October 22, 2015 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.
Igor Posted October 22, 2015 Posted October 22, 2015 ttyS0 is serial console. You can't use that for anything else, try ttyS1
snaker Posted October 22, 2015 Author Posted October 22, 2015 Can you specify, how to redirect gps to ttyS1 ?
snaker Posted October 22, 2015 Author Posted October 22, 2015 ttyS0 is serial console. You can't use that for anything else, try ttyS1 Can you specify, how to redirect gps to ttyS1 ?
Bino Oetomo Posted November 2, 2015 Posted November 2, 2015 (edited) dear sir.First check wheter you enable ttyS1 or not.If no, and if you use 3.x kernel :1. cd /boot2. 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 iti.e :[uart_para4]uart_used = 1uart_port = 4uart_type = 2uart_tx = port:PG10<4><1><default><default>uart_rx = port:PG11<4><1><default><default>5. fex2bin ./script.fex ./script.bin6. reboot7. the easiest method to use gps is via gpsd ...install it8. edit /etc/default/gpsd :+ set USBAUTO to false+ set the device to ttyS1details 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 November 2, 2015 by Bino Oetomo
Recommended Posts