Hi everyone,
I was able to use initrd produced by ubuntu for second method ( extlinux.conf APPEND), thus removing manual manipulations with initrd
.
Steps:
- Flash device (Xavier AGX or NX (tested on AGX only)) with JetPack 4.4.
- Add
update-initramfs
hook to add xusb firmware to initrd.
a. Create filetegra-xusbfw
with following content (Remove log extention tegra-xusbfw.log (306 Bytes) ):
#!/bin/sh
PREREQ=“”
prereqs()
{
echo “$PREREQ”
}case $1 in
prereqs)
prereqs
exit 0
;;
esac. /usr/share/initramfs-tools/hook-functions
copy_exec /lib/firmware/tegra19x_xusb_firmware /lib/firmware
copy_exec /lib/firmware/tegra18x_xusb_firmware /lib/firmware
b. Make file executable and copy to /usr/share/initramfs-tools/hooks
directory.
c. Generate initrd:
sudo update-initramfs -c -v -k all
d. Check in log that “tegra19x_xusb_firmware” was added.
e. At this step you should have file initrd.img-4.9.140-tegra
in /boot
directory.
- Edit /boot/extlinux/extlinux.conf
sudo gedit /boot/extlinux/extlinux.conf
Edit INITRD parameter and add APPEND parameter to primary record. Should be something like this (extlinux.conf.log (383 Bytes) ):
TIMEOUT 30
DEFAULT primaryMENU TITLE L4T boot options
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
INITRD /boot/initrd.img-4.9.140-tegra
APPEND ${cbootargs} root=PARTUUID=XXXXXXXX-XXXX-XXXX-XXXX->XXXXXXXXXXXX quietLABEL backup
MENU LABEL backup kernel
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} quiet
- DON’T FORGET to copy rootfs to SSD!!!.
- Reboot
Kernel don’t rises any errors while booting from this initrd
.
It would be good if someone from NVIDIA check if ubuntu generated initrd
didn’t miss any other modules.