tinker: Initial support (#140)
* tinker: initial support * Fix info * Fix uboot defconfig * Split kernel config * Fix name * Add post-image * Init different boot * Add SPL images * Dynamic rauc config * Support SPL for OTA * Fix expand script style * Fix SPL * Bump build u-boot * Cleanup * Add cmd for scritps * Use kernel from armbian * Fix u-boot * Add bluetooth support * Fix bt * Fix env * Change uart debug like rpi * move config
This commit is contained in:
13
buildroot-external/rootfs-overlay/usr/lib/rauc/install-spl
Executable file
13
buildroot-external/rootfs-overlay/usr/lib/rauc/install-spl
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
DEVICE_CHILD="$(findfs LABEL="hassos-boot")"
|
||||
DEVICE_ROOT="/dev/$(lsblk -no pkname ${DEVICE_CHILD})"
|
||||
IMAGE_FILE="${1}"
|
||||
|
||||
# Check params
|
||||
if [ ! -f "${IMAGE_FILE}" ]; then
|
||||
echo "[Error] Can't find image: ${IMAGE_FILE}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dd if=${IMAGE_FILE} of=${DEVICE_ROOT} conv=notrunc bs=512 seek=2
|
||||
Reference in New Issue
Block a user