beagleboard xm 1GHz and 2.6.32 vs 37

Hi,

when I boot default kernel, and did
cat /proc/cpuinfo it shows something like 980 or 986 (not rember
exatcly, but very close to 1000)
in BogoMIPS field, that was 2.6.32 kernel (and as I understand it was
build with help of openembeded).

Then I downloaded openbedded and built linux-omap-2.6.37,
boot, ran
$./cpufreq-set -c 0 -g performance
and got
BogoMIPS : 851.45

while

$cat /sys/devices/system/cpu/cpu0/cpufreq/
cpuinfo_cur_freq
1000000

This mean 1GHz, right?

so I wonder where is near 100 BogoMIPS?

Hi davemilter,

Try to use the next parameter in U-Boot cli:

mpurate=1000000000

Or fix "if" statement in the "arch/arm/plat-omap/clock.c" file
"omap_clk_setup" function:

if (mpurate < 1000)
    mpurate *= 1000000;

To:

if (mpurate < 2000)
    mpurate *= 1000000;

P.S. I wonder why this code hasn't been fixed yet?..

Cheers,
Max.

Hi davemilter,

Try to use the next parameter in U-Boot cli:

mpurate=1000000000

Or fix "if" statement in the "arch/arm/plat-omap/clock.c" file
"omap_clk_setup" function:

if (mpurate < 1000)
mpurate *= 1000000;

To:

if (mpurate < 2000)
mpurate *= 1000000;

P.S. I wonder why this code hasn't been fixed yet?..

Did you have beagleboard xm, and tried this approach?
May be something wrong with my?

Because of I try this before I wrote the first post.
1)This doesn't help, after boot
BogoMIPS : 853.90

Only one thing chahnged, the message "unable to set MPU rate to 1000:
-22" disappear.

P.S. I wonder why this code hasn't been fixed yet?..

2)After this change only hot boot works (after invoke reboot in
console),
if switch off power supply and then switch on I saw only the message:
"Uncompressing Linux... done, booting the kernel.", and that's all.

May be this is answer to question about "why this code hasn't been
fixed yet".

I recently built the latest version of the Angstrom distrubution with the default kernel ( 2.6.37.2 ) and the

if (mpurate < 1000)
      mpurate *= 1000000;

code in the noted file and function actually does exist and I'm able to boot and see BogoMips close to 1000 and see that the CPU frequency is 1Ghz.

Just an FYI - not sure it helps though...

Hi davemilter,

Try to use the next parameter in U-Boot cli:

mpurate=1000000000

Or fix "if" statement in the "arch/arm/plat-omap/clock.c" file
"omap_clk_setup" function:

if (mpurate < 1000)
mpurate *= 1000000;

To:

if (mpurate < 2000)
mpurate *= 1000000;

P.S. I wonder why this code hasn't been fixed yet?..

Did you have beagleboard xm, and tried this approach?
May be something wrong with my?

Because of I try this before I wrote the first post.
1)This doesn't help, after boot
BogoMIPS : 853.90

Only one thing chahnged, the message "unable to set MPU rate to 1000:
-22" disappear.

P.S. I wonder why this code hasn't been fixed yet?..

2)After this change only hot boot works (after invoke reboot in
console),
if switch off power supply and then switch on I saw only the message:
"Uncompressing Linux... done, booting the kernel.", and that's all.

May be this is answer to question about "why this code hasn't been
fixed yet".

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

----- End message from davemilter@gmail.com -----

Ooops..

Meant to say that the fixed code is included and booting properly for me:

if (mpurate < 2000)
     mpurate *= 1000000;

I recently built the latest version of the Angstrom distrubution with the default kernel ( 2.6.37.2 ) and the

if (mpurate < 1000)
     mpurate *= 1000000;

code in the noted file and function actually does exist and I'm able to boot and see BogoMips close to 1000 and see that the CPU frequency is 1Ghz.

Just an FYI - not sure it helps though...

Hi davemilter,

Try to use the next parameter in U-Boot cli:

mpurate=1000000000

Or fix "if" statement in the "arch/arm/plat-omap/clock.c" file
"omap_clk_setup" function:

if (mpurate < 1000)
mpurate *= 1000000;

To:

if (mpurate < 2000)
mpurate *= 1000000;

P.S. I wonder why this code hasn't been fixed yet?..

Did you have beagleboard xm, and tried this approach?
May be something wrong with my?

Because of I try this before I wrote the first post.
1)This doesn't help, after boot
BogoMIPS : 853.90

Only one thing chahnged, the message "unable to set MPU rate to 1000:
-22" disappear.

P.S. I wonder why this code hasn't been fixed yet?..

2)After this change only hot boot works (after invoke reboot in
console),
if switch off power supply and then switch on I saw only the message:
"Uncompressing Linux... done, booting the kernel.", and that's all.

May be this is answer to question about "why this code hasn't been
fixed yet".

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

----- End message from davemilter@gmail.com -----

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

----- End message from jimnorton@jimnorton.org -----

May be you can share uImage so I can test on my beagleboard xm?

Hey Dave,

Yes I can share my uImage. I'll put up a link to it later this afternoon and send it to you.

Regards,
Jim

----- Message from davemilter@gmail.com ---------

As promised here is the link to my uImage built from the current default Angstrom distribution that is providing what appears to be the appropriate performance numbers and CPU frequency and is booting properly.

http://beagleboardxm.org/uImage-beagleboard.bin ( rename to uImage of course )

And here is what I get out of my BeagleBoard running that kernel:

root@beagleboard:/bin# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

1000000
root@beagleboard:/bin# cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 996.74
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc08
CPU revision : 2

Hardware : OMAP3 Beagle Board
Revision : 0020
Serial : 0000000000000000

Linux beagleboard 2.6.32 #3 PREEMPT Fri Mar 4 17:15:16 CST 2011 armv7l unknown

I recently built the latest version of the Angstrom distrubution with
the default kernel ( 2.6.37.2 ) and the

if (mpurate < 1000)
mpurate *= 1000000;

code in the noted file and function actually does exist and I'm able
to boot and see BogoMips close to 1000 and see that the CPU frequency
is 1Ghz.

Just an FYI - not sure it helps though...

May be you can share uImage so I can test on my beagleboard xm?

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

----- End message from davemilter@gmail.com -----

And of course I just realized that the kernel version that Angstrom is currently pulling isn't 2.6.37 - but is actually 2.6.32. So once again perhaps this is of no help. :frowning:

As promised here is the link to my uImage built from the current default Angstrom distribution that is providing what appears to be the appropriate performance numbers and CPU frequency and is booting properly.

http://beagleboardxm.org/uImage-beagleboard.bin ( rename to uImage of course )

And here is what I get out of my BeagleBoard running that kernel:

root@beagleboard:/bin# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

1000000
root@beagleboard:/bin# cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 996.74
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc08
CPU revision : 2

Hardware : OMAP3 Beagle Board
Revision : 0020
Serial : 0000000000000000

Linux beagleboard 2.6.32 #3 PREEMPT Fri Mar 4 17:15:16 CST 2011 armv7l unknown

I recently built the latest version of the Angstrom distrubution with
the default kernel ( 2.6.37.2 ) and the

if (mpurate < 1000)
mpurate *= 1000000;

code in the noted file and function actually does exist and I'm able
to boot and see BogoMips close to 1000 and see that the CPU frequency
is 1Ghz.

Just an FYI - not sure it helps though...

May be you can share uImage so I can test on my beagleboard xm?

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

----- End message from davemilter@gmail.com -----

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

----- End message from jimnorton@jimnorton.org -----