N2 안드로이드 cpu clock 설정문의

Post Reply
hoonkyu
Posts: 5
Joined: Tue Jan 07, 2020 11:44 am
languages_spoken: 한글
ODROIDs: odroid-n2, odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

N2 안드로이드 cpu clock 설정문의

Post by hoonkyu »

안녕하세요. n2 사용중입니다.

인터넷으로 검색한 명령들이 동작하지 않아 문의드립니다.

Cpu clock 설정 문의사항
- 현재 cpu clock speed와 scaling 설정을 보는 방법
- cpu clock speed를 max로 설정하기
- 이미지에 cpu clock 설정을 적용하는 방법

cpu-z 프로그램으로 확인 시에도 cpu clock이 정상적으로 표출되지 않습니다.
odroid-n2-cpu-z.png
odroid-n2-cpu-z.png (152.6 KiB) Viewed 132 times
감사합니다.

User avatar
odroid
Site Admin
Posts: 35591
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1199 times
Been thanked: 877 times
Contact:

Re: N2 안드로이드 cpu clock 설정문의

Post by odroid »

1. /sys/devices/system/cpu/cpu0/cpufreq/의 노드들을 읽어보면 Littel-Core 상태를 알 수 있고, /sys/devices/system/cpu/cpu2/cpufreq/ 에는 Big-Core 상태가 있습니다.
2/3. scaling-governor를 "performance"로 설정하면 됩니다. 저희가 제공하는 OS 이미지는 모두 "performance" governor가 기본값입니다. ODROID-Utility App으로도 설정이 가능합니다.

CPU-Z의 소스코드를 본적이 없어 어떤 문제가 있는지 파악하기는 쉽지 않습니다.

hoonkyu
Posts: 5
Joined: Tue Jan 07, 2020 11:44 am
languages_spoken: 한글
ODROIDs: odroid-n2, odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 안드로이드 cpu clock 설정문의

Post by hoonkyu »

1. 해당 경로에 cpufreq 폴더가 존재하지 않습니다. 빌드가 잘못된 건가요?
/sys/devices/system/cpu/cpu0/cpufreq/
/sys/devices/system/cpu/cpu2/cpufreq/

2. Odroid Settings에서 CPU 항목을 들어가면 앱이 응답이 없거나 죽습니다.
32bit 버젼으로 빌드했는데, 64비트로 다시 확인 예정입니다.

Code: Select all

2020-10-13 15:34:37.805 24474-24474/com.hardkernel.odroid.settings W/System.err: java.io.FileNotFoundException: /sys/devices/system/cpu/cpufreq/policy2/scaling_max_freq (No such file or directory)
2020-10-13 15:34:37.805 24474-24474/com.hardkernel.odroid.settings W/System.err:     at java.io.FileInputStream.open0(Native Method)
2020-10-13 15:34:37.805 24474-24474/com.hardkernel.odroid.settings W/System.err:     at java.io.FileInputStream.open(FileInputStream.java:231)
2020-10-13 15:34:37.805 24474-24474/com.hardkernel.odroid.settings W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:165)
2020-10-13 15:34:37.805 24474-24474/com.hardkernel.odroid.settings W/System.err:     at java.io.FileInputStream.<init>(FileInputStream.java:112)
2020-10-13 15:34:37.805 24474-24474/com.hardkernel.odroid.settings W/System.err:     at java.io.FileReader.<init>(FileReader.java:58)
2020-10-13 15:34:37.805 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.hardkernel.odroid.settings.cpu.Frequency.getFreqFrom(Frequency.java:136)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.hardkernel.odroid.settings.cpu.Frequency.<init>(Frequency.java:38)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.hardkernel.odroid.settings.cpu.CPU.<init>(CPU.java:15)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.hardkernel.odroid.settings.cpu.CPU.getCPU(CPU.java:26)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.hardkernel.odroid.settings.cpu.CpuFragment.refreshStatus(CpuFragment.java:63)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.hardkernel.odroid.settings.cpu.CpuFragment.onCreatePreferences(CpuFragment.java:51)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.support.v14.preference.PreferenceFragment.onCreate(PreferenceFragment.java:225)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.hardkernel.odroid.settings.cpu.CpuFragment.onCreate(CpuFragment.java:34)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.Fragment.performCreate(Fragment.java:2503)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1256)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2426)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2205)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2161)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2062)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.FragmentManagerImpl$1.run(FragmentManager.java:738)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.os.Handler.handleCallback(Handler.java:873)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:99)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.os.Looper.loop(Looper.java:193)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6718)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2020-10-13 15:34:37.806 24474-24474/com.hardkernel.odroid.settings W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
---
odroid-n2-cpu0.png
odroid-n2-cpu0.png (56.92 KiB) Viewed 118 times

User avatar
odroid
Site Admin
Posts: 35591
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1199 times
Been thanked: 877 times
Contact:

Re: N2 안드로이드 cpu clock 설정문의

Post by odroid »

저희가 제공하는 이미지에서 기본 기능을 모두 확인해 보고, 커스텀 빌드한 커널과의 차이점을 찾아보는것이 좀 더 효율적일듯 합니다.

User avatar
codewalker
Posts: 1077
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 41 times
Been thanked: 72 times
Contact:

Re: N2 안드로이드 cpu clock 설정문의

Post by codewalker »

마지막 버전에서 아래와 같이 정상적으로 표시 됩니다.
20201013_154637.jpg
20201013_154637.jpg (360.86 KiB) Viewed 112 times

hoonkyu
Posts: 5
Joined: Tue Jan 07, 2020 11:44 am
languages_spoken: 한글
ODROIDs: odroid-n2, odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 안드로이드 cpu clock 설정문의

Post by hoonkyu »

릴리즈 이미지에서는 정상동작 합니다. (Android Pie 64bit (20190927))

32bit/64bit 빌드 이미지에서 동일하게 문제 발생하고 있습니다.
빌드 시 아무런 소스 수정없이 다음과 같이 진행했습니다.

Code: Select all

repo init -u https://github.com/hardkernel/android.git -b g12_9.0.0_64_master
repo sync

export PATH=$PATH:/opt/toolchains/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux/bin
export PATH=$PATH:/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin
export PATH=$PATH:/opt/toolchains/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin
source build/envsetup.sh && lunch odroidn2-eng

make -j$(nproc)
make -j$(nproc) selfinstall

# flashing
cd $OUT
fastboot flash boot boot.img
fastboot flash dtbs obj/KERNEL_OBJ/arch/arm64/boot/dts/amlogic/meson64_odroidn2_android.dtb
fastboot flash recovery recovery.img
fastboot flash vendor vendor.img
fastboot flash system system.img
fastboot erase data
fastboot reboot
혹시 어느부분을 확인해야 하는지요?

감사합니다.

Luke.go
Posts: 551
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 65 times
Been thanked: 66 times
Contact:

Re: N2 안드로이드 cpu clock 설정문의

Post by Luke.go »

중간에 dtbs 부분을 다음과 같이 진행해주세요

Code: Select all

fastboot flash dtbs dtbs.img

User avatar
codewalker
Posts: 1077
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 41 times
Been thanked: 72 times
Contact:

Re: N2 안드로이드 cpu clock 설정문의

Post by codewalker »

https://wiki.odroid.com/odroid-n2/softw ... d#android1
hoonkyu wrote:
Tue Oct 13, 2020 5:34 pm
릴리즈 이미지에서는 정상동작 합니다. (Android Pie 64bit (20190927))

32bit/64bit 빌드 이미지에서 동일하게 문제 발생하고 있습니다.
빌드 시 아무런 소스 수정없이 다음과 같이 진행했습니다.

Code: Select all

repo init -u https://github.com/hardkernel/android.git -b g12_9.0.0_64_master
repo sync

export PATH=$PATH:/opt/toolchains/gcc-linaro-aarch64-none-elf-4.9-2014.09_linux/bin
export PATH=$PATH:/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin
export PATH=$PATH:/opt/toolchains/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin
source build/envsetup.sh && lunch odroidn2-eng

make -j$(nproc)
make -j$(nproc) selfinstall

# flashing
cd $OUT
fastboot flash boot boot.img
fastboot flash dtbs obj/KERNEL_OBJ/arch/arm64/boot/dts/amlogic/meson64_odroidn2_android.dtb
fastboot flash recovery recovery.img
fastboot flash vendor vendor.img
fastboot flash system system.img
fastboot erase data
fastboot reboot
혹시 어느부분을 확인해야 하는지요?

감사합니다.

Post Reply

Return to “N2/N2+”

Who is online

Users browsing this forum: No registered users and 1 guest