Tool/software: Linux
Hi,
I would like to change a15 clock freqency.
Can I use SysCtlClockSet() function to change clock freqency and use SysCtlClockGet() to check?
If I can not use this function.Which function I can to use?
Thanks
yumei
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Linux
Hi,
I would like to change a15 clock freqency.
Can I use SysCtlClockSet() function to change clock freqency and use SysCtlClockGet() to check?
If I can not use this function.Which function I can to use?
Thanks
yumei
Hi Yumei,
do you run Linux on A15? You an check this guide how to configure A15 frequency:

Also in Linux kernel Dynamic Voltage and Frequency scaling is enabled:

Regards,
Yordan
Hi Yordan
I run Linux on A15.
I try to use CPUFreq to change frequency.
I want to run below code in my sdk folder(PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/build/),but it is failed.
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dra7xx-evm_defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage -j8
it show error message like:
make: *** No rule to make target `distclean'. Stop.
make: *** No rule to make target `tisdk_dra7xx-evm_defconfig'. Stop.
make: *** No rule to make target `zImage'. Stop.
I see this code from this question last reply: https://e2e.ti.com/support/processors/f/791/t/648120?Linux-AM5728-CPU-frequency-scaling-support
Did i run error path or error code?
thanks
Yumei
Hi Yumei,
You need to build the kernel from the kernel folder and not from Vision-SDK.
In the kernel folder (present in ti_components/os_tools), run the following commands to make kernel:
make ARCH=arm omap2plus_defconfig
./ti_config_fragments/defconfig_builder.sh -t ti_sdk_dra7x_release
make zImage
make modules
make MOD_INSTALL_PATH=<path_to_your_file_system> modules_install
Then copy the zImage and the modules in the file-system to your target.
To change the frequency you need to have CONFIG_CPU_FREQ_GOV_USERSPACE=y in the kernel config.
Regards
Shravan
hi
When I run make zImage to sjow some error message below.
warning: (INTEL_SOC_DTS_IOSF_CORE && MMC_SDHCI_ACPI && PUNIT_ATOM_DEBUG) selects IOSF_MBI which has unmet direct dependencies (PCI)
#
# configuration written to .config
#
warning: (INTEL_SOC_DTS_IOSF_CORE && MMC_SDHCI_ACPI && PUNIT_ATOM_DEBUG) selects IOSF_MBI which has unmet direct dependencies (PCI)
make: *** No rule to make target `zImage'. Stop.
Do I need to set up other things before make zImage?
thanks
Yumei
Hi Yumei,
can you try the following:
make ARCH=arm omap2plus_defconfig
./ti_config_fragments/defconfig_builder.sh -t ti_sdk_dra7x_release
make ti_sdk_dra7x_release_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
and see if you get errors?
regards,
Yordan
Hi Yumei,
I haven't heard back from you, I'm assuming you were able to resolve your issue.
If not, just post a reply below (or create a new thread if the thread has locked due to time-out).
Regards,
Yordan
Hi Yordan
I still show some error message when make zImage.
But I continue run other step.
I confuse about whith modules I need to copy to sd card.
Because I find folder name modules in my sd card not a file.
Thanks
Yumei
Hi Yotdan
below message is the error,when I run make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage.
drivers/built-in.o: In function `hip04_mask_irq':
/home/autorad/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/kernel/omap/drivers/irqchip/irq-hip04.c:98:(.text+0x1960): additional relocation overflows omitted from the output
make: *** [vmlinux] Error 1
thanks
Yumei
Hi Yumei,
what are the changes you have compared to the original tag REL_VISION_SDK_03_02_00_00?
Regards,
Yordan
Hi Yumei,
what are your changes in the kernel source code, compared to the default from the SDK?
Are you able to compile it without any modifications?
Regards,
Yordan
Hi Yordan
I cannot to compile it without any modifications.
Because original code which I want to set frequency,it had been modified many times by the others.
Thanks
Yumei
Hi Yordan
I cannot compared to the original code,because my original code which had been modified many times by the others.
Yumei
Hi Yumei,
are you able to build the kernel with "make linux" from vision_sdk/build directory?
Regards,
Yordan