@@ -441,19 +441,28 else # BUILD_KERNEL=false | |||
|
441 | 441 | touch "${BOOT_DIR}/cmdline.txt" |
|
442 | 442 | fi |
|
443 | 443 | |
|
444 |
# I |
|
|
444 | # INstall Kernel from hypriot comptabile with all Raspberry PI | |
|
445 | 445 | if [ "$SET_ARCH" = 32 ] ; then |
|
446 | # Create temporary directory for dl | |
|
447 | temp_dir=$(as_nobody mktemp -d) | |
|
448 | ||
|
446 | 449 | # Fetch kernel |
|
447 |
as_nobody wget -O "${ |
|
|
448 | ||
|
450 | as_nobody wget -O "${temp_dir}"/kernel.deb -c "$RPI_32_KERNEL_URL" | |
|
449 | 451 | # Fetch kernel header |
|
450 |
as_nobody wget -O "${ |
|
|
452 | as_nobody wget -O "${temp_dir}"/kernel-header.deb -c "$RPI_32_KERNELHEADER_URL" | |
|
451 | 453 | |
|
452 | # Install kernel | |
|
453 | chroot_exec dpkg -i "${R}"/kernel.deb | |
|
454 | # Copy downloaded U-Boot sources | |
|
455 | mv "${temp_dir}"/kernel.deb "${R}"/kernel.deb | |
|
456 | mv "${temp_dir}"/kernel-header.deb "${R}"/kernel-header.deb | |
|
457 | ||
|
458 | # Set permissions | |
|
459 | chown -R root:root "${R}"/kernel.deb | |
|
460 | chown -R root:root "${R}"/kernel-header.deb | |
|
454 | 461 | |
|
462 | # Install kernel | |
|
463 | chroot_exec dpkg -i "${temp_dir}"/kernel.deb | |
|
455 | 464 | # Install kernel header |
|
456 |
chroot_exec dpkg -i "${ |
|
|
465 | chroot_exec dpkg -i "${temp_dir}"/kernel-header.deb | |
|
457 | 466 | |
|
458 | 467 | # Remove temporary directory for U-Boot sources |
|
459 | 468 | rm -fr "${temp_dir}" |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant