@@ -387,8 +387,13 if [ "$KERNEL_ARCH" = arm64 ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] | |||||
387 | rm -fr "${temp_dir}" |
|
387 | rm -fr "${temp_dir}" | |
388 |
|
388 | |||
389 | # Set permissions of the kernel sources |
|
389 | # Set permissions of the kernel sources | |
390 | chown -R root:root "${R}/boot/" |
|
390 | mkdir "${R}/boot/firmware" | |
391 | chown -R root:root "${R}/lib" |
|
391 | cp -r "${R}/boot/ "${R}/boot/firmware" | |
|
392 | chown -R root:root "${R}/boot/firmware" | |||
|
393 | chown -R root:root "${R}/lib" | |||
|
394 | ||||
|
395 | #Create cmdline.txt | |||
|
396 | touch "${BOOT_DIR}/cmdline.txt" | |||
392 |
|
|
397 | fi | |
393 |
|
398 | |||
394 | # Check if kernel installation was successful |
|
399 | # Check if kernel installation was successful | |
@@ -398,13 +403,5 fi | |||||
398 | cleanup |
|
403 | cleanup | |
399 | exit 1 |
|
404 | exit 1 | |
400 | fi |
|
405 | fi | |
401 |
|
406 | |||
402 | if [ "$SET_ARCH" = 64 ] ; then |
|
407 | fi No newline at end of file | |
403 | echo "Using precompiled arm64 kernel" |
|
|||
404 | else |
|
|||
405 | echo "error: no precompiled arm64 (bcmrpi3) kernel found" |
|
|||
406 | exit 1 |
|
|||
407 | # inset precompiled 64 bit kernel code here |
|
|||
408 | fi |
|
|||
409 | #fi build_kernel=true |
|
|||
410 | fi |
|
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant