Compare commits
53 Commits
master
...
feature/ne
Author | SHA1 | Date | |
---|---|---|---|
|
ecd5bf3213 | ||
|
92b1d5609d | ||
|
1e3f781bb3 | ||
|
585e48ab75 | ||
|
c711e7454c | ||
|
09a3e3ecd1 | ||
|
f88cc8a39a | ||
|
f9de3a4f8f | ||
|
e2fcc7af9c | ||
|
8b638e2f27 | ||
|
de84a56ab3 | ||
|
570819ea0b | ||
|
99e99f3e0f | ||
|
52d6566325 | ||
|
1c415a44ac | ||
|
f32fa39117 | ||
|
73d5d950ea | ||
|
407d267025 | ||
|
ed94c11db3 | ||
|
0acac46293 | ||
|
5922835236 | ||
|
edc70d528d | ||
|
31bed7ae8f | ||
|
7f19c508c1 | ||
|
849aeba26e | ||
|
fefe950223 | ||
|
de790486a2 | ||
|
b0c958ae59 | ||
|
13fa4d279e | ||
|
7692a45c51 | ||
|
c7ae8c42fe | ||
|
32ca698e19 | ||
|
32b085001a | ||
|
684639b9e2 | ||
|
c266998d6f | ||
|
82cbbdf857 | ||
|
7a9fd0f88d | ||
|
68ffa9e038 | ||
|
1ef70f2a1c | ||
|
7aeed40d2d | ||
|
1a6647111b | ||
|
7227be47a8 | ||
|
4f8ab7805a | ||
|
2e1bdc638f | ||
|
a9d220a53e | ||
|
d34d4740e6 | ||
|
81c8368e02 | ||
|
41f6ca083e | ||
|
5b6cda04a2 | ||
|
1dac252899 | ||
|
0e06bd4823 | ||
|
271a171fc7 | ||
|
16fd1a30c5 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,6 +9,3 @@
|
||||
/lauv-aux
|
||||
/lauv-aux-rpi
|
||||
/ntnu-b2xx
|
||||
/stamp9g20
|
||||
/lctr-rpi
|
||||
build.bash
|
||||
|
@ -1,4 +0,0 @@
|
||||
cfg_target_canonical="armv5te-$cfg_glued_vendor-linux-gnueabi"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mtune=arm926ej-s -mfloat-abi=soft'
|
||||
cfg_target_gcc_configure_flags='--with-arch=armv5te --with-tune=arm926ej-s --with-float=soft'
|
@ -1,6 +0,0 @@
|
||||
cfg_target_canonical="armv11-$cfg_glued_vendor-linux-gnueabi"
|
||||
cfg_target_linux='arm'
|
||||
cfg_target_uboot_arch='arm'
|
||||
cfg_target_gcc_flags='-O2 -pipe -funit-at-a-time -mcpu=cortex-a72 -mtune=cortex-a72 -mfloat-abi=hard -mfpu=neon-fp-armv8'
|
||||
cfg_target_gcc_configure_flags='--with-cpu=cortex-a72 --with-tune=cortex-a72 --with-fpu=neon-fp-armv8 --with-float=hard'
|
||||
cfg_target_ar_flags='aarch64-elf'
|
@ -1,38 +0,0 @@
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2016 OceanScan - Marine Systems & Technology, Lda. #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
FROM debian:8
|
||||
|
||||
MAINTAINER Ricardo Martins <rasm@oceanscan-mst.com>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Update distro.
|
||||
RUN apt-get update -y
|
||||
RUN apt-get dist-upgrade -y
|
||||
RUN apt-get install -y wget
|
||||
RUN apt-get install -y bzip2
|
||||
RUN apt-get install -y git
|
||||
RUN apt-get install -y g++-multilib
|
||||
RUN apt-get install -y cmake
|
||||
RUN apt-get install -y file
|
||||
RUN apt-get install -y kmod
|
@ -1,32 +0,0 @@
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2016 OceanScan - Marine Systems & Technology, Lda. #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Ricardo Martins #
|
||||
###########################################################################
|
||||
|
||||
TAG := glued
|
||||
VERSION := 2016.05.0
|
||||
VOLUME := $(CURDIR)/..
|
||||
DNS := 8.8.8.8
|
||||
|
||||
all:
|
||||
docker build -t $(TAG):$(VERSION) .
|
||||
|
||||
shell:
|
||||
docker run -w $(VOLUME) --dns=$(DNS) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
|
@ -1,6 +1,6 @@
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
@ -40,15 +40,3 @@ err()
|
||||
{
|
||||
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] \033[0m\033[1;31mERROR: $*\033[0m"
|
||||
}
|
||||
|
||||
ucat()
|
||||
{
|
||||
case "$1" in
|
||||
*.gz)
|
||||
zcat "$1"
|
||||
;;
|
||||
*)
|
||||
cat "$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
@ -23,7 +23,7 @@
|
||||
###########################################################################
|
||||
|
||||
# Config: GLUED version.
|
||||
cfg_glued_version='2017.11'
|
||||
cfg_glued_version='2016.03'
|
||||
# Config: GLUED vendor.
|
||||
cfg_glued_vendor='lsts'
|
||||
|
||||
|
12
mkdisk.bash
12
mkdisk.bash
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
@ -103,17 +103,15 @@ create_part_rpiboot()
|
||||
|
||||
for f in "$cfg_sys_family/rootfs/boot/"*; do
|
||||
nfo2 installing $f to boot partition
|
||||
cp -r "$f" mount || die
|
||||
cp "$f" mount || die
|
||||
done
|
||||
|
||||
nfo2 renaming kernel to kernel7.img
|
||||
mv mount/kernel mount/kernel7.img
|
||||
|
||||
if [ -f mount/board.dtb ]; then
|
||||
dtb=$(basename "$cfg_target_linux_dtb")
|
||||
nfo2 renaming board.dtb to "$dtb"
|
||||
mv "mount/board.dtb" "mount/$dtb"
|
||||
fi
|
||||
dtb=$(basename "$cfg_target_linux_dtb")
|
||||
nfo2 renaming board.dtb to "$dtb"
|
||||
mv "mount/board.dtb" "mount/$dtb"
|
||||
|
||||
cmd_parted "$dev_loop" \
|
||||
set "$part_nr" lba on \
|
||||
|
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
@ -71,22 +71,17 @@ download()
|
||||
fi
|
||||
fi
|
||||
|
||||
# First try LSTS mirror.
|
||||
lsts_url="https://www.lsts.pt/glued/$(basename $u)"
|
||||
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
|
||||
# First try OceanScan-MST mirror.
|
||||
omst_url="http://www.omst.pt/glued/$(basename $u)"
|
||||
download_tool "$omst_url" "$cfg_dir_downloads/$file"
|
||||
if [ $? -ne 0 ]; then
|
||||
# Then try OceanScan-MST mirror.
|
||||
omst_url="http://www.omst.pt/glued/$(basename $u)"
|
||||
download_tool "$omst_url" "$cfg_dir_downloads/$file"
|
||||
# On failure try upstream URL.
|
||||
download_tool "$u" "$cfg_dir_downloads/$file"
|
||||
if [ $? -ne 0 ]; then
|
||||
# On failure try upstream URL.
|
||||
download_tool "$u" "$cfg_dir_downloads/$file"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: download failed"
|
||||
exit 1
|
||||
fi
|
||||
echo "ERROR: download failed"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
|
||||
if [ "$s" != "$md5" ]; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2013 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
|
@ -1,68 +0,0 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or (at #
|
||||
# your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, but #
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
|
||||
# General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the Free Software #
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA #
|
||||
# 02110-1301 USA. #
|
||||
###########################################################################
|
||||
# Author: Tiago Marques #
|
||||
###########################################################################
|
||||
|
||||
update_tool()
|
||||
{
|
||||
rsync -v "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
|
||||
if [ $? -eq 0 ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
scp "$1" root@"$2":/opt/"$cfg_glued_vendor"/glued/
|
||||
if [ $? -eq 0 ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
# Check command line arguments.
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: $0 <config>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Read system configuration file.
|
||||
if ! [ -f "$1" ]; then
|
||||
echo -e "\e[1;31mERROR: invalid configuration file '$1'\e[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Read system configuration file.
|
||||
source "$1"
|
||||
|
||||
if [ ! -f "$cfg_rootfs_tar" ];
|
||||
then
|
||||
echo -e "\e[1;31mERROR: You should run ./pkrootfs $1\e[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check for dirty repo
|
||||
if [[ "$cfg_glued_git_version" =~ .*-dirty$ ]]
|
||||
then
|
||||
echo -e "\e[1;31mThis glued's version is dirty\e[0m"
|
||||
fi
|
||||
|
||||
# send package to the system
|
||||
update_tool "$cfg_rootfs_tar" "$cfg_eth_ext_ip"
|
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
@ -60,7 +60,7 @@ done
|
||||
|
||||
# Copy DTB.
|
||||
if [ -n "$cfg_target_linux_dtb" ]; then
|
||||
cp -v "$cfg_dir_rootfs/boot/$(basename $cfg_target_linux_dtb)" "$cfg_dir_rootfs/boot/board.dtb"
|
||||
cp -v "$cfg_dir_toolchain/boot/$(basename $cfg_target_linux_dtb)" "$cfg_dir_rootfs/boot/board.dtb"
|
||||
fi
|
||||
|
||||
# Write config vars.
|
||||
|
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2019 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2014 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
|
||||
###########################################################################
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
|
@ -26,5 +26,4 @@ requires=\
|
||||
'parted/host'
|
||||
'dosfstools/host'
|
||||
'e2fsprogs/host'
|
||||
'cmake/host'
|
||||
)
|
||||
|
@ -37,8 +37,7 @@ configure()
|
||||
{
|
||||
cd "../boost_$vendor_version" &&
|
||||
./bootstrap.sh \
|
||||
--with-icu="$cfg_dir_toolchain_sysroot/usr" \
|
||||
--with-libraries="regex,filesystem,system,thread"
|
||||
--with-icu="$cfg_dir_toolchain_sysroot/usr"
|
||||
|
||||
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
|
||||
|
@ -1,16 +1,16 @@
|
||||
version=\
|
||||
(
|
||||
'1.6'
|
||||
'1.5'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-$version.tar.gz"
|
||||
"http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'f369e90e85e4bb46baa26a7b9d66b578'
|
||||
'ec7b381160b340648dede58c31bb2238'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Busybox version: 1.24.1
|
||||
# Tue Apr 5 18:00:54 2016
|
||||
# Busybox version: 1.22.1
|
||||
# Sun Feb 8 18:17:19 2015
|
||||
#
|
||||
CONFIG_HAVE_DOT_CONFIG=y
|
||||
|
||||
@ -36,8 +36,6 @@ CONFIG_LAST_SUPPORTED_WCHAR=767
|
||||
# CONFIG_UNICODE_BIDI_SUPPORT is not set
|
||||
# CONFIG_UNICODE_NEUTRAL_TABLE is not set
|
||||
# CONFIG_UNICODE_PRESERVE_BROKEN is not set
|
||||
# CONFIG_PAM is not set
|
||||
CONFIG_FEATURE_USE_SENDFILE=y
|
||||
CONFIG_LONG_OPTS=y
|
||||
CONFIG_FEATURE_DEVPTS=y
|
||||
# CONFIG_FEATURE_CLEAN_UP is not set
|
||||
@ -75,7 +73,6 @@ CONFIG_EXTRA_LDLIBS=""
|
||||
#
|
||||
# CONFIG_DEBUG is not set
|
||||
# CONFIG_DEBUG_PESSIMIZE is not set
|
||||
# CONFIG_UNIT_TEST is not set
|
||||
# CONFIG_WERROR is not set
|
||||
CONFIG_NO_DEBUG_LIB=y
|
||||
# CONFIG_DMALLOC is not set
|
||||
@ -156,11 +153,10 @@ CONFIG_XZ=y
|
||||
# CONFIG_GZIP is not set
|
||||
# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set
|
||||
CONFIG_GZIP_FAST=0
|
||||
# CONFIG_FEATURE_GZIP_LEVELS is not set
|
||||
# CONFIG_LZOP is not set
|
||||
# CONFIG_LZOP_COMPR_HIGH is not set
|
||||
# CONFIG_RPM2CPIO is not set
|
||||
# CONFIG_RPM is not set
|
||||
# CONFIG_RPM2CPIO is not set
|
||||
CONFIG_TAR=y
|
||||
# CONFIG_FEATURE_TAR_CREATE is not set
|
||||
CONFIG_FEATURE_TAR_AUTODETECT=y
|
||||
@ -184,17 +180,9 @@ CONFIG_DATE=y
|
||||
CONFIG_FEATURE_DATE_ISOFMT=y
|
||||
# CONFIG_FEATURE_DATE_NANO is not set
|
||||
CONFIG_FEATURE_DATE_COMPAT=y
|
||||
CONFIG_DD=y
|
||||
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
|
||||
# CONFIG_FEATURE_DD_THIRD_STATUS_LINE is not set
|
||||
# CONFIG_FEATURE_DD_IBS_OBS is not set
|
||||
CONFIG_FEATURE_DD_STATUS=y
|
||||
# CONFIG_HOSTID is not set
|
||||
CONFIG_ID=y
|
||||
CONFIG_GROUPS=y
|
||||
CONFIG_SHUF=y
|
||||
CONFIG_SYNC=y
|
||||
CONFIG_FEATURE_SYNC_FANCY=y
|
||||
CONFIG_TEST=y
|
||||
# CONFIG_FEATURE_TEST_64 is not set
|
||||
CONFIG_TOUCH=y
|
||||
@ -203,8 +191,6 @@ CONFIG_FEATURE_TOUCH_SUSV3=y
|
||||
CONFIG_TR=y
|
||||
CONFIG_FEATURE_TR_CLASSES=y
|
||||
CONFIG_FEATURE_TR_EQUIV=y
|
||||
CONFIG_TRUNCATE=y
|
||||
CONFIG_UNLINK=y
|
||||
CONFIG_BASE64=y
|
||||
# CONFIG_WHO is not set
|
||||
# CONFIG_USERS is not set
|
||||
@ -220,6 +206,10 @@ CONFIG_CHROOT=y
|
||||
CONFIG_CP=y
|
||||
# CONFIG_FEATURE_CP_LONG_OPTIONS is not set
|
||||
CONFIG_CUT=y
|
||||
CONFIG_DD=y
|
||||
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
|
||||
# CONFIG_FEATURE_DD_THIRD_STATUS_LINE is not set
|
||||
# CONFIG_FEATURE_DD_IBS_OBS is not set
|
||||
CONFIG_DF=y
|
||||
# CONFIG_FEATURE_DF_FANCY is not set
|
||||
CONFIG_DIRNAME=y
|
||||
@ -288,6 +278,7 @@ CONFIG_STAT=y
|
||||
CONFIG_FEATURE_STAT_FORMAT=y
|
||||
CONFIG_STTY=y
|
||||
# CONFIG_SUM is not set
|
||||
CONFIG_SYNC=y
|
||||
# CONFIG_TAC is not set
|
||||
CONFIG_TAIL=y
|
||||
# CONFIG_FEATURE_FANCY_TAIL is not set
|
||||
@ -296,7 +287,6 @@ CONFIG_TEE=y
|
||||
CONFIG_TRUE=y
|
||||
CONFIG_TTY=y
|
||||
CONFIG_UNAME=y
|
||||
CONFIG_UNAME_OSNAME="GNU/Linux"
|
||||
# CONFIG_UNEXPAND is not set
|
||||
# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set
|
||||
CONFIG_UNIQ=y
|
||||
@ -308,11 +298,6 @@ CONFIG_WC=y
|
||||
CONFIG_WHOAMI=y
|
||||
CONFIG_YES=y
|
||||
|
||||
#
|
||||
# Common options
|
||||
#
|
||||
CONFIG_FEATURE_VERBOSE=y
|
||||
|
||||
#
|
||||
# Common options for cp and mv
|
||||
#
|
||||
@ -399,9 +384,6 @@ CONFIG_FEATURE_VI_USE_SIGNALS=y
|
||||
# CONFIG_FEATURE_VI_SET is not set
|
||||
CONFIG_FEATURE_VI_WIN_RESIZE=y
|
||||
CONFIG_FEATURE_VI_ASK_TERMINAL=y
|
||||
CONFIG_FEATURE_VI_UNDO=y
|
||||
CONFIG_FEATURE_VI_UNDO_QUEUE=y
|
||||
CONFIG_FEATURE_VI_UNDO_QUEUE_MAX=256
|
||||
CONFIG_FEATURE_ALLOW_EXEC=y
|
||||
|
||||
#
|
||||
@ -418,7 +400,6 @@ CONFIG_FEATURE_FIND_MAXDEPTH=y
|
||||
# CONFIG_FEATURE_FIND_NEWER is not set
|
||||
# CONFIG_FEATURE_FIND_INUM is not set
|
||||
CONFIG_FEATURE_FIND_EXEC=y
|
||||
CONFIG_FEATURE_FIND_EXEC_PLUS=y
|
||||
CONFIG_FEATURE_FIND_USER=y
|
||||
CONFIG_FEATURE_FIND_GROUP=y
|
||||
CONFIG_FEATURE_FIND_NOT=y
|
||||
@ -440,7 +421,6 @@ CONFIG_XARGS=y
|
||||
CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y
|
||||
# CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT is not set
|
||||
CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y
|
||||
CONFIG_FEATURE_XARGS_SUPPORT_REPL_STR=y
|
||||
|
||||
#
|
||||
# Init Utilities
|
||||
@ -477,7 +457,6 @@ CONFIG_USE_BB_CRYPT=y
|
||||
CONFIG_ADDUSER=y
|
||||
# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set
|
||||
# CONFIG_FEATURE_CHECK_NAMES is not set
|
||||
CONFIG_LAST_ID=60000
|
||||
CONFIG_FIRST_SYSTEM_ID=100
|
||||
CONFIG_LAST_SYSTEM_ID=999
|
||||
CONFIG_ADDGROUP=y
|
||||
@ -489,6 +468,7 @@ CONFIG_DELGROUP=y
|
||||
CONFIG_GETTY=y
|
||||
CONFIG_LOGIN=y
|
||||
# CONFIG_LOGIN_SESSION_AS_CHILD is not set
|
||||
# CONFIG_PAM is not set
|
||||
# CONFIG_LOGIN_SCRIPTS is not set
|
||||
CONFIG_FEATURE_NOLOGIN=y
|
||||
# CONFIG_FEATURE_SECURETTY is not set
|
||||
@ -546,7 +526,6 @@ CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
||||
# Linux System Utilities
|
||||
#
|
||||
CONFIG_BLOCKDEV=y
|
||||
CONFIG_FATATTR=y
|
||||
CONFIG_FSTRIM=y
|
||||
CONFIG_MDEV=y
|
||||
CONFIG_FEATURE_MDEV_CONF=y
|
||||
@ -554,18 +533,7 @@ CONFIG_FEATURE_MDEV_RENAME=y
|
||||
CONFIG_FEATURE_MDEV_RENAME_REGEXP=y
|
||||
CONFIG_FEATURE_MDEV_EXEC=y
|
||||
CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y
|
||||
CONFIG_MOUNT=y
|
||||
# CONFIG_FEATURE_MOUNT_FAKE is not set
|
||||
# CONFIG_FEATURE_MOUNT_VERBOSE is not set
|
||||
# CONFIG_FEATURE_MOUNT_HELPERS is not set
|
||||
CONFIG_FEATURE_MOUNT_LABEL=y
|
||||
# CONFIG_FEATURE_MOUNT_NFS is not set
|
||||
# CONFIG_FEATURE_MOUNT_CIFS is not set
|
||||
CONFIG_FEATURE_MOUNT_FLAGS=y
|
||||
CONFIG_FEATURE_MOUNT_FSTAB=y
|
||||
CONFIG_FEATURE_MOUNT_OTHERTAB=y
|
||||
CONFIG_REV=y
|
||||
CONFIG_UEVENT=y
|
||||
# CONFIG_ACPID is not set
|
||||
# CONFIG_FEATURE_ACPID_COMPAT is not set
|
||||
CONFIG_BLKID=y
|
||||
@ -611,6 +579,15 @@ CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
|
||||
# CONFIG_MKSWAP is not set
|
||||
# CONFIG_FEATURE_MKSWAP_UUID is not set
|
||||
CONFIG_MORE=y
|
||||
CONFIG_MOUNT=y
|
||||
# CONFIG_FEATURE_MOUNT_FAKE is not set
|
||||
# CONFIG_FEATURE_MOUNT_VERBOSE is not set
|
||||
# CONFIG_FEATURE_MOUNT_HELPERS is not set
|
||||
CONFIG_FEATURE_MOUNT_LABEL=y
|
||||
# CONFIG_FEATURE_MOUNT_NFS is not set
|
||||
# CONFIG_FEATURE_MOUNT_CIFS is not set
|
||||
CONFIG_FEATURE_MOUNT_FLAGS=y
|
||||
CONFIG_FEATURE_MOUNT_FSTAB=y
|
||||
CONFIG_PIVOT_ROOT=y
|
||||
# CONFIG_RDATE is not set
|
||||
# CONFIG_RDEV is not set
|
||||
@ -620,7 +597,6 @@ CONFIG_PIVOT_ROOT=y
|
||||
# CONFIG_SCRIPTREPLAY is not set
|
||||
# CONFIG_SETARCH is not set
|
||||
# CONFIG_SWAPONOFF is not set
|
||||
# CONFIG_FEATURE_SWAPON_DISCARD is not set
|
||||
# CONFIG_FEATURE_SWAPON_PRI is not set
|
||||
CONFIG_SWITCH_ROOT=y
|
||||
CONFIG_UMOUNT=y
|
||||
@ -663,19 +639,10 @@ CONFIG_FEATURE_VOLUMEID_SQUASHFS=y
|
||||
# Miscellaneous Utilities
|
||||
#
|
||||
# CONFIG_CONSPY is not set
|
||||
# CONFIG_CROND is not set
|
||||
# CONFIG_FEATURE_CROND_D is not set
|
||||
# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set
|
||||
CONFIG_FEATURE_CROND_DIR=""
|
||||
CONFIG_I2CGET=y
|
||||
CONFIG_I2CSET=y
|
||||
CONFIG_I2CDUMP=y
|
||||
CONFIG_I2CDETECT=y
|
||||
CONFIG_LESS=y
|
||||
CONFIG_FEATURE_LESS_MAXLINES=9999999
|
||||
CONFIG_FEATURE_LESS_BRACKETS=y
|
||||
CONFIG_FEATURE_LESS_FLAGS=y
|
||||
CONFIG_FEATURE_LESS_TRUNCATE=y
|
||||
# CONFIG_FEATURE_LESS_MARKS is not set
|
||||
# CONFIG_FEATURE_LESS_REGEXP is not set
|
||||
# CONFIG_FEATURE_LESS_WINCH is not set
|
||||
@ -686,8 +653,6 @@ CONFIG_FEATURE_LESS_TRUNCATE=y
|
||||
# CONFIG_NANDDUMP is not set
|
||||
# CONFIG_RFKILL is not set
|
||||
CONFIG_SETSERIAL=y
|
||||
# CONFIG_TASKSET is not set
|
||||
# CONFIG_FEATURE_TASKSET_FANCY is not set
|
||||
# CONFIG_UBIATTACH is not set
|
||||
# CONFIG_UBIDETACH is not set
|
||||
CONFIG_UBIMKVOL=y
|
||||
@ -710,6 +675,10 @@ CONFIG_FEATURE_BEEP_LENGTH_MS=0
|
||||
# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set
|
||||
# CONFIG_FEATURE_CHAT_CLR_ABORT is not set
|
||||
# CONFIG_CHRT is not set
|
||||
# CONFIG_CROND is not set
|
||||
# CONFIG_FEATURE_CROND_D is not set
|
||||
# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set
|
||||
CONFIG_FEATURE_CROND_DIR=""
|
||||
# CONFIG_CRONTAB is not set
|
||||
# CONFIG_DC is not set
|
||||
# CONFIG_FEATURE_DC_LIBM is not set
|
||||
@ -725,7 +694,7 @@ CONFIG_FEATURE_BEEP_LENGTH_MS=0
|
||||
CONFIG_FLASHCP=y
|
||||
CONFIG_FLASH_LOCK=y
|
||||
CONFIG_FLASH_UNLOCK=y
|
||||
CONFIG_FLASH_ERASEALL=y
|
||||
# CONFIG_FLASH_ERASEALL is not set
|
||||
# CONFIG_IONICE is not set
|
||||
# CONFIG_INOTIFYD is not set
|
||||
# CONFIG_LAST is not set
|
||||
@ -751,6 +720,8 @@ CONFIG_MOUNTPOINT=y
|
||||
# CONFIG_RX is not set
|
||||
# CONFIG_SETSID is not set
|
||||
# CONFIG_STRINGS is not set
|
||||
# CONFIG_TASKSET is not set
|
||||
# CONFIG_FEATURE_TASKSET_FANCY is not set
|
||||
CONFIG_TIME=y
|
||||
# CONFIG_TIMEOUT is not set
|
||||
# CONFIG_TTYSIZE is not set
|
||||
@ -770,13 +741,6 @@ CONFIG_NC_EXTRA=y
|
||||
CONFIG_PING=y
|
||||
# CONFIG_PING6 is not set
|
||||
CONFIG_FEATURE_FANCY_PING=y
|
||||
CONFIG_WGET=y
|
||||
# CONFIG_FEATURE_WGET_STATUSBAR is not set
|
||||
CONFIG_FEATURE_WGET_AUTHENTICATION=y
|
||||
# CONFIG_FEATURE_WGET_LONG_OPTIONS is not set
|
||||
CONFIG_FEATURE_WGET_TIMEOUT=y
|
||||
CONFIG_FEATURE_WGET_OPENSSL=y
|
||||
CONFIG_FEATURE_WGET_SSL_HELPER=y
|
||||
CONFIG_WHOIS=y
|
||||
# CONFIG_FEATURE_IPV6 is not set
|
||||
# CONFIG_FEATURE_UNIX_LOCAL is not set
|
||||
@ -793,13 +757,13 @@ CONFIG_ETHER_WAKE=y
|
||||
CONFIG_FTPD=y
|
||||
CONFIG_FEATURE_FTP_WRITE=y
|
||||
CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y
|
||||
CONFIG_FEATURE_FTP_AUTHENTICATION=y
|
||||
# CONFIG_FTPGET is not set
|
||||
# CONFIG_FTPPUT is not set
|
||||
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
|
||||
CONFIG_HOSTNAME=y
|
||||
# CONFIG_HTTPD is not set
|
||||
# CONFIG_FEATURE_HTTPD_RANGES is not set
|
||||
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
|
||||
# CONFIG_FEATURE_HTTPD_SETUID is not set
|
||||
# CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set
|
||||
# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set
|
||||
@ -838,7 +802,6 @@ CONFIG_IP=y
|
||||
CONFIG_FEATURE_IP_ADDRESS=y
|
||||
CONFIG_FEATURE_IP_LINK=y
|
||||
CONFIG_FEATURE_IP_ROUTE=y
|
||||
CONFIG_FEATURE_IP_ROUTE_DIR="/etc/iproute2"
|
||||
# CONFIG_FEATURE_IP_TUNNEL is not set
|
||||
# CONFIG_FEATURE_IP_RULE is not set
|
||||
# CONFIG_FEATURE_IP_SHORT_FORMS is not set
|
||||
@ -857,7 +820,6 @@ CONFIG_FEATURE_IP_ROUTE_DIR="/etc/iproute2"
|
||||
# CONFIG_NSLOOKUP is not set
|
||||
# CONFIG_NTPD is not set
|
||||
# CONFIG_FEATURE_NTPD_SERVER is not set
|
||||
# CONFIG_FEATURE_NTPD_CONF is not set
|
||||
# CONFIG_PSCAN is not set
|
||||
CONFIG_ROUTE=y
|
||||
# CONFIG_SLATTACH is not set
|
||||
@ -891,7 +853,6 @@ CONFIG_FEATURE_TELNET_AUTOLOGIN=y
|
||||
CONFIG_DHCPD_LEASES_FILE=""
|
||||
CONFIG_UDHCPC=y
|
||||
# CONFIG_FEATURE_UDHCPC_ARPING is not set
|
||||
CONFIG_FEATURE_UDHCPC_SANITIZEOPT=y
|
||||
# CONFIG_FEATURE_UDHCP_PORT is not set
|
||||
CONFIG_UDHCP_DEBUG=9
|
||||
CONFIG_FEATURE_UDHCP_RFC3397=y
|
||||
@ -901,6 +862,11 @@ CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
|
||||
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=""
|
||||
# CONFIG_UDPSVD is not set
|
||||
# CONFIG_VCONFIG is not set
|
||||
CONFIG_WGET=y
|
||||
# CONFIG_FEATURE_WGET_STATUSBAR is not set
|
||||
CONFIG_FEATURE_WGET_AUTHENTICATION=y
|
||||
# CONFIG_FEATURE_WGET_LONG_OPTIONS is not set
|
||||
CONFIG_FEATURE_WGET_TIMEOUT=y
|
||||
# CONFIG_ZCIP is not set
|
||||
|
||||
#
|
||||
@ -1005,7 +971,6 @@ CONFIG_ASH_GETOPTS=y
|
||||
# CONFIG_ASH_BUILTIN_ECHO is not set
|
||||
CONFIG_ASH_BUILTIN_PRINTF=y
|
||||
CONFIG_ASH_BUILTIN_TEST=y
|
||||
CONFIG_ASH_HELP=y
|
||||
# CONFIG_ASH_CMDCMD is not set
|
||||
# CONFIG_ASH_MAIL is not set
|
||||
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
|
||||
|
@ -35,11 +35,6 @@ build()
|
||||
host_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()
|
||||
|
@ -1,6 +1,6 @@
|
||||
version=\
|
||||
(
|
||||
'master'
|
||||
'mission/necsave'
|
||||
)
|
||||
|
||||
requires=\
|
||||
|
@ -1,6 +1,6 @@
|
||||
version=\
|
||||
(
|
||||
'1.0.71'
|
||||
'1.0.6'
|
||||
)
|
||||
|
||||
url=\
|
||||
@ -10,7 +10,7 @@ url=\
|
||||
|
||||
md5=\
|
||||
(
|
||||
'075c9256fe20cf6ce867dc2b1c974ebe'
|
||||
'07783e66e27601ab0a8250c328b3d6bf'
|
||||
)
|
||||
|
||||
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
|
||||
|
@ -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,57 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"0.25"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/exiv2-${version}.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"258d4831b30f75a01e0234065c6c2806"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
"gettext/host"
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
./configure \
|
||||
--datadir="$cfg_dir_toolchain_sysroot" \
|
||||
--prefix="$cfg_dir_rootfs/usr" \
|
||||
--includedir="$cfg_dir_toolchain_sysroot/usr/include" \
|
||||
--enable-cross-compile \
|
||||
--build=$cfg_target_linux \
|
||||
--host="$cfg_target_canonical" \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-xmp
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
# Libs:
|
||||
for f in "$cfg_dir_rootfs/lib/"libexiv2*; do
|
||||
cp -av "$f" "$cfg_dir_toolchain_sysroot/usr/lib"
|
||||
done
|
||||
}
|
||||
|
@ -15,14 +15,12 @@ md5=\
|
||||
|
||||
configure()
|
||||
{
|
||||
mkdir -p ../build
|
||||
./configure \
|
||||
--sysroot="$cfg_dir_toolchain_sysroot" \
|
||||
--prefix="$cfg_dir_rootfs/usr" \
|
||||
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \
|
||||
--enable-cross-compile \
|
||||
--cross-prefix="$cfg_target_canonical-" \
|
||||
--libdir="$cfg_dir_builds/ffmpeg/build" \
|
||||
--target-os="linux" \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
@ -41,16 +39,10 @@ host_install()
|
||||
$cmd_make \
|
||||
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
|
||||
install-headers
|
||||
|
||||
$cmd_make \
|
||||
install-libs
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_make \
|
||||
install-libs
|
||||
|
||||
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_rootfs/usr/lib/"
|
||||
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
start()
|
||||
{
|
||||
if [ ! -f /opt/check_wlan ]; then
|
||||
cp -ri /etc/check_wlan /opt/
|
||||
fi
|
||||
|
||||
sh /opt/check_wlan < /dev/null > /dev/null 2>&1 &
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
echo "* Stopping process..."
|
||||
killall sh /opt/check_wlan -9 > /dev/null 2>&1
|
||||
echo "* Process not running."
|
||||
}
|
@ -1,87 +0,0 @@
|
||||
start()
|
||||
{
|
||||
ifconfig wlan0 up
|
||||
if [ -n "$cfg_eth_ext_ip$cfg_eth_prv_ip" ]; then
|
||||
while [ 1 ]; do
|
||||
echo "* Waiting for wlan0 device..."
|
||||
ifconfig wlan0 > /dev/null 2>&1
|
||||
[ $? -eq 0 ] && break
|
||||
usleep 250000
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "$cfg_bridge0_ip" ]; then
|
||||
for itf in $cfg_bridge0_itfs; do
|
||||
ifconfig $itf 0.0.0.0
|
||||
done
|
||||
|
||||
brctl addbr bridge0
|
||||
|
||||
for itf in $cfg_bridge0_itfs; do
|
||||
brctl addif bridge0 $itf
|
||||
done
|
||||
|
||||
ifconfig bridge0 $cfg_bridge0_ip netmask $cfg_bridge0_nmask up
|
||||
ifconfig bridge0 multicast
|
||||
route add -net 224.0.0.0 netmask 240.0.0.0 dev bridge0
|
||||
fi
|
||||
|
||||
# Public ethernet.
|
||||
if [ -n "$cfg_eth_ext_ip" ]; then
|
||||
if [ -n "$cfg_eth_ext_mk" ]; then
|
||||
ifconfig wlan0 "$cfg_eth_ext_ip" netmask "$cfg_eth_ext_mk" up
|
||||
else
|
||||
ifconfig wlan0 "$cfg_eth_ext_ip" up
|
||||
fi
|
||||
ifconfig wlan0 multicast
|
||||
route add -net 224.0.0.0 netmask 240.0.0.0 dev wlan0
|
||||
|
||||
# Fixed mac address with $cfg_eth_ext_mac based derivated from IP address $cfg_eth_ext_ip
|
||||
if [ -n "$cfg_eth_ext_mac" ]; then
|
||||
ifconfig wlan0 hw ether $cfg_eth_ext_mac
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$cfg_eth_ext_gw" ]; then
|
||||
route add default gw "$cfg_eth_ext_gw"
|
||||
fi
|
||||
|
||||
if [ -n "$cfg_eth_ext_dns" ]; then
|
||||
echo "nameserver $cfg_eth_ext_dns" > /etc/resolv.conf
|
||||
fi
|
||||
|
||||
# Private ethernet.
|
||||
if [ -n "$cfg_eth_prv_ip" ]; then
|
||||
ifconfig wlan0:prv "$cfg_eth_prv_ip" up
|
||||
fi
|
||||
|
||||
# Static ARP table.
|
||||
if [ -n "$cfg_arp_table" ]; then
|
||||
for e in $cfg_arp_table; do
|
||||
ip="$(echo $e | cut -f1 -d'|')"
|
||||
mac="$(echo $e | cut -f2 -d'|')"
|
||||
arp -s "$ip" "$mac"
|
||||
done
|
||||
fi
|
||||
|
||||
iw wlan0 connect LSTS
|
||||
ifconfig eth0 down
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
# Public ethernet.
|
||||
if [ -n "$cfg_eth_ext_gw" ]; then
|
||||
route del default
|
||||
fi
|
||||
|
||||
if [ -n "$cfg_eth_ext_ip" ]; then
|
||||
route del -net 224.0.0.0 netmask 240.0.0.0 dev wlan0
|
||||
ifconfig wlan0 down
|
||||
fi
|
||||
|
||||
# Private ethernet.
|
||||
if [ -n "$cfg_eth_prv_ip" ]; then
|
||||
ifconfig wlan0:prv down
|
||||
fi
|
||||
}
|
@ -60,17 +60,24 @@ new_unpack()
|
||||
return 1
|
||||
}
|
||||
|
||||
kernel_mtd_part()
|
||||
kernel_dst()
|
||||
{
|
||||
echo -n "* Detecting kernel MTD partition... "
|
||||
echo -n "* Detecting kernel destination... "
|
||||
|
||||
# Kernel resides in the root filesystem.
|
||||
if [ -d /boot/extlinux ]; then
|
||||
echo "not present"
|
||||
echo "filesystem"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if ! [ -f /proc/mtd ]; then
|
||||
echo "not present"
|
||||
echo "filesystem"
|
||||
return 0
|
||||
fi
|
||||
|
||||
grep 'uboot=ext2' /proc/cmdline > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "filesystem"
|
||||
return 0
|
||||
fi
|
||||
|
||||
@ -78,65 +85,21 @@ kernel_mtd_part()
|
||||
if [ -z "$fw_kernel_mtd" ]; then
|
||||
export fw_kernel_mtd="$(grep \"Kernel\" /proc/mtd | cut -f1 -d':')"
|
||||
if [ -z "$fw_kernel_mtd" ]; then
|
||||
echo "not present"
|
||||
echo "failed to detect kernel's MTD partition"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$fw_kernel_mtd"
|
||||
echo "mtd"
|
||||
return 0
|
||||
}
|
||||
|
||||
uboot_mtd_part()
|
||||
{
|
||||
echo -n "* Detecting u-boot MTD partition... "
|
||||
if ! [ -f /proc/mtd ]; then
|
||||
echo "filesystem"
|
||||
return 0
|
||||
fi
|
||||
|
||||
export fw_uboot_mtd="$(grep \"uboot\" /proc/mtd | cut -f1 -d':')"
|
||||
if [ -z "$fw_uboot_mtd" ]; then
|
||||
export fw_uboot_mtd="$(grep \"u-boot\" /proc/mtd | cut -f1 -d':')"
|
||||
if [ -z "$fw_uboot_mtd" ]; then
|
||||
echo "not present"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$fw_uboot_mtd"
|
||||
return 0
|
||||
}
|
||||
|
||||
uboot_mtd_upgrade()
|
||||
{
|
||||
bin="$base/.glued-new/boot/u-boot.bin"
|
||||
|
||||
if ! [ -f "$bin" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ -z "$fw_uboot_mtd" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo -n "* Upgrading u-boot MTD partition... "
|
||||
"$flashcp" -v "$bin" /dev/"$fw_uboot_mtd"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed"
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "done"
|
||||
return 0
|
||||
}
|
||||
|
||||
kernel_mtd_upgrade()
|
||||
kernel_upgrade()
|
||||
{
|
||||
# Upgrade MTD
|
||||
if [ -n "$fw_kernel_mtd" ]; then
|
||||
echo -n "* Upgrading kernel... "
|
||||
"$flashcp" -v "$base/.glued-new/boot/kernel" /dev/"$fw_kernel_mtd"
|
||||
"$flashcp" -v "$base/.glued-new/boot/kernel" /dev/"$fw_kernel_mtd" > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed"
|
||||
return 1
|
||||
@ -239,19 +202,12 @@ rpi2_boot_part_upgrade()
|
||||
fi
|
||||
done
|
||||
|
||||
for f in overlays; do
|
||||
if [ -d "/mnt/$f" ]; then
|
||||
echo -en "* $label: Replacing $f... "
|
||||
rm -rf "/mnt/$f" && cp -r "$base/.glued-new/boot/$f" /mnt
|
||||
echo 'done'
|
||||
fi
|
||||
done
|
||||
|
||||
for dtb in "$base/.glued-new/boot/"*.dtb; do
|
||||
dtb="bcm2709-rpi-2-b.dtb"
|
||||
if [ -f "/mnt/$dtb" ]; then
|
||||
echo -en "* $label: Replacing $dtb... "
|
||||
cp "$dtb" "/mnt"
|
||||
cp "$base/.glued-new/boot/board.dtb" "/mnt/$dtb"
|
||||
echo 'done'
|
||||
done
|
||||
fi
|
||||
|
||||
kernel='kernel7.img'
|
||||
if [ -f "/mnt/$kernel" ]; then
|
||||
@ -272,17 +228,15 @@ rpi2_boot_part_upgrade()
|
||||
return 0
|
||||
}
|
||||
|
||||
# Check if board is a Raspberry Pi 2/3.
|
||||
# Check if board is a Raspberry Pi 2.
|
||||
rpi2_boot_part_upgrade_check()
|
||||
{
|
||||
for machine in 'bcm2709' 'raspberry pi'; do
|
||||
dmesg | grep Machine | grep -i "$machine" > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "* rpi2: machine detected"
|
||||
rpi2_boot_part_upgrade "rpi2" "/dev/mmcblk0p1"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
dmesg | grep Machine | grep BCM2709 > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "* rpi2: machine detected"
|
||||
rpi2_boot_part_upgrade "rpi2" "/dev/mmcblk0p1"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
old_move()
|
||||
@ -330,13 +284,11 @@ start()
|
||||
{
|
||||
clean
|
||||
version || return 1
|
||||
kernel_mtd_part || return 1
|
||||
uboot_mtd_part || return 1
|
||||
kernel_dst || return 1
|
||||
new_unpack || return 1
|
||||
uboot_part_upgrade_check || return 1
|
||||
rpi2_boot_part_upgrade_check || return 1
|
||||
kernel_mtd_upgrade || return 1
|
||||
uboot_mtd_upgrade || return 1
|
||||
kernel_upgrade || return 1
|
||||
old_move || return 1
|
||||
}
|
||||
|
||||
|
@ -49,15 +49,10 @@ host_install()
|
||||
|
||||
target_install()
|
||||
{
|
||||
libdir=lib
|
||||
if [ -d "$cfg_dir_toolchain/$cfg_target_canonical/lib64" ]; then
|
||||
libdir=lib64
|
||||
fi
|
||||
|
||||
$cmd_mkdir \
|
||||
"$cfg_dir_rootfs/usr/$libdir" &&
|
||||
"$cfg_dir_rootfs/usr/lib" &&
|
||||
|
||||
for f in "$cfg_dir_toolchain/$cfg_target_canonical/$libdir/"{libgcc_s,libstdc++}.so*; do
|
||||
for f in "$cfg_dir_toolchain/$cfg_target_canonical/lib/"{libgcc_s,libstdc++}.so*; do
|
||||
base="$(basename $f)"
|
||||
|
||||
if [ $(echo "$base" | grep '\.py' 2> /dev/null) ]; then
|
||||
|
@ -1,6 +1,6 @@
|
||||
version=\
|
||||
(
|
||||
'7.10.1'
|
||||
'7.8.2'
|
||||
)
|
||||
|
||||
url=\
|
||||
@ -10,5 +10,5 @@ url=\
|
||||
|
||||
md5=\
|
||||
(
|
||||
'39e654460c9cdd80200a29ac020cfe11'
|
||||
'a80cf252ed2e775d4e4533341bbf2459'
|
||||
)
|
||||
|
@ -1,37 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'2.0.2'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://hisham.hm/htop/releases/$version/htop-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'7d354d904bad591a931ad57e99fea84a'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Jose Pinto <zepinto@lsts.pt>'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
cd "../htop-$version"
|
||||
./configure --disable-unicode --prefix="${cfg_dir_rootfs}"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cd "../htop-$version"
|
||||
$cmd_make install
|
||||
}
|
||||
|
@ -1,34 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"4.9"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/iw-$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"ae8ccaa154449300c2c02eb90a37eebb"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
mv "../iw_$version/etc" "../iw-$version/"
|
||||
mv "../iw_$version/lib" "../iw-$version/"
|
||||
mv "../iw_$version/sbin" "../iw-$version/"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp -r "etc/"* "$cfg_dir_rootfs/etc/"
|
||||
$cmd_cp -r "sbin/"* "$cfg_dir_rootfs/sbin/"
|
||||
$cmd_cp -r "lib/"* "$cfg_dir_rootfs/lib/"
|
||||
$cmd_cp -r "$pkg_dir/fs/"* "$cfg_dir_rootfs/"
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/bin
|
||||
|
||||
############################# USER INPUT ###########################
|
||||
|
||||
ip_dest=10.0.30.3
|
||||
|
||||
####################################################################
|
||||
|
||||
|
||||
############### DON'T EDIT ##########################################
|
||||
|
||||
check_interval=1
|
||||
log=/opt/.wifi.log
|
||||
wlan=wlan0
|
||||
eth=eth0
|
||||
|
||||
exec 1> /dev/null
|
||||
exec 2>> $log
|
||||
echo $(date) > $log
|
||||
# without check_interval set, we risk a 0 sleep = busy loop
|
||||
if [ ! "$check_interval" ]; then
|
||||
echo "No check interval set!" >> $log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
startWifi () {
|
||||
iw wlan0 connect LSTS >> $log
|
||||
}
|
||||
|
||||
ifconfig $eth down
|
||||
ifconfig $wlan up
|
||||
|
||||
while [ 1 ]; do
|
||||
ping -q -c1 $ip_dest > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo $(date)" attempting restart..." >> $log
|
||||
startWifi
|
||||
sleep 1
|
||||
else
|
||||
echo "IS LINKED" >> $log
|
||||
sleep $check_interval
|
||||
fi
|
||||
done
|
||||
|
||||
#####################################################################
|
@ -16,5 +16,5 @@ build()
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install &&
|
||||
ln -fs ../bin/kmod "$cfg_dir_toolchain/sbin/depmod"
|
||||
ln -fs kmod "$cfg_dir_toolchain/sbin/depmod"
|
||||
}
|
||||
|
@ -1,25 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'1.4'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://github.com/stripydog/kplex/archive/v$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'df198384d2d7dee4b802136f4f9e9d44'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
cd ../kplex-$version && $cmd_make VERBOSE=1 CC="$cmd_target_cc"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp ../kplex-$version/kplex "$cfg_dir_rootfs/usr/bin/kplex"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
version=\
|
||||
(
|
||||
'1.6.23'
|
||||
'1.6.19'
|
||||
)
|
||||
|
||||
url=\
|
||||
@ -10,7 +10,7 @@ url=\
|
||||
|
||||
md5=\
|
||||
(
|
||||
'9b320a05ed4db1f3f0865c8a951fd9aa '
|
||||
'1e6a458429e850fc93c1f3b6dc00a48f'
|
||||
)
|
||||
|
||||
configure()
|
||||
|
@ -1,16 +1,16 @@
|
||||
version=\
|
||||
(
|
||||
'4.4.66'
|
||||
'3.14.63'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://www.kernel.org/pub/linux/kernel/v4.x/linux-$version.tar.xz"
|
||||
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'5353de56bf4621a35afc4384c7e51f30'
|
||||
'6cf8a6b23849f47f511e0e46cfdb6392'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
|
@ -1,16 +1,16 @@
|
||||
version=\
|
||||
(
|
||||
'4.4.66'
|
||||
'3.14.63'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://www.kernel.org/pub/linux/kernel/v4.x/linux-$version.tar.xz"
|
||||
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'5353de56bf4621a35afc4384c7e51f30'
|
||||
'6cf8a6b23849f47f511e0e46cfdb6392'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
@ -25,62 +25,13 @@ requires=\
|
||||
'lz4/host'
|
||||
)
|
||||
|
||||
# This variable is updated by find_patches().
|
||||
patches=()
|
||||
|
||||
# Major/Minor version.
|
||||
linux_mm_version()
|
||||
{
|
||||
echo "$version" | cut -f1-2 -d.
|
||||
}
|
||||
|
||||
# Major/Minor/Patch version.
|
||||
linux_mmp_version()
|
||||
{
|
||||
echo "$version" | cut -f1 -d-
|
||||
}
|
||||
|
||||
find_patches()
|
||||
{
|
||||
patches=(\
|
||||
$(ls -1 \
|
||||
"$pkg_dir/patches/$version/"*.patch \
|
||||
"$pkg_dir/patches/$(linux_mmp_version)/"*.patch \
|
||||
"$pkg_dir/patches/$(linux_mm_version)/"*.patch \
|
||||
"$cfg_dir_system/patches/linux/$version/"*.patch \
|
||||
"$cfg_dir_system/patches/linux/$(linux_mmp_version)/"*.patch \
|
||||
"$cfg_dir_system/patches/linux/$(linux_mm_version)/"*.patch \
|
||||
2> /dev/null | awk '!a[$0]++')
|
||||
)
|
||||
}
|
||||
|
||||
find_patches
|
||||
|
||||
# Get configuration file.
|
||||
linux_cfg_file()
|
||||
{
|
||||
for f in "$version" "$(linux_mmp_version)" "$(linux_mm_version)"; do
|
||||
f="$cfg_dir_system/cfg/linux-$f.cfg"
|
||||
if [ -f "$f" ]; then
|
||||
echo "$f"
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "Candidate kernel configuration file '$f' doesn't exist." 1>&2
|
||||
done
|
||||
|
||||
echo "ERROR: failed to find a valid kernel configuration file." 1>&2
|
||||
return 1
|
||||
}
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
n=0; while [ -n "${patches[$n]}" ]; do
|
||||
patch="${patches[$n]}"
|
||||
echo "* Applying $patch..."
|
||||
(ucat "$patch" | patch -p1) || return 1
|
||||
let n++
|
||||
done
|
||||
patches=$(ls "$pkg_dir/patches/$version/"*.patch\
|
||||
"$cfg_dir_system/patches/linux/$version/"*.patch 2>/dev/null)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
|
||||
if [ -d "$cfg_dir_toolchain/firmware" ]; then
|
||||
tar -C "$cfg_dir_toolchain/firmware" -c -v -f - . | tar -C firmware -x -v -f -
|
||||
@ -90,7 +41,7 @@ post_unpack()
|
||||
refresh()
|
||||
{
|
||||
for rule in configure build target_install; do
|
||||
if [ "$(linux_cfg_file)" -nt "$cfg_dir_builds/linux/$pkg_var/.$rule" ]; then
|
||||
if [ "$cfg_dir_system/cfg/linux-${version}.cfg" -nt "$cfg_dir_builds/linux/$pkg_var/.$rule" ]; then
|
||||
rm "$cfg_dir_builds/linux/$pkg_var/.$rule"
|
||||
fi
|
||||
done
|
||||
@ -100,11 +51,9 @@ configure()
|
||||
{
|
||||
$cmd_make \
|
||||
ARCH=${cfg_target_linux} \
|
||||
mrproper || return 1
|
||||
mrproper &&
|
||||
|
||||
cfg="$(linux_cfg_file)"
|
||||
[ -n "$cfg" ] || return 1
|
||||
$cmd_cp "$cfg" .config || return 1
|
||||
cp "$cfg_dir_system/cfg/linux-${version}.cfg" .config &&
|
||||
|
||||
if [ -f "$cfg_dir_system/files/initramfs_init.sh" ]; then
|
||||
$cmd_mkdir initramfs &&
|
||||
@ -123,18 +72,17 @@ build()
|
||||
{
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux || return 1
|
||||
|
||||
ARCH=$cfg_target_linux &&
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
modules || return 1
|
||||
modules &&
|
||||
|
||||
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
uImage || return 1
|
||||
uImage
|
||||
fi
|
||||
|
||||
# Compressed image.
|
||||
@ -142,7 +90,7 @@ build()
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
zImage || return 1
|
||||
zImage
|
||||
fi
|
||||
|
||||
# Device tree blob.
|
||||
@ -150,7 +98,7 @@ build()
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
dtbs || return 1
|
||||
dtbs
|
||||
fi
|
||||
|
||||
if [ -n "${cfg_target_linux_size}" ]; then
|
||||
@ -160,6 +108,15 @@ build()
|
||||
fi
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
# Device tree blobs.
|
||||
if [ -n "$cfg_target_linux_dtb" ]; then
|
||||
$cmd_mkdir "$cfg_dir_toolchain/boot" &&
|
||||
cp -v "$(dirname $cfg_target_linux_dtb)/"*.dtb "$cfg_dir_toolchain/boot"
|
||||
fi
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
if [ -n "$(file "$cfg_target_linux_kernel" | grep ELF)" ]; then
|
||||
@ -175,31 +132,15 @@ target_install()
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Device tree blobs.
|
||||
dts="arch/$cfg_target_linux/boot/dts"
|
||||
if [ -d "$dts" ]; then
|
||||
$cmd_mkdir "$cfg_dir_rootfs/boot" &&
|
||||
cp -v "$dts/"*.dtb "$cfg_dir_rootfs/boot"
|
||||
fi
|
||||
|
||||
# Device tree overlays.
|
||||
overlays_dir="arch/$cfg_target_linux/boot/dts/overlays"
|
||||
if [ -d "$overlays_dir" ]; then
|
||||
$cmd_mkdir "$cfg_dir_rootfs/boot/overlays" || return 1
|
||||
$cmd_cp "$overlays_dir"/*.dtbo "$cfg_dir_rootfs/boot/overlays" || return 1
|
||||
fi
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
||||
ARCH="$cfg_target_linux" \
|
||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||
KBUILD_VERBOSE=1 \
|
||||
modules_install
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
||||
ARCH="$cfg_target_linux" \
|
||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||
KBUILD_VERBOSE=1 \
|
||||
firmware_install
|
||||
}
|
||||
|
@ -2,19 +2,21 @@
|
||||
|
||||
version=\
|
||||
(
|
||||
'4.4_2017-01-27'
|
||||
'3.18_2015-06-03'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/rpi-linux-$version.zip"
|
||||
"https://github.com/rasmartins/rpi-linux/archive/rpi-linux-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'f31d48a9d2c93509b35e750be489b44c'
|
||||
'0b0255e50ca358b619bb78653ac2db2e'
|
||||
)
|
||||
|
||||
build_dir="rpi-linux-rpi-linux-$version"
|
||||
|
||||
find_patches
|
||||
post_unpack()
|
||||
{
|
||||
rmdir "../linux-$version" &&
|
||||
mv "../rpi-linux-rpi-linux-$version" "../linux-$version"
|
||||
}
|
||||
|
@ -1,27 +0,0 @@
|
||||
. "$cfg_dir_rules/$pkg/default.bash"
|
||||
|
||||
version=\
|
||||
(
|
||||
'4.4.66-rt79'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://www.kernel.org/pub/linux/kernel/v4.x/linux-$(linux_mmp_version).tar.xz"
|
||||
"https://www.kernel.org/pub/linux/kernel/projects/rt/$(linux_mm_version)/patch-$version.patch.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'd68173a31fb60e2195a4015fe1f83e97'
|
||||
'03be9388659d844c362e507ddba2d777'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@oceanscan-mst.com>'
|
||||
)
|
||||
|
||||
patches=("$cfg_dir_downloads/patch-$version.patch.gz" "${patches[@]}")
|
||||
|
||||
build_dir="linux-$(linux_mmp_version)"
|
@ -1,206 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'3.14.63'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'6cf8a6b23849f47f511e0e46cfdb6392'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'bc/host'
|
||||
'kmod/host'
|
||||
'lz4/host'
|
||||
)
|
||||
|
||||
# This variable is updated by find_patches().
|
||||
patches=()
|
||||
|
||||
# Major/Minor version.
|
||||
linux_mm_version()
|
||||
{
|
||||
echo "$version" | cut -f1-2 -d.
|
||||
}
|
||||
|
||||
# Major/Minor/Patch version.
|
||||
linux_mmp_version()
|
||||
{
|
||||
echo "$version" | cut -f1 -d-
|
||||
}
|
||||
|
||||
find_patches()
|
||||
{
|
||||
patches=(\
|
||||
$(ls -1 \
|
||||
"$pkg_dir/patches/$version/"*.patch \
|
||||
"$pkg_dir/patches/$(linux_mmp_version)/"*.patch \
|
||||
"$pkg_dir/patches/$(linux_mm_version)/"*.patch \
|
||||
"$cfg_dir_system/patches/linux/$version/"*.patch \
|
||||
"$cfg_dir_system/patches/linux/$(linux_mmp_version)/"*.patch \
|
||||
"$cfg_dir_system/patches/linux/$(linux_mm_version)/"*.patch \
|
||||
2> /dev/null | awk '!a[$0]++')
|
||||
)
|
||||
}
|
||||
|
||||
find_patches
|
||||
|
||||
# Get configuration file.
|
||||
linux_cfg_file()
|
||||
{
|
||||
for f in "$version" "$(linux_mmp_version)" "$(linux_mm_version)"; do
|
||||
f="$cfg_dir_system/cfg/linux-$f.cfg"
|
||||
if [ -f "$f" ]; then
|
||||
echo "$f"
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "Candidate kernel configuration file '$f' doesn't exist." 1>&2
|
||||
done
|
||||
|
||||
echo "ERROR: failed to find a valid kernel configuration file." 1>&2
|
||||
return 1
|
||||
}
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
cp -r ../linux-3.14.63/* ../linux_3.3-3.14.63
|
||||
n=0; while [ -n "${patches[$n]}" ]; do
|
||||
patch="${patches[$n]}"
|
||||
echo "* Applying $patch..."
|
||||
(ucat "$patch" | patch -p1) || return 1
|
||||
let n++
|
||||
done
|
||||
|
||||
if [ -d "$cfg_dir_toolchain/firmware" ]; then
|
||||
tar -C "$cfg_dir_toolchain/firmware" -c -v -f - . | tar -C firmware -x -v -f -
|
||||
fi
|
||||
}
|
||||
|
||||
refresh()
|
||||
{
|
||||
for rule in configure build target_install; do
|
||||
if [ "$(linux_cfg_file)" -nt "$cfg_dir_builds/linux/$pkg_var/.$rule" ]; then
|
||||
rm "$cfg_dir_builds/linux/$pkg_var/.$rule"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
$cmd_make \
|
||||
ARCH=${cfg_target_linux} \
|
||||
mrproper || return 1
|
||||
|
||||
cfg="$(linux_cfg_file)"
|
||||
[ -n "$cfg" ] || return 1
|
||||
$cmd_cp "$cfg" .config || return 1
|
||||
|
||||
if [ -f "$cfg_dir_system/files/initramfs_init.sh" ]; then
|
||||
$cmd_mkdir initramfs &&
|
||||
$cmd_cp "$pkg_dir/files/initramfs.conf" . &&
|
||||
$cmd_cp "$cfg_dir_system/files/initramfs_init.sh" initramfs/init.sh &&
|
||||
$cmd_cp "$cfg_dir_rootfs/bin/busybox" initramfs/busybox
|
||||
fi
|
||||
|
||||
yes '' | $cmd_make \
|
||||
CROSS_COMPILE=${cfg_target_canonical}- \
|
||||
ARCH=${cfg_target_linux} \
|
||||
oldconfig
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux || return 1
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
modules || return 1
|
||||
|
||||
if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
uImage || return 1
|
||||
fi
|
||||
|
||||
# Compressed image.
|
||||
if [ "$(basename $cfg_target_linux_kernel)" = 'zImage' ]; then
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
zImage || return 1
|
||||
fi
|
||||
|
||||
# Device tree blob.
|
||||
if [ -n "$cfg_target_linux_dtb" ]; then
|
||||
$cmd_make \
|
||||
CROSS_COMPILE=$cfg_target_canonical- \
|
||||
ARCH=$cfg_target_linux \
|
||||
dtbs || return 1
|
||||
fi
|
||||
|
||||
if [ -n "${cfg_target_linux_size}" ]; then
|
||||
dd if="$cfg_target_linux_kernel" of="${cfg_target_linux_kernel}.padded" \
|
||||
ibs="${cfg_target_linux_size}" conv=sync &&
|
||||
mv "${cfg_target_linux_kernel}.padded" "${cfg_target_linux_kernel}"
|
||||
fi
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
if [ -n "$(file "$cfg_target_linux_kernel" | grep ELF)" ]; then
|
||||
strip="$(echo $cfg_dir_toolchain/bin/*-strip)"
|
||||
$strip -s -R .comment "$cfg_target_linux_kernel"
|
||||
fi
|
||||
|
||||
# Kernel image.
|
||||
if [ -n "$cfg_target_linux_kernel" ]; then
|
||||
cp -v "$cfg_target_linux_kernel" "$cfg_dir_rootfs/boot/kernel"
|
||||
else
|
||||
echo "ERROR: failed to find kernel image at '$cfg_target_linux_kernel'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Device tree blobs.
|
||||
dts="arch/$cfg_target_linux/boot/dts"
|
||||
if [ -d "$dts" ]; then
|
||||
$cmd_mkdir "$cfg_dir_rootfs/boot" &&
|
||||
cp -v "$dts/"*.dtb "$cfg_dir_rootfs/boot"
|
||||
fi
|
||||
|
||||
# Device tree overlays.
|
||||
overlays_dir="arch/$cfg_target_linux/boot/dts/overlays"
|
||||
if [ -d "$overlays_dir" ]; then
|
||||
$cmd_mkdir "$cfg_dir_rootfs/boot/overlays" || return 1
|
||||
$cmd_cp "$overlays_dir"/*.dtbo "$cfg_dir_rootfs/boot/overlays" || return 1
|
||||
fi
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
||||
ARCH="$cfg_target_linux" \
|
||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||
KBUILD_VERBOSE=1 \
|
||||
modules_install
|
||||
|
||||
$cmd_make \
|
||||
CROSS_COMPILE="$cfg_target_canonical-" \
|
||||
ARCH="$cfg_target_linux" \
|
||||
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
|
||||
KBUILD_VERBOSE=1 \
|
||||
firmware_install
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"1.2"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/lpg-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"d71e2f282372a5cb1021d9e457a3d53f"
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'bison/host'
|
||||
'flex/host'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
./configure "$cfg_target_canonical-gcc"
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make \
|
||||
BISON="$cfg_dir_toolchain/bin/bison" \
|
||||
FLEX="$cfg_dir_toolchain/bin/flex"
|
||||
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp "lpg" "$cfg_dir_rootfs/usr/bin"
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"5.01"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://www.lsts.pt/glued/memtest86+-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"035b85f2edabc9b4a6b0cf6c9c3acf50"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Tiago Sá Marques <tsmarques@fe.up.pt>'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make \
|
||||
CC=$cmd_target_cc \
|
||||
CXX=$cmd_target_cxx
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp ./memtest.bin $cfg_dir_rootfs/boot/
|
||||
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "Starting memtest in 10 seconds (requires reboot), Ctrl-C to cancel..."
|
||||
for r in 0 1 2 3 4 5 6 7 8 9; do
|
||||
printf "."
|
||||
sleep 1
|
||||
done
|
||||
|
||||
mount -o remount,rw /
|
||||
extlinux -o "memtest" /boot/extlinux/
|
||||
mount -o remount,ro /
|
||||
|
||||
echo "* Rebooting now"
|
||||
reboot
|
79
rules/necsave/default.bash
Normal file
79
rules/necsave/default.bash
Normal file
@ -0,0 +1,79 @@
|
||||
version=\
|
||||
(
|
||||
'master'
|
||||
)
|
||||
|
||||
branch=\
|
||||
(
|
||||
'master'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
"Jose Pinto <zepinto@fe.up.pt>"
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'jansson/default'
|
||||
'czmq/default'
|
||||
'boost/default'
|
||||
'cmake/host'
|
||||
'dune/default'
|
||||
)
|
||||
|
||||
download()
|
||||
{
|
||||
git clone -b $branch "git@necsave.info:necsave/communications.git" source &&
|
||||
cd source &&
|
||||
./update.sh &&
|
||||
cd -
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
$cmd_mkdir build && cd build
|
||||
PKG_CONFIG_PATH="$cfg_dir_toolchain_sysroot/usr/lib/pkgconfig" \
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr/necsave" \
|
||||
-DCMAKE_CXX_COMPILER="$cmd_target_cxx" \
|
||||
-DCMAKE_C_COMPILER="$cmd_target_cc" \
|
||||
-DCMAKE_FIND_ROOT_PATH:PATH="$cfg_dir_toolchain_sysroot/usr" \
|
||||
-DDUNE_HOME="$cfg_dir_toolchain_sysroot/usr" \
|
||||
-DCMAKE_SYSTEM_NAME:STRING=Linux \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE:STRING=BOTH \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY:STRING=ONLY \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM:STRING=BOTH \
|
||||
../source
|
||||
}
|
||||
|
||||
refresh()
|
||||
{
|
||||
cd ../default
|
||||
rm .build .host_install .target_install .postconfigure
|
||||
cd -
|
||||
cd integration && git pull && cd - &&
|
||||
cd source && git pull && cd - &&
|
||||
for r in duneplatform missionplanner perception vehicleplanner; do
|
||||
cd "source/src/Modules/$r" && git pull && cd -
|
||||
done
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make -C build
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make -C build install
|
||||
}
|
||||
|
||||
#target_install()
|
||||
#{
|
||||
# rm -rf "$cfg_dir_rootfs/usr/necsave" &&
|
||||
# $cmd_cp -r "$cfg_dir_toolchain_sysroot/usr/necsave" "$cfg_dir_rootfs/usr" &&
|
||||
# ln -fs /opt/lsts/necsave/log "$cfg_dir_rootfs/usr/necsave/log" &&
|
||||
# $cmd_cp -r "integration/REP16"/* "$cfg_dir_rootfs/usr/necsave"
|
||||
#
|
||||
#}
|
@ -1,6 +1,6 @@
|
||||
version=\
|
||||
(
|
||||
"2.4.13"
|
||||
"2.4.11"
|
||||
)
|
||||
|
||||
url=\
|
||||
@ -10,7 +10,7 @@ url=\
|
||||
|
||||
md5=\
|
||||
(
|
||||
'886b0c511209b2f3129649928135967c'
|
||||
'32f498451bff1817a60e1aabc2939575'
|
||||
)
|
||||
|
||||
requires=\
|
||||
@ -63,11 +63,6 @@ host_install()
|
||||
{
|
||||
cd ${pkg_build_dir}/../build &&
|
||||
$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()
|
||||
|
@ -30,7 +30,6 @@ configure()
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--with-privsep-path=$cfg_dir_rootfs/var/empty \
|
||||
--disable-strip
|
||||
|
||||
}
|
||||
|
@ -1,46 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"3.19"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz"
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'flex/host'
|
||||
'bison/host'
|
||||
'zlib/default'
|
||||
)
|
||||
|
||||
# v3.19
|
||||
md5=\
|
||||
(
|
||||
'd3fc8316d4d4d04b65cbc2d70799e763'
|
||||
)
|
||||
|
||||
#3.14.63
|
||||
# md5=('6cf8a6b23849f47f511e0e46cfdb6392')
|
||||
|
||||
build()
|
||||
{
|
||||
|
||||
cd ../linux-$version/
|
||||
$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" \
|
||||
NO_LIBELF=1 \
|
||||
LDFLAGS=-static \
|
||||
-C "./tools/perf/"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp ../linux-$version/tools/perf/perf \
|
||||
$cfg_dir_rootfs/usr/bin/
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"1.0.0"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/raspicam-$version.zip"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"169e62fd17d41455a42711a2f9c54fd1"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'uv4l/default'
|
||||
'cmake/host'
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
LINKER_ADDED_FLAGS="-Wl,-rpath,${cfg_dir_rootfs}/usr/lib"
|
||||
|
||||
${cfg_dir_toolchain}/usr/local/bin/cmake \
|
||||
-DCMAKE_SYSTEM_NAME="Linux" \
|
||||
-DCMAKE_SYSTEM_VERSION="1" \
|
||||
-DCMAKE_FIND_ROOT_PATH="${cfg_dir_toolchain_sysroot}/usr ${cfg_dir_rootfs}/usr" \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
|
||||
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
||||
-DCMAKE_C_COMPILER="${cmd_target_cc}" \
|
||||
-DCMAKE_CXX_COMPILER="${cmd_target_cxx}" \
|
||||
-DCMAKE_C_FLAGS="${cfg_target_gcc_flags}" \
|
||||
.
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make VERBOSE=1
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
cd build/
|
||||
$cmd_cp -r "lib/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
|
||||
$cmd_cp -r "inc/"* "$cfg_dir_toolchain_sysroot/usr/include/"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cd build/
|
||||
$cmd_cp -r "lib/"* "$cfg_dir_rootfs/usr/lib/"
|
||||
$cmd_cp -r "bin/"* "$cfg_dir_rootfs/usr/bin/"
|
||||
}
|
@ -1,29 +1,31 @@
|
||||
version=\
|
||||
(
|
||||
'2017-02-02'
|
||||
'2015-06-03'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/rpi-boot-firmware-$version.zip"
|
||||
"https://github.com/rasmartins/rpi-boot-firmware/archive/rpi-boot-firmware-$version.tar.gz"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'eb42664fce4d73f167064e697dfacb76'
|
||||
'a80ee36b66cccda4e9ccb7eb26bd6bb8'
|
||||
)
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_mkdir "$cfg_dir_rootfs/boot"
|
||||
$cmd_mkdir \
|
||||
"$cfg_dir_rootfs/boot" &&
|
||||
|
||||
$cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/"
|
||||
for f in bootcode.bin fixup.dat start.elf; do
|
||||
$cmd_cp -r "../$pkg-$pkg-$version/$f" "$cfg_dir_rootfs/boot"
|
||||
done &&
|
||||
|
||||
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
||||
|
@ -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
|
||||
|
1
rules/rpi-boot-firmware/fs/boot/config.txt
Normal file
1
rules/rpi-boot-firmware/fs/boot/config.txt
Normal file
@ -0,0 +1 @@
|
||||
arm_freq=1000
|
@ -1,32 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'0.96'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'590b2340f66993a978d9806a734d5ea8'
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Kristian Klausen <kristian.klausen@itk.ntnu.no>'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make \
|
||||
CC=$cmd_target_cc cyclictest \
|
||||
CFLAGS="$cfg_target_gcc_flags"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
cp -a cyclictest "$cfg_dir_rootfs/usr/bin/" &&
|
||||
$cmd_target_strip "$cfg_dir_rootfs/usr/bin/cyclictest"
|
||||
}
|
@ -34,7 +34,7 @@ build()
|
||||
cd app/str2str/gcc
|
||||
$cmd_make \
|
||||
CC=$cmd_target_cc \
|
||||
CTARGET="${cfg_target_gcc_flags} -DSVR_REUSEADDR" \
|
||||
CTARGET="$cfg_target_gcc_flags" \
|
||||
BINDIR="${cfg_dir_toolchain_sysroot}/usr/bin"
|
||||
|
||||
cd ../../rtkrcv/gcc
|
||||
|
@ -1,6 +1,3 @@
|
||||
LABEL linux
|
||||
KERNEL /boot/kernel
|
||||
APPEND rootwait root=$cfg_kernel_boot_dev rootfstype=ext2 ro $cfg_kernel_extra_args
|
||||
|
||||
LABEL memtest
|
||||
LINUX /boot/memtest.bin
|
@ -43,11 +43,11 @@ host_install()
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_mkdir "$cfg_dir_rootfs/boot"
|
||||
if [ -f MLO ]; then
|
||||
$cmd_cp MLO "$cfg_dir_rootfs/boot"
|
||||
fi
|
||||
|
||||
for f in MLO u-boot.img u-boot.bin; do
|
||||
if [ -f "$f" ]; then
|
||||
$cmd_cp "$f" "$cfg_dir_rootfs/boot"
|
||||
fi
|
||||
done
|
||||
if [ -f u-boot.img ]; then
|
||||
$cmd_cp u-boot.img "$cfg_dir_rootfs/boot"
|
||||
fi
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ requires=\
|
||||
configure()
|
||||
{
|
||||
cd "$pkg_build_dir" &&
|
||||
CFLAGS="-I$cfg_dir_toolchain/include" \
|
||||
"../util-linux-$version/configure" \
|
||||
--prefix="$cfg_dir_toolchain" \
|
||||
--disable-wall \
|
||||
|
@ -1,41 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
"1.0.0"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/uv4l.$version.tar.bz2"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"869e884accbfa9c2356e2fd9307dd71c"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
mv "../etc" "../uv4l-$version/"
|
||||
mv "../usr" "../uv4l-$version/"
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_cp -r "usr/lib/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
|
||||
$cmd_cp -r "usr/include/"* "$cfg_dir_toolchain_sysroot/usr/include/"
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp -r "usr/lib/"* "$cfg_dir_rootfs/usr/lib/"
|
||||
$cmd_cp -r "usr/bin/"* "$cfg_dir_rootfs/usr/bin/"
|
||||
|
||||
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
||||
|
||||
|
@ -1,28 +0,0 @@
|
||||
start()
|
||||
{
|
||||
killall uv4l
|
||||
modprobe cuse &&
|
||||
uv4l \
|
||||
-nopreview \
|
||||
--auto-video_nr \
|
||||
--driver raspicam \
|
||||
--encoding h264 \
|
||||
--width 1080 \
|
||||
--height 720 \
|
||||
--framerate 20 \
|
||||
--quality 10 \
|
||||
--server-option \
|
||||
--port=9090 \
|
||||
--server-option \
|
||||
--max-queued-connections=30 \
|
||||
--server-option \
|
||||
--max-streams=25 \
|
||||
--server-option \
|
||||
--max-threads=29
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
killall uv4l
|
||||
rmmod uv4l
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
version=\
|
||||
(
|
||||
'1.4.2'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://github.com/zerotier/ZeroTierOne/archive/$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'c173f8b61bcdb23844a2669ff0d7bdf0'
|
||||
)
|
||||
|
||||
build()
|
||||
{
|
||||
cd ../ZeroTierOne-$version && $cmd_make \
|
||||
VERBOSE=1 \
|
||||
CC="$cmd_target_cc" \
|
||||
CXX="$cmd_target_cxx" \
|
||||
LD="$cmd_target_ld" \
|
||||
STRIP="$cmd_target_strip" \
|
||||
CC_FLAGS="$cfg_target_gcc_flags"
|
||||
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_cp "../ZeroTierOne-$version/zerotier-one" "$cfg_dir_rootfs/usr/bin/zerotier-one"
|
||||
ln -sf "$cfg_dir_rootfs/usr/bin/zerotier-one" "$cfg_dir_rootfs/usr/bin/zerotier-cli"
|
||||
ln -sf "$cfg_dir_rootfs/usr/bin/zerotier-one" "$cfg_dir_rootfs/usr/bin/zerotier-idtool"
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -6,12 +6,13 @@ cfg_services1='lauv-storage-server'
|
||||
cfg_services2='dune'
|
||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi'
|
||||
cfg_target_linux_kernel='arch/arm/boot/zImage'
|
||||
cfg_target_linux_dtb='arch/arm/boot/dts/bcm2709-rpi-2-b.dtb'
|
||||
cfg_ptpd_interface='eth0'
|
||||
cfg_terminal='ttyAMA0'
|
||||
cfg_lauv_storage_dir='/opt/lsts/dune/log'
|
||||
cfg_partitions=\
|
||||
(
|
||||
rpi-boot BOOT0 512B 32MiB
|
||||
rpi-boot boot0 512B 32MiB
|
||||
root root0 32MiB 544MiB
|
||||
data data0 544MiB -1
|
||||
)
|
||||
|
@ -1,9 +0,0 @@
|
||||
# Core.
|
||||
arm_freq=1000
|
||||
|
||||
# Disable BT on Rpi3.
|
||||
dtoverlay=pi3-disable-bt
|
||||
|
||||
# Enable RasPicam
|
||||
start_x=1
|
||||
gpu_mem=128
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='lauv-arpao-aux'
|
||||
cfg_eth_ext_ip='10.0.10.63'
|
@ -3,4 +3,3 @@ cfg_eth_ext_ip='10.0.200.24'
|
||||
cfg_eth_ext_mk='255.255.0.0'
|
||||
cfg_eth_ext_gw='10.0.0.1'
|
||||
cfg_ptpd_interface='eth0'
|
||||
cfg_services1=''
|
||||
|
@ -1,6 +0,0 @@
|
||||
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=''
|
@ -1,3 +0,0 @@
|
||||
cfg_hostname='lauv-nemo-1-aux'
|
||||
cfg_eth_ext_ip='10.0.10.63'
|
||||
cfg_packages="$cfg_packages boost"
|
@ -6,5 +6,5 @@ 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'
|
||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost europa'
|
||||
|
||||
|
@ -6,5 +6,5 @@ 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'
|
||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c boost europa'
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
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'
|
||||
|
@ -1,10 +0,0 @@
|
||||
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'
|
||||
|
@ -3,3 +3,5 @@ cfg_eth_ext_ip='10.0.10.53'
|
||||
cfg_eth_ext_mk='255.255.0.0'
|
||||
cfg_eth_ext_gw='10.0.0.1'
|
||||
cfg_ptpd_interface='eth0'
|
||||
cfg_lauv_storage='internal'
|
||||
cfg_packages="$cfg_packages necsave"
|
||||
|
@ -1,10 +1,9 @@
|
||||
cfg_hostname='lauv-xplore-3-aux'
|
||||
cfg_eth_ext_ip='10.0.10.143'
|
||||
cfg_hostname='lauv-xplore-2-aux'
|
||||
cfg_eth_ext_ip='10.0.10.183'
|
||||
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'
|
||||
|
||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi libantlr3c jansson zeromq czmq boost europa'
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='buv-petinga-1'
|
||||
cfg_eth_ext_ip='10.0.10.170'
|
@ -1,4 +1,2 @@
|
||||
cfg_hostname='caravela'
|
||||
cfg_eth_ext_ip='10.0.10.40'
|
||||
cfg_packages="$cfg_packages ppp iptables"
|
||||
cfg_modules="$cfg_modules ftdi_sio"
|
||||
|
@ -136,7 +136,7 @@ CONFIG_HAVE_PCSPKR_PLATFORM=y
|
||||
CONFIG_EXPERT=y
|
||||
# CONFIG_UID16 is not set
|
||||
# CONFIG_SYSCTL_SYSCALL is not set
|
||||
CONFIG_KALLSYMS=y
|
||||
# CONFIG_KALLSYMS is not set
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_BUG=y
|
||||
CONFIG_ELF_CORE=y
|
||||
@ -1529,7 +1529,7 @@ CONFIG_USB_SERIAL_GENERIC=y
|
||||
# CONFIG_USB_SERIAL_CP210X is not set
|
||||
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
|
||||
# CONFIG_USB_SERIAL_EMPEG is not set
|
||||
CONFIG_USB_SERIAL_FTDI_SIO=m
|
||||
CONFIG_USB_SERIAL_FTDI_SIO=y
|
||||
# CONFIG_USB_SERIAL_VISOR is not set
|
||||
# CONFIG_USB_SERIAL_IPAQ is not set
|
||||
# CONFIG_USB_SERIAL_IR is not set
|
||||
@ -1900,7 +1900,7 @@ CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
|
||||
#
|
||||
# Compile-time checks and compiler options
|
||||
#
|
||||
CONFIG_DEBUG_INFO=y
|
||||
# CONFIG_DEBUG_INFO is not set
|
||||
# CONFIG_ENABLE_WARN_DEPRECATED is not set
|
||||
# CONFIG_ENABLE_MUST_CHECK is not set
|
||||
CONFIG_FRAME_WARN=2048
|
||||
@ -2209,3 +2209,4 @@ CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
|
||||
# CONFIG_AVERAGE is not set
|
||||
# CONFIG_CORDIC is not set
|
||||
# CONFIG_DDR is not set
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@ cfg_services0='dropbear network storage upgrade syslog escc ptpd setserial'
|
||||
cfg_services1=''
|
||||
cfg_services2='dune'
|
||||
cfg_modules=''
|
||||
cfg_packages='coreboot-lsts emm-8p-xt-eeprom zlib dropbear rsync busybox flashrom e2fsprogs socat linux escc syslinux syslinux/host ptpd ntp uswitch pciutils bzip2 memtest86+'
|
||||
cfg_packages='coreboot-lsts emm-8p-xt-eeprom zlib dropbear rsync busybox flashrom e2fsprogs socat linux escc syslinux syslinux/host ptpd ntp uswitch pciutils bzip2'
|
||||
cfg_terminal='ttyS0'
|
||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
|
||||
cfg_ptpd_master='true'
|
||||
@ -12,5 +12,5 @@ cfg_ptpd_interface='eth0'
|
||||
cfg_eth_ext_mk='255.255.0.0'
|
||||
cfg_eth_ext_gw='10.0.0.1'
|
||||
cfg_eth_prv_ip='192.168.0.1'
|
||||
cfg_escc_script=''
|
||||
cfg_escc_script='/etc/escc/hg1700.sh'
|
||||
cfg_kernel_extra_args='panic=5 quiet'
|
||||
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='geode-testbed'
|
||||
cfg_eth_ext_ip='10.0.200.64'
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='lauv-arpao'
|
||||
cfg_eth_ext_ip='10.0.10.60'
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='lauv-nemo-1'
|
||||
cfg_eth_ext_ip='10.0.10.60'
|
@ -1,3 +1,2 @@
|
||||
cfg_hostname='lauv-xplore-1'
|
||||
cfg_eth_ext_ip='10.0.10.120'
|
||||
cfg_modules="$cfg_modules ftdi_sio"
|
||||
|
@ -1,2 +1,4 @@
|
||||
cfg_hostname='lauv-xplore-2'
|
||||
cfg_eth_ext_ip='10.0.10.130'
|
||||
cfg_packages="$cfg_packages necsave"
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='lauv-xplore-3'
|
||||
cfg_eth_ext_ip='10.0.10.140'
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='lauv-xplore-4'
|
||||
cfg_eth_ext_ip='10.0.10.150'
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='lauv-xplore-5'
|
||||
cfg_eth_ext_ip='10.0.10.160'
|
@ -1,9 +1,3 @@
|
||||
cfg_hostname='lauv-xtreme-2'
|
||||
cfg_eth_ext_ip='10.0.10.50'
|
||||
cfg_packages="$cfg_packages rpcbind nfs-utils"
|
||||
cfg_services1='lauv-storage-client'
|
||||
cfg_lauv_storage_host='10.0.10.53'
|
||||
cfg_lauv_storage_paths='/opt/lsts/dune/log'
|
||||
cfg_lauv_storage_timeout=60
|
||||
cfg_escc_script='/etc/escc/hg1700-psimar.sh'
|
||||
cfg_dune_i18n='C'
|
||||
|
@ -1,85 +0,0 @@
|
||||
diff -Nru a/drivers/tty/serial/8250/8250_aim104_com8.c b/drivers/tty/serial/8250/8250_aim104_com8.c
|
||||
--- a/drivers/tty/serial/8250/8250_aim104_com8.c
|
||||
+++ b/drivers/tty/serial/8250/8250_aim104_com8.c
|
||||
@@ -0,0 +1,51 @@
|
||||
+#include <linux/module.h>
|
||||
+#include <linux/init.h>
|
||||
+#include <linux/serial_8250.h>
|
||||
+
|
||||
+#define PORT(_base,_irq) \
|
||||
+ { \
|
||||
+ .iobase = _base, \
|
||||
+ .irq = _irq, \
|
||||
+ .uartclk = 1843200, \
|
||||
+ .iotype = UPIO_PORT, \
|
||||
+ .flags = UPF_BOOT_AUTOCONF | UPF_BUGGY_UART, \
|
||||
+ }
|
||||
+
|
||||
+static struct plat_serial8250_port aim104_data[] = {
|
||||
+ PORT(0x100, 10),
|
||||
+ PORT(0x108, 10),
|
||||
+ PORT(0x110, 10),
|
||||
+ PORT(0x118, 10),
|
||||
+ PORT(0x120, 10),
|
||||
+ PORT(0x128, 10),
|
||||
+ PORT(0x130, 10),
|
||||
+ PORT(0x138, 10),
|
||||
+ PORT(0x300, 6),
|
||||
+ PORT(0x308, 6),
|
||||
+ PORT(0x310, 6),
|
||||
+ PORT(0x318, 6),
|
||||
+ PORT(0x320, 6),
|
||||
+ PORT(0x328, 6),
|
||||
+ PORT(0x330, 6),
|
||||
+ PORT(0x338, 6),
|
||||
+ { },
|
||||
+};
|
||||
+
|
||||
+static struct platform_device exar_device = {
|
||||
+ .name = "serial8250",
|
||||
+ .id = PLAT8250_DEV_PLATFORM,
|
||||
+ .dev = {
|
||||
+ .platform_data = aim104_data,
|
||||
+ },
|
||||
+};
|
||||
+
|
||||
+static int __init exar_init(void)
|
||||
+{
|
||||
+ return platform_device_register(&exar_device);
|
||||
+}
|
||||
+
|
||||
+module_init(exar_init);
|
||||
+
|
||||
+MODULE_AUTHOR("Ricardo Martins");
|
||||
+MODULE_DESCRIPTION("8250 serial probe module for Eurotech AIM104-COM8");
|
||||
+MODULE_LICENSE("GPL");
|
||||
diff -Nru a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig
|
||||
--- a/drivers/tty/serial/8250/Kconfig
|
||||
+++ b/drivers/tty/serial/8250/Kconfig
|
||||
@@ -225,6 +225,15 @@ config SERIAL_8250_EXAR_ST16C554
|
||||
To compile this driver as a module, choose M here: the module
|
||||
will be called 8250_exar_st16c554.
|
||||
|
||||
+config SERIAL_8250_AIM104_COM8
|
||||
+ tristate "Support Eurotech AIM104-COM8 Dual Quad UART"
|
||||
+ depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
|
||||
+ help
|
||||
+ Eurotech AIM104-COM8 Dual Quad UART.
|
||||
+
|
||||
+ To compile this driver as a module, choose M here: the module
|
||||
+ will be called 8250_aim104_com8.
|
||||
+
|
||||
config SERIAL_8250_HUB6
|
||||
tristate "Support Hub6 cards"
|
||||
depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS
|
||||
diff -Nru a/drivers/tty/serial/8250/Makefile b/drivers/tty/serial/8250/Makefile
|
||||
--- a/drivers/tty/serial/8250/Makefile
|
||||
+++ b/drivers/tty/serial/8250/Makefile
|
||||
@@ -17,6 +17,7 @@ obj-$(CONFIG_SERIAL_8250_FOURPORT) += 8250_fourport.o
|
||||
obj-$(CONFIG_SERIAL_8250_ACCENT) += 8250_accent.o
|
||||
obj-$(CONFIG_SERIAL_8250_BOCA) += 8250_boca.o
|
||||
obj-$(CONFIG_SERIAL_8250_EXAR_ST16C554) += 8250_exar_st16c554.o
|
||||
+obj-$(CONFIG_SERIAL_8250_AIM104_COM8) += 8250_aim104_com8.o
|
||||
obj-$(CONFIG_SERIAL_8250_HUB6) += 8250_hub6.o
|
||||
obj-$(CONFIG_SERIAL_8250_MCA) += 8250_mca.o
|
||||
obj-$(CONFIG_SERIAL_8250_FSL) += 8250_fsl.o
|
@ -1,14 +0,0 @@
|
||||
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
|
||||
index 52d82d2..613c7e9 100644
|
||||
--- a/drivers/tty/serial/8250/8250_port.c
|
||||
+++ b/drivers/tty/serial/8250/8250_port.c
|
||||
@@ -132,8 +132,7 @@ static const struct serial8250_config uart_config[] = {
|
||||
.name = "ST16654",
|
||||
.fifo_size = 64,
|
||||
.tx_loadsz = 32,
|
||||
- .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01 |
|
||||
- UART_FCR_T_TRIG_10,
|
||||
+ .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_00,
|
||||
.rxtrig_bytes = {8, 16, 56, 60},
|
||||
.flags = UART_CAP_FIFO | UART_CAP_EFR | UART_CAP_SLEEP,
|
||||
},
|
@ -1,51 +0,0 @@
|
||||
# For more options and information see
|
||||
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
kernel=uboot.bin
|
||||
device_tree_address=0x02000000
|
||||
|
||||
# enable i2c
|
||||
dtparam=i2c_arm=on
|
||||
dtparam=spi=on
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
#hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,19 +0,0 @@
|
||||
cfg_architecture='cortex-a72'
|
||||
cfg_storage='data0:ext4:/opt'
|
||||
cfg_services0='dropbear network storage upgrade syslog ptpd'
|
||||
cfg_services1=''
|
||||
cfg_services2='dune'
|
||||
cfg_modules=''
|
||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware bison binutils openssl linux/rpi exiftool libusb'
|
||||
cfg_target_linux_kernel='arch/arm/boot/zImage'
|
||||
cfg_ptpd_interface='eth0'
|
||||
cfg_eth_ext_mk='255.255.0.0'
|
||||
cfg_eth_ext_gw='10.0.0.1'
|
||||
cfg_terminal='tty1'
|
||||
cfg_partitions=\
|
||||
(
|
||||
rpi-boot BOOT0 512B 32MiB
|
||||
root root0 32MiB 544MiB
|
||||
data data0 544MiB -1
|
||||
)
|
||||
|
@ -1,3 +0,0 @@
|
||||
cfg_hostname="lctr-a72xx-testbed"
|
||||
cfg_eth_ext_ip="10.0.200.18"
|
||||
cfg_kernel_boot_dev='/dev/mmcblk0p1'
|
3
systems/lctr-a8xx/lauv-xtreme-2-doam.cfg
Normal file
3
systems/lctr-a8xx/lauv-xtreme-2-doam.cfg
Normal file
@ -0,0 +1,3 @@
|
||||
cfg_hostname='lauv-xtreme-2-doam'
|
||||
cfg_eth_ext_ip='10.0.10.53'
|
||||
cfg_kernel_boot_dev='/dev/sda1'
|
5
systems/lctr-a8xx/lauv-xtreme-2-trex.cfg
Normal file
5
systems/lctr-a8xx/lauv-xtreme-2-trex.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
cfg_packages='dropbear rsync busybox e2fsprogs libjpeg-turbo ptpd linux syslinux syslinux/host bzip2 libantlr3c boost europa'
|
||||
cfg_hostname='lauv-xtreme-2-doam'
|
||||
cfg_eth_ext_ip='10.0.10.52'
|
||||
cfg_kernel_boot_dev='/dev/sda1'
|
||||
cfg_services2='dune trex'
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@ cfg_modules=''
|
||||
cfg_services0='dropbear network storage upgrade syslog'
|
||||
cfg_services1='huawei ntpd'
|
||||
cfg_services2='dune'
|
||||
cfg_packages='u-boot dropbear rsync busybox linux/v3_14 uswitch ppp iptables socat bridge-utils ntp e2fsprogs i2c-tools iperf dnsmasq'
|
||||
cfg_packages='u-boot dropbear rsync busybox linux uswitch ppp iptables socat bridge-utils ntp e2fsprogs i2c-tools iperf dnsmasq'
|
||||
cfg_target_linux_kernel='arch/arm/boot/zImage'
|
||||
cfg_target_linux_dtb='arch/arm/boot/dts/omap3-lctr-a9xx.dtb'
|
||||
cfg_target_uboot_config='igep0020'
|
||||
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='manta-rugged-2'
|
||||
cfg_eth_ext_ip='10.0.30.25'
|
@ -1,2 +0,0 @@
|
||||
cfg_hostname='manta-sabuvis'
|
||||
cfg_eth_ext_ip='10.0.30.26'
|
@ -1,105 +0,0 @@
|
||||
diff --git linux-4.4.66/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
||||
index 30bbc37..7241be6 100644
|
||||
--- linux-4.4.66/arch/arm/boot/dts/Makefile
|
||||
+++ linux-4.4.66/arch/arm/boot/dts/Makefile
|
||||
@@ -421,6 +421,7 @@
|
||||
omap3-igep0020-rev-f.dtb \
|
||||
omap3-igep0030.dtb \
|
||||
omap3-igep0030-rev-g.dtb \
|
||||
+ omap3-lctr-a9xx.dtb \
|
||||
omap3-ldp.dtb \
|
||||
omap3-lilly-dbb056.dtb \
|
||||
omap3-n900.dtb \
|
||||
diff -Nru linux-4.4.66/arch/arm/boot/dts/omap3-lctr-a9xx.dts linux-4.4.66.rasm/arch/arm/boot/dts/omap3-lctr-a9xx.dts
|
||||
--- linux-4.4.66/arch/arm/boot/dts/omap3-lctr-a9xx.dts
|
||||
+++ linux-4.4.66.rasm/arch/arm/boot/dts/omap3-lctr-a9xx.dts
|
||||
@@ -0,0 +1,89 @@
|
||||
+/*
|
||||
+ * Copyright (C) 2014 Universidade do Porto - Faculdade de Engenharia
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU General Public License version 2 as
|
||||
+ * published by the Free Software Foundation.
|
||||
+ */
|
||||
+
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+#include "omap3-igep0020.dts"
|
||||
+
|
||||
+/ {
|
||||
+ leds {
|
||||
+ boot {
|
||||
+ linux,default-trigger = "heartbeat";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ gpio_keys {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&gpio_keys_pins>;
|
||||
+ compatible = "gpio-keys";
|
||||
+
|
||||
+ button@0 {
|
||||
+ label = "Button 0";
|
||||
+ gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>; /* gpio_139 */
|
||||
+ linux,code = <BTN_0>;
|
||||
+ debounce-interval = <5>;
|
||||
+ };
|
||||
+
|
||||
+ button@1 {
|
||||
+ label = "Button 1";
|
||||
+ gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>; /* gpio_138 */
|
||||
+ linux,code = <BTN_1>;
|
||||
+ debounce-interval = <5>;
|
||||
+ };
|
||||
+
|
||||
+ button@2 {
|
||||
+ label = "Button 2";
|
||||
+ gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>; /* gpio_137 */
|
||||
+ linux,code = <BTN_2>;
|
||||
+ debounce-interval = <5>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ pps {
|
||||
+ compatible = "pps-gpio";
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pps_pins>;
|
||||
+ gpios = <&gpio5 8 GPIO_ACTIVE_HIGH>;
|
||||
+ assert-rising-edge;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&omap3_pmx_core {
|
||||
+ gpio_keys_pins: pinmux_gpio_keys_pins {
|
||||
+ pinctrl-single,pins = <
|
||||
+ 0x136 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* gpio_137 - button 2 */
|
||||
+ 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* gpio_138 - button 1 */
|
||||
+ 0x13a (PIN_INPUT_PULLDOWN | MUX_MODE4) /* gpio_139 - button 0 */
|
||||
+ >;
|
||||
+ };
|
||||
+
|
||||
+ pps_pins: pinmux_pps_pins {
|
||||
+ pinctrl-single,pins = <
|
||||
+ 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* gpio_136 */
|
||||
+ >;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&i2c2 {
|
||||
+ rtc@68 {
|
||||
+ compatible = "dallas,ds1307";
|
||||
+ reg = <0x68>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+/* Disable WiFi/Bluetooth combo. */
|
||||
+&mmc2 {
|
||||
+ status = "disabled";
|
||||
+};
|
||||
+
|
||||
+&vdd33 {
|
||||
+ status = "disabled";
|
||||
+};
|
||||
+
|
||||
+&lbee1usjyc_pdn {
|
||||
+ status = "disabled";
|
||||
+};
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user