Update source to Armbian-dev-202610.A311Y3

This commit is contained in:
2026-11-11 08:50:43 +08:00
parent 3428a94f6b
commit f459ef6a9e
12514 changed files with 2264376 additions and 468481 deletions
@@ -6,6 +6,7 @@
#include <common.h>
#include <hexdump.h>
#include <libavb.h>
#include <malloc.h>
/*
* *****************************************************************
@@ -97,12 +98,21 @@ static u8 *tlv_put(u8 *p, u8 tag, u8 len, const u8 *val)
void set_secinfo_to_bootargs(u8 *secinfo_buf, int sec_len)
{
char *bootargs = env_get("bootargs");
char buf[SEC_INFO_MAX * 6 + 1] = {0};
char cmdbuf[128];
bin2hex(buf, secinfo_buf, sec_len);
sprintf(cmdbuf, "setenv bootargs ${bootargs} sec_info=0x%s ", buf);
run_command(cmdbuf, 0);
if (bootargs) {
int nlen = strlen(bootargs) + SEC_INFO_MAX * 6 + 12;
char *bootargs_buf = malloc(nlen);
if (!bootargs_buf)
return;
bin2hex(buf, secinfo_buf, sec_len);
sprintf(bootargs_buf, "%s sec_info=%s", bootargs, buf);
env_set("bootargs", bootargs_buf);
free(bootargs_buf);
bootargs_buf = NULL;
}
}
static int do_secinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
@@ -160,7 +170,7 @@ static int do_secinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
tlv_put(&sec_info_buf[15], SEC_INFO_SCS_ALGO, 1, &sec_v);
set_secinfo_to_bootargs(sec_info_buf, SEC_INFO_MAX * 3);
return 0;
return CMD_RET_SUCCESS;
}
U_BOOT_CMD(secinfo, 1, 0, do_secinfo,