5.11 Test the New Image
To test the new image:
- Copy the output/images/sdcard.img image to an SD card.
- Copy the sam9x75_secure.itb file and u-boot.bin from the buildroot-mchp directory to the FAT partition of the SD card.
- Boot into the U-Boot command shell by pressing Enter within three seconds after pressing the Reset button of the SAM9X75-Curiosity board.
- Use the fatload command to load
the sam9x75_secure.itb FIT file into SDRAM:
Hit any key to stop autoboot: 0 U-Boot> fatload mmc 0:1 0x24000000 sam9x75_secure.itb 7083674 bytes read in 318 ms (21.2 MiB/s) U-Boot> bootm 0x24000000 ## Loading kernel from FIT Image at 24000000 ... Using 'conf-1' configuration Verifying Hash Integrity ... sha256,rsa4096:samkey+ OK Trying 'kernel-1' kernel subimage Description: Linux4SAM Linux kernel Type: Kernel Image Compression: uncompressed Data Start: 0x240000c8 Data Size: 7039184 Bytes = 6.7 MiB Architecture: ARM OS: Linux Load Address: 0x22000000 Entry Point: 0x22000000 Hash algo: sha256 Hash value: a10629b5185116025a2090a2b468fff8e71f6f23c446deb74d912c6e64a2326c Verifying Hash Integrity ... sha256+ OK ## Loading fdt from FIT Image at 24000000 ... Using 'conf-1' configuration Verifying Hash Integrity ... sha256,rsa4096:samkey+ OK Trying 'fdt-1' fdt subimage Description: Flattened Device Tree blob Type: Flat Device Tree Compression: uncompressed Data Start: 0x246b6a98 Data Size: 41552 Bytes = 40.6 KiB Architecture: ARM Hash algo: sha256 Hash value: db4804ee1225c0df4b1147715f5b4fb51ab1cb34fe49b6fc8c7e30b36afdc26f Verifying Hash Integrity ... sha256+ OK Booting using the fdt blob at 0x246b6a98 Working FDT set to 246b6a98 Loading Kernel Image to 22000000 Loading Device Tree to 2fee5000, end 2fef224f ... OK Working FDT set to 2fee5000 Starting kernel ... - Use the bootm command, as shown above, to perform the signature check and boot the FIT image.
The Verifying Hash Integrity message displays rsa4096:samkey+, indicating that the FIT signature has been successfully verified and found to be valid.
