@@ -38,6 +38,21 else | |||
|
38 | 38 | chmod -R 600 "${BOOT_DIR}" |
|
39 | 39 | fi |
|
40 | 40 | |
|
41 | if [ "$ENABLE_KEYGEN" = true] ; then | |
|
42 | ||
|
43 | # go to chroot/boot/ | |
|
44 | cd "${BOOT_DIR}/" || exit | |
|
45 | ||
|
46 | # Make a copy of start.elf | |
|
47 | cp start.elf start.elf_backup | |
|
48 | ||
|
49 | # Remove codec licence checks - thx go to https://github.com/nucular/raspi-keygen - if ENABLE_VIDEOCORE is true, you can check codec status https://elinux.org/RPI_vcgencmd_usage | |
|
50 | perl -pne 's/\x47\xE9362H\x3C\x18/\x47\xE9362H\x3C\x1F/g' < start.elf_backup > start.elf | |
|
51 | ||
|
52 | # Back to base dir | |
|
53 | cd "${WORKDIR}" || exit | |
|
54 | fi | |
|
55 | ||
|
41 | 56 | # Setup firmware boot cmdline |
|
42 | 57 | if [ "$ENABLE_UBOOTUSB" = true ] ; then |
|
43 | 58 | CMDLINE="dwc_otg.lpm_enable=0 root=/dev/sda2 rootfstype=ext4 rootflags=commit=100,data=writeback elevator=deadline rootwait init=/bin/systemd" |
@@ -144,6 +144,7 USER_NAME=${USER_NAME:="pi"} | |||
|
144 | 144 | ENABLE_ROOT=${ENABLE_ROOT:=false} |
|
145 | 145 | ENABLE_QEMU=${ENABLE_QEMU:=false} |
|
146 | 146 | ENABLE_SYSVINIT=${ENABLE_SYSVINIT:=false} |
|
147 | ENABLE_KEYGEN=${ENABLE_KEYGEN:=true} | |
|
147 | 148 | |
|
148 | 149 | # SSH settings |
|
149 | 150 | SSH_ENABLE_ROOT=${SSH_ENABLE_ROOT:=false} |
@@ -383,6 +384,11 fi | |||
|
383 | 384 | set +x |
|
384 | 385 | |
|
385 | 386 | # Add cmake to compile videocore sources |
|
387 | if [ "$ENABLE_KEYGEN" = true ] ; then | |
|
388 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} perl" | |
|
389 | fi | |
|
390 | ||
|
391 | # Add cmake to compile videocore sources | |
|
386 | 392 | if [ "$ENABLE_VIDEOCORE" = true ] ; then |
|
387 | 393 | REQUIRED_PACKAGES="${REQUIRED_PACKAGES} cmake" |
|
388 | 394 | fi |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant