- src/vault-core: no_std 密码学核心(HKDF 派生、AES-256-GCM、两条水位线防回滚) - src/ta-vault / src/ca-vault: TA 薄壳与 selftest 客户端 - build/p1_vault_qemu.sh: QEMU 全链,判据 VAULT_ALL_OK - build/p2_ta_keys_qemu.sh: TA 公钥编进 tee.bin,默认密钥签的被拒 - build/gen_ta_keys.sh: 自建签名密钥 - docs/07-VAULT-TA.md: 设计 + 已验证/未验证清单 - CLAUDE.md 雷区 11-16:user_ta_header、嵌套 workspace、ARCH=arm、SIGPIPE、TA_PUBLIC_KEY、heredoc 变量
190 lines
9.1 KiB
Plaintext
190 lines
9.1 KiB
Plaintext
NOTICE: Booting Trusted Firmware
|
||
NOTICE: BL1: v2.11.0(release):v2.11.0
|
||
NOTICE: BL1: Built : 01:45:21, Oct 28 2026
|
||
NOTICE: BL1: Booting BL2
|
||
NOTICE: BL2: v2.11.0(release):v2.11.0
|
||
NOTICE: BL2: Built : 01:45:25, Oct 28 2026
|
||
NOTICE: BL1: Booting BL32
|
||
|
||
|
||
U-Boot 2024.10 (Oct 28 2026 - 03:05:17 +0000)
|
||
|
||
DRAM: 1 GiB
|
||
Core: 50 devices, 13 uclasses, devicetree: board
|
||
Loading Environment from nowhere... OK
|
||
In: serial,usbkbd
|
||
Out: serial,vidconsole
|
||
Err: serial,vidconsole
|
||
No USB controllers found
|
||
Net: No ethernet found.
|
||
[?25h
|
||
starting USB...
|
||
No USB controllers found
|
||
Hit any key to stop autoboot: 2 1 0
|
||
Working FDT set to 40000000
|
||
5674160 bytes read in 16 ms (338.2 MiB/s)
|
||
5151590 bytes read in 12 ms (409.4 MiB/s)
|
||
Kernel image @ 0x40400000 [ 0x000000 - 0x5694b0 ]
|
||
## Flattened Device Tree blob at 40000000
|
||
Booting using the fdt blob at 0x40000000
|
||
Working FDT set to 40000000
|
||
ERROR: reserving fdt memory region failed (addr=7fe00000 size=200000 flags=4)
|
||
Using Device Tree in place at 40000000, end 40006fff
|
||
Working FDT set to 40000000
|
||
|
||
Starting kernel ...
|
||
|
||
Booting Linux on physical CPU 0x0
|
||
Linux version 6.6.60 (root@tpl-c340) (arm-linux-gnueabihf-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 SMP Wed Oct 28 03:00:49 UTC 2026
|
||
CPU: ARMv7 Processor [414fc0f0] revision 0 (ARMv7), cr=10c5387d
|
||
CPU: div instructions available: patching division code
|
||
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
|
||
OF: fdt: Machine model: linux,dummy-virt
|
||
random: crng init done
|
||
Memory policy: Data cache writealloc
|
||
OF: reserved mem: 0x0e100000..0x0effffff (15360 KiB) nomap non-reusable optee_core@e100000
|
||
OF: reserved mem: 0x7fe00000..0x7fffffff (2048 KiB) nomap non-reusable optee_shm@7fe00000
|
||
cma: Reserved 16 MiB at 0x81000000 on node -1
|
||
Zone ranges:
|
||
Normal [mem 0x0000000040000000-0x00000000820fffff]
|
||
Movable zone start for each node
|
||
Early memory node ranges
|
||
node 0: [mem 0x0000000040000000-0x000000007fdfffff]
|
||
node 0: [mem 0x000000007fe00000-0x000000007fffffff]
|
||
node 0: [mem 0x0000000080000000-0x00000000820fffff]
|
||
Initmem setup node 0 [mem 0x0000000040000000-0x00000000820fffff]
|
||
psci: probing for conduit method from DT.
|
||
psci: PSCIv1.1 detected in firmware.
|
||
psci: Using standard PSCI v0.2 function IDs
|
||
psci: MIGRATE_INFO_TYPE not supported.
|
||
psci: SMC Calling Convention v1.0
|
||
percpu: Embedded 16 pages/cpu s34900 r8192 d22444 u65536
|
||
Kernel command line: console=ttyAMA0,115200 earlyprintk=serial,ttyAMA0,115200
|
||
Unknown kernel command line parameters "earlyprintk=serial,ttyAMA0,115200", will be passed to user space.
|
||
Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes, linear)
|
||
Inode-cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
|
||
Built 1 zonelists, mobility grouping on. Total pages: 268478
|
||
mem auto-init: stack:all(zero), heap alloc:off, heap free:off
|
||
Memory: 1034524K/1082368K available (9216K kernel code, 693K rwdata, 2076K rodata, 1024K init, 178K bss, 31460K reserved, 16384K cma-reserved)
|
||
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
|
||
trace event string verifier disabled
|
||
rcu: Hierarchical RCU implementation.
|
||
rcu: RCU event tracing is enabled.
|
||
rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
|
||
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
|
||
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
|
||
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
|
||
rcu: srcu_init: Setting srcu_struct sizes based on contention.
|
||
arch_timer: cp15 timer(s) running at 62.50MHz (virt).
|
||
clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
|
||
sched_clock: 57 bits at 63MHz, resolution 16ns, wraps every 4398046511096ns
|
||
Switching to timer-based delay loop, resolution 16ns
|
||
Console: colour dummy device 80x30
|
||
Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=625000)
|
||
CPU: Testing write buffer coherency: ok
|
||
CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
|
||
CPU0: Spectre BHB: enabling loop workaround for all CPUs
|
||
pid_max: default: 32768 minimum: 301
|
||
Mount-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
|
||
Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
|
||
/cpus/cpu@0 missing clock-frequency property
|
||
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
|
||
Setting up static identity map for 0x40100000 - 0x40100060
|
||
rcu: Hierarchical SRCU implementation.
|
||
rcu: Max phase no-delay instances is 1000.
|
||
smp: Bringing up secondary CPUs ...
|
||
smp: Brought up 1 node, 1 CPU
|
||
SMP: Total of 1 processors activated (125.00 BogoMIPS).
|
||
CPU: All CPU(s) started in SVC mode.
|
||
devtmpfs: initialized
|
||
VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
|
||
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
|
||
futex hash table entries: 256 (order: 2, 16384 bytes, linear)
|
||
NET: Registered PF_NETLINK/PF_ROUTE protocol family
|
||
DMA: preallocated 256 KiB pool for atomic coherent allocations
|
||
cpuidle: using governor ladder
|
||
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
|
||
hw-breakpoint: maximum watchpoint size is 8 bytes.
|
||
Serial: AMBA PL011 UART driver
|
||
9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 28, base_baud = 0) is a PL011 rev1
|
||
printk: console [ttyAMA0] enabled
|
||
SCSI subsystem initialized
|
||
usbcore: registered new interface driver usbfs
|
||
usbcore: registered new interface driver hub
|
||
usbcore: registered new device driver usb
|
||
pps_core: LinuxPPS API ver. 1 registered
|
||
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
|
||
PTP clock support registered
|
||
Advanced Linux Sound Architecture Driver Initialized.
|
||
clocksource: Switched to clocksource arch_sys_counter
|
||
NET: Registered PF_INET protocol family
|
||
IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
|
||
tcp_listen_portaddr_hash hash table entries: 1024 (order: 1, 8192 bytes, linear)
|
||
Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
|
||
TCP established hash table entries: 16384 (order: 4, 65536 bytes, linear)
|
||
TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
|
||
TCP: Hash tables configured (established 16384 bind 16384)
|
||
UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
|
||
UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
|
||
NET: Registered PF_UNIX/PF_LOCAL protocol family
|
||
RPC: Registered named UNIX socket transport module.
|
||
RPC: Registered udp transport module.
|
||
RPC: Registered tcp transport module.
|
||
RPC: Registered tcp-with-tls transport module.
|
||
RPC: Registered tcp NFSv4.1 backchannel transport module.
|
||
Unpacking initramfs...
|
||
workingset: timestamp_bits=30 max_order=19 bucket_order=0
|
||
squashfs: version 4.0 (2009/01/31) Phillip Lougher
|
||
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
|
||
9p: Installing v9fs 9p2000 file system support
|
||
io scheduler mq-deadline registered
|
||
io scheduler kyber registered
|
||
io scheduler bfq registered
|
||
physmap-flash 4000000.flash: physmap platform flash device: [mem 0x04000000-0x07ffffff]
|
||
4000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
|
||
Intel/Sharp Extended Query Table at 0x0031
|
||
Using buffer write method
|
||
Initramfs unpacking failed: invalid magic at start of compressed archive
|
||
Freeing initrd memory: 5032K
|
||
usbcore: registered new interface driver usb-storage
|
||
rtc-pl031 9010000.pl031: registered as rtc0
|
||
rtc-pl031 9010000.pl031: setting system clock to 2026-10-28T03:05:49 UTC (1793156749)
|
||
ledtrig-cpu: registered to indicate activity on CPUs
|
||
usbcore: registered new interface driver usbhid
|
||
usbhid: USB HID core driver
|
||
optee: probing for conduit method.
|
||
optee: revision 4.11 (f54190f2)
|
||
optee: Asynchronous notifications enabled
|
||
optee: dynamic shared memory is enabled
|
||
optee: initialized driver
|
||
NET: Registered PF_PACKET protocol family
|
||
9pnet: Installing 9P2000 support
|
||
Registering SWP/SWPB emulation handler
|
||
clk: Disabling unused clocks
|
||
ALSA device list:
|
||
No soundcards found.
|
||
Freeing unused kernel image (initmem) memory: 1024K
|
||
Run /init as init process
|
||
--- optee ---
|
||
optee: probing for conduit method.
|
||
optee: revision 4.11 (f54190f2)
|
||
optee: Asynchronous notifications enabled
|
||
optee: dynamic shared memory is enabled
|
||
optee: initialized driver
|
||
crw------- 1 0 0 250, 0 Oct 28 03:05 /dev/tee0
|
||
crw------- 1 0 0 250, 16 Oct 28 03:05 /dev/teepriv0
|
||
[1/3] 首次会话:provision + seal
|
||
info: ver=1.0 flags=0x0000 dev_tag=c44b97fa8cc37da0 seal_floor=0 accepted=0 provisioned=false
|
||
provision: TA 内生成 root key(普通世界从未见到它)
|
||
seal: 43 B 明文 -> 95 B blob, counter=1
|
||
[2/3] 重开会话(等价于 TA 重新加载 / 进程重启)后解封
|
||
unseal: 43 B,内容一致(密钥只可能来自 secure storage)
|
||
tamper: 已被拒绝(A security fault was detected. (error code 0xffff000f, origin 0x4))
|
||
[3/3] TA 内部自检(seal/unseal/篡改/回滚,全在安全世界)
|
||
bitmap = 0b11111 [seal=1 unseal=1 match=1 tamper_rej=1 rollback_rej=1]
|
||
VAULT_ALL_OK
|
||
VAULT_RC=0
|
||
MARKER_ALL_DONE
|
||
Flash device refused suspend due to active operation (state 20)
|
||
reboot: Power down
|