Commit f092b0c9 by Demo User

update installation files for debian/systemd based beaglebone images

parent 7657728c
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
uname_r=4.1.1-bone10
dtb=am335x-boneblack-emmc-overlay.dtb
cmdline=quiet
#In the event of edid real failures, uncomment this next line:
#cmdline=quiet video=HDMI-A-1:1024x768@60e
##Example
#cape_disable=capemgr.disable_partno=
cape_enable=capemgr.enable_partno=BB-I2C1
##enable BBB: eMMC Flasher:
##cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
##uuid=7afe779a-a412-4b1c-a61b-6795212d02a2
#uuid=9d4d646f-04e1-4b2e-96b7-c76b03763d3f
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
uuid=7e1560de-aa5e-46a2-b593-12a5daea55b7
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
uname_r=4.1.15-ti-rt-r43
#uuid=
#dtb=
##BeagleBone Black/Green dtb's for v4.1.x (BeagleBone White just works..)
##BeagleBone Black: HDMI (Audio/Video) disabled:
dtb=am335x-boneblack-emmc-overlay.dtb
##BeagleBone Black: eMMC disabled:
#dtb=am335x-boneblack-hdmi-overlay.dtb
##BeagleBone Black: HDMI Audio/eMMC disabled:
#dtb=am335x-boneblack-nhdmi-overlay.dtb
##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled:
#dtb=am335x-boneblack-overlay.dtb
##BeagleBone Black: wl1835
#dtb=am335x-boneblack-wl1835mod.dtb
##BeagleBone Green: eMMC disabled
#dtb=am335x-bonegreen-overlay.dtb
cmdline=coherent_pool=1M quiet cape_universal=enable
#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M quiet cape_universal=enable video=HDMI-A-1:1024x768@60e
##Example v3.8.x
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=
##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
#cape_enable=bone_capemgr.enable_partno=
##Disable HDMI/eMMC (v3.8.x)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G
##Disable HDMI (v3.8.x)
cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
##Disable eMMC (v3.8.x)
#cape_disable=capemgr.disable_partno=BB-BONE-EMMC-2G
##Audio Cape (needs HDMI Audio disabled) (v3.8.x)
#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI
#cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02
##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
# This the default chrony.conf file for the Debian chrony package. After
# editing this file use the command 'invoke-rc.d chrony restart' to make
# your changes take effect. John Hasler <jhasler@debian.org> 1998-2008
# See www.pool.ntp.org for an explanation of these servers. Please
# consider joining the project if possible. If you can't or don't want to
# use these servers I suggest that you try your ISP's nameservers. We mark
# the servers 'offline' so that chronyd won't try to connect when the link
# is down. Scripts in /etc/ppp/ip-up.d and /etc/ppp/ip-down.d use chronyc
# commands to switch it on when a dialup link comes up and off when it goes
# down. Code in /etc/init.d/chrony attempts to determine whether or not
# the link is up at boot time and set the online status accordingly. If
# you have an always-on connection such as cable omit the 'offline'
# directive and chronyd will default to online.
#
# Note that if Chrony tries to go "online" and dns lookup of the servers
# fails they will be discarded. Thus under some circumstances it is
# better to use IP numbers than host names.
#server 0.debian.pool.ntp.org offline minpoll 8
#server 1.debian.pool.ntp.org offline minpoll 8
#server 2.debian.pool.ntp.org offline minpoll 8
#server 3.debian.pool.ntp.org offline minpoll 8
server create.robotics.tu-berlin.de minpoll 0 maxpoll 5 maxdelay .05
#if offset is greater than 1 second in the first 100 updates, make a step:
makestep 1 100
# Look here for the admin password needed for chronyc. The initial
# password is generated by a random process at install time. You may
# change it if you wish.
keyfile /etc/chrony/chrony.keys
# Set runtime command key. Note that if you change the key (not the
# password) to anything other than 1 you will need to edit
# /etc/ppp/ip-up.d/chrony, /etc/ppp/ip-down.d/chrony, /etc/init.d/chrony
# and /etc/cron.weekly/chrony as these scripts use it to get the password.
commandkey 1
# I moved the driftfile to /var/lib/chrony to comply with the Debian
# filesystem standard.
driftfile /var/lib/chrony/chrony.drift
# Comment this line out to turn off logging.
log tracking measurements statistics
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# Dump measurements when daemon exits.
dumponexit
# Specify directory for dumping measurements.
dumpdir /var/lib/chrony
# Let computer be a server when it is unsynchronised.
local stratum 10
# This directive forces `chronyd' to send a message to syslog if it
# makes a system clock adjustment larger than a threshold value in seconds.
logchange 0.5
# This directive defines an email address to which mail should be sent
# if chronyd applies a correction exceeding a particular threshold to the
# system clock.
# mailonchange root@localhost 0.5
# This directive tells chrony to regulate the real-time clock and tells it
# Where to store related data. It may not work on some newer motherboards
# that use the HPET real-time clock. It requires enhanced real-time
# support in the kernel. I've commented it out because with certain
# combinations of motherboard and kernel it is reported to cause lockups.
# rtcfile /var/lib/chrony/chrony.rtc
# If the last line of this file reads 'rtconutc' chrony will assume that
# the CMOS clock is on UTC (GMT). If it reads '# rtconutc' or is absent
# chrony will assume local time. The line (if any) was written by the
# chrony postinst based on what it found in /etc/default/rcS. You may
# change it if necessary.
# rtconutc
[Unit]
Description=RBOLab's Airserver for Pneumaticbox hardware
#After=syslog.target
[Service]
Type=simple
ExecStart=/usr/local/bin/airserver
[Install]
WantedBy=multi-user.target
......@@ -87,7 +87,11 @@ sudo python setup.py install
cd git/pneumaticbox-airserver
make && sudo make install
#install upstart scripts to start the airserver automatically (for ubuntu < 15.04)
#install /etc files to:
# start the airserver automatically (for ubuntu < 15.04)
# configure the chrony timeserver for RBO Lab
# have default hw configuration
# fix some RT-related issues via rc.local
cp files/etc/init/* /etc/init
......
......@@ -29,7 +29,7 @@ BUILDDIR=build
EXEC=airserver
#DEPLOYMENT_TARGET=raphael@beagle #convenience to copy the resulting binary to the target system
.PHONY: all install clean libs
.PHONY: all install clean libs install_systemconfigurationfiles
all:
mkdir -p $(BUILDDIR)
......@@ -50,7 +50,7 @@ $(EXEC): $(OBJECTS) $(BBBIO_LIB)/libBBBio.a $(GLOBALDEPS)
clean:
rm -r ./$(BUILDDIR)/*
install: all install_upstart
install: all install_systemd
install_systemconfigurationfiles:
sudo cp -r files/etc/ /etc/
......@@ -68,6 +68,7 @@ install_systemd:
sudo chown root:root $(BUILDDIR)/$(EXEC)
sudo chmod u+s $(BUILDDIR)/$(EXEC)
sudo cp $(BUILDDIR)/$(EXEC) /usr/local/bin
sudo systemctl enable airserver.service
sudo systemctl start airserver.service
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment