Add build scripts for embedded (netboot) edition

This commit is contained in:
Floris Bos 2022-02-14 11:03:37 +01:00
parent 71754dd164
commit 25947fc199
223 changed files with 32637 additions and 1 deletions

View file

@ -0,0 +1,42 @@
#!/bin/sh
#
# Script executed at start
#
# Bail out on any error
set -e
case "$1" in
start)
#udevd --daemon
#udevadm trigger
if [ ! -e /dev/input/event0 ]; then
echo ""
echo "No input device detected"
echo "Remove micro-USB cable and attach mouse to continue"
echo ""
until [ -e /dev/input/event0 ]
do
sleep 0.1
done
clear
fi
echo Starting rpi-imager
export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
PATH=/bin:/sbin:/usr/bin:/usr/sbin rpi-imager 2>/tmp/debug
sync
reboot -f
;;
stop)
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit $?

View file

@ -0,0 +1,31 @@
#!/bin/sh
# Shorter startup sequence
# Standard busybox init
/bin/mount -t proc proc /proc
/bin/mount -o remount,rw,noatime /
/bin/mount -t sysfs sysfs /sys
/bin/mount -t devtmpfs dev /dev
/bin/hostname -F /etc/hostname
# udev
/sbin/udevd -d
udevadm trigger
udevadm settle --timeout=2
# Seed urandom with something
cat /proc/cpuinfo /sys/class/drm/*/edid > /dev/urandom
# dhcpcd
dhcpcd -f /etc/dhcpcd.conf --noarp 2>/dev/null &
if grep -q debugconsole /proc/cmdline; then
/sbin/getty -L console 0 vt100 &
fi
if grep -q blockingconsole /proc/cmdline; then
/sbin/getty -L console 0 vt100
fi
/etc/init.d/S99rpi-imager start

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.