Unable to boot the customised kernel image

Hi,
Thank you for the reply.

  • I copied the newly built kernel image from the kernel source directory into the boot directory of the kernel where the original kernel image is present. After which I made changes in the extlinux.conf for my customized kernel image to boot as the primary kernel and the original as backup.
  • Yes, I did configure the kernel with above-mentioned command first before running make menuconfig.
  • I didn’t set the CONFIG_LOCALVERSION. I did run build and install command.
  • As I have mentioned already, I am using Nvidia’s Jetson Orin Nano developer kit. We are using nvme.

Although now the booting issue has been solved. I set the CONFIG_LOCALVERSION to -demo after following a solution you had posted on another ticket:

Compile & install customized Kernel directly on Orin Developer Kit - #2 by daniel.hopf

But now I am facing another issue. After booting the dev kit with the new customized image, I ran this command:

uname -r

The output is as follows:

5.15.136-demo

So now I know it is pointing to the customized kernel image.
Post which, I ran this command to load the gadgetfs module:

sudo modprobe gadgetfs

Then, I ran this command:

lsmod

Output:

Next, I tried to mount gadgetfs using this command:

sudo mkdir /dev/gadget
sudo mount -t gadgetfs gadgetfs /dev/gadget

Output:

mount: /dev/gadget: unknown filesystem type ‘gadgetfs’.

I am a newbie and I do not know where I am going wrong, so could you please help me out on how to proceed further.