Micro2440 at 533Mhz

andromeda
hi,

How can i do for put micro2440 at 533Mhz ?

thx.

screwface
Hi,

I have already looked at this, but not started yet. It is normaly possible
to increase CPU speed by changing registers. Have a look at Samsung S3C2440
datasheet page 255 (7-21). The onboard quartz is a 12MHz one.
It should be possible to set clock speed at 532MHz with a 12MHz input
quartz by setting MDIV to 0x7D, PDIV=1 and SDIV=1.

I hope this helps, let us know!

andromeda
on u-boot i have tested s3c24xx speed set 533 but after the board hang.

thx

Screwface
Hi,

I've seen it was also possible to change CPU speed in supervivi, but not
tested, I don't know which parameters to set (I have also not searched! ;-)
)

Irinel
Hi Screwface

Where did you find this ?

thanks

screwface
Dear Irinel,

I found that in supervivi commands (the last version). Press q to get the
command prompt and then help to get the list of the available commands.

Irinel
I found a interesting source code here
http://blog.leshak.ru/file/cmd_s3c24xxc.gz

How can I run it without u-boot ?

thx

andromeda
anyone has tested 533mhz on micro2440 256 MiB ?

for me , a board hang with u-boot

thx

Irinel
Many people say that the overlocking process was successfully done on a lot
of PDAs based S3C2440 using ClockWizard.exe .

Seppbauer
EHM! 

uboot: "help" command might tellya

its just 1 line to enter in uboot to overclock

the speed u can reach is mainly based on the quality of the board

Seppo

andromeda
yes but how do i do ?

in supervivi i have this command

cpu <clock> <ratio>

what is the ration for micro2440 256MiB  tu put ?

cpu 533 ??

thans in advance.

andromeda
any idea ?

fatbrain
For uboot 
Will list all the freq settings
s3c24xx speed list  

Will set the freq to 451Mhz
s3c24xx speed set 451


--fatbrain

Irinel
fatbrain Did you try to overclock your cpu ? The board works fine after
overclocking ?

Any idea for vivi ?

Thanks

andromeda
i have tested with command s3c24xx speed ... at 533 and the board hang.

thx.

fatbrain
I can boot the box upto 499 Mhz but then my apps start hanging.
The need for overclocking for me arose due to performance lag of QT 4.6.2


--fatbrain

andromeda
i try to change the speed with command

s3c24xx 533 or 504 for example
savenv
reset

when i type a command s3c24xx speed get, i have always the same spped

FCLK = 405 MHz, HCLK = 101 MHz, PCLK = 50 MHz, UCLK = 48 MHz

??

the value is not in memory.

thanks in advance.

fatbrain
andromeda you have to set the speed in the bootcmd 

setenv bootcmd 's3c24xx speed set 451; tftpboot 0x31000000
192.168.1.2:uImage ; bootm 0x31000000'

and then do a saveenv

it works

--fatbrain

Juergen Beisert
AFAIK if you increase the CPU speed, you also have to change the SDRAM
parameters to make it work. There is always a 1:4 ratio between the CPU
core clock and the SDRAM clock. If the SDRAM is configured to run with CL2
@ 100MHz (at 400MHz CPU core speed) you may have to change to CL3 @ 133MHz
to increase the CPU core frequency.

jbe

Marco
Is this safe? anyone is able to set the clock to the maximum without any
problem?

ssaku
in theory it is safety because this is one of the standard speed of CPU I
don't know what happen with System but the CPU shouldn't damage

Nic
With vivi, i get this (cmd: cpu info)

Processor Information (Revision: 0x41129200)
--------------------------------------------
Processor clock: 405000000 Hz
AHB bus clock  : 101250000 Hz
APB bus clock  : 50625000 Hz

Register values
MPLLCON: 0x0007f021  (MDIV: 0x007f, PDIV: 0x02, SDIV: 0x01)
CLKDIVN: 0x00000005

How to use the cmd cpu set <clock> <ratio> ?

Nic
I try to use cpu set 500 1, but  i can't say yes after :

CPU Clock Change From 405 Mhz  To 500 Mhz 
?

Icarus
Did anyone finally manage to overclock mini2440 to 533MHz ?

Juergen Beisert
All S3C2440 CPU I have seen yet are rated for 400 MHz only. There is no
hint in the datasheet for 533 MHz any more.

Gr3yh0und
U-Boot:
s3c24xx speed get
-> 405 Mhz

s3c24xx speed set 461 
-> maximum

i can get. It's the same problem as always with linked infrastructure, you
have one clock generator for the CPU and everything else linked to that
one. So if you increase your CPU clock, the other clocks will raise as well
(as Juergen mentioned the Ramclock) but also the periphal clock, i.e. the
way the soundcard or USB is linked. 

Basically there shouldn't be any damage, because you don't increase any
voltage, just the speed of the clockgen. But, you should be aware of more
heat produced by the chip which maybe can damage your board, if it's
located in a little black box and sweating in the summer sun ;)

cheers

kamejoko80
Have you already changed the VDDCORE voltage to 1.3V before setting the
higher CPU clock rate ?

sanjay
I tried with supervivi using commmand cpu set <freq> <ratio>. 

But i got error like " Cant find cpu freq table"

Is there any solution for the same ???

freqclock
Hello Juerge,

From where can i change the SDRAM Clock, i.e. CL3 value as per your saying
in above forum.

I have increased clock freq. but I am unable to get a performance increase.


regards,
freqclock

Juergen Beisert
You can change it only in a very early startup state when the SDRAM
controller gets configured and enabled. Later on (when the bootloader or
the kernel are already running) you can't change it anymore.

Juergen Beisert
There is another restriction: the SDRAM used on many Mini2440 are specified
only up to 110 MHz. If you want to run the CPU at 533 MHz you must run this
SDRAM at 133 MHz (due to a fixed 4:1 clock divider) which is out of spec
for the SDRAM.

freqclock
Hello Juergen,

Thank you for the explanation. But If I run board at max 500 hz freq. still
I am unable to get performance boost, I am read adc value in a program, If
i read 1000 times adc value (in a whole c prog.) it takes 1 mins of time,
after increasing freq to 500 hz, time command display time as 55 sec, but
If i measure time using stop clock it comes the same as 1 min of time. 

Please let me know what other changes I need to do in kernel, I am using
linux 3.1 from pegotronux bsp. 

Look forward to hear from you soon.

regards,
freqclock

Juergen Beisert
You must do the changes in the bootloader when it setup the PLLs and the
SDRAMs. If you are using my Mini2440 BSP you should take a look into:

"barebox-2011.05.0/arch/arm/boards/mini2440/config.h" for setting up the
PLL to the freqency you want to run it (instead of the 405 MHz):
  - BOARD_SPECIFIC_CLKDIVN
  - BOARD_SPECIFIC_MPLL
and for the SDRAM (maybe you need CL3 @ 110 MHz SDRAM speed)
  - BOARD_SPECIFIC_BANKCON6
  - BOARD_SPECIFIC_REFRESH
  - BOARD_SPECIFIC_MRSRB6

recompile Barebox, bring it into the NAND of you Mini2440 and restart it
again.

freqclock
Hello Juergen,

Thank you for the brief explanation. I will try and let you know.

--
freqclock

freqclock
@davef, @Juergen,

Hi I m back again.. After applying this frequency path, my barebox looks
garbadge. Something like...

&#65533;&#65533;&#65533;&#65533;&#65533;z@&#65533;&#65533;&#65533;&#65533;@bdd`
@&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;z@&
#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&
amp;#65533;&#65533;&#65533;&#65533;&#65533;@&#65533;&#65
533;z@p&#65533;&#65533;&#65533;L@&#65533;&#65533;&#65533
;&#65533;@&#65533;&#65533;z@p&#65533;&#65533;c@H&#65533;
&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;@@a&
#65533;&#578;@cLs&#65533;@xM&#65533;&#65533;&#65533;I
&#65533;&#65533;&#65533;@&#65533;&#65533;&#65533;&#6
5533;&#65533;@&#65533;&#65533;&#65533;&#65533;&#65533;@&
amp;#65533;&#65533;&#65533;&#65533;&#65533;@&#65533;&#65
533;@&#65533;&#65533;&#65533;&#65533;@urtrrtL@&#65533;&#
65533;&#65533;&#65533;&#65533;&#65533;&#65533;@p&#65533;
pq
&#65533;&#65533;&#65533;@&#65533;&#65533;&#65533;&#6
5533;&#65533;@&#65533;&#65533;&#65533;&#65533;&#65533;@&
amp;#65533;&#65533;&#65533;&#65533;&#65533;@&#65533;&#65
533;@&#65533;&#65533;&#65533;&#65533;@urtqvpL@&#65533;&#
65533;&#65533;&#65533;&#65533;&#65533;&#65533;@p&#65533;
pq
&#65533;&#65533;y```@&#65533;O&#65533;z@`&#65533;b`p`psppL@&
amp;#65533;&#65533;z@p&#65533;ypppp&#65533;tv@
&#65533;&#65533;&#512;&#65533;&#65533;&#65533;pz@&#6
5533;&#65533;&#65533;@&#65533;&#65533;&#65533;@&#65533;&
amp;#65533;&#65533;&#65533;&#65533;&#65533;&#65533;@&#65
533;&#65533;&#65533;&#65533;@&#65533;&#65533;&#65533;&am
p;#65533;z@``z``zppzppzppzpp
&#65533;&#65533;&#65533;&#65533;@&#447;&#65533;&#655
33;&#65533;@&#65533;&#65533;@tuppppppp@u
&#65533;&#65533;&#65533;&#65533;@&#447;&#65533;&#655
33;&#65533;@&#65533;&#65533;@de```````@e
&#65533;&#65533;&#65533;&#65533;@&#447;&#65533;&#655
33;&#65533;@&#65533;&#65533;@tuppppppp@u
&#65533;&#65533;&#65533;&#707;v@&#65533;&#65533;@yxsqs@
&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;z@@@@ab```@&#712;
&#65533;&#65533;&#65533;&#65533;z@@@@@tupppp@&#712;
&#65533;&#65533;&#65533;&#65533;@&#65533;&#65533;&#6
5533;&#65533;&#65533;&#65533;@&#65533;&#65533;@bbyda`
&#65533;&#65533;&#65533;&#65533;z@@@@@@txppp@&#712;
&#65533;&#65533;&#65533;&#65533;z@@@@@tup```@&#712;
&#65533;&#65533;&#65533;&#65533;@&#447;&#65533;&#655
33;&#65533;@&#65533;&#65533;@tuppppppp@u
&#65533;&#65533;&#65533;&#65533;z@@@@@qqrep`@&#712;
&#65533;&#65533;&#65533;&#65533;@&#447;&#65533;&#655
33;&#65533;@&#65533;&#65533;@tuppppppp@u
&#65533;&#65533;&#65533;&#65533;z@@@@@@uvrup@&#712;
&#65533;&#65533;&#65533;&#65533;@&#447;&#65533;&#655
33;&#65533;@&#65533;&#65533;@de`p`pppp@u
&#65533;&#65533;&#65533;&#65533;&#65533;qz@@@&#65533;&am
p;#65533;t&#65533;qqr&#65533;&#65533;
&#65533;&#65533;&#65533;&#65533;@&#447;&#65533;&#655
33;&#65533;@&#65533;&#65533;@de```p``p@u
&#65533;&#65533;&#65533;&#65533;&#65533;rz@@@&#65533;&am
p;#65533;t&#65533;qqr&#65533;&#65533;
&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;@&#6
5533;&#65533;&#65533;&#65533;&#65533;z@`&#65533;cc&#6553
3;```pp@M~@p&#65533;ss&#65533;ppppp@H&#65533;&#65533;&#65533
;&#65533;@@t@&#65533;&#65533;I
&#65533;&#65533;&#65533;&#65533;&#65533;@&#65533;&#6
5533;&#65533;&#65533;&#65533;@z@`&#65533;ccy&#65533;x`pp@M~@
p&#65533;ss&#65533;ppppp@H&#65533;&#65533;&#65533;&#6553
3;@sr@&#706;I
&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65
533;@O&#65533;&#65533;&#65533;O&#65533;&#65533;&#65533;O
&#65533;&#65533;&#65533;&#65533;NNN

non-ascii character comes to the serial port. I think I should also change
in serail port settings.

Could you please tell me the possible work arround for the same?

freqclock
@Juergen,

I have successfully changed mpll value to 'mpll:     420000 kHz' but after
switching to nand, serial port display garbadge text on screen. Can you
please tell me what are the settings to see actual text on screen with
increasing board frequency?

Look forward to hear from you soon.

miniarm
refclk:    12000 kHz
mpll:     420000 kHz
upll:      48000 kHz
fclk:     420000 kHz
hclk:     105000 kHz
pclk:      52500 kHz
SDRAM1:   CL4@105MHz
SDRAM2:   CL4@105MHz
Malloc space: 0x33a00000 -> 0x33e00000 (size  4 MB)
Stack space : 0x339f8000 -> 0x33a00000 (size 32 kB)


Here is my updated freq. list, now as per you saying abotu SDRAM3 in above
post, but there isn't any SDRAM3 mentioned in data sheet as well as barebox
!!

Can you please describe it.., so that I can run board at 420 Mhz speed.

Juergen Beisert
Nobody has told something about "SDRAM3".

miniarm
Oh Sorry, I mean "CL3". Now when i increase frequency, serial port shows
garbadge message, how to correct serial port so that it shows correct
message on screen.