* 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
14 lines
310 B
Bash
Executable File
14 lines
310 B
Bash
Executable File
#!/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
|