##// END OF EJS Templates
Added FIRMWAREDIR option to use local copy of firmware.
Stephen A. Brandli -
r83:489d436f179b
parent child
Show More
@@ -196,6 +196,9 Run `make bcm2709_defconfig` (and optional `make menuconfig`) to configure the k
196 196 ##### `KERNELSRC_PREBUILT`=false
197 197 With this parameter set to true the script expects the existing kernel sources directory to be already successfully cross-compiled. The parameters `KERNELSRC_CLEAN`, `KERNELSRC_CONFIG` and `KERNEL_MENUCONFIG` are ignored and no kernel compilation tasks are performed.
198 198
199 ##### `FIRMWAREDIR`=""
200 The directory containing a local copy of the firmware from the [RaspberryPi firmware project](https://github.com/raspberrypi/firmware). Default is to download the latest firmware directly from the project.
201
199 202 #### Reduce disk usage:
200 203 The following list of parameters is ignored if `ENABLE_REDUCE`=false.
201 204
@@ -131,6 +131,16 if [ "$BUILD_KERNEL" = true ] ; then
131 131 rm -fr "${KERNELDIR}"
132 132 fi
133 133
134 if [ -n "$FIRMWAREDIR" ] && [ -d "$FIRMWAREDIR" ] ; then
135 # Install boot binaries from local directory
136 cp ${FIRMWAREDIR}/boot/bootcode.bin ${BOOTDIR}/bootcode.bin
137 cp ${FIRMWAREDIR}/boot/fixup.dat ${BOOTDIR}/fixup.dat
138 cp ${FIRMWAREDIR}/boot/fixup_cd.dat ${BOOTDIR}/fixup_cd.dat
139 cp ${FIRMWAREDIR}/boot/fixup_x.dat ${BOOTDIR}/fixup_x.dat
140 cp ${FIRMWAREDIR}/boot/start.elf ${BOOTDIR}/start.elf
141 cp ${FIRMWAREDIR}/boot/start_cd.elf ${BOOTDIR}/start_cd.elf
142 cp ${FIRMWAREDIR}/boot/start_x.elf ${BOOTDIR}/start_x.elf
143 else
134 144 # Install latest boot binaries from raspberry/firmware github
135 145 wget -q -O "${BOOTDIR}/bootcode.bin" https://github.com/raspberrypi/firmware/raw/master/boot/bootcode.bin
136 146 wget -q -O "${BOOTDIR}/fixup.dat" https://github.com/raspberrypi/firmware/raw/master/boot/fixup.dat
@@ -139,6 +149,7 if [ "$BUILD_KERNEL" = true ] ; then
139 149 wget -q -O "${BOOTDIR}/start.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start.elf
140 150 wget -q -O "${BOOTDIR}/start_cd.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start_cd.elf
141 151 wget -q -O "${BOOTDIR}/start_x.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start_x.elf
152 fi
142 153
143 154 else # BUILD_KERNEL=false
144 155 # Kernel installation
@@ -57,6 +57,9 ETCDIR="${R}/etc"
57 57 BOOTDIR="${R}/boot/firmware"
58 58 KERNELDIR="${R}/usr/src/linux"
59 59
60 # Firmware directory: Blank if download from github
61 FIRMWAREDIR=${FIRMWAREDIR:=""}
62
60 63 # General settings
61 64 HOSTNAME=${HOSTNAME:=rpi2-${RELEASE}}
62 65 PASSWORD=${PASSWORD:=raspberry}
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant