Create .sig files for kernel and dtb

Is there a guide for how to generate signature files for Image and dtb?

[0007.239] I> rootfs path: /sd/boot/Image.sig
[0011.369] I> lookup_linear_dir:441: Invalid file block num
[0011.369] I> ext2_walk:142: 'Image.sig' lookup failed

hello clutch12,

during flashing process, kernel image and device tree binary has been sign and encrypt by default.
for example,

[ 459.4635 ] Writing partition kernel with boot_sigheader.img.encrypt
[ 459.5061 ] [................................................] 100%
...
[ 464.1538 ] Writing partition kernel-dtb with tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
[ 464.1617 ] [................................................] 100%

you may using flash script to include --no-flash option to generate that locally.
please also refer to developer guide, please check Flash Script Usage for more details.
thanks

1 Like

ah perfect. thanks.

@JerryChang here is my extlinux.conf

TIMEOUT 30
DEFAULT primary

MENU TITLE p2771-0000 eMMC boot options

LABEL primary
        MENU LABEL primary kernel
        LINUX /boot/Image
        FDT /boot/tegra194-p3668-all-p3509-0000.dtb

I think the .sig files are ok, but it doesn’t seem to boot. Is this a problem with the sig files? I can’t figure out which of the errors is the real problem

[0006.720] I> Selected option: 1
[0006.720] I> Loading kernel sig file from rootfs ...
[0006.721] I> rootfs path: /sd/boot/Image.sig
[0006.734] I> Loading kernel binary from rootfs ...
[0006.735] I> rootfs path: /sd/boot/Image
[0009.984] I> Validate kernel ...
[0009.984] I> T19x: Authenticate kernel (bin_type: 37), max size 0x5000000
[0010.361] I> Loading kernel-dtb sig file from rootfs ...
[0010.361] I> rootfs path: /sd/boot/tegra194-p3668-all-p3509-0000.dtb.sig
[0010.375] I> Loading kernel-dtb binary from rootfs ...
[0010.375] I> rootfs path: /sd/boot/tegra194-p3668-all-p3509-0000.dtb
[0010.402] I> Validate kernel-dtb ...
[0010.402] I> T19x: Authenticate kernel-dtb (bin_type: 38), max size 0x400000
[0010.405] W> Ramdisk image path not found
[0010.406] I> Kernel hdr @0xa4ac0000
[0010.406] I> Kernel dtb @0x90000000
[0010.406] I> decompressor handler not found
[0010.407] I> Copying kernel image (39630856 bytes) from 0xa4ac0800 to 0x8008000
0 ... [0010.419] I> Done
[0010.419] I> Move ramdisk (len: 0) from 0xa708c800 to 0x91000000
[0010.420] I> Updated bpmp info to DTB
[0010.421] I> Ramdisk: Base: 0x91000000; Size: 0x0
[0010.425] I> Updated initrd info to DTB
[0010.429] W> WARN: Fail to override "console=none" in commandline
[0010.435] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display param
s
[0010.442] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display param
s
[0010.449] W> No valid slot number is found in scratch register
[0010.455] W> Return default slot: _a
[0010.458] I> Active slot suffix: 
[0010.461] I> add_boot_slot_suffix: slot_suffix = 
[0010.466] I> Linux Cmdline: console=ttyTCU0,115200 video=tegrafb no_console_sus
pend=1 earlycon=tegra_comb_uart,mmio32,0x0c168000 gpt tegra_fbmem=0x800000@0xa06
9c000 lut_mem=0x2008@0xa0696000 usbcore.old_scheme_first=1 tegraid=19.1.2.0.0 ma
xcpus=6 boot.slot_suffix= boot.ratchetvalues=0.4.2 vpr_resize sdhci_tegra.en_boo
t_part_access=1 
[0010.496] I> Updated bootarg info to DTB
[0010.499] W> MAC addr invalid!
[0010.502] E> Failed to get WIFI MAC address
[0010.506] W> MAC addr invalid!
[0010.509] E> Failed to get Bluetooth MAC address
[0010.514] I> eeprom_get_mac_addr: MAC (type: 2): 48:b0:2d:15:ef:50
[0010.520] W> "plugin-manager" doesn't exist, creating
[0010.525] I> Adding /chosen/plugin-manager/cvm
[0010.529] W> "chip-id" doesn't exist, creating
[0010.533] I> Adding /chosen/plugin-manager/chip-id
[0010.538] W> "configs" doesn't exist, creating
[0010.542] I> Adding /chosen/plugin-manager/configs
[0010.547] W> "ids" doesn't exist, creating
[0010.551] I> Adding /chosen/plugin-manager/ids
[0010.555] W> "odm-data" doesn't exist, creating
[0010.559] I> Adding /chosen/plugin-manager/odm-data
[0010.566] W> "memory" doesn't exist, creating
[0010.568] I> [0] START: 0x80000000, END: 0xac000000
[0010.573] I> [1] START: 0xac004000, END: 0xf09d0000
[0010.578] I> [2] START: 0xf09dc000, END: 0xf09e0000
[0010.582] I> dram_block larger than 80000000
[0010.586] I> [3] START: 0x100000000, END: 0x280000000
[0010.591] I> added [base:0x80000000, size:0x2c000000] to /memory
[0010.597] I> added [base:0xac200000, size:0x44600000] to /memory
[0010.603] I> added [base:0x100000000, size:0x180000000] to /memory
[0010.610] I> Updated memory info to DTB
[0010.613] E> add_disp_param: failed to get display params for du=1
[0010.619] W> "reset" doesn't exist, creating
[0010.623] I> NVG: Logical CPU: 0; MPIDR: 0x80000000
[0010.628] I> NVG: Logical CPU: 1; MPIDR: 0x80000001
[0010.632] I> NVG: Logical CPU: 2; MPIDR: 0x80000100
[0010.637] I> NVG: Logical CPU: 3; MPIDR: 0x80000101
[0010.642] I> NVG: Logical CPU: 4; MPIDR: 0x80000200
[0010.647] I> NVG: Logical CPU: 5; MPIDR: 0x80000201
[0010.651] I> Deleted cpu@6 node in DT
[0010.655] I> Deleted cpu@7 node in DT
[0010.659] I> Deleted cluster3 node in FDT
[0010.662] I> Update arm-pmu in FDT
[0010.665] I> - update property: interrupts
[0010.669] I> - update property: interrupt-affinity
[0010.675] W> "misc-data" doesn't exist, creating
[0010.678] I> Boot-device: QSPI
[0010.681] W> Unknown boot device
[0010.684] I> Add storage-qspi to plugin-manager/misc-data
[0010.690] W> Unknown storage device
[0010.693] I> Add serial number:1422920047679 as DT property
[0010.699] I> Plugin-manager override starting
[0010.703] I> node /plugin-manager/fragment-pcie-c5-rp matches
[0010.710] I> node /plugin-manager/fragement-tegra-wdt-en matches
[0010.716] I> node /plugin-manager/fragement-tegra-sdhci-emmc-dis matches
[0010.723] I> Disable plugin-manager status in FDT
[0010.725] I> Plugin-manager override finished successfully
[0010.731] 
[0010.732] -----------------------------------------------
[0010.737] Synchronous Exception: DATA ABORT (FAR: 0)
[0010.742] -----------------------------------------------
[0010.747] PAR_ELX: 0x80f
[0010.749] 
[0010.750] ESR 0x96000007: ec 0x25, il 0x1, iss 0x7
[0010.755] -----------------------------------------------
[0010.760]  [Stack Trace]
[0010.763] 
[0010.764] => pc:0xA0644870, sp:0xA0E9EA50
[0010.768] => pc:0xA063B7FC, sp:0xA0E9EC80
[0010.772] => pc:0xA063D6D0, sp:0xA0E9ECF0
[0010.775] => pc:0xA064089C, sp:0xA0E9EDF0
[0010.779] => pc:0xA063F430, sp:0xA0E9F660
[0010.783] => pc:0xA060F450, sp:0xA0E9F690
[0010.787] => pc:0xA060F5EC, sp:0xA0E9F730
[0010.791] => pc:0xA060F600, sp:0xA0E9F7A0
[0010.795] => pc:0xA060F284, sp:0xA0E9F7E0
[0010.798] => pc:0xA060E7F8, sp:0xA0E9F7F0
[0010.802] => pc:0xA060E7CC, sp:0xA0E9F800
[0010.806] -----------------------------------------------
[0010.811] iframe 0xa0e9e960:
[0010.814] x0  0x               0 x1  0x               0 x2  0x              73 
x3  0x        ffffffe0
[0010.823] x4  0x               0 x5  0x              73 x6  0x               0 
x7  0x               0
[0010.832] x8  0x              43 x9  0x               a x10 0x           25d88 
x11 0x        a0e9edac
[0010.841] x12 0x        90000000 x13 0x        a0e9f4cc x14 0x        a9ac0018 
x15 0x             200
[0010.851] x16 0x            1500 x17 0x             438 x18 0x               0 
x19 0x        a0e9edf0
[0010.860] x20 0x             800 x21 0x        a0661adc x22 0x              20 
x23 0x        ffffffe8
[0010.869] x24 0x        a0e9ef95 x25 0x             6ca x26 0x        a065f5c9 
x27 0x        a0e9edf0
[0010.878] x28 0x        a065f5c8 x29 0x        a0e9ec80 lr  0x        a0644ea0 
sp  0x        a0e9ea50
[0010.887] elr 0x        a0644870
[0010.890] spsr 0x        a0000209
[0010.893] -----------------------------------------------
[0010.898] panic (caller 0xa0601238): die
[0010.902] HALT: spinning forever...

hello clutch12,

could you please help to narrow down the issue, please exclude FDT entry by using default device tree.
thanks

Thanks @JerryChang. That is a good idea to try to isolate.

What I think it ended up being though was lacking an APPEND. I copied this from the stock JetPack and now it works

       APPEND ${cbootargs} quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0