2010-06-28 05:59:53     BF533 dynamic CCLK

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-06-28 05:59:53     BF533 dynamic CCLK

nike tian (CHINA)

Message: 90673   

 

Can I change the BF533's CCLK  dynamic  ?

 

For example,in idle mode ,the CCLK is 300MHZ,when CPU usage up to %70,set CCLK to 400M.

 

Can this possible?

QuoteReplyEditDelete

 

 

2010-06-28 06:36:43     BF533 dynamic CCLK

Michael Hennerich (GERMANY)

Message: 90675    > Can I change the BF533's CCLK dynamic ?

>

> For example,in idle mode ,the CCLK is 300MHZ,when CPU usage up to

> %70,set CCLK to 400M.

 

Yes - take a look at the CPUfreq governor “ondemand”

 

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:cpufreq

QuoteReplyEditDelete

 

 

2010-06-28 21:49:40     Re: BF533 dynamic CCLK

nike tian (CHINA)

Message: 90707   

 

Thanks for your reply,I will take a look of  it.

QuoteReplyEditDelete

 

 

2010-06-29 21:59:26     Re: BF533 dynamic CCLK

nike tian (CHINA)

Message: 90739   

 

Thans for your reply,when I config CPU frequence scaling in menuconfig,and compile it,i get a err:

 

mkdir -p /home/eepbx/baps-old/uClinux-dist/root/usr/doc

cp -f doc/uImage.txt /home/eepbx/baps-old/uClinux-dist/root/usr/doc

make -C /home/eepbx/baps-old/uClinux-dist ROMFSDIR=/home/eepbx/baps-old/uClinux-dist/root

make[1]: Entering directory `/home/eepbx/baps-old/uClinux-dist'

make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x  || exit 1

make[2]: Entering directory `/home/eepbx/baps-old/uClinux-dist/linux-2.6.x'

scripts/kconfig/conf -s arch/blackfin/Kconfig

make[2]: Leaving directory `/home/eepbx/baps-old/uClinux-dist/linux-2.6.x'

make[2]: Entering directory `/home/eepbx/baps-old/uClinux-dist/linux-2.6.x'

  SYMLINK include/asm-blackfin/mach-bf533 -> include/asm-blackfin/mach

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  CHK     include/linux/compile.h

  CC      drivers/cpufreq/cpufreq.o

drivers/cpufreq/cpufreq.c: In function 'cpufreq_add_dev':

drivers/cpufreq/cpufreq.c:721: warning: ignoring return value of 'sysfs_create_file', declared with attribute warn_unused_result

drivers/cpufreq/cpufreq.c:725: warning: ignoring return value of 'sysfs_create_file', declared with attribute warn_unused_result

drivers/cpufreq/cpufreq.c:727: warning: ignoring return value of 'sysfs_create_file', declared with attribute warn_unused_result

drivers/cpufreq/cpufreq.c:744: warning: ignoring return value of 'sysfs_create_link', declared with attribute warn_unused_result

  CC      drivers/cpufreq/cpufreq_stats.o

  CC      drivers/cpufreq/cpufreq_performance.o

  CC      drivers/cpufreq/cpufreq_userspace.o

drivers/cpufreq/cpufreq_userspace.c: In function 'cpufreq_governor_userspace':

drivers/cpufreq/cpufreq_userspace.c:145: warning: ignoring return value of 'sysfs_create_file', declared with attribute warn_unused_result

  CC      drivers/cpufreq/cpufreq_conservative.o

drivers/cpufreq/cpufreq_conservative.c: In function 'cpufreq_governor_dbs':

drivers/cpufreq/cpufreq_conservative.c:484: warning: ignoring return value of 'sysfs_create_group', declared with attribute warn_unused_result

  CC      drivers/cpufreq/freq_table.o

  LD      drivers/cpufreq/built-in.o

  LD      drivers/built-in.o

  GEN     .version

  CHK     include/linux/compile.h

  UPD     include/linux/compile.h

  CC      init/version.o

  LD      init/built-in.o

  LD      .tmp_vmlinux1

/home/eepbx/baps-old/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-ld.real: error: no memory region specified for loadable section `.initcall0.init'

make[2]: *** [.tmp_vmlinux1] error 1

make[2]: Leaving directory `/home/eepbx/baps-old/uClinux-dist/linux-2.6.x'

make[1]: *** [linux] error 1

make[1]: Leaving directory `/home/eepbx/baps-old/uClinux-dist'

make: *** [uClinux] error 2

QuoteReplyEditDelete

 

 

2010-06-29 22:16:38     Re: BF533 dynamic CCLK

Mike Frysinger (UNITED STATES)

Message: 90740   

 

what version of software exactly are you using ?  you should be using the latest release (2009R1.1).

QuoteReplyEditDelete

 

 

2010-06-29 23:05:09     Re: BF533 dynamic CCLK

nike tian (CHINA)

Message: 90741   

 

what version of software exactly are you using ?  you should be using the latest release (2009R1.1).

 

---

 

Thanks for your reply.

 

My version is 2007R1.1-RC3.DO it must use the latest version 2009R1.1-RC4?

 

How can I pass the err message throuh the version 2007R1.1-RC3?

QuoteReplyEditDelete

 

 

2010-06-30 01:51:20     Re: BF533 dynamic CCLK

Mike Frysinger (UNITED STATES)

Message: 90743   

 

dynamic CCLK is not supported in 2007R1.1.  upgrade.

QuoteReplyEditDelete

 

 

2010-06-30 06:23:04     Re: BF533 dynamic CCLK

nike tian (CHINA)

Message: 90770   

 

dynamic CCLK is not supported in 2007R1.1.  upgrade.

 

---

 

Thanks,Mike.

 

I upgrade my code to 2008R1-RC8,when I compile it ,an error occous:

 

  LD      kernel/power/built-in.o

  LD      kernel/built-in.o

  CC      drivers/base/power/sysfs.o

  LD      drivers/base/power/built-in.o

  LD      drivers/base/built-in.o

  LD      drivers/built-in.o

  GEN     .version

  CHK     include/linux/compile.h

  UPD     include/linux/compile.h

  CC      init/version.o

  LD      init/built-in.o

  LD      .tmp_vmlinux1

arch/blackfin/mach-bf533/built-in.o: In function `bf533_getfreq':

arch/blackfin/mach-bf533/cpu.c:(.text+0x92): undefined reference to `dpmc_fops'

arch/blackfin/mach-bf533/cpu.c:(.text+0x98): undefined reference to `dpmc_fops'

arch/blackfin/mach-bf533/built-in.o: In function `bf533_target':

arch/blackfin/mach-bf533/cpu.c:(.text+0xf2): undefined reference to `dpmc_fops'

arch/blackfin/mach-bf533/cpu.c:(.text+0xf6): undefined reference to `dpmc_fops'

arch/blackfin/mach-bf533/cpu.c:(.text+0x168): undefined reference to `get_vco'

make[2]: *** [.tmp_vmlinux1] error 1

make[2]: Leaving directory `/home/eepbx/baps-old/uClinux-dist/linux-2.6.x'

make[1]: *** [linux] error 1

make[1]: Leaving directory `/home/eepbx/baps-old/uClinux-dist'

make: *** [uClinux] error 2

 

 

I only change the configure if CPU Frequence saling

 

                                     [*] CPU Frequency scaling                                                                

                                      [ ]   Enable CPUfreq debugging                                                                        

                                       <*>   CPU frequency translation statistics                                                         

                                       [ ]     CPU frequency translation statistics details                                                   

                                             Default CPUFreq governor (performance)  --->                                       

                                       ---   'performance' governor                                                                  

                                       <*>   'powersave' governor                                                                

                                       <*>   'userspace' governor for userspace frequency scaling                       

                                       <*>   'ondemand' cpufreq policy governor                                           

                                       <*>   'conservative' cpufreq governor

 

tian.config

QuoteReplyEditDelete

 

 

2010-06-30 12:57:23     Re: BF533 dynamic CCLK

Mike Frysinger (UNITED STATES)

Message: 90776   

 

i didnt say 2008R1.  i said 2009R1.1.

Attachments

Outcomes