Compare commits
24 Commits
feature/ec
...
feature/ra
Author | SHA1 | Date | |
---|---|---|---|
|
fc659cd451 | ||
|
bb0a00c1ee | ||
|
e5f7d6bfdd | ||
|
eee43266c8 | ||
|
05a6f19cf3 | ||
|
9d95b45410 | ||
|
b17eeece35 | ||
|
29358c9c3e | ||
|
f0b77fdfc5 | ||
|
c6ef0368e7 | ||
|
4e63f7ea02 | ||
|
1b13099af1 | ||
|
082c614dde | ||
|
18c53ad585 | ||
|
a7df46d61a | ||
|
6a3376b24a | ||
|
24f7c187a9 | ||
|
f4933e8c15 | ||
|
a45a415415 | ||
|
b2230b577f | ||
|
0c9e3b6622 | ||
|
8e99dc6870 | ||
|
28372cd2fd | ||
|
cce9bdb98c |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,4 +10,3 @@
|
||||
/lauv-aux-rpi
|
||||
/ntnu-b2xx
|
||||
/stamp9g20
|
||||
/lctr-rpi
|
||||
|
@@ -1,6 +1,6 @@
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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 #
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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 #
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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 #
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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 #
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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 #
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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,4 +26,5 @@ requires=\
|
||||
'parted/host'
|
||||
'dosfstools/host'
|
||||
'e2fsprogs/host'
|
||||
'cmake/host'
|
||||
)
|
||||
|
@@ -2,21 +2,19 @@
|
||||
|
||||
version=\
|
||||
(
|
||||
'3.18_2015-06-03'
|
||||
'4.4_2017-01-27'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://github.com/rasmartins/rpi-linux/archive/rpi-linux-$version.tar.gz"
|
||||
"http://lsts.pt/glued/rpi-linux-$version.zip"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'0b0255e50ca358b619bb78653ac2db2e'
|
||||
'f31d48a9d2c93509b35e750be489b44c'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
rmdir "../linux-$version" &&
|
||||
mv "../rpi-linux-rpi-linux-$version" "../linux-$version"
|
||||
}
|
||||
build_dir="rpi-linux-rpi-linux-$version"
|
||||
|
||||
find_patches
|
||||
|
54
rules/raspicam/default.bash
Normal file
54
rules/raspicam/default.bash
Normal file
@@ -0,0 +1,54 @@
|
||||
version=\
|
||||
(
|
||||
"1.0.0"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://lsts.pt/glued/raspicam-$version.zip"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"169e62fd17d41455a42711a2f9c54fd1"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
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,31 +1,29 @@
|
||||
version=\
|
||||
(
|
||||
'2015-06-03'
|
||||
'2017-02-02'
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"https://github.com/rasmartins/rpi-boot-firmware/archive/rpi-boot-firmware-$version.tar.gz"
|
||||
"http://lsts.pt/glued/rpi-boot-firmware-$version.zip"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
'Ricardo Martins <rasm@fe.up.pt>'
|
||||
'Pedro Gonçalves <pedro@lsts.pt>'
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
'a80ee36b66cccda4e9ccb7eb26bd6bb8'
|
||||
'eb42664fce4d73f167064e697dfacb76'
|
||||
)
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_mkdir \
|
||||
"$cfg_dir_rootfs/boot" &&
|
||||
$cmd_mkdir "$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 &&
|
||||
$cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/"
|
||||
|
||||
tar -C "$pkg_dir/fs" -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
dwc_otg.lpm_enable=0 console=ttyAMA0,115200,8n1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet
|
||||
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet
|
||||
|
45
rules/uv4l/default.bash
Normal file
45
rules/uv4l/default.bash
Normal file
@@ -0,0 +1,45 @@
|
||||
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/"
|
||||
touch startStreamRaspiCam.sh
|
||||
echo "#!/bin/sh" >> startStreamRaspiCam.sh
|
||||
echo "killall uv4l" >> startStreamRaspiCam.sh
|
||||
echo "modprobe cuse" >> startStreamRaspiCam.sh
|
||||
echo "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'" >> startStreamRaspiCam.sh
|
||||
}
|
||||
|
||||
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/"
|
||||
$cmd_cp -r "startStreamRaspiCam.sh" "$cfg_dir_rootfs/usr/bin/"
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
5497
systems/lauv-aux-rpi/cfg/linux-4.4_2017-01-27.cfg
Normal file
5497
systems/lauv-aux-rpi/cfg/linux-4.4_2017-01-27.cfg
Normal file
File diff suppressed because it is too large
Load Diff
@@ -6,13 +6,12 @@ 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 +1,9 @@
|
||||
# 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,3 +3,4 @@ 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=''
|
||||
|
10
systems/lauv-aux-rpi/test-rpi.cfg
Normal file
10
systems/lauv-aux-rpi/test-rpi.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
cfg_hostname='test-rpi'
|
||||
cfg_eth_ext_ip='10.0.10.116'
|
||||
cfg_eth_ext_mk='255.255.0.0'
|
||||
cfg_eth_ext_gw='10.0.0.1'
|
||||
cfg_ptpd_interface='eth0'
|
||||
cfg_services1=''
|
||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd ntp rpcbind nfs-utils rpi-boot-firmware linux/rpi raspicam libjpeg-turbo v4l-utils uv4l'
|
||||
cfg_modules="$cfg_modules ftdi_sio"
|
||||
cfg_terminal='tty1'
|
||||
|
@@ -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
|
||||
@@ -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
|
||||
|
@@ -1,2 +0,0 @@
|
||||
cfg_hostname='lauv-arpao'
|
||||
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,6 +0,0 @@
|
||||
cfg_hostname='echobox'
|
||||
cfg_storage='data0:ext4:/opt'
|
||||
cfg_eth_ext_ip='10.0.200.41'
|
||||
cfg_eth_ext_mk='255.255.0.0'
|
||||
cfg_eth_ext_gw='10.0.0.1'
|
||||
cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux'
|
@@ -1,31 +0,0 @@
|
||||
diff -Nru linux-3.14.63/arch/arm/boot/dts/am335x-lctr-b2xx.dts linux-3.14.63.mc/arch/arm/boot/dts/am335x-lctr-b2xx.dts
|
||||
--- linux-3.14.63/arch/arm/boot/dts/am335x-lctr-b2xx.dts 2017-01-17 14:12:07.019022866 +0000
|
||||
+++ linux-3.14.63.mc/arch/arm/boot/dts/am335x-lctr-b2xx.dts 2017-01-17 14:26:45.657383756 +0000
|
||||
@@ -60,6 +60,16 @@
|
||||
0x154 (PIN_OUTPUT_PULLDOWN | MUX_MODE1)
|
||||
>;
|
||||
};
|
||||
+
|
||||
+ /* UART4. */
|
||||
+ uart4_pins: pinmux_uart4_pins {
|
||||
+ pinctrl-single,pins = <
|
||||
+ /* uart4_rxd */
|
||||
+ 0x70 (PIN_INPUT_PULLUP | MUX_MODE6)
|
||||
+ /* uart4_txd */
|
||||
+ 0x74 (PIN_OUTPUT_PULLDOWN | MUX_MODE6)
|
||||
+ >;
|
||||
+ };
|
||||
};
|
||||
|
||||
/* Enable UART1. */
|
||||
@@ -75,3 +85,10 @@
|
||||
pinctrl-0 = <&uart2_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+/* Enable UART4. */
|
||||
+&uart4 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart4_pins>;
|
||||
+ status = "okay";
|
||||
+};
|
File diff suppressed because it is too large
Load Diff
@@ -1,18 +0,0 @@
|
||||
cfg_architecture='cortex-a8-hardfp'
|
||||
cfg_storage='data0:ext4:/opt'
|
||||
cfg_modules=''
|
||||
cfg_services0='network dropbear storage upgrade syslog ptpd'
|
||||
cfg_services2='dune'
|
||||
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_dtb='arch/arm/boot/dts/bcm2709-rpi-2-b.dtb'
|
||||
cfg_ptpd_interface='eth0'
|
||||
cfg_eth_ext_mk='255.255.0.0'
|
||||
cfg_eth_ext_gw='10.0.0.1'
|
||||
cfg_terminal='ttyAMA0'
|
||||
cfg_partitions=\
|
||||
(
|
||||
rpi-boot boot0 512B 32MiB
|
||||
root root0 32MiB 544MiB
|
||||
data data0 544MiB -1
|
||||
)
|
@@ -1 +0,0 @@
|
||||
arm_freq=1000
|
@@ -1,2 +0,0 @@
|
||||
ttyAMA0 root:root 660 >terminal
|
||||
ttyUSB[0-9]* root:root 660 */sbin/mdev-ttyusb
|
@@ -1,4 +0,0 @@
|
||||
cfg_hostname='nest-1'
|
||||
cfg_eth_ext_ip='10.0.200.40'
|
||||
cfg_packages="$cfg_packages ppp iptables"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 Universidade do Porto - Faculdade de Engenharia #
|
||||
# Copyright (C) 2007-2015 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,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
###########################################################################
|
||||
# GLUED: GNU/Linux Uniform Environment Distribution #
|
||||
# Copyright (C) 2007-2017 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 #
|
||||
|
Reference in New Issue
Block a user