It had been working fine, then I edited the .c
file in the LKM and it started hanging on the step…
Bootloader found in unpacked image: U-Boot
Once hung, the WSL window is unresponsive and must be restarted.
I’ve completely removed the LKM from the tcbuild.yaml
and it still fails in the same place. I’ve tried completely rebuilding the build directory, but same results.
Using all tools/images downloaded within the past 2 weeks. Trying to follow the procedure to add LKM to an image.
Here is my tdx-info:
sudo tdx-info
Software summary
------------------------------------------------------------
Bootloader: Unknown
Kernel version: 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024
Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=12 hv_utils.timesync_implicit=1 console=hvc0 debug pty.legacy_count=0 WSL_ENABLE_CRASH_DUMP=1
Distro name: NAME="TorizonOS"
Distro version: VERSION_ID=1.0.0
Distro variant: VARIANT=Docker
Hostname: DESKTOP-CR2BPO8
------------------------------------------------------------
cat: /sys/devices/virtual/dmi/id/board_name: No such file or directory
cat: /sys/devices/virtual/dmi/id/board_vendor: No such file or directory
cat: /sys/devices/virtual/dmi/id/board_version: No such file or directory
cat: /sys/devices/virtual/dmi/id/board_serial: No such file or directory
Hardware info
------------------------------------------------------------
HW model:
Toradex version:
Serial number: -
Processor arch: x86_64
------------------------------------------------------------
🐧 josh @DESKTOP-CR2BPO8~:
What could be wrong and how can I fix?
Thank you,
josh
🐧 josh @DESKTOP-CR2BPO8~/custom-image: torizoncore-builder build
Building image as per configuration file 'tcbuild.yaml'...
=>> Handling input section
Unpacking Toradex Easy Installer image.
Unpacking TorizonCore Toradex Easy Installer image.
Importing OSTree revision 789c47c5e2f5cd8d1aa177ed9db1da6ae097ea69188980e51bf534e463966269 from local repository...
1271 metadata, 9767 content objects imported; 650.0 MB content written
0 metadata, 0 content objects imported; 0 bytes content written
Unpacked OSTree from Toradex Easy Installer image:
Commit checksum: 789c47c5e2f5cd8d1aa177ed9db1da6ae097ea69188980e51bf534e463966269
TorizonCore Version: 7.2.0+build.13
=>> Handling customization section
=> Handling device-tree subsection
Not testing overlay because base image does not have a device-tree set!
=> Adding device-tree overlay 'custom-overlay.dts'
'custom-overlay.dts' compiles successfully.
Overlay custom-overlay.dtbo successfully applied.
=> Building module located at 'hello-mod'
make: Entering directory '/workdir/hello-mod'
make -C /storage/linux M=/workdir/hello-mod
make[1]: Entering directory '/storage/linux'
CC [M] /workdir/hello-mod/hello.o
MODPOST /workdir/hello-mod/Module.symvers
CC [M] /workdir/hello-mod/hello.mod.o
LD [M] /workdir/hello-mod/hello.ko
make[1]: Leaving directory '/storage/linux'
make: Leaving directory '/workdir/hello-mod'
Kernel module(s) successfully built and ready to deploy.
hello-mod/hello.ko is set to be autoloaded on boot.
All kernel module(s) have been built and prepared.
=>> Handling output section
Applying changes from STORAGE/kernel.
Applying changes from STORAGE/dt.
Commit e7296ed79d02a498d194c07279ad79fa18d032345a2ee756273952767233aff8 has been generated for changes and is ready to be deployed.
Deploying commit ref: voyant-flexspi-1
Pulling OSTree with ref voyant-flexspi-1 from local archive repository...
Commit checksum: e7296ed79d02a498d194c07279ad79fa18d032345a2ee756273952767233aff8
TorizonCore Version: 7.2.0+build.13-tcbuilder.20250512014229
Default kernel arguments: quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3
1271 metadata, 9769 content objects imported; 650.0 MB content written
Pulling done.
Deploying OSTree with checksum e7296ed79d02a498d194c07279ad79fa18d032345a2ee756273952767233aff8
Bootloader found in unpacked image: U-Boot