NEO1973 GPS程序 tangoGPS[转]

NEO1973 GPS程序 tangoGPS
http://www.cublog.cn/u/13385/showart_485510.html
环境:
rootfs:OpenMoko-openmoko-devel-image-glibc-ipk-P1-Snapshot-20080220-fic-gta01.rootfs.jffs2

kernel:uImage-2.6.24+svnr4096-r4055-r3-neo1973.bin

1.先让NEO1973能上网,

   ifconfig usb0 192.168.0.200
   modprobe iptable_nat
   echo "1" > /proc/sys/net/ipv4/ip_forward
   iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ssh上去以后
2.安装GPS程序TangoGPS http://tangogps.org/
       ipkg update
       ipkg install gpsd
       ipkg install http://www.tangogps.org/tangoGPS_0.1-r1_armv4t.ipk

3.安装GPS驱动
   http://blog.chinaunix.net/u/13385/showart_484963.html
scp gllin_1.0+r350-r0_fic-gta01.ipk [email protected]:/tmp/
ssh [email protected]
cd /tmp
ipkg install gllin_1.0\+r350-r0_fic-gta01.ipk

4.启动gllin 和 gpsd
#!/bin/sh
echo "Starting gllin..."

echo "...killing old instances"
killall ld-linux.so.2
killall gpsd

mknod /tmp/nmeaNP p

echo "...starting gpsd"
gpsd -n /tmp/nmeaNP

echo "...testing gllin"
cd /home/root/gllin
lib/ld-linux.so.2 --library-path /home/root/gllin/lib:/home/root/gllin/usr/lib \
/home/root/gllin/gllin.real -low 5 2>&1 > /dev/null

echo "...starting gllin"
lib/ld-linux.so.2 --library-path /home/root/gllin/lib:/home/root/gllin/usr/lib \
/home/root/gllin/gllin.real -periodic 1 &

5.运行程序
DISPLAY=:0.0
export DISPLAY
tangogps

我在单位没有GPS信号所以没有经纬度,要出去之后才有信号,改天把有信号的图传上来
下面是截图

你可能感兴趣的:(#openembedded)