this is the snippet used in the initial builder script for the live image, cmdline needs to be changed to use a UUID, fis needs to be used to determine the actual offset (both are hardcoded values in the image build script), the dd'ing of the binary blob doesnt need to happen, i'll rework this bit into a proper patch.
this is the snippet used in the initial builder script for the live image, cmdline needs to be changed to use a UUID, fis needs to be used to determine the actual offset (both are hardcoded values in the image build script), the dd'ing of the binary blob doesnt need to happen, i'll rework this bit into a proper patch.
set_fconfig_ bootscript( ) SIZE=$( wc -c $BUILDDIR/ initrd. gz|cut -d' ' -f1) BLOB=/home/ ogra/fconfig. bin INITRAMFS= "fis load initramfs" KERNEL= "fis load kernel" "\"console= ttymxc0, 115200 console=tty1 boot=casper LIVEMEDIA= /dev/mmcblk0p1\ "" STRING= " $LOAD_INITRAMFS\ $LOAD_KERNEL\ e -r 0x1000000 -s $INITRAMFS_SIZE -c $CMDLINE"
{
echo "writing bootloader configuration ..."
INITRAMFS_
BINARY_
LOAD_
LOAD_
CMDLINE=
FCONFIG_
# copy binary blob in place
dd if=$BINARY_BLOB of=$IMAGENAME bs=389120 seek=1 conv=notrunc >/dev/null 2>&1
# modify configuration
fconfig -w -d $IMAGENAME -o 389120 -n boot_script_data -x "${FCONFIG_STRING}" >/dev/null 2>&1
}