@@ -196,6 +196,9 Run `make bcm2709_defconfig` (and optional `make menuconfig`) to configure the k | |||||
196 | ##### `KERNELSRC_PREBUILT`=false |
|
196 | ##### `KERNELSRC_PREBUILT`=false | |
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. |
|
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 | #### Reduce disk usage: |
|
202 | #### Reduce disk usage: | |
200 | The following list of parameters is ignored if `ENABLE_REDUCE`=false. |
|
203 | The following list of parameters is ignored if `ENABLE_REDUCE`=false. | |
201 |
|
204 |
@@ -131,6 +131,16 if [ "$BUILD_KERNEL" = true ] ; then | |||||
131 | rm -fr "${KERNELDIR}" |
|
131 | rm -fr "${KERNELDIR}" | |
132 | fi |
|
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 | # Install latest boot binaries from raspberry/firmware github |
|
144 | # Install latest boot binaries from raspberry/firmware github | |
135 | wget -q -O "${BOOTDIR}/bootcode.bin" https://github.com/raspberrypi/firmware/raw/master/boot/bootcode.bin |
|
145 | wget -q -O "${BOOTDIR}/bootcode.bin" https://github.com/raspberrypi/firmware/raw/master/boot/bootcode.bin | |
136 | wget -q -O "${BOOTDIR}/fixup.dat" https://github.com/raspberrypi/firmware/raw/master/boot/fixup.dat |
|
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 | wget -q -O "${BOOTDIR}/start.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start.elf |
|
149 | wget -q -O "${BOOTDIR}/start.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start.elf | |
140 | wget -q -O "${BOOTDIR}/start_cd.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start_cd.elf |
|
150 | wget -q -O "${BOOTDIR}/start_cd.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start_cd.elf | |
141 | wget -q -O "${BOOTDIR}/start_x.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start_x.elf |
|
151 | wget -q -O "${BOOTDIR}/start_x.elf" https://github.com/raspberrypi/firmware/raw/master/boot/start_x.elf | |
|
152 | fi | |||
142 |
|
153 | |||
143 | else # BUILD_KERNEL=false |
|
154 | else # BUILD_KERNEL=false | |
144 | # Kernel installation |
|
155 | # Kernel installation |
@@ -57,6 +57,9 ETCDIR="${R}/etc" | |||||
57 | BOOTDIR="${R}/boot/firmware" |
|
57 | BOOTDIR="${R}/boot/firmware" | |
58 | KERNELDIR="${R}/usr/src/linux" |
|
58 | KERNELDIR="${R}/usr/src/linux" | |
59 |
|
59 | |||
|
60 | # Firmware directory: Blank if download from github | |||
|
61 | FIRMWAREDIR=${FIRMWAREDIR:=""} | |||
|
62 | ||||
60 | # General settings |
|
63 | # General settings | |
61 | HOSTNAME=${HOSTNAME:=rpi2-${RELEASE}} |
|
64 | HOSTNAME=${HOSTNAME:=rpi2-${RELEASE}} | |
62 | PASSWORD=${PASSWORD:=raspberry} |
|
65 | PASSWORD=${PASSWORD:=raspberry} |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant