[LEDE-DEV] [RFC] Need help to support CPU frequency setting on Mikrotik RB devices

Nishant Sharma codemarauder at gmail.com
Mon Feb 27 03:42:10 PST 2017


Here is the data from RB951Ui-2HnD running OWRT 15.05.1 (custom compiled).

On Monday 27 February 2017 04:58 PM, Thibaut wrote:
> I’m currently working with Alex Samorukov on bringing cpu frequency setting to rbcfg for Mikrotik Routerboards devices, and in doing so, we would need a bit of input from people owning that hardware and running LEDE on it:
> 1. output of `cat /proc/cpuinfo`

cat /proc/cpuinfo
system type             : Atheros AR9344 rev 3
machine                 : MikroTik RouterBOARD 951Ui-2HnD
processor               : 0
cpu model               : MIPS 74Kc V4.12
BogoMIPS                : 299.82
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 dsp2
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

> 2. output of `dmesg | grep board=`

[    0.000000] Kernel command line:  no-uart parts=1 
boot_part_size=4194304 gpio=130619 HZ=300000000 mem=128M 
kmac=6C:3B:6B:F2:0E:40 board=951HnD Board=951HnD ver=3.33 
hw_opt=00210005 boot=1 mlc=10 rootfstype=yaffs noinitrd

> 3. if possible, whether or not RouterBOOT offers a “cpu frequency” setting (typically under key ‘f’) at boot time

I guess, this is accessible over UART. But I do not have access to UART 
port as devices are in the field

> 4. if possible, for various cpu frequency settings (ideally for all of them), the output of `dmesg | grep Clocks; hexdump -C /dev/mtdblockN` where mtdblockN is the soft_config partition. Please provide this output at least once, even if there’s no frequency setting.

[    0.000000] Clocks: CPU:600.000MHz, DDR:400.000MHz, AHB:400.000MHz, 

I can see /dev/mtdblock{0,1,2}.

Kernel is on mtdblock1 and filesystem on mtdblock2. Is that the 
mtdblock0 whose hexdump is required? It is going to be a big one. Please 
suggest how to send it across.

> 5. Finally, which frequency setting is the factory default one

No idea on this one. Sorry.


More information about the Lede-dev mailing list