IntelRealSense / realsense_mipi_platform_driver

Intel® RealSense™ camera driver for GMSL* interface
GNU General Public License v2.0
15 stars 14 forks source link

readme: set modules and boot files location #211

Closed dmipx closed 3 months ago

dmipx commented 3 months ago

Use "updates" folder for JP5 module installation, Use "/boot/d457" for new kernel image and device tree. This will preserve original modules.

Arun-Prasad-V commented 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
Arun-Prasad-V commented 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

accommodating these changes in PR #212.