Compare commits
7 Commits
project/fi
...
feature/rp
Author | SHA1 | Date | |
---|---|---|---|
|
20375315ba | ||
|
515404302a | ||
|
49cb586697 | ||
|
f8e33e9f1e | ||
|
b8808d7ff1 | ||
|
d2e92a09c6 | ||
|
0ef33de770 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,4 +11,3 @@
|
|||||||
/ntnu-b2xx
|
/ntnu-b2xx
|
||||||
/stamp9g20
|
/stamp9g20
|
||||||
/lctr-rpi
|
/lctr-rpi
|
||||||
build.bash
|
|
||||||
|
@@ -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
|
||||||
|
@@ -23,10 +23,21 @@
|
|||||||
TAG := glued
|
TAG := glued
|
||||||
VERSION := 2016.05.0
|
VERSION := 2016.05.0
|
||||||
VOLUME := $(CURDIR)/..
|
VOLUME := $(CURDIR)/..
|
||||||
DNS := 8.8.8.8
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
docker build -t $(TAG):$(VERSION) .
|
docker build -t $(TAG):$(VERSION) .
|
||||||
|
|
||||||
shell:
|
shell:
|
||||||
docker run -w $(VOLUME) --dns=$(DNS) -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
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
@@ -72,7 +72,7 @@ download()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# First try LSTS mirror.
|
# First try LSTS mirror.
|
||||||
lsts_url="https://www.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.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -37,8 +37,7 @@ configure()
|
|||||||
{
|
{
|
||||||
cd "../boost_$vendor_version" &&
|
cd "../boost_$vendor_version" &&
|
||||||
./bootstrap.sh \
|
./bootstrap.sh \
|
||||||
--with-icu="$cfg_dir_toolchain_sysroot/usr" \
|
--with-icu="$cfg_dir_toolchain_sysroot/usr"
|
||||||
--with-libraries="regex,filesystem,system,thread"
|
|
||||||
|
|
||||||
GXX_VER=$(${cmd_target_cxx} -dumpversion)
|
GXX_VER=$(${cmd_target_cxx} -dumpversion)
|
||||||
echo "using gcc : ${GXX_VER} : ${cmd_target_cxx} : <cxxflags>\"-pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ${cfg_target_gcc_flags} \" <linkflags>\"\" ;" > user-config.jam
|
echo "using gcc : ${GXX_VER} : ${cmd_target_cxx} : <cxxflags>\"-pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ${cfg_target_gcc_flags} \" <linkflags>\"\" ;" > user-config.jam
|
||||||
|
@@ -35,11 +35,6 @@ build()
|
|||||||
host_install()
|
host_install()
|
||||||
{
|
{
|
||||||
$cmd_make install
|
$cmd_make install
|
||||||
# make available for cross compilation
|
|
||||||
for f in "${cfg_dir_toolchain_sysroot}/usr/lib/"libcurl*so*; do
|
|
||||||
echo "Doing $f"
|
|
||||||
ln -s -f "$f" "${cfg_dir_toolchain}/lib"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
|
@@ -1,37 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
"10.96"
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"https://lsts.pt/glued/exiftoolBin-${version}.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
"71d52bf2d75f023b844dd8c9100daaff"
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
requires=\
|
|
||||||
(
|
|
||||||
'perl/default'
|
|
||||||
)
|
|
||||||
|
|
||||||
post_unpack()
|
|
||||||
{
|
|
||||||
$cmd_cp -r ../exiftoolBin-${version}/* .
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
$cmd_cp -rv usr/* $cfg_dir_toolchain_sysroot/usr/
|
|
||||||
$cmd_cp -rv usr/* $cfg_dir_rootfs/usr/
|
|
||||||
$cmd_cp -rv usr/local/bin/* $cfg_dir_rootfs/usr/bin/
|
|
||||||
}
|
|
||||||
|
|
@@ -1,45 +0,0 @@
|
|||||||
mount_path()
|
|
||||||
{
|
|
||||||
rpath="$cfg_storage_host:$1"
|
|
||||||
lpath="$1"
|
|
||||||
|
|
||||||
mkdir -p "$lpath"
|
|
||||||
|
|
||||||
mount -t nfs -o wsize=32768 "$rpath" "$lpath"
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "* Mounted '$rpath' in '$lpath'"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
start()
|
|
||||||
{
|
|
||||||
/usr/bin/rpcbind
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpcbind."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
for path in $cfg_storage_paths; do
|
|
||||||
n=0; while [ $n -lt "$cfg_storage_timeout" ]; do
|
|
||||||
mount_path "$path"
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
let n++
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
killall rpcbind
|
|
||||||
|
|
||||||
for path in $cfg_storage_paths; do
|
|
||||||
umount "$path"
|
|
||||||
done
|
|
||||||
}
|
|
@@ -1,76 +0,0 @@
|
|||||||
start_nfs_server()
|
|
||||||
{
|
|
||||||
echo "* Creating NFS administrative folder..."
|
|
||||||
mkdir -p /var/lib/nfs
|
|
||||||
if ! [ -d /var/lib/nfs ]; then
|
|
||||||
echo "ERROR: failed to create data folder."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "* Launching rpcbind..."
|
|
||||||
/usr/bin/rpcbind
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpcbind."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "* Launching rpc.statd..."
|
|
||||||
/usr/bin/rpc.statd
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpc.statd."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "* Launching rpc.nfsd..."
|
|
||||||
/usr/bin/rpc.nfsd
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpc.nfsd."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "* Creating NFS filesystem table..."
|
|
||||||
/usr/bin/exportfs -ra
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to create filesystem table."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "* Launching rpc.mountd..."
|
|
||||||
/usr/bin/rpc.mountd
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpc.mountd."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "* Exporting NFS filesystems..."
|
|
||||||
/usr/bin/exportfs \
|
|
||||||
-o rw,async,no_root_squash,no_subtree_check \
|
|
||||||
10.0.0.0/16:"$cfg_storage_dir"
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to export filesystems."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
stop_nfs_server()
|
|
||||||
{
|
|
||||||
echo "* Unexporting NFS filesystems..."
|
|
||||||
exportfs -au 2> /dev/null
|
|
||||||
echo "* Terminating rpc.mountd..."
|
|
||||||
killall rpc.mountd 2> /dev/null
|
|
||||||
echo "* Terminating rpc.statd..."
|
|
||||||
killall rpc.statd 2> /dev/null
|
|
||||||
echo "* Terminating rpc.bind..."
|
|
||||||
killall rpcbind 2> /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
start()
|
|
||||||
{
|
|
||||||
mkdir -p "$cfg_storage_dir"
|
|
||||||
start_nfs_server
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
stop_nfs_server
|
|
||||||
}
|
|
@@ -1,49 +0,0 @@
|
|||||||
version=\
|
|
||||||
(
|
|
||||||
'2.3.2'
|
|
||||||
)
|
|
||||||
|
|
||||||
url=\
|
|
||||||
(
|
|
||||||
"http://download.osgeo.org/gdal/2.3.2/gdal-2.3.2.tar.gz"
|
|
||||||
)
|
|
||||||
|
|
||||||
md5=\
|
|
||||||
(
|
|
||||||
'221e4bfe3e8e9443fd33f8fe46f8bf60'
|
|
||||||
)
|
|
||||||
|
|
||||||
maintainer=\
|
|
||||||
(
|
|
||||||
'Tiago Sá Marques <tsmarques@lsts.pt>'
|
|
||||||
)
|
|
||||||
|
|
||||||
configure()
|
|
||||||
{
|
|
||||||
"./configure" \
|
|
||||||
--prefix="$cfg_dir_toolchain_sysroot/usr" \
|
|
||||||
--target="$cfg_target_canonical" \
|
|
||||||
--host="$cfg_target_canonical" \
|
|
||||||
--build="$cfg_host_canonical" \
|
|
||||||
--includedir="$cfg_dir_toolchain_sysroot/usr/include/gdal" \
|
|
||||||
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
|
|
||||||
--with-sysroot="$cfg_dir_toolchain_sysroot"
|
|
||||||
}
|
|
||||||
|
|
||||||
build()
|
|
||||||
{
|
|
||||||
$cmd_make
|
|
||||||
}
|
|
||||||
|
|
||||||
host_install()
|
|
||||||
{
|
|
||||||
$cmd_make install
|
|
||||||
}
|
|
||||||
|
|
||||||
target_install()
|
|
||||||
{
|
|
||||||
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/"libgdal*so* $cfg_dir_rootfs/lib
|
|
||||||
for f in "$cfg_dir_rootfs/lib/"libgdal*so; do
|
|
||||||
$cmd_target_strip "$f"
|
|
||||||
done
|
|
||||||
}
|
|
@@ -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"
|
||||||
|
@@ -63,11 +63,6 @@ host_install()
|
|||||||
{
|
{
|
||||||
cd ${pkg_build_dir}/../build &&
|
cd ${pkg_build_dir}/../build &&
|
||||||
$cmd_make install
|
$cmd_make install
|
||||||
|
|
||||||
# make available for cross compilation
|
|
||||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libopencv*so*; do
|
|
||||||
ln -s -f "$f" "$cfg_dir_toolchain/lib"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target_install()
|
target_install()
|
||||||
|
@@ -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
@@ -1,3 +1,2 @@
|
|||||||
cfg_hostname='lauv-nemo-1-aux'
|
cfg_hostname='lauv-nemo-1-aux'
|
||||||
cfg_eth_ext_ip='10.0.10.63'
|
cfg_eth_ext_ip='10.0.10.63'
|
||||||
cfg_packages="$cfg_packages boost"
|
|
||||||
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='geode-testbed'
|
|
||||||
cfg_eth_ext_ip='10.0.200.64'
|
|
@@ -1,2 +0,0 @@
|
|||||||
cfg_hostname='manta-sabuvis'
|
|
||||||
cfg_eth_ext_ip='10.0.30.26'
|
|
@@ -702,7 +702,7 @@ CONFIG_HAVE_NET_DSA=y
|
|||||||
# CONFIG_IEEE802154 is not set
|
# CONFIG_IEEE802154 is not set
|
||||||
# CONFIG_NET_SCHED is not set
|
# CONFIG_NET_SCHED is not set
|
||||||
# CONFIG_DCB is not set
|
# CONFIG_DCB is not set
|
||||||
CONFIG_DNS_RESOLVER=y
|
# CONFIG_DNS_RESOLVER is not set
|
||||||
# CONFIG_BATMAN_ADV is not set
|
# CONFIG_BATMAN_ADV is not set
|
||||||
# CONFIG_OPENVSWITCH is not set
|
# CONFIG_OPENVSWITCH is not set
|
||||||
# CONFIG_VSOCKETS is not set
|
# CONFIG_VSOCKETS is not set
|
||||||
@@ -2423,12 +2423,7 @@ CONFIG_FANOTIFY=y
|
|||||||
#
|
#
|
||||||
# Caches
|
# Caches
|
||||||
#
|
#
|
||||||
CONFIG_FSCACHE=y
|
# CONFIG_FSCACHE is not set
|
||||||
# CONFIG_FSCACHE_STATS is not set
|
|
||||||
# CONFIG_FSCACHE_HISTOGRAM is not set
|
|
||||||
# CONFIG_FSCACHE_DEBUG is not set
|
|
||||||
# CONFIG_FSCACHE_OBJECT_LIST is not set
|
|
||||||
# CONFIG_CACHEFILES is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# CD-ROM/DVD Filesystems
|
# CD-ROM/DVD Filesystems
|
||||||
@@ -2463,39 +2458,21 @@ CONFIG_CONFIGFS_FS=y
|
|||||||
# CONFIG_MISC_FILESYSTEMS is not set
|
# CONFIG_MISC_FILESYSTEMS is not set
|
||||||
CONFIG_NETWORK_FILESYSTEMS=y
|
CONFIG_NETWORK_FILESYSTEMS=y
|
||||||
CONFIG_NFS_FS=y
|
CONFIG_NFS_FS=y
|
||||||
CONFIG_NFS_V2=y
|
# CONFIG_NFS_V2 is not set
|
||||||
CONFIG_NFS_V3=y
|
CONFIG_NFS_V3=y
|
||||||
# CONFIG_NFS_V3_ACL is not set
|
# CONFIG_NFS_V3_ACL is not set
|
||||||
# CONFIG_NFS_V4 is not set
|
# CONFIG_NFS_V4 is not set
|
||||||
# CONFIG_NFS_SWAP is not set
|
# CONFIG_NFS_SWAP is not set
|
||||||
CONFIG_ROOT_NFS=y
|
CONFIG_ROOT_NFS=y
|
||||||
# CONFIG_NFS_FSCACHE is not set
|
# CONFIG_NFSD is not set
|
||||||
CONFIG_NFS_DEBUG=y
|
|
||||||
CONFIG_NFSD=y
|
|
||||||
CONFIG_NFSD_V3=y
|
|
||||||
# CONFIG_NFSD_V3_ACL is not set
|
|
||||||
# CONFIG_NFSD_V4 is not set
|
|
||||||
CONFIG_GRACE_PERIOD=y
|
CONFIG_GRACE_PERIOD=y
|
||||||
CONFIG_LOCKD=y
|
CONFIG_LOCKD=y
|
||||||
CONFIG_LOCKD_V4=y
|
CONFIG_LOCKD_V4=y
|
||||||
CONFIG_NFS_COMMON=y
|
CONFIG_NFS_COMMON=y
|
||||||
CONFIG_SUNRPC=y
|
CONFIG_SUNRPC=y
|
||||||
CONFIG_SUNRPC_DEBUG=y
|
# CONFIG_SUNRPC_DEBUG is not set
|
||||||
# CONFIG_CEPH_FS is not set
|
# CONFIG_CEPH_FS is not set
|
||||||
CONFIG_CIFS=y
|
# CONFIG_CIFS is not set
|
||||||
CONFIG_CIFS_STATS=y
|
|
||||||
# CONFIG_CIFS_STATS2 is not set
|
|
||||||
# CONFIG_CIFS_WEAK_PW_HASH is not set
|
|
||||||
# CONFIG_CIFS_UPCALL is not set
|
|
||||||
CONFIG_CIFS_XATTR=y
|
|
||||||
CONFIG_CIFS_POSIX=y
|
|
||||||
CONFIG_CIFS_ACL=y
|
|
||||||
CONFIG_CIFS_DEBUG=y
|
|
||||||
# CONFIG_CIFS_DEBUG2 is not set
|
|
||||||
CONFIG_CIFS_DFS_UPCALL=y
|
|
||||||
CONFIG_CIFS_SMB2=y
|
|
||||||
# CONFIG_CIFS_SMB311 is not set
|
|
||||||
# CONFIG_CIFS_FSCACHE is not set
|
|
||||||
# CONFIG_NCP_FS is not set
|
# CONFIG_NCP_FS is not set
|
||||||
# CONFIG_CODA_FS is not set
|
# CONFIG_CODA_FS is not set
|
||||||
# CONFIG_AFS_FS is not set
|
# CONFIG_AFS_FS is not set
|
||||||
@@ -2771,7 +2748,7 @@ CONFIG_CRYPTO_ECB=y
|
|||||||
#
|
#
|
||||||
# Hash modes
|
# Hash modes
|
||||||
#
|
#
|
||||||
CONFIG_CRYPTO_CMAC=y
|
# CONFIG_CRYPTO_CMAC is not set
|
||||||
CONFIG_CRYPTO_HMAC=y
|
CONFIG_CRYPTO_HMAC=y
|
||||||
# CONFIG_CRYPTO_XCBC is not set
|
# CONFIG_CRYPTO_XCBC is not set
|
||||||
# CONFIG_CRYPTO_VMAC is not set
|
# CONFIG_CRYPTO_VMAC is not set
|
||||||
@@ -2784,7 +2761,7 @@ CONFIG_CRYPTO_CRC32=m
|
|||||||
CONFIG_CRYPTO_CRCT10DIF=y
|
CONFIG_CRYPTO_CRCT10DIF=y
|
||||||
# CONFIG_CRYPTO_GHASH is not set
|
# CONFIG_CRYPTO_GHASH is not set
|
||||||
# CONFIG_CRYPTO_POLY1305 is not set
|
# CONFIG_CRYPTO_POLY1305 is not set
|
||||||
CONFIG_CRYPTO_MD4=y
|
# CONFIG_CRYPTO_MD4 is not set
|
||||||
CONFIG_CRYPTO_MD5=y
|
CONFIG_CRYPTO_MD5=y
|
||||||
CONFIG_CRYPTO_MICHAEL_MIC=y
|
CONFIG_CRYPTO_MICHAEL_MIC=y
|
||||||
# CONFIG_CRYPTO_RMD128 is not set
|
# CONFIG_CRYPTO_RMD128 is not set
|
||||||
@@ -2807,7 +2784,7 @@ CONFIG_CRYPTO_ARC4=y
|
|||||||
# CONFIG_CRYPTO_CAMELLIA is not set
|
# CONFIG_CRYPTO_CAMELLIA is not set
|
||||||
# CONFIG_CRYPTO_CAST5 is not set
|
# CONFIG_CRYPTO_CAST5 is not set
|
||||||
# CONFIG_CRYPTO_CAST6 is not set
|
# CONFIG_CRYPTO_CAST6 is not set
|
||||||
CONFIG_CRYPTO_DES=y
|
CONFIG_CRYPTO_DES=m
|
||||||
# CONFIG_CRYPTO_FCRYPT is not set
|
# CONFIG_CRYPTO_FCRYPT is not set
|
||||||
# CONFIG_CRYPTO_KHAZAD is not set
|
# CONFIG_CRYPTO_KHAZAD is not set
|
||||||
# CONFIG_CRYPTO_SALSA20 is not set
|
# CONFIG_CRYPTO_SALSA20 is not set
|
||||||
|
@@ -3,6 +3,4 @@ cfg_storage='data0:ext4:/opt'
|
|||||||
cfg_eth_ext_ip='10.0.20.105'
|
cfg_eth_ext_ip='10.0.20.105'
|
||||||
cfg_eth_ext_mk='255.255.0.0'
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
cfg_eth_ext_gw='10.0.0.1'
|
cfg_eth_ext_gw='10.0.0.1'
|
||||||
cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux rpcbind nfs-utils opencv exiv2 libav gdal'
|
cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux opencv exiv2 libav'
|
||||||
cfg_storage_dir='/opt/lsts/dune/log'
|
|
||||||
cfg_services1='nfs-storage-server'
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,7 @@ cfg_storage='data0:ext4:/opt'
|
|||||||
cfg_modules=''
|
cfg_modules=''
|
||||||
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
||||||
cfg_services2='dune'
|
cfg_services2='dune'
|
||||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi exiftool libusb'
|
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi'
|
||||||
cfg_target_linux_kernel='arch/arm/boot/zImage'
|
cfg_target_linux_kernel='arch/arm/boot/zImage'
|
||||||
cfg_ptpd_interface='eth0'
|
cfg_ptpd_interface='eth0'
|
||||||
cfg_eth_ext_mk='255.255.0.0'
|
cfg_eth_ext_mk='255.255.0.0'
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
cfg_hostname='test-rpi'
|
|
||||||
cfg_eth_ext_ip='10.0.200.52'
|
|
||||||
cfg_services1=''
|
|
||||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi exiftool libusb'
|
|
||||||
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
|
||||||
cfg_modules="$cfg_modules ftdi_sio"
|
|
||||||
cfg_terminal='tty1'
|
|
||||||
cfg_ptpd_interface='eth0'
|
|
||||||
|
|
@@ -1,12 +1,9 @@
|
|||||||
cfg_hostname='x8-06-aux'
|
cfg_hostname='x8-06-aux'
|
||||||
cfg_eth_ext_ip='10.0.20.109'
|
cfg_eth_ext_ip='10.0.20.109'
|
||||||
cfg_services1='nfs-storage-client'
|
cfg_services1='lauv-storage-server'
|
||||||
cfg_packages="$cfg_packages opencv raspicam exiv2 libav uswitch nfs-utils gdal"
|
cfg_packages="$cfg_packages opencv raspicam exiv2 libav uswitch nfs-utils"
|
||||||
cfg_modules="$cfg_modules ftdi_sio"
|
cfg_modules="$cfg_modules ftdi_sio"
|
||||||
cfg_target_linux_dtb='arch/arm/boot/dts/am335x-lauv-aux.dtb'
|
cfg_target_linux_dtb='arch/arm/boot/dts/am335x-lauv-aux.dtb'
|
||||||
cfg_storage_dir=/opt/lsts/dune/log
|
|
||||||
cfg_storage_host=10.0.20.105
|
|
||||||
cfg_storage_paths=/opt/lsts/dune/log
|
|
||||||
cfg_storage_timeout=30
|
|
||||||
cfg_ptpd_interface='eth0'
|
cfg_ptpd_interface='eth0'
|
||||||
cfg_terminal='ttyAMA0'
|
cfg_terminal='ttyAMA0'
|
||||||
|
cfg_lauv_storage_dir='/opt/lsts/dune/log'
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
# This program is free software; you can redistribute it and/or modify #
|
||||||
|
Reference in New Issue
Block a user