Compare commits
22 Commits
bug/kmod-m
...
feature/rp
Author | SHA1 | Date | |
---|---|---|---|
|
20375315ba | ||
|
515404302a | ||
|
49cb586697 | ||
|
f8e33e9f1e | ||
|
b8808d7ff1 | ||
|
d2e92a09c6 | ||
|
0ef33de770 | ||
|
4316b4c9f7 | ||
|
9015c36df9 | ||
|
3e002e3ec5 | ||
|
b15293ee66 | ||
|
e2da8b7586 | ||
|
0cf9ba8b9c | ||
|
5967c0b13f | ||
|
459c14e7f4 | ||
|
d2a0d5208c | ||
|
644b98c753 | ||
|
fcad38b6d7 | ||
|
853e7ea553 | ||
|
b0633cd82c | ||
|
7e8e9cbad0 | ||
|
19855db2da |
@@ -27,12 +27,24 @@ MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
# Update distro.
|
# Update distro.
|
||||||
|
RUN echo "deb http://ftp.us.debian.org/debian testing non-free contrib" >> /etc/apt/sources.list
|
||||||
|
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial main restricted universe multiverse" >> /etc/apt/sources.list
|
||||||
|
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial-updates main restricted universe multiverse" >> /etc/apt/sources.list
|
||||||
|
RUN echo "deb http://mirrors.fe.up.pt/ubuntu xenial-backports main restricted universe multiverse" >> /etc/apt/sources.list
|
||||||
|
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
|
||||||
RUN apt-get update -y
|
RUN apt-get update -y
|
||||||
RUN apt-get dist-upgrade -y
|
RUN apt-get dist-upgrade -y
|
||||||
|
RUN apt-get install -y apt-utils
|
||||||
|
RUN apt-get install -y g++-5
|
||||||
|
RUN apt-get install -y gcc-5
|
||||||
RUN apt-get install -y wget
|
RUN apt-get install -y wget
|
||||||
RUN apt-get install -y bzip2
|
RUN apt-get install -y bzip2
|
||||||
RUN apt-get install -y git
|
RUN apt-get install -y git
|
||||||
RUN apt-get install -y g++-multilib
|
RUN apt-get install -y g++-multilib
|
||||||
RUN apt-get install -y cmake
|
|
||||||
RUN apt-get install -y file
|
RUN apt-get install -y file
|
||||||
|
RUN apt-get install -y vim
|
||||||
|
RUN apt-get install -y nasm
|
||||||
|
RUN apt-get install -y build-essential
|
||||||
|
RUN apt-get install -y make
|
||||||
RUN apt-get install -y kmod
|
RUN apt-get install -y kmod
|
||||||
|
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
|
||||||
|
@@ -29,3 +29,15 @@ all:
|
|||||||
|
|
||||||
shell:
|
shell:
|
||||||
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
|
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@echo "* Stopping docker service..."
|
||||||
|
@sudo systemctl stop docker
|
||||||
|
@echo "* Cleaning docker service..."
|
||||||
|
@sudo rm -rf /var/lib/docker
|
||||||
|
@echo "* Starting docker service..."
|
||||||
|
@sudo systemctl start docker
|
||||||
|
@echo "* Done."
|
||||||
|
|
||||||
|
delete_img:
|
||||||
|
@sudo docker system prune -a
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
# Config: GLUED version.
|
# Config: GLUED version.
|
||||||
cfg_glued_version='2016.05'
|
cfg_glued_version='2017.11'
|
||||||
# Config: GLUED vendor.
|
# Config: GLUED vendor.
|
||||||
cfg_glued_vendor='lsts'
|
cfg_glued_vendor='lsts'
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ download()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# First try LSTS mirror.
|
# First try LSTS mirror.
|
||||||
lsts_url="http://lsts.pt/glued/$(basename $u)"
|
lsts_url="https://lsts.pt/glued/$(basename $u)"
|
||||||
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
|
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
# Then try OceanScan-MST mirror.
|
# Then try OceanScan-MST mirror.
|
||||||
|
@@ -128,12 +128,14 @@ build()
|
|||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
modules || return 1
|
modules || return 1
|
||||||
|
|
||||||
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
uImage || return 1
|
uImage || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -142,6 +144,7 @@ build()
|
|||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
zImage || return 1
|
zImage || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -150,6 +153,7 @@ build()
|
|||||||
$cmd_make \
|
$cmd_make \
|
||||||
CROSS_COMPILE=$cfg_target_canonical- \
|
CROSS_COMPILE=$cfg_target_canonical- \
|
||||||
ARCH=$cfg_target_linux \
|
ARCH=$cfg_target_linux \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
dtbs || return 1
|
dtbs || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -194,12 +198,21 @@ target_install()
|
|||||||
ARCH="$cfg_target_linux" \
|
ARCH="$cfg_target_linux" \
|
||||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||||
KBUILD_VERBOSE=1 \
|
KBUILD_VERBOSE=1 \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
modules_install
|
modules_install
|
||||||
|
|
||||||
$cmd_make \
|
echo $cfg_sys_family
|
||||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
if [[ $cfg_sys_family == *rpi* ]]; then
|
||||||
ARCH="$cfg_target_linux" \
|
echo "RPI family, no need of firmware_install"
|
||||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
sleep 2
|
||||||
KBUILD_VERBOSE=1 \
|
else
|
||||||
firmware_install
|
sleep 2
|
||||||
|
$cmd_make \
|
||||||
|
CROSS_COMPILE="$cfg_target_canonical-" \
|
||||||
|
ARCH="$cfg_target_linux" \
|
||||||
|
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||||
|
KBUILD_VERBOSE=1 \
|
||||||
|
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
|
||||||
|
firmware_install
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'4.4_2017-01-27'
|
'4.14_2018-08-17'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -12,7 +12,7 @@ url=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'f31d48a9d2c93509b35e750be489b44c'
|
'074e40d83f4f4a99449acb08f8ddcbec'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dir="rpi-linux-rpi-linux-$version"
|
build_dir="rpi-linux-rpi-linux-$version"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
version=\
|
version=\
|
||||||
(
|
(
|
||||||
'2017-02-02'
|
'2018-08-17'
|
||||||
)
|
)
|
||||||
|
|
||||||
url=\
|
url=\
|
||||||
@@ -16,7 +16,7 @@ maintainer=\
|
|||||||
|
|
||||||
md5=\
|
md5=\
|
||||||
(
|
(
|
||||||
'eb42664fce4d73f167064e697dfacb76'
|
'2b06b9704616ee2a66829281bd480ff3'
|
||||||
)
|
)
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
|
@@ -1 +1 @@
|
|||||||
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet
|
dwc_otg.lpm_enable=0 console=ttyAMA0,115200,8n1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet
|
||||||
|
File diff suppressed because it is too large
Load Diff
6
systems/lauv-aux-rpi/lauv-blue.cfg
Normal file
6
systems/lauv-aux-rpi/lauv-blue.cfg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
cfg_hostname='lauv-blue'
|
||||||
|
cfg_eth_ext_ip='10.0.2.55'
|
||||||
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
|
cfg_eth_ext_gw='10.0.0.1'
|
||||||
|
cfg_ptpd_interface='eth0'
|
||||||
|
cfg_services1=''
|
2
systems/lauv-aux-rpi/lauv-nemo-1-aux.cfg
Normal file
2
systems/lauv-aux-rpi/lauv-nemo-1-aux.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='lauv-nemo-1-aux'
|
||||||
|
cfg_eth_ext_ip='10.0.10.63'
|
@@ -6,5 +6,5 @@ cfg_ptpd_interface='eth0'
|
|||||||
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
||||||
cfg_services1=''
|
cfg_services1=''
|
||||||
cfg_services2='trex'
|
cfg_services2='trex'
|
||||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost europa'
|
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost'
|
||||||
|
|
||||||
|
@@ -6,5 +6,5 @@ cfg_ptpd_interface='eth0'
|
|||||||
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
||||||
cfg_services1=''
|
cfg_services1=''
|
||||||
cfg_services2='trex'
|
cfg_services2='trex'
|
||||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost europa'
|
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost'
|
||||||
|
|
||||||
|
10
systems/lauv-aux-rpi/lauv-xplore-3-aux.cfg
Normal file
10
systems/lauv-aux-rpi/lauv-xplore-3-aux.cfg
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
cfg_hostname='lauv-xplore-3-aux'
|
||||||
|
cfg_eth_ext_ip='10.0.10.143'
|
||||||
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
|
cfg_eth_ext_gw='10.0.0.1'
|
||||||
|
cfg_ptpd_interface='eth0'
|
||||||
|
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
||||||
|
cfg_services1=''
|
||||||
|
cfg_services2='trex'
|
||||||
|
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost'
|
||||||
|
|
10
systems/lauv-aux-rpi/lauv-xplore-4-aux.cfg
Normal file
10
systems/lauv-aux-rpi/lauv-xplore-4-aux.cfg
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
cfg_hostname='lauv-xplore-4-aux'
|
||||||
|
cfg_eth_ext_ip='10.0.10.153'
|
||||||
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
|
cfg_eth_ext_gw='10.0.0.1'
|
||||||
|
cfg_ptpd_interface='eth0'
|
||||||
|
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
||||||
|
cfg_services1=''
|
||||||
|
cfg_services2='trex'
|
||||||
|
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost'
|
||||||
|
|
10
systems/lauv-aux-rpi/lauv-xplore-5-aux.cfg
Normal file
10
systems/lauv-aux-rpi/lauv-xplore-5-aux.cfg
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
cfg_hostname='lauv-xplore-5-aux'
|
||||||
|
cfg_eth_ext_ip='10.0.10.163'
|
||||||
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
|
cfg_eth_ext_gw='10.0.0.1'
|
||||||
|
cfg_ptpd_interface='eth0'
|
||||||
|
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
||||||
|
cfg_services1=''
|
||||||
|
cfg_services2='trex'
|
||||||
|
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost'
|
||||||
|
|
2
systems/lctr-a6xx/buv-petinga-1.cfg
Normal file
2
systems/lctr-a6xx/buv-petinga-1.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='buv-petinga-1'
|
||||||
|
cfg_eth_ext_ip='10.0.10.170'
|
2
systems/lctr-a6xx/lauv-nemo-1.cfg
Normal file
2
systems/lctr-a6xx/lauv-nemo-1.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='lauv-nemo-1'
|
||||||
|
cfg_eth_ext_ip='10.0.10.60'
|
2
systems/lctr-a6xx/lauv-xplore-3.cfg
Normal file
2
systems/lctr-a6xx/lauv-xplore-3.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='lauv-xplore-3'
|
||||||
|
cfg_eth_ext_ip='10.0.10.140'
|
2
systems/lctr-a6xx/lauv-xplore-4.cfg
Normal file
2
systems/lctr-a6xx/lauv-xplore-4.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='lauv-xplore-4'
|
||||||
|
cfg_eth_ext_ip='10.0.10.150'
|
2
systems/lctr-a6xx/lauv-xplore-5.cfg
Normal file
2
systems/lctr-a6xx/lauv-xplore-5.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='lauv-xplore-5'
|
||||||
|
cfg_eth_ext_ip='10.0.10.160'
|
2
systems/lctr-a9xx/manta-rugged-2.cfg
Normal file
2
systems/lctr-a9xx/manta-rugged-2.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
cfg_hostname='manta-rugged-2'
|
||||||
|
cfg_eth_ext_ip='10.0.30.25'
|
File diff suppressed because it is too large
Load Diff
4
systems/lctr-rpi/titan.cfg
Normal file
4
systems/lctr-rpi/titan.cfg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
cfg_hostname='titan'
|
||||||
|
cfg_eth_ext_ip='10.0.20.150'
|
||||||
|
cfg_packages="$cfg_packages libjpeg-turbo v4l-utils uv4l libav"
|
||||||
|
cfg_modules="$cfg_modules ftdi_sio"
|
9
systems/lctr-rpi/x8-06-aux.cfg
Normal file
9
systems/lctr-rpi/x8-06-aux.cfg
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
cfg_hostname='x8-06-aux'
|
||||||
|
cfg_eth_ext_ip='10.0.20.109'
|
||||||
|
cfg_services1='lauv-storage-server'
|
||||||
|
cfg_packages="$cfg_packages opencv raspicam exiv2 libav uswitch nfs-utils"
|
||||||
|
cfg_modules="$cfg_modules ftdi_sio"
|
||||||
|
cfg_target_linux_dtb='arch/arm/boot/dts/am335x-lauv-aux.dtb'
|
||||||
|
cfg_ptpd_interface='eth0'
|
||||||
|
cfg_terminal='ttyAMA0'
|
||||||
|
cfg_lauv_storage_dir='/opt/lsts/dune/log'
|
Reference in New Issue
Block a user