拿到一款路由器,想要知道主芯片的方案,可以通過如下方法
方法一
查看cpuinfo,比如:
root@IceCreamBox:~# cat /proc/cpuinfo
system type : Ralink MT7620A ver:2 eco:3
machine : IceCreamBox
processor : 0
cpu model : MIPS 24KEc V5.0
BogoMIPS : 385.84
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
能看到系統是MT7620A,上面的machine參數給的是自己的固件命名。
方法二
看dmesg日誌
root@IceCreamBox:~# dmesg
[ 0.000000] Linux version 3.10.28 (even@ubuntu) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 unknown) ) #330 Thu Apr 20 20:33:38 PDT 2017
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: Ralink MT7620A ver:2 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is IceCreamBox
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
dmesg裏面的信息還是挺多的,SoC Type這個就是芯片方案了,能看到是MT7620A。另外,還能看到內核的版本Linux version 3.10.28。