-
Notifications
You must be signed in to change notification settings - Fork 15
Booting
This guide provides step-by-step instructions on how to boot your device from an alternative kernel stored on an SD card, allowing for flexibility in testing, development, and normal use.
-
Locate the kernel, or
uImageFile: This is your alternative kernel file, which needs to be named specifically according to the SoC (System on Chip) version of your device. -
Naming Convention: Name your kernel file as follows, replacing "SOC" with your chip's version (e.g.,
t31ort20):thingino_<soc>_kernel
Examples:
- For T31 chip:
thingino_t31_kernel
-
Enabling Legacy Kernel Names: If you need to boot from legacy kernel names, you can enable the
LEGACY_COMPAToption during build by compiling with the-DLEGACY_COMPATflag. This will add additional kernel names that the bootloader will search for.To enable legacy kernel names:
- Add
-DLEGACY_COMPATto your compiler flags in the build process:CFLAGS += -DLEGACY_COMPAT - Legacy kernel filenames that will be recognized when
LEGACY_COMPATis enabled:thingino_<soc>_kernelfactory_<soc>_kernelfactory_<soc>_ZMC6tiIDQN-
factory_ZMC6tiIDQN(used only for T20)
- Add
- Insert the SD card into your device. The bootloader will search for the specially named kernel file on the SD card.
- If found, the bootloader will prioritize this kernel over the one in the onboard flash memory, enabling your device to boot from the SD card.
- During boot, you can interrupt the loading of the kernel image by pressing
Ctrl-Cin the serial shell. This action provides a safety mechanism to cancel the kernel loading process if necessary. It will then load the standard kernel from the onboard flash memory.
By following these instructions, you can successfully boot your device from an alternative kernel stored on an SD card, offering a versatile approach to device configuration, testing, and use.