Add firmware.

This commit is contained in:
Mateusz Hromada 2017-07-21 12:10:05 +02:00
parent 99c0e7c248
commit 52e9b4a734
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,10 @@
TARGET=$1
LANG=C
FIRMWARES="firmware-bnx2 firmware-bnx2x firmware-cavium firmware-linux-free \
firmware-misc-nonfree firmware-myricom firmware-netxen firmware-qlogic \
firmware-realtek"
cat << EOF > $TARGET/usr/sbin/policy-rc.d
#!/bin/sh
echo "All runlevel operations denied by policy" >&2
@ -14,4 +18,5 @@ chroot ${TARGET} mount -t proc proc /proc
chroot ${TARGET} apt-get --yes install busybox-static linux-image-4.9.0-3-amd64
chroot ${TARGET} apt-get --yes install linux-headers-4.9.0-3-amd64
chroot ${TARGET} apt-get --yes install zfs-dkms
chroot ${TARGET} apt-get --yes install ${FIRMWARES}
chroot ${TARGET} umount /proc

View File

@ -4,6 +4,7 @@ TARGET=$1
mkdir ${TARGET}
mkdir ${TARGET}/ramdisk
mkdir ${TARGET}/firmware
mkdir ${TARGET}/output
./bin/basefs_init ${TARGET}/basefs
@ -33,6 +34,10 @@ cp ${TARGET}/helperfs/bin/busybox ${TARGET}/ramdisk/bin/busybox
./bin/ramdisk_config ${TARGET}/ramdisk
./bin/ramdisk_make ${TARGET}/output/initrd.img ${TARGET}/ramdisk
# FIRMWARE
tar cf ${TARGET}/firmware/firmware.tar --owner=root --group=root -C ${TARGET}/helperfs ./lib/firmware
./bin/ramdisk_make ${TARGET}/output/firmware.img ${TARGET}/firmware
# KERNEL
cp ${TARGET}/helperfs/boot/vmlinuz-4.9.0-3-amd64 ${TARGET}/output/vmlinuz