Bug#612376: flash-kernel: please include efikamx support
* Clint Adams <clint@debian.org> [2011-02-12 23:01]:
> + root=$(readlink -f /dev/root)
> + echo "Root filesystem is $root" >&2
> +
> + loadaddr=0x90008000
> + tmpdir="$(mktemp -d)"
You mix space and tabs, but I can fix that up.
> + # The UUID will come from the flash-kernel config file
This is no longer true.
> +
> + printf "Generating boot.scr... " >&2
> + cat >$tmpdir/boot.script <<EOF
> +setenv ramdisk uInitrd-$kvers;
> +setenv kernel uImage-$kvers;
> +setenv bootargs console=tty1 console=\${console} root=$root rootwait rw quiet splash;
> +\${loadcmd} \${ramdiskaddr} \${ramdisk};
Where does loadcmd come from?
> +if imi \${ramdiskaddr}; then; else
> + setenv bootargs \${bootargs} noinitrd;
> + setenv ramdiskaddr "";
> +fi;
> +\${loadcmd} \${kerneladdr} \${kernel}
> +if imi \${kerneladdr}; then
> + bootm \${kerneladdr} \${ramdiskaddr}
> +fi;
> +EOF
> + if [ -e /boot/boot.scr ]; then
How does this boot.scr work? Does this machine load /boot/boot.scr
from disk and then execute those commands?
> ;;
> + "Genesi Efika MX (Smartbook)" | "Genesi Efika MX (Smarttop)")
> + #check_subarch $running_subarch
Do you know what this subarch will be called?
Also, you need to add support in a number of other files:
- README
- debian/flash-kernel-installer.postinst
- initramfs-tools/hooks/flash_kernel_set_root
- debian/flash-kernel-installer.isinstallable (for the new subarch)
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: