After applying smoser's changes to proposed version of flash-kernel, flash-kernel is able to generate a boot.scr for keystone2
+ basename /usr/sbin/flash-kernel + self=flash-kernel + mktemp -dt flash-kernel.XXXXXXXX + tmpdir=/tmp/flash-kernel.YDX2TwaC + kernel=/boot/vmlinuz-3.13.0-9-keystone + initrd=/boot/initrd.img-3.13.0-9-keystone + [ -n ] + [ -n /boot/boot.scr ] + boot_script_path=//boot/boot.scr + boot_script=/usr/share/flash-kernel/bootscript/bootscr.keystone2 + mkimage_script 0x0 boot script /usr/share/flash-kernel/bootscript/bootscr.keystone2 /tmp/flash-kernel.YDX2TwaC/boot.scr + local saddr=0x0 + local sdesc=boot script + local sdata=/usr/share/flash-kernel/bootscript/bootscr.keystone2 + local script=/tmp/flash-kernel.YDX2TwaC/boot.scr + basename /usr/share/flash-kernel/bootscript/bootscr.keystone2 + local tdata=/tmp/flash-kernel.YDX2TwaC/bootscr.keystone2 + mktemp --tmpdir=/tmp/flash-kernel.YDX2TwaC + local ubootenv=/tmp/flash-kernel.YDX2TwaC/tmp.roGZAJGKP2 + gen_ubootenv + ENVSTUBDIRS=/etc/flash-kernel/ubootenv.d /usr/share/flash-kernel/ubootenv.d + LC_ALL=C+ sortfind -u /etc/flash-kernel/ubootenv.d /usr/share/flash-kernel/ubootenv.d -type f -regex .*/[0-9a-zA-Z_-]+ -printf %f\n + ENVSTUBS= + printf Generating boot script u-boot image... Generating boot script u-boot image... + sed -e /@@UBOOT_ENV_EXTRA@@/{ s/@@UBOOT_ENV_EXTRA@@//g r /tmp/flash-kernel.YDX2TwaC/tmp.roGZAJGKP2 } + mkimage -A arm -O linux -T script -C none -a 0x0 -e 0x0 -n boot script -d /tmp/flash-kernel.YDX2TwaC/bootscr.keystone2 /tmp/flash-kernel.YDX2TwaC/boot.scr + echo done. done. + boot_script=/tmp/flash-kernel.YDX2TwaC/boot.scr + backup_and_install /tmp/flash-kernel.YDX2TwaC/boot.scr //boot/boot.scr + local source=/tmp/flash-kernel.YDX2TwaC/boot.scr + local dest=//boot/boot.scr + [ -e //boot/boot.scr ] + basename //boot/boot.scr + echo Installing new boot.scr. Installing new boot.scr. + mv /tmp/flash-kernel.YDX2TwaC/boot.scr //boot/boot.scr + cleanups + rm -rf /tmp/flash-kernel.YDX2TwaC + [ -d ]
After applying smoser's changes to proposed version of flash-kernel, flash-kernel is able to generate a boot.scr for keystone2
+ basename /usr/sbin/ flash-kernel XXXXXXXX /tmp/flash- kernel. YDX2TwaC /boot/vmlinuz- 3.13.0- 9-keystone /boot/initrd. img-3.13. 0-9-keystone path=// boot/boot. scr /usr/share/ flash-kernel/ bootscript/ bootscr. keystone2 flash-kernel/ bootscript/ bootscr. keystone2 /tmp/flash- kernel. YDX2TwaC/ boot.scr usr/share/ flash-kernel/ bootscript/ bootscr. keystone2 /tmp/flash- kernel. YDX2TwaC/ boot.scr flash-kernel/ bootscript/ bootscr. keystone2 tmp/flash- kernel. YDX2TwaC/ bootscr. keystone2 /tmp/flash- kernel. YDX2TwaC /tmp/flash- kernel. YDX2TwaC/ tmp.roGZAJGKP2 /etc/flash- kernel/ ubootenv. d /usr/share/ flash-kernel/ ubootenv. d kernel/ ubootenv. d /usr/share/ flash-kernel/ ubootenv. d -type f -regex .*/[0-9a-zA-Z_-]+ -printf %f\n ENV_EXTRA@ @/{ ENV_EXTRA@ @//g kernel. YDX2TwaC/ tmp.roGZAJGKP2 kernel. YDX2TwaC/ bootscr. keystone2 /tmp/flash- kernel. YDX2TwaC/ boot.scr /tmp/flash- kernel. YDX2TwaC/ boot.scr kernel. YDX2TwaC/ boot.scr //boot/boot.scr /tmp/flash- kernel. YDX2TwaC/ boot.scr boot/boot. scr kernel. YDX2TwaC/ boot.scr //boot/boot.scr kernel. YDX2TwaC
+ self=flash-kernel
+ mktemp -dt flash-kernel.
+ tmpdir=
+ kernel=
+ initrd=
+ [ -n ]
+ [ -n /boot/boot.scr ]
+ boot_script_
+ boot_script=
+ mkimage_script 0x0 boot script /usr/share/
+ local saddr=0x0
+ local sdesc=boot script
+ local sdata=/
+ local script=
+ basename /usr/share/
+ local tdata=/
+ mktemp --tmpdir=
+ local ubootenv=
+ gen_ubootenv
+ ENVSTUBDIRS=
+ LC_ALL=C+ sortfind -u
/etc/flash-
+ ENVSTUBS=
+ printf Generating boot script u-boot image...
Generating boot script u-boot image... + sed -e /@@UBOOT_
s/@@UBOOT_
r /tmp/flash-
}
+ mkimage -A arm -O linux -T script -C none -a 0x0 -e 0x0 -n boot script -d /tmp/flash-
+ echo done.
done.
+ boot_script=
+ backup_and_install /tmp/flash-
+ local source=
+ local dest=//
+ [ -e //boot/boot.scr ]
+ basename //boot/boot.scr
+ echo Installing new boot.scr.
Installing new boot.scr.
+ mv /tmp/flash-
+ cleanups
+ rm -rf /tmp/flash-
+ [ -d ]