Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README_JP6.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,18 @@ sudo cp ./images/6.2/rootfs/boot/Image /boot/dev/.
In case of scp copy from host use this commands:
```
tar xf rootfs.tar.gz
sudo cp -r ./lib/modules/5.15.148-tegra /lib/modules/.
sudo rm -r /lib/modules
sudo cp -r ./lib/modules/ /lib/
Comment on lines +136 to +137

Copilot AI Feb 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the entire /lib/modules directory without confirmation is risky and could break the system if the copy operation fails. Consider using sudo rm -r /lib/modules/5.15.148-tegra to remove only the specific module version being replaced, or add the -f flag and proper error handling.

Suggested change
sudo rm -r /lib/modules
sudo cp -r ./lib/modules/ /lib/
sudo rm -rf /lib/modules/5.15.148-tegra
sudo cp -r ./lib/modules/5.15.148-tegra /lib/modules/.

Copilot uses AI. Check for mistakes.

Copilot AI Feb 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trailing slash in ./lib/modules/ may cause inconsistent behavior across different shell environments. For clarity and consistency with line 136, use ./lib/modules without the trailing slash.

Suggested change
sudo cp -r ./lib/modules/ /lib/
sudo cp -r ./lib/modules /lib/

Copilot uses AI. Check for mistakes.
sudo cp ./boot/tegra234-camera-d4xx-overlay*.dtbo /boot/dev/.
sudo cp ./boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/dtb/.
sudo cp ./boot/Image /boot/dev/.
```
3. Run depmod
```
sudo depmod
sudo update-initramfs -uk 5.15.148-tegra
sudo rm -f /boot/initrd
sudo ln -s /boot/initrd.img-5.15.148-tegra /boot/initrd
```
4. Modify bootloader configuration:
- open /boot/extlinux/extlinux.conf for editing using your preferred editor
Expand Down