Add firmware.
This commit is contained in:
parent
99c0e7c248
commit
52e9b4a734
@ -3,6 +3,10 @@
|
|||||||
TARGET=$1
|
TARGET=$1
|
||||||
LANG=C
|
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
|
cat << EOF > $TARGET/usr/sbin/policy-rc.d
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "All runlevel operations denied by policy" >&2
|
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 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 linux-headers-4.9.0-3-amd64
|
||||||
chroot ${TARGET} apt-get --yes install zfs-dkms
|
chroot ${TARGET} apt-get --yes install zfs-dkms
|
||||||
|
chroot ${TARGET} apt-get --yes install ${FIRMWARES}
|
||||||
chroot ${TARGET} umount /proc
|
chroot ${TARGET} umount /proc
|
||||||
|
@ -4,6 +4,7 @@ TARGET=$1
|
|||||||
|
|
||||||
mkdir ${TARGET}
|
mkdir ${TARGET}
|
||||||
mkdir ${TARGET}/ramdisk
|
mkdir ${TARGET}/ramdisk
|
||||||
|
mkdir ${TARGET}/firmware
|
||||||
mkdir ${TARGET}/output
|
mkdir ${TARGET}/output
|
||||||
|
|
||||||
./bin/basefs_init ${TARGET}/basefs
|
./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_config ${TARGET}/ramdisk
|
||||||
./bin/ramdisk_make ${TARGET}/output/initrd.img ${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
|
# KERNEL
|
||||||
|
|
||||||
cp ${TARGET}/helperfs/boot/vmlinuz-4.9.0-3-amd64 ${TARGET}/output/vmlinuz
|
cp ${TARGET}/helperfs/boot/vmlinuz-4.9.0-3-amd64 ${TARGET}/output/vmlinuz
|
||||||
|
Loading…
Reference in New Issue
Block a user