Skip to content

Commit a6dc94c

Browse files
authored
Fix README file: add initrd step (#362)
1 parent 95c2627 commit a6dc94c

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

README_JP6.2.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ If you build locally use those commands:
130130
sudo cp -r ./images/6.2/rootfs/lib/modules/5.15.148-tegra /lib/modules/.
131131
sudo cp ./images/6.2/rootfs/boot/tegra234-camera-d4xx-overlay*.dtbo /boot/dev/.
132132
sudo cp ./images/6.2/rootfs/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/dtb/.
133+
# For production carrier boards (p3701-0005):
134+
sudo cp ./images/6.2/rootfs/boot/dtb/tegra234-p3737-0000+p3701-0005-nv.dtb /boot/dtb/.
133135
sudo cp ./images/6.2/rootfs/boot/Image /boot/dev/.
134136
```
135137
In case of scp copy from host use this commands:
@@ -138,18 +140,28 @@ tar xf rootfs.tar.gz
138140
sudo cp -r ./lib/modules/5.15.148-tegra /lib/modules/.
139141
sudo cp ./boot/tegra234-camera-d4xx-overlay*.dtbo /boot/dev/.
140142
sudo cp ./boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb /boot/dtb/.
143+
# For production carrier boards (p3701-0005):
144+
sudo cp ./boot/dtb/tegra234-p3737-0000+p3701-0005-nv.dtb /boot/dtb/.
141145
sudo cp ./boot/Image /boot/dev/.
142146
```
143147
3. Run depmod
144148
```
145149
sudo depmod
146150
```
147-
4. Modify bootloader configuration:
151+
4. Update initrd (regenerate kernel modules)
152+
153+
The kernel patches modify the I2C subsystem header (`i2c.h`), which changes the CRC of all exported I2C symbols. The boot initrd contains cached kernel modules that must be regenerated to match the new kernel, otherwise modules like `ucsi_ccg` will fail to load with "disagrees about version of symbol" errors.
154+
```
155+
sudo update-initramfs -u -k 5.15.148-tegra
156+
sudo rm -f /boot/initrd
157+
sudo ln -s /boot/initrd.img-5.15.148-tegra /boot/initrd
158+
```
159+
5. Modify bootloader configuration:
148160
- open /boot/extlinux/extlinux.conf for editing using your preferred editor
149161
- Copy existing primary kernel and rename the copy to "dev"
150162
- Change the "MENU LABEL" to a meaningful label (e.g "development kernel")
151163
- Change the "LINUX" line to point to the newly copied /boot/**dev**/Image
152-
- Add the "FDT" line pointing at the newly copied device tree "/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb"
164+
- Add the "FDT" line pointing at the newly copied device tree "/boot/dtb/tegra234-p3737-0000+p3701-0000-nv.dtb" (or tegra234-p3737-0000+p3701-0005-nv.dtb for production boards)
153165
- add the "OVERLAYS" line pointing to the required overlay "tegra234-camera-d4xx-overlay/dual/else>.dtb
154166
- Select the new label as the default
155167

@@ -174,7 +186,7 @@ LABEL dev
174186
OVERLAYS /boot/dev/tegra234-camera-d4xx-overlay.dtbo
175187
176188
```
177-
5. reboot
189+
6. Reboot
178190
```
179191
sudo reboot
180192
```

0 commit comments

Comments
 (0)