hi, How can i do for put micro2440 at 533Mhz ? thx.
Micro2440 at 533Mhz
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!
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! ;-) )
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.
I found a interesting source code here http://blog.leshak.ru/file/cmd_s3c24xxc.gz How can I run it without u-boot ? thx
Many people say that the overlocking process was successfully done on a lot of PDAs based S3C2440 using ClockWizard.exe .
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
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.
For uboot Will list all the freq settings s3c24xx speed list Will set the freq to 451Mhz s3c24xx speed set 451 --fatbrain
fatbrain Did you try to overclock your cpu ? The board works fine after overclocking ? Any idea for vivi ? Thanks
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
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.
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
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
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
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> ?
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.
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
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 ???
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
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.
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.
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
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.
@davef, @Juergen, Hi I m back again.. After applying this frequency path, my barebox looks garbadge. Something like... �����z@����@bdd` @������z@& #65533;������& amp;#65533;����@�A 533;z@p���L@��� ;�@��z@p��c@H� ������@@a& #65533;ɂ@cLs�@xM���I ���@��� 5533;�@�����@& amp;#65533;����@�A 533;@����@urtrrtL@�&# 65533;�����@p� pq ���@��� 5533;�@�����@& amp;#65533;����@�A 533;@����@urtqvpL@�&# 65533;�����@p� pq ��y```@�O�z@`�b`p`psppL@& amp;#65533;�z@p�ypppp�tv@ ��Ȁ���pz@ 5533;��@���@�& amp;#65533;�����@A 533;���@���&am p;#65533;z@``z``zppzppzppzpp ����@ƿ�ʏ 33;�@��@tuppppppp@u ����@ƿ�ʏ 33;�@��@de```````@e ����@ƿ�ʏ 33;�@��@tuppppppp@u ���˃v@��@yxsqs@ ������z@@@@ab```@ˈ ����z@@@@@tupppp@ˈ ����@�� 5533;���@��@bbyda` ����z@@@@@@txppp@ˈ ����z@@@@@tup```@ˈ ����@ƿ�ʏ 33;�@��@tuppppppp@u ����z@@@@@qqrep`@ˈ ����@ƿ�ʏ 33;�@��@tuppppppp@u ����z@@@@@@uvrup@ˈ ����@ƿ�ʏ 33;�@��@de`p`pppp@u �����qz@@@�&am p;#65533;t�qqr�� ����@ƿ�ʏ 33;�@��@de```p``p@u �����rz@@@�&am p;#65533;t�qqr�� ������@ 5533;����z@`�ccᦙ 3;```pp@M~@p�ss�ppppp@H��� ;�@@t@��I �����@� 5533;���@z@`�ccy�x`pp@M~@ p�ss�ppppp@H���ᦙ 3;@sr@˂I ������A 533;@O���O���O ����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?
@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.
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.
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.