Closed dmipx closed 3 months ago
the setup_workspace.sh
script has below extra steps. But they are not mentioned in readme, if in case the user chooses manual sync-apply-build approach.
# copy Makefile for jp6
if [[ "$JETPACK_VERSION" == "6.0" ]]; then
cp ./nvidia-oot/Makefile ./sources_$JETPACK_VERSION/
cp ./kernel/kernel-jammy-src/Makefile ./sources_$JETPACK_VERSION/kernel
fi
# remove BUILD_NUMBER env dependency kernel vermagic
if [[ "${JETPACK_VERSION}" == "4.6.1" ]]; then
sed -i s/'UTS_RELEASE=\$(KERNELRELEASE)-ab\$(BUILD_NUMBER)'/'UTS_RELEASE=\$(KERNELRELEASE)'/g ./sources_$JETPACK_VERSION/kernel/kernel-4.9/Makefile
sed -i 's/the-space :=/E =/g' ./sources_$JETPACK_VERSION/kernel/kernel-4.9/scripts/Kbuild.include
sed -i 's/the-space += /the-space = \$E \$E/g' ./sources_$JETPACK_VERSION/kernel/kernel-4.9/scripts/Kbuild.include
fi
the
setup_workspace.sh
script has below extra steps. But they are not mentioned in readme, if in case the user chooses manual sync-apply-build approach.# copy Makefile for jp6 if [[ "$JETPACK_VERSION" == "6.0" ]]; then cp ./nvidia-oot/Makefile ./sources_$JETPACK_VERSION/ cp ./kernel/kernel-jammy-src/Makefile ./sources_$JETPACK_VERSION/kernel fi # remove BUILD_NUMBER env dependency kernel vermagic if [[ "${JETPACK_VERSION}" == "4.6.1" ]]; then sed -i s/'UTS_RELEASE=\$(KERNELRELEASE)-ab\$(BUILD_NUMBER)'/'UTS_RELEASE=\$(KERNELRELEASE)'/g ./sources_$JETPACK_VERSION/kernel/kernel-4.9/Makefile sed -i 's/the-space :=/E =/g' ./sources_$JETPACK_VERSION/kernel/kernel-4.9/scripts/Kbuild.include sed -i 's/the-space += /the-space = \$E \$E/g' ./sources_$JETPACK_VERSION/kernel/kernel-4.9/scripts/Kbuild.include fi
accommodating these changes in PR #212.
Use "updates" folder for JP5 module installation, Use "/boot/d457" for new kernel image and device tree. This will preserve original modules.