Was BBB /lib/ modules, with usrmerge use /usr/lib/

Hi Robert,

I had some trouble getting the image created with this guide, and wanted to add some context so other people don’t burn hours and hours trying to debug this like I did.

I ran into the below error while trying to boot the image (this is the output via the serial debug header):

[    2.909599] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    2.909621] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.83-ti-rt-r39 #1
[    2.909637] Hardware name: Generic AM33XX (Flattened Device Tree)
[    2.909659]  unwind_backtrace from show_stack+0x18/0x1c
[    2.909705]  show_stack from dump_stack_lvl+0x40/0x4c
[    2.909726]  dump_stack_lvl from panic+0x114/0x37c
[    2.909751]  panic from kernel_init+0x138/0x13c
[    2.909767]  kernel_init from ret_from_fork+0x14/0x28
[    2.909782] Exception stack(0xe0009fb0 to 0xe0009ff8)
[    2.909792] 9fa0:                                     00000000 00000000 00000000 00000000
[    2.909802] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.909810] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000

Turns out that the “Copy Kernel Modules” step breaks the symlink for the /lib folder when copying the kernel modules, causing the boot to fail. I fixed this by copying the contents manually instead of using your tar command directly.

Thank you for your guides and tools, they are worth gold when working with the BBB!

Hello Mias,

Welcome to the DigiKey TechForum.
Thank you for the added information. I’m glad you found a solution to your problem, and posting the information on the Forum.
This may help others, who are having the same trouble.
Thanks again for visiting our Forum, and adding this information.

Good catch @Mias yeah after the usr-merge migration of Debian, we need to move all these to /usr/lib/modules/

Regards,