hey everyone,
I have USB GPS GlobalSat BU-353S4,
I using this tutorial docs ( https://openwrt.org/docs/guide-user/services/ntp/gps ),
because /etc/ntp.conf, is not present, after I research sometimes,
I edited /etc/init.d/ntpd like this :
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
ln -sf /dev/ttyUSB0 /dev/gps0 <== I add this, like in tutorial
START=65
STOP=65
USE_PROCD=1
PROG=/sbin/ntpd
HOTPLUG_HELPER=/usr/sbin/ntpd.hotplug-helper
config_file=/var/run/ntpd.conf
trunc() {
echo -n "" > $config_file
}
emit() {
echo -e "$@" >> $config_file
}
validate_ntp_section() {
uci_validate_section system timeserver "${1}" \
'server:list(host)' 'enabled:bool:1' 'enable_server:bool:0' \
'interface:list(string)'
}
start_service() {
local server enabled enable_server interface intf
validate_ntp_section ntp || {
echo "validation failed"
return 1
}
[ "$enabled" = 0 ] && return
[ -z "$server" -a "$enable_server" = 0 ] && return
# not sure that the interfaces enumerated should be validated,
# since some of them might be dynamic interfaces (like IPsec
# tunnels) which aren't known by ubus.
trunc
emit "driftfile /var/lib/ntp/ntp.drift\n"
if [ "$enable_server" != 0 ]; then
emit "restrict default limited kod nomodify notrap nopeer"
emit "restrict -6 default limited kod nomodify notrap nopeer"
else
emit "restrict -4 default noserve"
emit "restrict -6 default noserve"
fi
emit "restrict source noquery"
emit "\n# No limits for local monitoring"
emit "restrict 127.0.0.1"
emit "restrict -6 ::1\n"
emit "server 127.127.20.0 minpoll 4 prefer" <= And Add this to enabled gps server
emit "fudge 127.127.20.0 flag3 1 flag2 0" <= Like in tutorial
if [ -n "$interface" ]; then
local loopback=$(ubus call network.interface dump | jsonfilter -e "@.interface[@.interface='loopback']['device']")
local saw_lo=
for intf in $interface; do
emit "interface listen $intf"
[ "$intf" = "$loopback" ] && saw_lo=1
done
[ -z "$saw_lo" ] && emit "interface listen $loopback"
emit ""
fi
for i in $server
do
emit "server $i iburst"
done
mkdir -p /var/lib/ntp
chown -R ntp:ntp /var/lib/ntp
procd_open_instance
procd_set_param command $PROG -g -u ntp:ntp -p /var/run/ntpd.pid -n \
-c $config_file
procd_close_instance
procd_open_instance
procd_set_param command $HOTPLUG_HELPER
procd_close_instance
}
Like that, In /var/run/ntpd.conf produced this :
driftfile /var/lib/ntp/ntp.drift
restrict default limited kod nomodify notrap nopeer
restrict -6 default limited kod nomodify notrap nopeer
restrict source noquery
# No limits for local monitoring
restrict 127.0.0.1
restrict -6 ::1
server 127.127.20.0 minpoll 4 prefer
fudge 127.127.20.0 flag3 1 flag2 0
server 0.openwrt.pool.ntp.org iburst
server 1.openwrt.pool.ntp.org iburst
server 2.openwrt.pool.ntp.org iburst
server 3.openwrt.pool.ntp.org iburst
When I not configed it, it's shown n/a
value when running cgps -s -u m
,
But when I completed that and running gpsd and ntpd
it's shown blank value,
┌───────────────────────────────────────────┐
│ Time: │
│ Latitude: │
│ Longitude: │
│ Altitude: │
│ Speed: │
│ Heading: │
│ Climb: │
│ Status: │
│ Longitude Err: │
│ Latitude Err: │
│ Altitude Err: │
│ Course Err: │
│ Speed Err: │
│ Time offset: │
│ Grid Square: │
└───────────────────────────────────────────┘
here is the result of ntpq -p :
remote refid st t when poll reach delay offset jitter
==============================================================================
GPS_NMEA(0) .GPS. 0 l - 16 0 0.000 0.000 0.000
+ntp.uii.net.id 133.243.238.243 2 u 20 64 7 232.227 83.161 126.415
*ns5.datautama.n 203.160.128.66 2 u 16 64 7 56.218 -5.088 52.455
why is that?
anyone in there that have gps installed in their router can help me?
Edited :
Here is the dmesg that already successful loaded the gps from pl2303 :
[ 0.000000] Linux version 4.14.87 (korbanjanji@korbanjanji) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7258-5eb055306f)) #0 Wed Dec 12 20:15:11 2018
[ 0.000000] MyLoader: sysp=996e7d83, boardp=50d78a6b, parts=c1371835
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 8050ebb0, node_mem_map 81000020
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x47c with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=ARCHER-C7-V5 mtdparts=spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,64k@0x50000(art)ro,15360k@0xc0000(firmware) console=ttyS0,115200 rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 124172K/131072K available (3717K kernel code, 186K rwdata, 896K rodata, 312K init, 205K bss, 6900K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[ 0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[ 0.008209] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.074777] pid_max: default: 32768 minimum: 301
[ 0.079813] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.086806] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.096104] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.106500] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.113339] NET: Registered protocol family 16
[ 0.119239] MIPS: machine is TP-LINK Archer C7 v5
[ 0.126947] registering PCI controller with io_map_base unset
[ 0.385550] PCI host bridge to bus 0000:00
[ 0.389880] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.397158] pci_bus 0000:00: root bus resource [io 0x0001]
[ 0.403026] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.410180] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.418550] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[ 0.418603] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.418655] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.418727] pci 0000:00:00.0: supports D1 D2
[ 0.418900] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.418923] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.426668] pci 0000:00:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[ 0.434815] clocksource: Switched to clocksource MIPS
[ 0.441057] NET: Registered protocol family 2
[ 0.446316] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.453669] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.460414] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.467248] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.473414] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.480266] NET: Registered protocol family 1
[ 0.484920] PCI: CLS 0 bytes, default 32
[ 0.489217] Crashlog allocated RAM at address 0x3f00000
[ 0.495879] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.506656] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.512796] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.530953] io scheduler noop registered
[ 0.535126] io scheduler deadline registered (default)
[ 0.540839] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.547888] console [ttyS0] disabled
[ 0.571729] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 0.580824] console [ttyS0] enabled
[ 0.588372] bootconsole [early0] disabled
[ 0.600420] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.615500] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.620385] 4 cmdlinepart partitions found on MTD device spi0.0
[ 0.626513] Creating 4 MTD partitions on "spi0.0":
[ 0.631464] 0x000000000000-0x000000020000 : "factory-uboot"
[ 0.638646] 0x000000020000-0x000000040000 : "u-boot"
[ 0.644974] 0x000000050000-0x000000060000 : "art"
[ 0.651541] 0x0000000c0000-0x000000fc0000 : "firmware"
[ 0.682392] 2 uimage-fw partitions found on MTD device firmware
[ 0.688554] 0x0000000c0000-0x00000024ad50 : "kernel"
[ 0.694299] 0x00000024ad50-0x000000fc0000 : "rootfs"
[ 0.700068] mtd: device 5 (rootfs) set to be root filesystem
[ 0.705987] 1 squashfs-split partitions found on MTD device rootfs
[ 0.712375] 0x000000e70000-0x000000fc0000 : "rootfs_data"
[ 0.721041] libphy: Fixed MDIO Bus: probed
[ 0.742220] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[ 1.464864] libphy: ag71xx_mdio: probed
[ 2.096451] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 2.107911] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[ 2.116335] NET: Registered protocol family 10
[ 2.125358] Segment Routing with IPv6
[ 2.129218] NET: Registered protocol family 17
[ 2.134106] 8021q: 802.1Q VLAN Support v1.8
[ 2.144391] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 2.153409] Freeing unused kernel memory: 312K
[ 2.158020] This architecture does not have kernel memory protection.
[ 2.574827] random: fast init done
[ 2.818734] init: Console is alive
[ 2.822442] init: - watchdog -
[ 5.911057] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.155753] usbcore: registered new interface driver usbfs
[ 6.161477] usbcore: registered new interface driver hub
[ 6.167097] usbcore: registered new device driver usb
[ 6.219903] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.235178] SCSI subsystem initialized
[ 6.243692] ehci-platform: EHCI generic platform driver
[ 6.249229] ehci-platform ehci-platform.0: EHCI Host Controller
[ 6.255401] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 6.265841] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 6.294856] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 6.302168] hub 1-0:1.0: USB hub found
[ 6.306419] hub 1-0:1.0: 1 port detected
[ 6.310895] ehci-platform ehci-platform.1: EHCI Host Controller
[ 6.317087] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 6.327556] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 6.354859] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 6.362159] hub 2-0:1.0: USB hub found
[ 6.366419] hub 2-0:1.0: 1 port detected
[ 6.373594] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.381550] ohci-platform: OHCI generic platform driver
[ 6.389319] uhci_hcd: USB Universal Host Controller Interface driver
[ 6.424464] usbcore: registered new interface driver usb-storage
[ 6.433844] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.451724] init: - preinit -
[ 6.939726] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 7.233914] random: procd: uninitialized urandom read (4 bytes read)
[ 7.240873] hub 1-1:1.0: USB hub found
[ 7.255042] hub 1-1:1.0: 4 ports detected
[ 7.300779] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7.994834] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[ 8.196930] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[ 8.204124] scsi host0: usb-storage 1-1.1:1.0
[ 8.354832] usb 1-1.2: new full-speed USB device number 4 using ehci-platform
[ 8.366522] eth0: link up (1000Mbps/Full duplex)
[ 8.371554] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.704830] usb 1-1.3: new high-speed USB device number 5 using ehci-platform
[ 8.907170] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 8.914300] scsi host1: usb-storage 1-1.3:1.0
[ 9.245963] scsi 0:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6
[ 9.256671] sd 0:0:0:0: [sda] 60063744 512-byte logical blocks: (30.8 GB/28.6 GiB)
[ 9.265625] sd 0:0:0:0: [sda] Write Protect is off
[ 9.270586] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 9.271247] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 9.290520] sda: sda1
[ 9.296626] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 9.965710] scsi 1:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 9.975603] scsi 1:0:0:1: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 9.988649] sd 1:0:0:1: [sdb] Attached SCSI removable disk
[ 10.553511] mount_root: loading kmods from internal overlay
[ 10.620844] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 10.630128] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 11.609957] jffs2: notice: (544) jffs2_build_xattr_subsystem: complete building xattr subsystem, 7 of xdatum (2 unchecked, 4 orphan) and 26 of xref (4 dead, 0 orphan) found.
[ 11.626513] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 12.916529] EXT4-fs (sda1): recovery complete
[ 12.922137] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
[ 13.031903] mount_root: switched to extroot
[ 13.041311] urandom-seed: Seeding with /etc/urandom.seed
[ 13.143547] eth0: link down
[ 13.157007] procd: - early -
[ 13.160069] procd: - watchdog -
[ 13.801195] random: jshn: uninitialized urandom read (4 bytes read)
[ 13.862873] procd: - watchdog -
[ 13.866426] procd: - ubus -
[ 14.159396] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.173192] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.192257] procd: - init -
[ 15.235857] usb 1-1.3: USB disconnect, device number 5
[ 15.582112] kmodloader: loading kernel modules from /etc/modules.d/*
[ 15.860720] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[ 15.874883] usb 1-1.3: new high-speed USB device number 6 using ehci-platform
[ 15.961728] Key type dns_resolver registered
[ 16.025407] RPC: Registered named UNIX socket transport module.
[ 16.031525] RPC: Registered udp transport module.
[ 16.036432] RPC: Registered tcp transport module.
[ 16.041282] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 16.111678] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[ 16.122143] usb-storage 1-1.3:1.2: USB Mass Storage device detected
[ 16.145117] scsi host1: usb-storage 1-1.3:1.2
[ 16.164262] tun: Universal TUN/TAP device driver, 1.6
[ 16.267102] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 16.362294] NFS: Registering the id_resolver key type
[ 16.367615] Key type id_resolver registered
[ 16.371933] Key type id_legacy registered
[ 16.439466] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 16.542591] hidraw: raw HID events driver (C) Jiri Kosina
[ 16.563859] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 16.616153] u32 classifier
[ 16.618951] input device check on
[ 16.622731] Actions configured
[ 16.631328] Mirror/redirect action on
[ 16.657407] usbcore: registered new interface driver cdc_wdm
[ 16.665329] Loading modules backported from Linux version v4.19-rc5-0-g6bf4ca7fbc85
[ 16.673255] Backport generated by backports.git v4.19-rc5-1-0-g05571dcd
[ 16.698400] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 16.736872] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 16.913126] usbcore: registered new interface driver ums-alauda
[ 16.927783] usbcore: registered new interface driver ums-cypress
[ 16.946890] usbcore: registered new interface driver ums-datafab
[ 16.959191] usbcore: registered new interface driver ums-freecom
[ 16.973370] usbcore: registered new interface driver ums-isd200
[ 16.991844] usbcore: registered new interface driver ums-jumpshot
[ 17.013811] usbcore: registered new interface driver ums-karma
[ 17.024375] usbcore: registered new interface driver ums-sddr09
[ 17.046807] usbcore: registered new interface driver ums-sddr55
[ 17.060727] usbcore: registered new interface driver ums-usbat
[ 17.077559] usbcore: registered new interface driver usbhid
[ 17.083322] usbhid: USB HID core driver
[ 17.125084] usbcore: registered new interface driver usbserial
[ 17.131225] usbcore: registered new interface driver usbserial_generic
[ 17.138088] usbserial: USB Serial support registered for generic
[ 17.165852] scsi 1:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 17.174983] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 17.185696] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 17.252053] xt_time: kernel timezone is -0000
[ 17.264456] cdc_ether 1-1.3:1.0 eth1: register 'cdc_ether' at usb-ehci-platform.0-1.3, CDC Ethernet Device, 0c:5b:8f:27:9a:64
[ 17.276410] usbcore: registered new interface driver cdc_ether
[ 17.306743] usbcore: registered new interface driver cdc_ncm
[ 17.410690] usbcore: registered new interface driver huawei_cdc_ncm
[ 17.515173] usbcore: registered new interface driver pl2303
[ 17.521036] usbserial: USB Serial support registered for pl2303
[ 17.527258] pl2303 1-1.2:1.0: pl2303 converter detected
[ 17.554237] usb 1-1.2: pl2303 converter now attached to ttyUSB0
[ 17.578724] PPP generic driver version 2.4.2
[ 17.587925] NET: Registered protocol family 24
[ 17.600214] usbcore: registered new interface driver rndis_host
[ 17.707408] pci 0000:00:00.0: using irq 40 for pin 1
[ 17.725639] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 17.731665] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 18.103188] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[ 18.114299] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 21.940703] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[ 21.953400] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
[ 21.964515] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 22.100456] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 22.110004] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-5.bin failed with error -2
[ 22.121083] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 22.256282] firmware ath10k!QCA988X!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
[ 22.265821] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-4.bin failed with error -2
[ 22.276904] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 22.435155] firmware ath10k!QCA988X!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
[ 22.444651] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-3.bin failed with error -2
[ 22.455738] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 22.591150] firmware ath10k!QCA988X!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
[ 22.864954] ath10k_pci 0000:00:00.0: Unknown FW IE: 30
[ 22.870278] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 22.879810] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 22.892194] ath10k_pci 0000:00:00.0: firmware ver 10.1-ct-8x-__fW-021-e2174c5 api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp crc32 83fdb9cc
[ 22.932576] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 22.943395] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 23.014204] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[ 23.033395] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 23.966972] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[ 24.106341] ath: EEPROM regdomain: 0x0
[ 24.106348] ath: EEPROM indicates default country code should be used
[ 24.106351] ath: doing EEPROM country->regdmn map search
[ 24.106363] ath: country maps to regdmn code: 0x3a
[ 24.106368] ath: Country alpha2 being used: US
[ 24.106371] ath: Regpair used: 0x3a
[ 24.169069] usbcore: registered new interface driver ath6kl_usb
[ 24.263376] usbcore: registered new interface driver option
[ 24.269261] usbserial: USB Serial support registered for GSM modem (1-port)
[ 24.322366] usbcore: registered new interface driver rt2800usb
[ 24.398227] usbcore: registered new interface driver ath9k_htc
[ 24.427971] ath: EEPROM regdomain: 0x0
[ 24.427978] ath: EEPROM indicates default country code should be used
[ 24.427981] ath: doing EEPROM country->regdmn map search
[ 24.427994] ath: country maps to regdmn code: 0x3a
[ 24.427998] ath: Country alpha2 being used: US
[ 24.428001] ath: Regpair used: 0x3a
[ 24.440281] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 24.442015] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[ 24.460689] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 27.374872] random: crng init done
[ 27.378400] random: 6 urandom warning(s) missed due to ratelimiting
[ 31.564790] jffs2: notice: (1915) jffs2_build_xattr_subsystem: complete building xattr subsystem, 7 of xdatum (2 unchecked, 4 orphan) and 26 of xref (4 dead, 0 orphan) found.
[ 34.266052] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 34.287552] br-lan: port 1(eth0.1) entered blocking state
[ 34.293219] br-lan: port 1(eth0.1) entered disabled state
[ 34.299193] device eth0.1 entered promiscuous mode
[ 34.304212] device eth0 entered promiscuous mode
[ 34.345577] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 34.388528] cdc_ether 1-1.3:1.0 eth1: kevent 12 may have been dropped
[ 34.432961] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[ 35.327024] eth0: link up (1000Mbps/Full duplex)
[ 35.332060] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 35.424997] br-lan: port 1(eth0.1) entered blocking state
[ 35.430585] br-lan: port 1(eth0.1) entered forwarding state
[ 35.436653] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[ 35.535179] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 47.975212] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[ 47.983439] NFSD: starting 90-second grace period (net 80509988)
[ 48.570588] device wlan1mon entered promiscuous mode
here :
[ 17.515173] usbcore: registered new interface driver pl2303
[ 17.521036] usbserial: USB Serial support registered for pl2303
[ 17.527258] pl2303 1-1.2:1.0: pl2303 converter detected
[ 17.554237] usb 1-1.2: pl2303 converter now attached to ttyUSB0
It's say connected to /dev/ttyUSB0, then I ln -s to gps0 like show bellow :
bus gps0 mtd0ro mtd3ro mtd6ro mtdblock5 port sda1 ttyS0
console kmsg mtd1 mtd4 mtdblock0 mtdblock6 ppp sdb ttyUSB0
cpu_dma_latency log mtd1ro mtd4ro mtdblock1 net ptmx sg0 urandom
full mapper mtd2 mtd5 mtdblock2 network_latency pts sg1 watchdog
gpiochip0 memory_bandwidth mtd2ro mtd5ro mtdblock3 network_throughput random shm zero
gpiochip1 mtd0 mtd3 mtd6 mtdblock4 null sda tty
here, I already activated the gpsd too :
root@panah-master:/etc/config# cat gpsd
config gpsd 'core'
option enabled 'true'
option device '/dev/ttyUSB0'
option port '2947'
option listen_globally 'true'
root@panah-master:/etc/config#
netstat -ntulp :
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:2947 0.0.0.0:* LISTEN 1991/gpsd
tcp 0 0 127.0.0.1:2501 0.0.0.0:* LISTEN 2459/kismet_server
tcp 0 0 0.0.0.0:32777 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:32778 0.0.0.0:* LISTEN 2496/rpc.statd
tcp 0 0 0.0.0.0:32780 0.0.0.0:* LISTEN 2497/rpc.mountd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1815/rpcbind
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2375/nginx.conf -g
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2250/dnsmasq
tcp 0 0 192.168.8.100:53 0.0.0.0:* LISTEN 2250/dnsmasq
tcp 0 0 192.168.1.1:53 0.0.0.0:* LISTEN 2250/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1966/dropbear
tcp 0 0 :::2049 :::* LISTEN -
tcp 0 0 :::2947 :::* LISTEN 1991/gpsd
tcp 0 0 :::32777 :::* LISTEN -
tcp 0 0 :::32778 :::* LISTEN 2496/rpc.statd
tcp 0 0 :::32780 :::* LISTEN 2497/rpc.mountd
tcp 0 0 :::111 :::* LISTEN 1815/rpcbind
tcp 0 0 ::1:53 :::* LISTEN 2250/dnsmasq
tcp 0 0 fe80::e80:63ff:fe25:6a39:53 :::* LISTEN 2250/dnsmasq
tcp 0 0 fe80::e5b:8fff:fe27:9a64:53 :::* LISTEN 2250/dnsmasq
tcp 0 0 fd81:930a:2a18::1:53 :::* LISTEN 2250/dnsmasq
tcp 0 0 fe80::e80:63ff:fe25:6a39:53 :::* LISTEN 2250/dnsmasq
tcp 0 0 fe80::e80:63ff:fe25:6a39:53 :::* LISTEN 2250/dnsmasq
tcp 0 0 :::22 :::* LISTEN 1966/dropbear
udp 0 0 0.0.0.0:32777 0.0.0.0:* -
udp 0 0 0.0.0.0:32778 0.0.0.0:* 2496/rpc.statd
udp 0 0 0.0.0.0:32780 0.0.0.0:* 2497/rpc.mountd
udp 0 0 127.0.0.1:53 0.0.0.0:* 2250/dnsmasq
udp 0 0 192.168.8.100:53 0.0.0.0:* 2250/dnsmasq
udp 0 0 192.168.1.1:53 0.0.0.0:* 2250/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 2250/dnsmasq
udp 0 0 0.0.0.0:111 0.0.0.0:* 1815/rpcbind
udp 0 0 192.168.1.1:123 0.0.0.0:* 2344/ntpd
udp 0 0 192.168.8.100:123 0.0.0.0:* 2344/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 2344/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 2344/ntpd
udp 0 0 127.0.0.1:976 0.0.0.0:* 2496/rpc.statd
udp 0 0 :::32777 :::* -
udp 0 0 :::32778 :::* 2496/rpc.statd
udp 0 0 :::32780 :::* 2497/rpc.mountd
udp 0 0 :::546 :::* 2154/odhcp6c
udp 0 0 :::547 :::* 1906/odhcpd
udp 0 0 ::1:53 :::* 2250/dnsmasq
udp 0 0 fe80::e80:63ff:fe25:6a39:53 :::* 2250/dnsmasq
udp 0 0 fe80::e5b:8fff:fe27:9a64:53 :::* 2250/dnsmasq
udp 0 0 fd81:930a:2a18::1:53 :::* 2250/dnsmasq
udp 0 0 fe80::e80:63ff:fe25:6a39:53 :::* 2250/dnsmasq
udp 0 0 fe80::e80:63ff:fe25:6a39:53 :::* 2250/dnsmasq
udp 0 0 :::111 :::* 1815/rpcbind
udp 0 0 fe80::e80:63ff:fe25:6a39:123 :::* 2344/ntpd
udp 0 0 fe80::e80:63ff:fe25:6a39:123 :::* 2344/ntpd
udp 0 0 fd81:930a:2a18::1:123 :::* 2344/ntpd
udp 0 0 fe80::e5b:8fff:fe27:9a64:123 :::* 2344/ntpd
udp 0 0 fe80::e80:63ff:fe25:6a39:123 :::* 2344/ntpd
udp 0 0 ::1:123 :::* 2344/ntpd
udp 0 0 :::123 :::* 2344/ntpd