//soc_term目录下来实现端口监听 listening on port 54320 soc_term: accepted fd 4 soc_term: read fd EOF soc_term: accepted fd 4 Normal 环境下的启动log,包括Linux加载log和linux启动log /**find DTB(device tree database)/ #define DTB_START DRAM_START #define DRAM_START 0x40000000 Using QEMU provided DTB at 0x40000000 msg(found secure header) found secure header The struct optee_header hdr struct optee_header { uint32_t magic; uint8_t version; uint8_t arch; uint16_t flags; uint32_t num_images; struct optee_image images[OPTEE_MAX_NUM_IMAGES]; }; Relocating DTB for kernel use at 0x483bb000 Initializing secure world //The optee_os is loaded //conf.mk file defined ,command line 是bios_qemu_tz_arm目录下的文件传进来的。 kernel command line: "console=ttyAMA0,115200 earlyprintk=serial,ttyAMA0,115200 dynamic_debug.verbose=1 " 到这里系统加载成功,下一步就是启动linux //kernel enter Entering kernel at 0x42000000 with r0=0x0 r1=0x8e0 r2=0x483bb000 //在qemu情况下,optee只启动一个CPU核 Booting Linux on physical CPU 0x0 Linux version 4.12.0 (ming@ming-VirtualBox) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #4 SMP PREEMPT Sat Jan 27 16:06:09 CST 2018 //注意这里用的是AVMv7核 CPU: ARMv7 Processor [412fc0f1] revision 1 (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 OF: fdt: Ignoring memory block 0xe000000 - 0xf000000 Memory policy: Data cache writealloc psci: probing for conduit method from DT. psci: PSCIv0.2 detected in firmware. psci: Using standard PSCI v0.2 function IDs psci: MIGRATE_INFO_TYPE not supported. percpu: Embedded 16 pages/cpu @c16a3000 s36556 r8192 d20788 u65536 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 267970 //command line由bios_qemu_tz_arm传进来的也就是 bootargs Kernel command line: console=ttyAMA0,115200 earlyprintk=serial,ttyAMA0,115200 dynamic_debug.verbose=1 PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes) Inode-cache hash table entries: 131072 (order: 7, 524288 bytes) //内存的使用情况 Memory: 1049204K/1080320K available (6144K kernel code, 356K rwdata, 1320K rodata, 1024K init, 170K bss, 31116K reserved, 0K cma-reserved) //虚拟内存的一个分布图 Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc2000000 - 0xff800000 ( 984 MB) lowmem : 0x80000000 - 0xc1f00000 (1055 MB) modules : 0x7f000000 - 0x80000000 ( 16 MB) .text : 0x80008000 - 0x80700000 (7136 kB) .init : 0x80900000 - 0x80a00000 (1024 kB) .data : 0x80a00000 - 0x80a59390 ( 357 kB) .bss : 0x80a60dc0 - 0x80a8b740 ( 171 kB) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Preemptible hierarchical RCU implementation. RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 NR_IRQS:16 nr_irqs:16 16 arch_timer: cp15 timer(s) running at 62.50MHz (virt). clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns sched_clock: 56 bits at 62MHz, 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) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 4096 (order: 2, 16384 bytes) Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes) CPU: Testing write buffer coherency: ok /cpus/cpu@0 missing clock-frequency property CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x40100000 - 0x40100060 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) NET: Registered protocol family 16 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 = 54, base_baud = 0) is a PL011 rev1 console [ttyAMA0] enabled SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arch_sys_counter NET: Registered protocol family 2 TCP established hash table entries: 16384 (order: 4, 65536 bytes) TCP bind hash table entries: 16384 (order: 5, 131072 bytes) TCP: Hash tables configured (established 16384 bind 16384) UDP hash table entries: 1024 (order: 3, 32768 bytes) UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Unpacking initramfs... Freeing initrd memory: 11204K workingset: timestamp_bits=30 max_order=19 bucket_order=0 squashfs: version 4.0 (2009/01/31) Phillip Lougher 9p: Installing v9fs 9p2000 file system support io scheduler noop registered (default) io scheduler mq-deadline registered io scheduler kyber registered 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 libphy: Fixed MDIO Bus: probed usbcore: registered new interface driver usb-storage rtc-pl031 9010000.pl031: rtc core: registered pl031 as rtc0 ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver //初始化OPTEE相关驱动 optee: probing for conduit method from DT. optee: initialized driver oprofile: no performance counters oprofile: using timer interrupt. NET: Registered protocol family 17 9pnet: Installing 9P2000 support Registering SWP/SWPB emulation handler rtc-pl031 9010000.pl031: setting system clock to 2018-01-29 09:34:24 UTC (1517218464) ALSA device list: No soundcards found. Freeing unused kernel memory: 1024K preparing networking... ip: SIOCGIFFLAGS: No such device running rc.d services... mounting tmpfs at /dev ...done mounting pts at /dev/pts ...done creating initial mdev device nodes ...done setting system time from /dev/rtc0 Starting telnetd... //启动了tee-supplicant helper deamon 服务 Starting tee-supplicant... uptime idle: 5.54 0.26 Please press Enter to activate this console. //到这里系统就启动完成
OPTEE Normal 环境启动log分析
猜你喜欢
转载自blog.csdn.net/good123_2014/article/details/79241093
今日推荐
周排行