系统的CPU 是双核的,内核的SMP开关也打开了
uname -a信息如下:
3.10.31-ltsi #41 SMP Wed Aug 5 21:40:58 EDT 2015 armv7l GNU/Linux
1. 上电启动过程中出现如下打印:
SLUB: HWalign=64, Order=0-3, MinObjects=0,
CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:16 nr_irqs:16 16
sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 42949ms
Console: colour dummy device 80x30
Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
ftrace: allocating 16753 entries in 50 pages
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80472348 - 0x804723a0
CPU1: failed to come online
Brought up 1 CPUs
SMP: Total of 1 processors activated (1594.16 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
2. cat /proc/cpuinfo显示一个核
root@host:~# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 0 (v7l)
BogoMIPS : 1594.16
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls lpae
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0
Hardware :
Revision : 0000
Serial : 0000000000000000
3. 在
/sys/devices/system/cpu目录下面有cpu0, cpu1目录,
cat /sys/devices/system/cpu/online (对比正常启动的,这项应该显示0-1)
0
cat /sys/devices/system/cpu/cpu0/online
1
cat /sys/devices/system/cpu/cpu1/online
0
如果执行echo 1 >
/sys/devices/system/cpu/cpu1/online, 内核提示
root@root:/sys/devices/system/cpu/cpu1# echo 1 > online
CPU1: failed to come online
-sh: echo: write error: Input/output error
在另一块单板上面可以启动双核,且可以随时关闭其中一个核
root@host:/sys/devices/system/cpu/cpu1# cat online
1
root@host:/sys/devices/system/cpu/cpu1# echo 0 > online
CPU1: shutdown
root@host:/sys/devices/system/cpu/cpu1# echo 1 > online
CPU1: Booted secondary processor
root@host:/sys/devices/system/cpu/cpu1#
最后发现是工具问题,SOC工具导致了系统问题,软件没有任何修改,换了工具后,就可以启动2个核了
阅读(5563) | 评论(0) | 转发(0) |