yuruyi 发表于 2013-9-28 10:30:30

【已解决】昨天收货,刚加电,cb2只看到一个cpu核心。

本帖最后由 yuruyi 于 2013-9-28 14:47 编辑

默认android系统串口信息:
smp的内核。
sun7i 是 A20没错。
0xc07 是 ARM Cortex-A7没错。
BogoMIPS 会变,下面显示的还不如pc上qemu-system-arm模拟的。
A20芯片硬件问题吗?
如果需要换货那就太麻烦啦。
顺便说句,新板子上网口、USB口上有两个清晰指纹,擦半天也没清理掉,心理阴影。root@android:/ # busybox uname -a                                             
Linux localhost 3.3.0+ #1 SMP PREEMPT Thu Jul 18 14:02:16 CST 2013 armv7l GNU/Linux
root@android:/ #                                                               
root@android:/ # cat /proc/cpuinfo                                             
Processor      : ARMv7 Processor rev 4 (v7l)
processor      : 0
BogoMIPS      : 119.10

Features      : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer      : 0x41
CPU architecture: 7
CPU variant      : 0x0
CPU part      : 0xc07
CPU revision      : 4

Hardware      : sun7i
Revision      : 0000
下面是搜到的别人板子的信息。
http://valdodov.com/index.php?show=hardwareAllwinner A20:
cat /proc/cpuinfo
Processor : ARMv7 Processor rev 4 (v7l)
processor : 0
BogoMIPS : 1810.43
processor : 1
BogoMIPS : 1823.53

Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 4

Hardware : sun7i
Revision : 0000

yuruyi 发表于 2013-9-28 10:32:58

手头没闲置TF卡,又不想烧板子nand,一会架个nfs,网络启动个linux再进去看看。

yuruyi 发表于 2013-9-28 12:09:12

nfs rootfs、tftp uImage 都准备好啦,刚发现板子默认带的 u-boot 不支持网络启动。:L

yuruyi 发表于 2013-9-28 12:10:37

也不支持串口下载文件。:L

ahha007 发表于 2013-9-28 12:39:09

本帖最后由 ahha007 于 2013-9-28 12:45 编辑

LZ,bogomips会变是不是因为采用了A20采用了动态调频引起的啊?
可以尝试把DVFS关闭看看。

yuruyi 发表于 2013-9-28 12:55:38

ahha007 发表于 2013-9-28 12:39 static/image/common/back.gif
LZ,bogomips会变是不是因为采用了A20采用了动态调频引起的啊?
可以尝试把DVFS关闭看看。 ...

多谢提醒!

可问题是双核A7只看到一个核。

yuruyi 发表于 2013-9-28 13:48:25

不得不找了个TF卡,备份数据,用了下面现成的 image,双核出来啦。
http://linux-sunxi.org/Cubieboard2_wheezy_imageroot@cubieboard2:~# cat /proc/cpuinfo
Processor        : ARMv7 Processor rev 4 (v7l)
processor        : 0
BogoMIPS        : 1819.52

processor        : 1
BogoMIPS        : 1819.52

Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer        : 0x41
CPU architecture: 7
CPU variant        : 0x0
CPU part        : 0xc07
CPU revision        : 4

Hardware        : sun7i
Revision        : 0000
警报解除。
莫非DVFS还会关闭cpu核心?看来要深入下。

yuruyi 发表于 2013-9-28 15:20:42

刚注意到默认android系统日志中有这么一部分<4>[   33.741369] wrn cpu need plugout, cpus_load_max:31<30 && cpus_rq_max: 101<200
<5>[   33.742604] CPU1: shutdown
<6>[   33.742621] : cpu(0) try to kill cpu(1)
<6>[   33.743630] : cpu1 is killed!
<4>[   36.301369] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 768000
<4>[   39.521357] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 576000
<4>[   42.971397] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 480000
<4>[   46.851400] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 384000
<4>[   50.656380] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 288000
<4>[   54.471489] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 192000
<4>[   58.741460] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 168000
<4>[   63.001425] wrn dbs_check_cpu, 1227 : try to switch cpu freq to 144000

ahha007 发表于 2013-9-28 16:08:05

yuruyi 发表于 2013-9-28 12:55 static/image/common/back.gif
多谢提醒!

可问题是双核A7只看到一个核。

DVFS也包括了关闭一个核的策略,为了省电嘛。

yuruyi 发表于 2013-9-28 17:18:35

一些资料
https://www.kernel.org/doc/Documentation/cpu-hotplug.txt
http://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu/
http://dl.linux-sunxi.org/A20/
http://lists.linaro.org/pipermail/linaro-dev/2010-November/001659.html
页: [1] 2
查看完整版本: 【已解决】昨天收货,刚加电,cb2只看到一个cpu核心。