Compare commits
	
		
			84 Commits
		
	
	
		
			feature/dr
			...
			feature/me
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					7dc03d18c5 | ||
| 
						 | 
					dbae4f69f6 | ||
| 
						 | 
					29298872e8 | ||
| 
						 | 
					a55b6dbc6a | ||
| 
						 | 
					d4be30bec6 | ||
| 
						 | 
					a6564e1b5d | ||
| 
						 | 
					5a8237118f | ||
| 
						 | 
					3704b05ffa | ||
| 
						 | 
					3164e87a8e | ||
| 
						 | 
					3496db07d2 | ||
| 
						 | 
					699fa27067 | ||
| 
						 | 
					a153ccca60 | ||
| 
						 | 
					4e13aec0a1 | ||
| 
						 | 
					3d8202f28c | ||
| 
						 | 
					8b15f2d169 | ||
| 
						 | 
					fa4d1cf7f5 | ||
| 
						 | 
					7aef5753e3 | ||
| 
						 | 
					1b51c79e8d | ||
| 
						 | 
					d6757ac880 | ||
| 
						 | 
					949348e239 | ||
| 
						 | 
					7fd5b0ca82 | ||
| 
						 | 
					d79bfb5739 | ||
| 
						 | 
					2ffbea8fa9 | ||
| 
						 | 
					c6ad9ec474 | ||
| 
						 | 
					cb5e6a5d87 | ||
| 
						 | 
					e6c7b8fc82 | ||
| 
						 | 
					a7e2cbedda | ||
| 
						 | 
					422c024635 | ||
| 
						 | 
					5819ff41e4 | ||
| 
						 | 
					78da3914b4 | ||
| 
						 | 
					1ab074d0bd | ||
| 
						 | 
					db04cf06cb | ||
| 
						 | 
					d02fa39ddb | ||
| 
						 | 
					eeefa5908d | ||
| 
						 | 
					fc77579bf4 | ||
| 
						 | 
					d9a1157878 | ||
| 
						 | 
					e5dbc2924c | ||
| 
						 | 
					7d77726e80 | ||
| 
						 | 
					cb4c8a5739 | ||
| 
						 | 
					910862e084 | ||
| 
						 | 
					560f4d8930 | ||
| 
						 | 
					bc788dc955 | ||
| 
						 | 
					206460e467 | ||
| 
						 | 
					4691e93747 | ||
| 
						 | 
					735b5f2e79 | ||
| 
						 | 
					b530b76581 | ||
| 
						 | 
					5cfdd6d3d9 | ||
| 
						 | 
					55641a6693 | ||
| 
						 | 
					dd0212bfa0 | ||
| 
						 | 
					333f3ebe55 | ||
| 
						 | 
					bed09c213e | ||
| 
						 | 
					714aa28c92 | ||
| 
						 | 
					e66fdc9adc | ||
| 
						 | 
					842160dd4a | ||
| 
						 | 
					c428102633 | ||
| 
						 | 
					f79aec516f | ||
| 
						 | 
					d273414068 | ||
| 
						 | 
					a95d7a868a | ||
| 
						 | 
					b0ceda4ea2 | ||
| 
						 | 
					2b5b6b3c2f | ||
| 
						 | 
					fc659cd451 | ||
| 
						 | 
					bb0a00c1ee | ||
| 
						 | 
					e5f7d6bfdd | ||
| 
						 | 
					eee43266c8 | ||
| 
						 | 
					05a6f19cf3 | ||
| 
						 | 
					9d95b45410 | ||
| 
						 | 
					b17eeece35 | ||
| 
						 | 
					29358c9c3e | ||
| 
						 | 
					f0b77fdfc5 | ||
| 
						 | 
					c6ef0368e7 | ||
| 
						 | 
					4e63f7ea02 | ||
| 
						 | 
					1b13099af1 | ||
| 
						 | 
					082c614dde | ||
| 
						 | 
					18c53ad585 | ||
| 
						 | 
					a7df46d61a | ||
| 
						 | 
					6a3376b24a | ||
| 
						 | 
					24f7c187a9 | ||
| 
						 | 
					f4933e8c15 | ||
| 
						 | 
					a45a415415 | ||
| 
						 | 
					b2230b577f | ||
| 
						 | 
					0c9e3b6622 | ||
| 
						 | 
					8e99dc6870 | ||
| 
						 | 
					28372cd2fd | ||
| 
						 | 
					cce9bdb98c | 
@@ -71,7 +71,11 @@ download()
 | 
				
			|||||||
            fi
 | 
					            fi
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # First try OceanScan-MST mirror.
 | 
						# First try LSTS mirror.
 | 
				
			||||||
 | 
						lsts_url="http://lsts.pt/glued/$(basename $u)"
 | 
				
			||||||
 | 
					        download_tool "$lsts_url" "$cfg_dir_downloads/$file"
 | 
				
			||||||
 | 
					        if [ $? -ne 0 ]; then
 | 
				
			||||||
 | 
						    # Then try OceanScan-MST mirror.
 | 
				
			||||||
            omst_url="http://www.omst.pt/glued/$(basename $u)"
 | 
					            omst_url="http://www.omst.pt/glued/$(basename $u)"
 | 
				
			||||||
            download_tool "$omst_url" "$cfg_dir_downloads/$file"
 | 
					            download_tool "$omst_url" "$cfg_dir_downloads/$file"
 | 
				
			||||||
            if [ $? -ne 0 ]; then
 | 
					            if [ $? -ne 0 ]; then
 | 
				
			||||||
@@ -82,6 +86,7 @@ download()
 | 
				
			|||||||
                    exit 1
 | 
					                    exit 1
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
 | 
					        md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
 | 
				
			||||||
        if [ "$s" != "$md5" ]; then
 | 
					        if [ "$s" != "$md5" ]; then
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										68
									
								
								mkupdate.bash
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										68
									
								
								mkupdate.bash
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,68 @@
 | 
				
			|||||||
 | 
					#! /bin/bash
 | 
				
			||||||
 | 
					###########################################################################
 | 
				
			||||||
 | 
					# GLUED: GNU/Linux Uniform Environment Distribution                       #
 | 
				
			||||||
 | 
					# Copyright (C) 2007-2017 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"
 | 
				
			||||||
@@ -26,4 +26,5 @@ requires=\
 | 
				
			|||||||
    'parted/host'
 | 
					    'parted/host'
 | 
				
			||||||
    'dosfstools/host'
 | 
					    'dosfstools/host'
 | 
				
			||||||
    'e2fsprogs/host'
 | 
					    'e2fsprogs/host'
 | 
				
			||||||
 | 
					    'cmake/host'
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										52
									
								
								rules/czmq/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								rules/czmq/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,52 @@
 | 
				
			|||||||
 | 
					version=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "3.0.2"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					url=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "https://github.com/zeromq/czmq/archive/v$version.tar.gz"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					md5=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "23e9885f7ee3ce88d99d0425f52e9be1"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					configure()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    ./autogen.sh && \
 | 
				
			||||||
 | 
					    ./configure \
 | 
				
			||||||
 | 
					        --prefix="${cfg_dir_toolchain_sysroot}/usr" \
 | 
				
			||||||
 | 
					        --target="$cfg_target_canonical" \
 | 
				
			||||||
 | 
					        --host="$cfg_target_canonical" \
 | 
				
			||||||
 | 
					        --build="$cfg_host_canonical"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					host_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make install
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					requires=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    'libtool/host'
 | 
				
			||||||
 | 
					    'zeromq'
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					target_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  # Libs:
 | 
				
			||||||
 | 
					  for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libczmq.*; do
 | 
				
			||||||
 | 
					    if [ -L "$f" ]; then
 | 
				
			||||||
 | 
					      $cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					      $cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					  done
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										37
									
								
								rules/dune/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								rules/dune/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
				
			|||||||
 | 
					version=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    'master'
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					requires=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    'cmake/host'
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					download()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    git clone "git@github.com:LSTS/dune.git" dune &&
 | 
				
			||||||
 | 
					        cd dune && git checkout "$version" && cd - &&
 | 
				
			||||||
 | 
					        git clone "git@git.lsts.pt:dune-private.git" dune/private &&
 | 
				
			||||||
 | 
					        cd dune/private && git checkout "$version" && cd -
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					configure()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_mkdir build &&
 | 
				
			||||||
 | 
					        cd build &&
 | 
				
			||||||
 | 
					        cmake \
 | 
				
			||||||
 | 
					            -DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr" \
 | 
				
			||||||
 | 
					            -DCROSS="$cmd_target_cc" \
 | 
				
			||||||
 | 
					            ../dune
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make -C build
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					host_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make -C build install
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										57
									
								
								rules/exiv2/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								rules/exiv2/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,57 @@
 | 
				
			|||||||
 | 
					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,12 +15,14 @@ md5=\
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
configure()
 | 
					configure()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    mkdir -p ../build
 | 
				
			||||||
    ./configure \
 | 
					    ./configure \
 | 
				
			||||||
        --sysroot="$cfg_dir_toolchain_sysroot" \
 | 
					        --sysroot="$cfg_dir_toolchain_sysroot" \
 | 
				
			||||||
        --prefix="$cfg_dir_rootfs/usr" \
 | 
					        --prefix="$cfg_dir_rootfs/usr" \
 | 
				
			||||||
        --incdir="$cfg_dir_toolchain_sysroot/usr/include" \
 | 
					        --incdir="$cfg_dir_toolchain_sysroot/usr/include" \
 | 
				
			||||||
        --enable-cross-compile \
 | 
					        --enable-cross-compile \
 | 
				
			||||||
        --cross-prefix="$cfg_target_canonical-" \
 | 
					        --cross-prefix="$cfg_target_canonical-" \
 | 
				
			||||||
 | 
					        --libdir="$cfg_dir_builds/ffmpeg/build" \
 | 
				
			||||||
        --target-os="linux" \
 | 
					        --target-os="linux" \
 | 
				
			||||||
        --enable-shared \
 | 
					        --enable-shared \
 | 
				
			||||||
        --disable-static \
 | 
					        --disable-static \
 | 
				
			||||||
@@ -39,10 +41,16 @@ host_install()
 | 
				
			|||||||
    $cmd_make \
 | 
					    $cmd_make \
 | 
				
			||||||
	LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
 | 
						LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
 | 
				
			||||||
        install-headers
 | 
					        install-headers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    $cmd_make \
 | 
				
			||||||
 | 
					        install-libs
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
target_install()
 | 
					target_install()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    $cmd_make \
 | 
					    $cmd_make \
 | 
				
			||||||
        install-libs
 | 
					        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/"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								rules/filesystem/fs/etc/rc.d/check_wlan
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								rules/filesystem/fs/etc/rc.d/check_wlan
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					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."
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										87
									
								
								rules/filesystem/fs/etc/rc.d/network-wlan
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										87
									
								
								rules/filesystem/fs/etc/rc.d/network-wlan
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,87 @@
 | 
				
			|||||||
 | 
					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
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										34
									
								
								rules/iw/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								rules/iw/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
				
			|||||||
 | 
					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/"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										46
									
								
								rules/iw/fs/etc/check_wlan
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								rules/iw/fs/etc/check_wlan
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,46 @@
 | 
				
			|||||||
 | 
					#!/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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#####################################################################
 | 
				
			||||||
							
								
								
									
										45
									
								
								rules/jansson/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								rules/jansson/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,45 @@
 | 
				
			|||||||
 | 
					version=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "2.7"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					url=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "http://www.digip.org/jansson/releases/jansson-2.7.tar.gz"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					md5=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "3a106a465bbb77637550b422f5b262ef"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					configure()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    ./configure \
 | 
				
			||||||
 | 
					        --prefix="${cfg_dir_toolchain_sysroot}/usr" \
 | 
				
			||||||
 | 
					        --target="$cfg_target_canonical" \
 | 
				
			||||||
 | 
					        --host="$cfg_target_canonical" \
 | 
				
			||||||
 | 
					        --build="$cfg_host_canonical"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					host_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make install
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					target_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  # Libs:
 | 
				
			||||||
 | 
					  for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libjansson.*; do
 | 
				
			||||||
 | 
					    if [ -L "$f" ]; then
 | 
				
			||||||
 | 
					      $cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					      $cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					  done
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -2,21 +2,19 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
version=\
 | 
					version=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    '3.18_2015-06-03'
 | 
					    '4.4_2017-01-27'
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
url=\
 | 
					url=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    "https://github.com/rasmartins/rpi-linux/archive/rpi-linux-$version.tar.gz"
 | 
					    "http://lsts.pt/glued/rpi-linux-$version.zip"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
md5=\
 | 
					md5=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    '0b0255e50ca358b619bb78653ac2db2e'
 | 
					    'f31d48a9d2c93509b35e750be489b44c'
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
post_unpack()
 | 
					build_dir="rpi-linux-rpi-linux-$version"
 | 
				
			||||||
{
 | 
					
 | 
				
			||||||
    rmdir "../linux-$version" &&
 | 
					find_patches
 | 
				
			||||||
        mv "../rpi-linux-rpi-linux-$version" "../linux-$version"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										29
									
								
								rules/lpg/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								rules/lpg/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					version=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
						   "1.2"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					url=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "http://lsts.pt/glued/lpg-$version.tar.gz"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					md5=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "beb0f3b8be474868b074dca66ced5b48"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					configure()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    ./configure "$cfg_target_canonical-gcc"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					target_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_cp "lpg" "$cfg_dir_rootfs/usr/bin"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										32
									
								
								rules/memtest86+/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								rules/memtest86+/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					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 -
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										14
									
								
								rules/memtest86+/fs/usr/bin/start-memtest
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								rules/memtest86+/fs/usr/bin/start-memtest
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					#! /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
 | 
				
			||||||
							
								
								
									
										60
									
								
								rules/raspicam/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								rules/raspicam/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
				
			|||||||
 | 
					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,31 +1,29 @@
 | 
				
			|||||||
version=\
 | 
					version=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    '2015-06-03'
 | 
					    '2017-02-02'
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
url=\
 | 
					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=\
 | 
					maintainer=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    'Ricardo Martins <rasm@fe.up.pt>'
 | 
					    'Ricardo Martins <rasm@fe.up.pt>'
 | 
				
			||||||
 | 
					    'Pedro Gonçalves <pedro@lsts.pt>'
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
md5=\
 | 
					md5=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    'a80ee36b66cccda4e9ccb7eb26bd6bb8'
 | 
					    'eb42664fce4d73f167064e697dfacb76'
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
target_install()
 | 
					target_install()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    $cmd_mkdir \
 | 
					    $cmd_mkdir "$cfg_dir_rootfs/boot"
 | 
				
			||||||
        "$cfg_dir_rootfs/boot" &&
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for f in bootcode.bin fixup.dat start.elf; do
 | 
					    $cmd_cp "../$pkg-$version/"* "$cfg_dir_rootfs/boot/"
 | 
				
			||||||
        $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 -
 | 
					    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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,6 @@
 | 
				
			|||||||
LABEL linux
 | 
					LABEL linux
 | 
				
			||||||
   KERNEL /boot/kernel
 | 
					   KERNEL /boot/kernel
 | 
				
			||||||
   APPEND rootwait root=$cfg_kernel_boot_dev rootfstype=ext2 ro $cfg_kernel_extra_args
 | 
					   APPEND rootwait root=$cfg_kernel_boot_dev rootfstype=ext2 ro $cfg_kernel_extra_args
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LABEL memtest
 | 
				
			||||||
 | 
					   LINUX /boot/memtest.bin
 | 
				
			||||||
							
								
								
									
										41
									
								
								rules/uv4l/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								rules/uv4l/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
				
			|||||||
 | 
					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 -
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										28
									
								
								rules/uv4l/fs/etc/rc.d/raspicam
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								rules/uv4l/fs/etc/rc.d/raspicam
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					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
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										46
									
								
								rules/zeromq/default.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								rules/zeromq/default.bash
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,46 @@
 | 
				
			|||||||
 | 
					version=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "4.1.3"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					url=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "http://download.zeromq.org/zeromq-$version.tar.gz"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					md5=\
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    "d0824317348cfb44b8692e19cc73dc3a"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					configure()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    ./configure \
 | 
				
			||||||
 | 
					        --prefix="${cfg_dir_toolchain_sysroot}/usr" \
 | 
				
			||||||
 | 
					        --target="$cfg_target_canonical" \
 | 
				
			||||||
 | 
					        --host="$cfg_target_canonical" \
 | 
				
			||||||
 | 
					        --build="$cfg_host_canonical" \
 | 
				
			||||||
 | 
					        --without-libsodium
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					host_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    $cmd_make install
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					target_install()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  # Libs:
 | 
				
			||||||
 | 
					  for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libzmq.*; do
 | 
				
			||||||
 | 
					    if [ -L "$f" ]; then
 | 
				
			||||||
 | 
					      $cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					      $cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					  done
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
										
											
												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_services2='dune'
 | 
				
			||||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind nfs-utils rpi-boot-firmware linux/rpi'
 | 
					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_kernel='arch/arm/boot/zImage'
 | 
				
			||||||
cfg_target_linux_dtb='arch/arm/boot/dts/bcm2709-rpi-2-b.dtb'
 | 
					 | 
				
			||||||
cfg_ptpd_interface='eth0'
 | 
					cfg_ptpd_interface='eth0'
 | 
				
			||||||
cfg_terminal='ttyAMA0'
 | 
					cfg_terminal='ttyAMA0'
 | 
				
			||||||
cfg_lauv_storage_dir='/opt/lsts/dune/log'
 | 
					cfg_lauv_storage_dir='/opt/lsts/dune/log'
 | 
				
			||||||
cfg_partitions=\
 | 
					cfg_partitions=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    rpi-boot boot0  512B    32MiB
 | 
					    rpi-boot BOOT0  512B    32MiB
 | 
				
			||||||
    root     root0  32MiB   544MiB
 | 
					    root     root0  32MiB   544MiB
 | 
				
			||||||
    data     data0  544MiB  -1
 | 
					    data     data0  544MiB  -1
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1,9 @@
 | 
				
			|||||||
 | 
					# Core.
 | 
				
			||||||
arm_freq=1000
 | 
					arm_freq=1000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Disable BT on Rpi3.
 | 
				
			||||||
 | 
					dtoverlay=pi3-disable-bt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Enable RasPicam
 | 
				
			||||||
 | 
					start_x=1
 | 
				
			||||||
 | 
					gpu_mem=128
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,3 +3,4 @@ cfg_eth_ext_ip='10.0.200.24'
 | 
				
			|||||||
cfg_eth_ext_mk='255.255.0.0'
 | 
					cfg_eth_ext_mk='255.255.0.0'
 | 
				
			||||||
cfg_eth_ext_gw='10.0.0.1'
 | 
					cfg_eth_ext_gw='10.0.0.1'
 | 
				
			||||||
cfg_ptpd_interface='eth0'
 | 
					cfg_ptpd_interface='eth0'
 | 
				
			||||||
 | 
					cfg_services1=''
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ cfg_services0='dropbear network storage upgrade syslog escc ptpd setserial'
 | 
				
			|||||||
cfg_services1=''
 | 
					cfg_services1=''
 | 
				
			||||||
cfg_services2='dune'
 | 
					cfg_services2='dune'
 | 
				
			||||||
cfg_modules=''
 | 
					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'
 | 
					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_terminal='ttyS0'
 | 
					cfg_terminal='ttyS0'
 | 
				
			||||||
cfg_target_linux_kernel='arch/x86/boot/bzImage'
 | 
					cfg_target_linux_kernel='arch/x86/boot/bzImage'
 | 
				
			||||||
cfg_ptpd_master='true'
 | 
					cfg_ptpd_master='true'
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								systems/lctr-b2xx/lauv-noptilus-1-aux.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								systems/lctr-b2xx/lauv-noptilus-1-aux.cfg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					cfg_hostname='lauv-noptilus-1-aux'
 | 
				
			||||||
 | 
					cfg_storage='data0:ext4:/opt data1:ext4:/opt/lsts/dune/log'
 | 
				
			||||||
 | 
					cfg_eth_ext_ip='10.0.10.83'
 | 
				
			||||||
 | 
					cfg_eth_ext_mk='255.255.0.0'
 | 
				
			||||||
 | 
					cfg_eth_ext_gw='10.0.0.1'
 | 
				
			||||||
 | 
					cfg_ptpd_interface='eth0'
 | 
				
			||||||
 | 
					cfg_packages="$cfg_packages boost jansson czmq zeromq"
 | 
				
			||||||
							
								
								
									
										7
									
								
								systems/lctr-b2xx/lauv-noptilus-2-aux.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								systems/lctr-b2xx/lauv-noptilus-2-aux.cfg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					cfg_hostname='lauv-noptilus-2-aux'
 | 
				
			||||||
 | 
					cfg_storage='data0:ext4:/opt data1:ext4:/opt/lsts/dune/log'
 | 
				
			||||||
 | 
					cfg_eth_ext_ip='10.0.10.93'
 | 
				
			||||||
 | 
					cfg_eth_ext_mk='255.255.0.0'
 | 
				
			||||||
 | 
					cfg_eth_ext_gw='10.0.0.1'
 | 
				
			||||||
 | 
					cfg_ptpd_interface='eth0'
 | 
				
			||||||
 | 
					cfg_packages="$cfg_packages boost jansson czmq zeromq"
 | 
				
			||||||
@@ -4,3 +4,4 @@ cfg_eth_ext_ip='10.0.10.103'
 | 
				
			|||||||
cfg_eth_ext_mk='255.255.0.0'
 | 
					cfg_eth_ext_mk='255.255.0.0'
 | 
				
			||||||
cfg_eth_ext_gw='10.0.0.1'
 | 
					cfg_eth_ext_gw='10.0.0.1'
 | 
				
			||||||
cfg_ptpd_interface='eth0'
 | 
					cfg_ptpd_interface='eth0'
 | 
				
			||||||
 | 
					cfg_packages="$cfg_packages boost jansson czmq zeromq"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +0,0 @@
 | 
				
			|||||||
cfg_hostname='mariner-01'
 | 
					 | 
				
			||||||
cfg_storage='data0:ext4:/opt'
 | 
					 | 
				
			||||||
cfg_eth_ext_ip='10.0.20.125'
 | 
					 | 
				
			||||||
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 libav'
 | 
					 | 
				
			||||||
@@ -3,4 +3,4 @@ cfg_storage='data0:ext4:/opt'
 | 
				
			|||||||
cfg_eth_ext_ip='10.0.20.105'
 | 
					cfg_eth_ext_ip='10.0.20.105'
 | 
				
			||||||
cfg_eth_ext_mk='255.255.0.0'
 | 
					cfg_eth_ext_mk='255.255.0.0'
 | 
				
			||||||
cfg_eth_ext_gw='10.0.0.1'
 | 
					cfg_eth_ext_gw='10.0.0.1'
 | 
				
			||||||
cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux libav'
 | 
					cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux opencv exiv2 libav'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,4 +3,5 @@ cfg_storage='data0:ext4:/opt'
 | 
				
			|||||||
cfg_eth_ext_ip='10.0.20.110'
 | 
					cfg_eth_ext_ip='10.0.20.110'
 | 
				
			||||||
cfg_eth_ext_mk='255.255.0.0'
 | 
					cfg_eth_ext_mk='255.255.0.0'
 | 
				
			||||||
cfg_eth_ext_gw='10.0.0.1'
 | 
					cfg_eth_ext_gw='10.0.0.1'
 | 
				
			||||||
cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux libav'
 | 
					cfg_services1='huawei'
 | 
				
			||||||
 | 
					cfg_packages='u-boot dropbear rsync busybox e2fsprogs ptpd i2c-tools uswitch ppp iptables am33xx-cm3/host linux opencv exiv2 libav'
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										5496
									
								
								systems/lctr-rpi/cfg/linux-4.4_2017-01-27.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5496
									
								
								systems/lctr-rpi/cfg/linux-4.4_2017-01-27.cfg
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -5,14 +5,13 @@ cfg_services0='network dropbear storage upgrade syslog ptpd'
 | 
				
			|||||||
cfg_services2='dune'
 | 
					cfg_services2='dune'
 | 
				
			||||||
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi'
 | 
					cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi'
 | 
				
			||||||
cfg_target_linux_kernel='arch/arm/boot/zImage'
 | 
					cfg_target_linux_kernel='arch/arm/boot/zImage'
 | 
				
			||||||
cfg_target_linux_dtb='arch/arm/boot/dts/bcm2709-rpi-2-b.dtb'
 | 
					 | 
				
			||||||
cfg_ptpd_interface='eth0'
 | 
					cfg_ptpd_interface='eth0'
 | 
				
			||||||
cfg_eth_ext_mk='255.255.0.0'
 | 
					cfg_eth_ext_mk='255.255.0.0'
 | 
				
			||||||
cfg_eth_ext_gw='10.0.0.1'
 | 
					cfg_eth_ext_gw='10.0.0.1'
 | 
				
			||||||
cfg_terminal='ttyAMA0'
 | 
					cfg_terminal='tty1'
 | 
				
			||||||
cfg_partitions=\
 | 
					cfg_partitions=\
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    rpi-boot boot0  512B    32MiB
 | 
					    rpi-boot BOOT0  512B    32MiB
 | 
				
			||||||
    root     root0  32MiB   544MiB
 | 
					    root     root0  32MiB   544MiB
 | 
				
			||||||
    data     data0  544MiB  -1
 | 
					    data     data0  544MiB  -1
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1,9 @@
 | 
				
			|||||||
 | 
					# Core.
 | 
				
			||||||
arm_freq=1000
 | 
					arm_freq=1000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Disable BT on Rpi3.
 | 
				
			||||||
 | 
					dtoverlay=pi3-disable-bt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Enable RasPicam
 | 
				
			||||||
 | 
					start_x=1
 | 
				
			||||||
 | 
					gpu_mem=128
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								systems/lctr-rpi/fs/etc/inittab
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								systems/lctr-rpi/fs/etc/inittab
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					::sysinit:/sbin/services sysinit
 | 
				
			||||||
 | 
					::restart:/sbin/init
 | 
				
			||||||
 | 
					::respawn:-/usr/sbin/dropbear -F
 | 
				
			||||||
 | 
					::shutdown:/sbin/services syshalt
 | 
				
			||||||
							
								
								
									
										6
									
								
								systems/lctr-rpi/mariner-01.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								systems/lctr-rpi/mariner-01.cfg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					cfg_hostname='mariner-01'
 | 
				
			||||||
 | 
					cfg_eth_ext_ip='10.0.20.125'
 | 
				
			||||||
 | 
					cfg_packages="$cfg_packages opencv raspicam exiv2 libav iw"
 | 
				
			||||||
 | 
					cfg_modules="$cfg_modules ftdi_sio rt73usb"
 | 
				
			||||||
 | 
					cfg_services0='network-wlan dropbear storage upgrade syslog ptpd check_wlan'
 | 
				
			||||||
 | 
					cfg_ptpd_interface='wlan0'
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
cfg_hostname='nest-1'
 | 
					cfg_hostname='nest-1'
 | 
				
			||||||
cfg_eth_ext_ip='10.0.200.40'
 | 
					cfg_eth_ext_ip='10.0.35.1'
 | 
				
			||||||
 | 
					cfg_services1='huawei'
 | 
				
			||||||
cfg_packages="$cfg_packages ppp iptables"
 | 
					cfg_packages="$cfg_packages ppp iptables"
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										9
									
								
								systems/lctr-rpi/test-rpi.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								systems/lctr-rpi/test-rpi.cfg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					cfg_hostname='test-rpi'
 | 
				
			||||||
 | 
					cfg_eth_ext_ip='10.0.200.52'
 | 
				
			||||||
 | 
					cfg_services1=''
 | 
				
			||||||
 | 
					cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi raspicam libjpeg-turbo v4l-utils uv4l iw'
 | 
				
			||||||
 | 
					cfg_services0='network-wlan dropbear storage upgrade syslog ptpd check_wlan'
 | 
				
			||||||
 | 
					cfg_modules="$cfg_modules ftdi_sio rt73usb"
 | 
				
			||||||
 | 
					cfg_terminal='tty1'
 | 
				
			||||||
 | 
					cfg_ptpd_interface='wlan0'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										4
									
								
								systems/lctr-rpi/x2o-01.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								systems/lctr-rpi/x2o-01.cfg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					cfg_hostname='x2o-01'
 | 
				
			||||||
 | 
					cfg_eth_ext_ip='10.0.20.140'
 | 
				
			||||||
 | 
					cfg_packages="$cfg_packages raspicam libjpeg-turbo v4l-utils uv4l libav"
 | 
				
			||||||
 | 
					cfg_modules="$cfg_modules ftdi_sio"
 | 
				
			||||||
							
								
								
									
										4
									
								
								systems/lctr-rpi/x2o-02.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								systems/lctr-rpi/x2o-02.cfg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					cfg_hostname='x2o-02'
 | 
				
			||||||
 | 
					cfg_eth_ext_ip='10.0.20.145'
 | 
				
			||||||
 | 
					cfg_packages="$cfg_packages raspicam libjpeg-turbo v4l-utils uv4l libav"
 | 
				
			||||||
 | 
					cfg_modules="$cfg_modules ftdi_sio"
 | 
				
			||||||
							
								
								
									
										5
									
								
								systems/lctr-rpi/x8-08.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								systems/lctr-rpi/x8-08.cfg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					cfg_hostname='x8-08'
 | 
				
			||||||
 | 
					cfg_eth_ext_ip='10.0.20.115'
 | 
				
			||||||
 | 
					cfg_services1='huawei'
 | 
				
			||||||
 | 
					cfg_packages="$cfg_packages opencv raspicam exiv2 libav uswitch"
 | 
				
			||||||
 | 
					cfg_modules="$cfg_modules ftdi_sio"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user