Skip to content
Snippets Groups Projects
Verified Commit 8361cef3 authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

copy /boot/ls1028a-mhdpfw.bin into initramfs

parent 8c2b6cb5
No related branches found
No related tags found
1 merge request!53copy /boot/ls1028a-mhdpfw.bin into initramfs
......@@ -11,7 +11,8 @@ share/* /usr/share
systemd/reform-poweroff /lib/systemd/system-shutdown
systemd/reform-sleep.conf /usr/lib/systemd/sleep.conf.d
xorg/10-reform-etnaviv.conf /usr/share/X11/xorg.conf.d
initramfs-tools/reform /usr/share/initramfs-tools/scripts/init-top
initramfs-tools/hooks/reform /usr/share/initramfs-tools/hooks
initramfs-tools/scripts/reform /usr/share/initramfs-tools/scripts/init-top
initramfs-tools/reform.conf /usr/share/initramfs-tools/modules.d/
flash-kernel/* /usr/share/flash-kernel
u-boot-menu/reform.conf /usr/share/u-boot-menu/conf.d
#!/bin/sh
set -e
PREREQ=""
prereqs() { echo "$PREREQ"; }
case $1 in prereqs) prereqs; exit 0 ;; esac
. /usr/share/initramfs-tools/hook-functions
MACHINE=
if [ -e /etc/flash-kernel/machine ]; then
MACHINE=$(cat /etc/flash-kernel/machine)
elif [ -e /proc/device-tree/model ]; then
MACHINE=$(cat /proc/device-tree/model)
fi
case $MACHINE in
"MNT Reform 2") : ;;
"MNT Reform 2 with BPI-CM4 Module") : ;;
"MNT Reform 2 with LS1028A Module")
[ "${verbose}" = "y" ] && echo "Adding firmware ls1028a-mhdpfw.bin"
copy_file firmware /boot/ls1028a-mhdpfw.bin /lib/firmware
;;
"")
echo "unable to deduce target machine"
exit 1
;;
*)
echo "unsupported machine: $MACHINE"
exit 1;
;;
esac
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment