]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: security: Lower verbosity of cert message for GP
authorAndrew Davis <afd@ti.com>
Wed, 10 Apr 2024 18:38:34 +0000 (13:38 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 17 Apr 2024 23:06:13 +0000 (17:06 -0600)
When we find a certificate on an image to be booted on a GP device we
print out a message explaining that the certificate is being skipped.
This message is rather long and is printed for every image. Shorten
the message and make the long version into a debug message.

Signed-off-by: Andrew Davis <afd@ti.com>
Tested-by: Jonathan Humphreys <j-humphreys@ti.com>
arch/arm/mach-k3/security.c

index 22697a263a85b7a53638c1e8b1cd8a5015d58f28..7c46914d9ddb9efa3d0e4e8e15109e06d610bc46 100644 (file)
@@ -50,7 +50,7 @@ void ti_secure_image_check_binary(void **p_image, size_t *p_size)
 
        if (get_device_type() == K3_DEVICE_TYPE_GP) {
                if (ti_secure_cert_detected(*p_image)) {
-                       printf("Warning: Detected image signing certificate on GP device. "
+                       debug("Warning: Detected image signing certificate on GP device. "
                               "Skipping certificate to prevent boot failure. "
                               "This will fail if the image was also encrypted\n");
 
@@ -60,6 +60,7 @@ void ti_secure_image_check_binary(void **p_image, size_t *p_size)
                                return;
                        }
 
+                       printf("Skipping authentication on GP device\n");
                        *p_image += cert_length;
                        *p_size -= cert_length;
                }