mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-06-25 22:53:20 +00:00
By playing with the buildarch and having separated luet repo files we can install the proper artifacts for each arch AND also teh arm64 artifacts for arm images under x86 Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
13 lines
355 B
Bash
Executable File
13 lines
355 B
Bash
Executable File
#!/bin/bash
|
|
|
|
image=$1
|
|
|
|
if [ -z "$image" ]; then
|
|
echo "No image specified"
|
|
exit 1
|
|
fi
|
|
|
|
# conv=notrunc ?
|
|
dd if=/firmware/odroid-c2/bl1.bin.hardkernel of=$image conv=fsync bs=1 count=442
|
|
dd if=/firmware/odroid-c2/bl1.bin.hardkernel of=$image conv=fsync bs=512 skip=1 seek=1
|
|
dd if=/firmware/odroid-c2/u-boot.odroidc2 of=$image conv=fsync bs=512 seek=97 |