Building GPS Clock on Pi w/ Debian Stretch

Start with Raspbian Stretch Lite

Install most current packages:
apt-get update
apt-get upgrade
apt-get dist-upgrade

Clean up packages:
aptitude search ‘~o’
apt-get autoremove

reboot

Test GPS Sentences:
cat /dev/ttyAMA0

Limit GPS Sentences:
#GPZDA
/bin/echo -e ‘$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0*29\r\n’ > /dev/ttyAMA0

#GPRMC
/bin/echo -e ‘$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n’ > /dev/ttyAMA0

Configure Pi:
raspi-config
configure local >> [*] en_US.UTF-8 UTF-8
timezone >> Chicago
advanced >> Expand filesystem

reboot

Get and Unpack NTP source:
wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p12.tar.gz
tar -zxvf ntp-4.2.8p12.tar.gz

Compile NTP:
apt-get install libcap-dev

./configure –disable-all-clocks –disable-parse-clocks –without-lineeditlibs –enable-NMEA –enable-LOCAL-CLOCK –enable-SHM –enable-linuxcaps –enable-ATOM –enable-pps –with-sntp=no –prefix=/usr

make
make install

Boot and Kernel Configuration:
Disable TTY on /dev/AMA0 in /boot/cmdline.txt:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

Configure /boot/config.txt:
init_uart_baud=9600
disable_pvt=1
dtoverlay=pps-gpio,gpiopin=24

/etc/modules:
echo pps-gpio >> /etc/modules

Add udev rules for gps:
root@GPS2 /etc/udev/rules.d # cat 09.gps.rules
KERNEL==”ttyAMA0″, SYMLINK+=”gps0″
KERNEL==”pps0″, OWNER=”root”, GROUP=”tty”, MODE=”0777″, SYMLINK+=”gpspps0″

reboot

Test pulse per second:
apt-get install pps-tools
ppstest /dev/pps0
ppstest /dev/gpspps0

ntp.conf:
driftfile /var/log/ntpstats/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

restrict default nomodify noquery
restrict 127.0.0.1
restrict 10.1.1.0 mask 255.255.255.0 nomodify

# NMEA serial port, 16 = 9600 baud, 8 = $GPZDA or $GPZDG
server 127.127.20.0 mode 24 minpoll 3 maxpoll 3 prefer iburst
fudge 127.127.20.0 flag1 1 flag3 1 time2 0.350 refid GPS

peer gps2.lan.side

Restarting GPS Clocks

Need to change hostnames and IPs for both clocks before running the commands below:


mount 10.1.1.101:/NAS/common /common
mount 10.1.1.101:/NAS/backup /backup
mount 10.1.1.101:/NAS/log/hcpi003 /var/log
mount 10.1.1.101:/NAS/admin /admin
/etc/init.d/rsyslog restart

/etc/init.d/ntp stop
/usr/sbin/ntpdate 0.pool.ntp.org

/bin/echo -e '$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0*29\r\n' > /dev/ttyAMA0

/etc/init.d/ntp start
watch ntpq -p 127.0.0.1

Debian Upgrade 8 to 9

Note: Disable Network Bonding at switch and OS


# aptitude search '~o'

# apt-get update
# apt-get upgrade
# apt-get dist-upgrade

# dpkg -C

# apt-mark showhold

/etc/apt/sources.list
STRETCH:
deb http://httpredir.debian.org/debian stretch main
deb http://httpredir.debian.org/debian stretch-updates main
deb http://security.debian.org stretch/updates main

# apt-get update

# apt list --upgradable

# apt-get upgrade
# apt-get dist-upgrade

# aptitude search '~o'
# aptitude purge ~o (removes obsolete packages)

# apt-get autoremove

Remove ^rc packages
# dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge

# reboot

GPS Time Server:
root@GPS2 /etc/udev/rules.d # cat 09.gps.rules
KERNEL==”ttyAMA0″, SYMLINK+=”gps0″
KERNEL==”pps0″, OWNER=”root”, GROUP=”tty”, MODE=”0777″, SYMLINK+=”gpspps0″

root@GPS2 /etc/udev/rules.d # /usr/sbin/ntpd –help
ntpd – NTP daemon program – Ver. 4.2.6p5

rc.local
# NTP Boot Config
/etc/init.d/ntp stop
/usr/sbin/ntpdate 0.pool.ntp.org
/bin/echo -e ‘$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n’ > /dev/ttyAMA0
/bin/sleep 30
/etc/init.d/ntp restart

/boot/config.txt
# for more options see http://elinux.org/RPi_config.txt
disable_pvt=1
dtoverlay=pps-gpio,gpiopin=24

root@GPS2 /common/home/cak/workntp # cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with “#” are ignored.

snd-bcm2835
pps-gpio

driftfile /var/log/ntpstats/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
filegen protostats file protostats type day enable
filegen sysstats file sysstats type day enable

server 127.127.1.0
fudge 127.127.1.0 stratum 10
server 127.127.20.0 mode 17 minpoll 3 maxpoll 3 prefer
fudge 127.127.20.0 flag1 1 refid GPS2 time2 0.400

peer gps1.lan.side

# By default, exchange time with everybody, but don’t allow configuration.
restrict default nomodify noquery kod notrap

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1

root@hcst001:/etc/init.d# systemctl –failed –all
UNIT LOAD ACTIVE SUB DESCRIPTION
● apache2.service loaded failed failed The Apache HTTP Server
● atd.service loaded failed failed Deferred execution scheduler
● cron.service loaded failed failed Regular background program processing daemon
● ipmievd.service loaded failed failed IPMI event daemon
● rpcbind.service loaded failed failed RPC bind portmap service
● rsyslog.service loaded failed failed System Logging Service
● ssh.service loaded failed failed OpenBSD Secure Shell server
● systemd-modules-load.service loaded failed failed Load Kernel Modules
● rpcbind.socket loaded failed failed RPCbind Server Activation Socket
● syslog.socket loaded failed failed Syslog Socket

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.

10 loaded units listed.
To show all installed unit files use ‘systemctl list-unit-files’.

root@hcst001:/etc/init.d# systemctl list-unit-files
UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
-.mount generated
boot.mount generated
dev-hugepages.mount static
dev-mqueue.mount static
media-cdrom0.mount generated
media-usb0.mount generated
media-usb1.mount generated
media-usb2.mount generated
NAS-backup.mount generated
NAS-log.mount generated
proc-fs-nfsd.mount static
proc-sys-fs-binfmt_misc.mount static
run-rpc_pipefs.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
acpid.path enabled
systemd-ask-password-console.path static
systemd-ask-password-wall.path static
acpid.service disabled
apache-htcacheclean.service disabled
apache-htcacheclean@.service disabled
apache2.service enabled
apache2@.service disabled
apt-daily-upgrade.service static
apt-daily.service static
atd.service enabled
auth-rpcgss-module.service static
autovt@.service enabled
bind9-pkcs11.service disabled
bind9-resolvconf.service disabled
bind9.service enabled
bootlogd.service masked
bootlogs.service masked
bootmisc.service masked
checkfs.service masked
checkroot-bootclean.service masked
checkroot.service masked
console-getty.service disabled
console-setup.service enabled
container-getty@.service static
cron.service enabled
cryptdisks-early.service masked
cryptdisks.service masked
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.network1.service disabled
dbus-org.freedesktop.resolve1.service disabled
dbus-org.freedesktop.timedate1.service static
dbus.service static
debug-shell.service disabled
dm-event.service disabled
emergency.service static
fail2ban.service enabled
fancontrol.service enabled
fuse.service masked
getty-static.service static
getty@.service enabled
halt.service masked
hddtemp.service generated
hostname.service masked
hwclock.service masked
ifup@.service static
inetd.service generated
initrd-cleanup.service static
initrd-parse-etc.service static
initrd-switch-root.service static
initrd-udevadm-cleanup-db.service static
ipmidrv.service generated
ipmievd.service disabled
irqbalance.service enabled
keyboard-setup.service enabled
killprocs.service masked
kmod-static-nodes.service static
kmod.service static
lm-sensors.service enabled
lvm2-lvmetad.service disabled
lvm2-lvmpolld.service disabled
lvm2-monitor.service enabled
lvm2-pvscan@.service static
lvm2.service masked
mdadm-raid.service generated
mdadm.service generated
memcached.service generated
module-init-tools.service static
motd.service masked
mountall-bootclean.service masked
mountall.service masked
mountdevsubfs.service masked
mountkernfs.service masked
mountnfs-bootclean.service masked
mountnfs.service masked
networking.service enabled
nfs-blkmap.service disabled
nfs-common.service masked
nfs-config.service static
nfs-idmapd.service static
nfs-kernel-server.service enabled
nfs-mountd.service static
nfs-server.service enabled
nfs-utils.service static
nmbd.service enabled
ntp.service generated
openipmi.service generated
phpsessionclean.service static
portmap.service enabled
postfix.service enabled
postfix@.service disabled
procps.service static
quotaon.service static
rc-local.service static
rc.local.service static
rc.service masked
rcS.service masked
reboot.service masked
rescue.service static
rmnologin.service masked
rpc-gssd.service static
rpc-statd-notify.service disabled
rpc-statd.service disabled
rpc-svcgssd.service static
rpcbind.service enabled
rsync.service enabled
rsyslog.service enabled
samba-ad-dc.service masked
samba.service masked
screen-cleanup.service masked
sendsigs.service masked
serial-getty@.service disabled
single.service masked
smartd.service enabled
smartmontools.service enabled
smbd.service enabled
snmpd.service enabled
ssh.service enabled
ssh@.service static
sshd.service enabled
stop-bootlogd-single.service masked
stop-bootlogd.service masked
sudo.service disabled
syslog.service enabled
systemd-ask-password-console.service static
systemd-ask-password-wall.service static
systemd-backlight@.service static
systemd-binfmt.service static
systemd-exit.service static
systemd-fsck-root.service static
systemd-fsck@.service static
systemd-fsckd.service static
systemd-halt.service static
systemd-hibernate-resume@.service static
systemd-hibernate.service static
systemd-hostnamed.service static
systemd-hwdb-update.service static
systemd-hybrid-sleep.service static
systemd-initctl.service static
systemd-journal-flush.service static
systemd-journald.service static
systemd-kexec.service static
systemd-localed.service static
systemd-logind.service static
systemd-machine-id-commit.service static
systemd-modules-load.service static
systemd-networkd-wait-online.service disabled
systemd-networkd.service disabled
systemd-poweroff.service static
systemd-quotacheck.service static
systemd-random-seed.service static
systemd-reboot.service static
systemd-remount-fs.service static
systemd-resolved.service disabled
systemd-rfkill.service static
systemd-suspend.service static
systemd-sysctl.service static
systemd-timedated.service static
systemd-timesyncd.service enabled
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup-dev.service static
systemd-tmpfiles-setup.service static
systemd-udev-settle.service static
systemd-udev-trigger.service static
systemd-udevd.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp.service static
systemd-user-sessions.service static
udev.service static
umountfs.service masked
umountnfs.service masked
umountroot.service masked
urandom.service static
user@.service static
x11-common.service masked
xinetd.service generated
machine.slice static
system.slice static
user.slice static
acpid.socket enabled
dbus.socket static
dm-event.socket enabled
lvm2-lvmetad.socket enabled
lvm2-lvmpolld.socket enabled
rpcbind.socket enabled
ssh.socket disabled
syslog.socket static
systemd-fsckd.socket static
systemd-initctl.socket static
systemd-journald-audit.socket static
systemd-journald-dev-log.socket static
systemd-journald.socket static
systemd-networkd.socket disabled
systemd-rfkill.socket static
systemd-udevd-control.socket static
systemd-udevd-kernel.socket static
dev-disk-by\x2duuid-ec862752\x2d373a\x2d475f\x2da7de\x2debc8e0941802.swap generated
basic.target static
bluetooth.target static
busnames.target static
cryptsetup-pre.target static
cryptsetup.target static
ctrl-alt-del.target disabled
default.target static
emergency.target static
exit.target disabled
final.target static
getty.target static
graphical.target static
halt.target disabled
hibernate.target static
hybrid-sleep.target static
initrd-fs.target static
initrd-root-device.target static
initrd-root-fs.target static
initrd-switch-root.target static
initrd.target static
kexec.target disabled
local-fs-pre.target static
local-fs.target static
multi-user.target static
network-online.target static
network-pre.target static
network.target static
nfs-client.target enabled
nss-lookup.target static
nss-user-lookup.target static
paths.target static
poweroff.target disabled
printer.target static
reboot.target disabled
remote-fs-pre.target static
remote-fs.target enabled
rescue.target disabled
rpcbind.target static
runlevel0.target disabled
runlevel1.target disabled
runlevel2.target static
runlevel3.target static
runlevel4.target static
runlevel5.target static
runlevel6.target disabled
shutdown.target static
sigpwr.target static
sleep.target static
slices.target static
smartcard.target static
sockets.target static
sound.target static
suspend.target static
swap.target static
sysinit.target static
system-update.target static
time-sync.target static
timers.target static
umount.target static
apt-daily-upgrade.timer enabled
apt-daily.timer enabled
phpsessionclean.timer enabled
systemd-tmpfiles-clean.timer static

279 unit files listed.

Freelancer: Ship Codes

marketgood = gf1_package, 1, -1, 0, 0, 1, 1, 1 STARFLIER
marketgood = gf2_package, 1, -1, 0, 0, 1, 1, 1 STARTRACKER
marketgood = gf4_package, 1, -1, 0, 0, 1, 1, 1 HAWK
marketgood = gf5_package, 1, -1, 0, 0, 1, 1, 1 FALCON
marketgood = gf6_package, 1, -1, 0, 0, 1, 1, 1 EAGLE
marketgood = bwf_package, 1, -1, 0, 0, 1, 1, 1 DAGGER
marketgood = bwe_package, 1, -1, 0, 0, 1, 1, 1 SABRE
marketgood = bwe2_package, 1, -1, 0, 0, 1, 1, 1 DROMEDARY
marketgood = bwfr_package, 1, -1, 0, 0, 1, 1, 1 STILETTO
marketgood = cof_package, 1, -1, 0, 0, 1, 1, 1 LEGIONAIRE
marketgood = coe_package, 1, -1, 0, 0, 1, 1, 1 CENTURION
marketgood = coe2_package, 1, -1, 0, 0, 1, 1, 1 TITAN
marketgood = lf_package, 1, -1, 0, 0, 1, 1, 1 PATRIOT
marketgood = le_package, 1, -1, 0, 0, 1, 1, 1 DEFENDER
marketgood = lfr_package, 1, -1, 0, 0, 1, 1, 1 RHINO
marketgood = bf_package, 1, -1, 0, 0, 1, 1, 1 CAVALIER
marketgood = be_package, 1, -1, 0, 0, 1, 1, 1 CRUSADER
marketgood = bfr_package, 1, -1, 0, 0, 1, 1, 1 CLYDESDALE
marketgood = kf_package, 1, -1, 0, 0, 1, 1, 1 DRONE
marketgood = ke_package, 1, -1, 0, 0, 1, 1, 1 DRAKE
marketgood = kfr_package, 1, -1, 0, 0, 1, 1, 1 DRAGON
marketgood = rf_package, 1, -1, 0, 0, 1, 1, 1 BANSHEE
marketgood = re_package, 1, -1, 0, 0, 1, 1, 1 VALKYRIE
marketgood = rfr_package, 1, -1, 0, 0, 1, 1, 1 HUMPBACK
marketgood = pf_package, 1, -1, 0, 0, 1, 1, 1 BLOODHOUND
marketgood = pe_package, 1, -1, 0, 0, 1, 1, 1 WOLFHOUND
marketgood = pfr_package, 1, -1, 0, 0, 1, 1, 1 MULE
marketgood = bhf_package, 1, -1, 0, 0, 1, 1, 1 PIRANHA
marketgood = bhe_package, 1, -1, 0, 0, 1, 1, 1 BARRACUDA
marketgood = bhe2_package, 1, -1, 0, 0, 1, 1, 1 HAMMERHEAD
marketgood = oe_package, 1, -1, 0, 0, 1, 1, 1 ANNUBIS

DAGGER, FALCON, ANUBIS
marketgood = gf1_package, 1, -1, 0, 0, 1, 1, 1
marketgood = gf2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = gf4_package, 1, -1, 0, 0, 1, 1, 1
marketgood = gf5_package, 1, -1, 1, 1, 0, 1, 1
marketgood = gf6_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bwf_package, 1, -1, 1, 1, 0, 1, 1
marketgood = bwe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bwe2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bwfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = cof_package, 1, -1, 0, 0, 1, 1, 1
marketgood = coe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = coe2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = lf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = le_package, 1, -1, 0, 0, 1, 1, 1
marketgood = lfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = be_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = kf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = ke_package, 1, -1, 0, 0, 1, 1, 1
marketgood = kfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = rf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = re_package, 1, -1, 0, 0, 1, 1, 1
marketgood = rfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = pf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = pe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = pfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bhf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bhe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bhe2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = oe_package, 1, -1, 1, 1, 0, 1, 1

HAMMERHEAD, EAGLE, TITAN
marketgood = gf1_package, 1, -1, 0, 0, 1, 1, 1
marketgood = gf2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = gf4_package, 1, -1, 0, 0, 1, 1, 1
marketgood = gf5_package, 1, -1, 0, 0, 1, 1, 1
marketgood = gf6_package, 1, -1, 1, 1, 0, 1, 1
marketgood = bwf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bwe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bwe2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bwfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = cof_package, 1, -1, 1, 1, 0, 1, 1
marketgood = coe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = coe2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = lf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = le_package, 1, -1, 0, 0, 1, 1, 1
marketgood = lfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = be_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = kf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = ke_package, 1, -1, 0, 0, 1, 1, 1
marketgood = kfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = rf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = re_package, 1, -1, 0, 0, 1, 1, 1
marketgood = rfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = pf_package, 1, -1, 0, 0, 1, 1, 1
marketgood = pe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = pfr_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bhf_package, 1, -1, 1, 1, 0, 1, 1
marketgood = bhe_package, 1, -1, 0, 0, 1, 1, 1
marketgood = bhe2_package, 1, -1, 0, 0, 1, 1, 1
marketgood = oe_package, 1, -1, 0, 0, 1, 1, 1

Freelancer: Planet/Station Codes

br01_01_base = Planet New London
br01_03_base = Battleship Suffolk
br01_08_base = Trafalgar Base
br02_03_base = Sheffield Station
br02_04_base = Liverpool Border Station
br03_01_base = Planet Cambridge
br04_01_base = Planet Leeds
br04_03_base = Battleship York
br05_01_base = Battleship Hood
br05_04_base = Battleship Essex
br05_05_base = Arranmore Base

bw02_01_base = Cadiz Base
bw03_01_base = Freistadt Base
bw06_01_base = Planet Kurile
bw10_01_base = Planet Harris

ew03_01_base = Leon Base
ew04_01_base = Freeport 9
ew06_01_base = Planet Primus (Hehe, this is THE planet of the Apes)
ew06_02_base = Planet Gammu (Robot planet?)

hi01_01_base = Planet Malta
hi02_01_base = Planet Crete

iw03_02_base = Mactan Base
iw04_01_base = Planet Curacao
iw04_02_base = Montezuma Base

ku01_01_base = Planet New Tokyo
ku02_02_base = Battleship Myoko
ku02_04_base = Planet Junyo
ku03_01_base = Planet Kyushu
ku03_03_base = Battleship Nagumo
ku04_01_base = Planet Honshu
ku05_01_base = Battleship Matsumoto
ku06_01_base = Kyoto Base

li01_01_base = Planet Manhattan
li01_02_base = Planet Pittsburgh
li01_03_base = Battleship Missouri
li01_12_base = Buffalo Base
li01_13_base = Rochester Base
li02_01_base = Planet Los Angeles
li02_02_base = California Minor
li02_03_base = Battleship Yukon
li02_06_base = Alcatraz Depot
li03_01_base = Planet Denver
li03_02_base = Battleship Rio Grande
li04_01_base = Planet Houston
li04_03_base = Battleship Mississippi
li04_04_base = Beaumont Base
li05_01_base = Unknown (Guessing Prison Station Mitchell)

rh01_01_base = Planet New Berlin
rh02_01_base = Planet Hamburg
rh02_02_base = Battleship Westfalen
rh03_01_base = Planet Stuttgart
rh03_02_base = Planet Baden Baden
rh04_01_base = Planet Holstein
rh04_05_base = Bruchsal Base
rh05_04_base = Vogtland Base

st01_01_base = Planet Toledo

this one has all planets:

br01_01_base = Planet New London
br01_02_base = Southampton Shipyard
br01_03_base = Battleship Suffolk
br01_04_base = Waterloo Station
br01_05_base = Canterbury Station
br01_06_base = Thames Outpost
br01_07_base = Kensington Shipping Platform
br01_08_base = Trafalgar Base

br02_01_base = BPA Newgate
br02_02_base = Birmingham Station
br02_03_base = Sheffield Station
br02_04_base = Liverpool Border Station
br02_05_base = Kingston Border Station

br03_01_base = Planet Cambridge
br03_02_base = Cambridge Research Station
br03_03_base = Battleship Norfolk
br03_04_base = Cardiff Mining Facility

br04_01_base = Planet Leeds
br04_02_base = Stokes Mining Station
br04_03_base = Battleship York
br04_04_base = Glasgow Outpost
br04_05_base = LD-14
br04_06_base = Durham Border Station

br05_01_base = Battleship Hood
br05_02_base = Mining Station Glorious
br05_03_base = Graves Station
br05_04_base = Battleship Essex
br05_05_base = Arranmore Base

br06_01_base = Luxury Liner Shetland
br06_02_base = Aberdeen Border Station
br06_03_base = Islay Base
br06_04_base = Perth Station

bw01_01_base = Unknown (Crashes in Multiplayer when you launch)
bw01_02_base = Freeport 1
bw01_03_base = Rugen Station
bw01_04_base = Douglas Station
bw01_05_base = Baxter Research Station (Crashes in Multiplayer when you launch)

bw02_01_base = Cadiz Base
bw02_02_base = Ronneburg Base

bw03_01_base = Freistadt Base
bw03_02_base = Breisen Mining Facility
bw03_03_base = Elbich Mining Facility

bw04_01_base = Solarius Station
bw04_02_base = Freital Base

bw05_01_base = Gas Miner Naha
bw05_02_base = Helgoland Station
bw05_03_base = Yanagi Depot

bw06_01_base = Planet Kurile
bw06_02_base = Atka Research Station

bw07_01_base = Luxury Liner Hawaii
bw07_02_base = Gas Miner Ogashawa

bw08_01_base = Cali Base
bw08_02_base = Tau-31 Gate Construction Site
bw08_03_base = Java Station

bw09_01_base = Nago Station
bw09_02_base = Shinkaku Station
bw09_03_base = Freeport 6

bw10_01_base = Planet Harris
bw10_02_base = Holman Outpost

ew01_01_base = Freeport 10
ew01_02_base = Falkland Base

ew02_01_base = Ruiz Base

ew03_01_base = Leon Base
ew03_02_base = Freeport 5

ew04_01_base = Freeport 9

ew06_01_base = Planet Primus (Hehe, this is THE planet of the Apes)
ew06_02_base = Planet Gammu (Robot planet?)

hi01_01_base = Planet Malta

hi02_01_base = Planet Crete
hi02_02_base = Tripoli Shipyard

intro1_base = Space station from the main menu
intro2_base = Planet from the main menu
intro3_base = Floating rock things from the main menu

iw01_01_base = Pacifica Base
iw01_02_base = Freeport 2

iw02_01_base = Barrow Base
iw02_02_base = Dawson Base

iw03_01_base = Freeport 4
iw03_02_base = Mactan Base

iw04_01_base = Planet Curacao
iw04_02_base = Montezuma Base

iw05_01_base = Ames Research Station
iw05_02_base = Nome Base

iw06_01_base = Leiden Base
iw06_02_base = Padua Base

ku01_01_base = Planet New Tokyo
ku01_02_base = Narita Outpost
ku01_03_base = Yokohama Shipyard
ku01_04_base = Roppongi Station
ku01_05_base = Shinagawa Station
ku01_06_base = Shinjuku Station
ku01_07_base = Kabukicho Depot

ku02_01_base = Fuchu Prison
ku02_02_base = Battleship Myoko
ku02_03_base = Deshima Station
ku02_04_base = Planet Junyo
ku02_05_base = Ohashi Border Station

ku03_01_base = Planet Kyushu
ku03_02_base = Tsushima Depot
ku03_03_base = Battleship Nagumo
ku03_04_base = Nansei Research Complex
ku03_05_base = Kagoshima Depot

ku04_01_base = Planet Honshu
ku04_02_base = Osaka Storage Facility
ku04_03_base = Yukawa Shipyard
ku04_04_base = Kansai Research Station
ku04_05_base = Aomori Station
ku04_06_base = Akita Border Station

ku05_01_base = Battleship Matsumoto
ku05_02_base = Ainu Depot
ku05_03_base = Chugoku Gate Construction Site
ku05_04_base = Sapporo Station

ku06_01_base = Kyoto Base

ku07_01_base = Ryuku Base
ku07_02_base = Unknown (Possibly Tekagi’s Arch?)

li01_01_base = Planet Manhattan
li01_02_base = Planet Pittsburgh
li01_03_base = Battleship Missouri
li01_04_base = Unknown (Benford Station?)
li01_05_base = Unknown (I can’t even begin to guess)
li01_06_base = Trenton Outpost
li01_07_base = Norfolk Shipyard
li01_08_base = Newark Station
li01_09_base = West Point Military Academy
li01_10_base = Detroit Munitions
li01_11_base = Fort Bush
li01_12_base = Buffalo Base
li01_13_base = Rochester Base
li01_14_base = Baltimore Shipyard
li01_15_base = Battleship Osiris (Crashes in Multiplayer when you launch)

li02_01_base = Planet Los Angeles
li02_02_base = California Minor
li02_03_base = Battleship Yukon
li02_04_base = Willard Research Station
li02_05_base = San Diego Border Station
li02_06_base = Alcatraz Depot

li03_01_base = Planet Denver
li03_02_base = Battleship Rio Grande
li03_03_base = Ouray Base
li03_04_base = Pueblo Station

li04_01_base = Planet Houston
li04_02_base = LPI Huntsville
li04_03_base = Battleship Mississippi
li04_04_base = Beaumont Base
li04_05_base = LPI Sugarland
li04_06_base = Battleship Osiris (Crashes in Multiplayer when you launch)

li05_01_base = Unknown (Guessing Prison Station Mitchell)

rh01_01_base = Planet New Berlin
rh01_02_base = Oder Shipyard
rh01_03_base = The Ring
rh01_04_base = Bonn Station
rh01_05_base = Dortmund Station
rh01_06_base = Essen Station
rh01_07_base = Brandenburg Border Station
rh01_08_base = Kreuzberg Depot

rh02_01_base = Planet Hamburg
rh02_02_base = Battleship Westfalen
rh02_03_base = Vierlande Prison
rh02_04_base = Alster Shipyard
rh02_05_base = Altona Station
rh02_06_base = Lubeck Border Station
rh02_07_base = Battleship Osiris (Crashes in Multiplayer when you launch)

rh03_01_base = Planet Stuttgart
rh03_02_base = Planet Baden Baden
rh03_03_base = Freiburg Station
rh03_04_base = Ulm Border Station
rh03_05_base = Konstanz Border Station
rh03_06_base = Darmstadt Depot

rh04_01_base = Planet Holstein
rh04_02_base = Mainz Storage Facility
rh04_03_base = Mannheim Station
rh04_04_base = Fulda Border Station
rh04_05_base = Bruchsal Base

rh05_01_base = Leipzig Station
rh05_02_base = Bautzen Station
rh05_03_base = Pirna Border station
rh05_04_base = Vogtland Base

st01_01_base = Planet Toledo
st01_02_base = Battleship Osiris (Crashes in Multiplayer when you launch)

st02_01_base = Battleship Osiris (Crashes in Multiplayer when you launch)

st03b_01_base = No idea