yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] ok i tell u everthing here.

to upload a source to github

do this commit in linux mint.

1.git add .

2.git add -u

3.git commit -s -m "initial commit"

4.git push

upload the source on github then i get some dev support.
[Samsung Galaxy A20 Questions & Answers] physwizz:
Thanks
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] when u done with uploading

here a overclock step.

This file located in drivers/cpufreq/exynos-acme.c

allow to overclock the cpu commit.

@@ -1084,6 +1084,40 @@ static int init_dm(struct exynos_cpufreq_domain *domain,

return register_exynos_dm_freq_scaler(domain->dm_type, dm_scaler);

}

static unsigned long arg_cpu_max_c1 = 1677000;

static int __init cpufreq_read_cpu_max_c1(char *cpu_max_c1)

{

unsigned long ui_khz;

int ret;

ret = kstrtoul(cpu_max_c1, 0, &ui_khz);

if (ret)

return -EINVAL;

arg_cpu_max_c1 = ui_khz;

printk("cpu_max_c1=%lu\n", arg_cpu_max_c1);

return ret;

}

__setup("cpu_max_c1=", cpufreq_read_cpu_max_c1);

unsigned long arg_cpu_max_c2 = 1768000;

static __init int cpufreq_read_cpu_max_c2(char *cpu_max_c2)

{

unsigned long ui_khz;

int ret;

ret = kstrtoul(cpu_max_c2, 0, &ui_khz);

if (ret)

return -EINVAL;

arg_cpu_max_c2 = ui_khz;

printk("cpu_max_c2=%lu\n", arg_cpu_max_c2);

return ret;

}

__setup("cpu_max_c2=", cpufreq_read_cpu_max_c2);

static __init int init_domain(struct exynos_cpufreq_domain *domain,

struct device_node *dn)

{

@@ -1109,6 +1143,12 @@ static __init int init_domain(struct exynos_cpufreq_domain *domain,

if (!of_property_read_u32(dn, "min-freq", &val))

domain->min_freq = max(domain->min_freq, val);

if (domain->id == 0) {

domain->max_freq = arg_cpu_max_c1;

} else if (domain->id == 1) {

domain->max_freq = arg_cpu_max_c2;

}

domain->boot_freq = cal_dfs_get_boot_freq(domain->cal_id);

domain->resume_freq = cal_dfs_get_resume_freq(domain->cal_id);

Then the Frequency we got is 6cores at 1.7ghz and 2cores at 1.8ghz no need to increase the voltage if we go for 2.2ghz then we need to increase it.
[Samsung Galaxy A20 Questions & Answers] physwizz:
What source do I push?
[Samsung Galaxy A20 Questions & Answers] physwizz:
fatal: not a git repository (or any of the parent directories) : .git
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] download a20 from this link.

https://opensource.samsung.com/uploadSearch?searchValue=a205

this source u need to push.
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION]

Just drag & drop the source folder in your github , in the website if you dont know github commands..
[Samsung Galaxy A20 Questions & Answers] physwizz:
So before I type "git add ." I need to download one of the two sources,

then unzip into a folder.

Then navigate to that folder in terminal.

Then type "git add ."

Then type the rest of the commands.

Yes?
[Samsung Galaxy A20 Questions & Answers] Agrim720:
Yes.
[Samsung Galaxy A20 Questions & Answers] physwizz:
Same fatal message.

There must be another missing step

I think it needs to be in a hidden .git folder so I need to make it.
[Samsung Galaxy A20 Questions & Answers] physwizz:
I created a github called physwizz/A20

https://github.com/physwizz/A20

Everything is there except the Kernel.

I have to use the large file git to upload it.

Coming soon
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION]

as i can think u got the following error.

the file size is exceeding the max 100 MB GitHub is allowing.

Fixed by running this command:

Code:

make clean

It will clear the compiled files from the source and you can start uploading.

as i can see u uploaded the platform.tar.gz Thats not ryt.

First extract the kernel.tar.gz then upload the folder not tar.gz
[Samsung Galaxy A20 Questions & Answers] physwizz:
I'll try again soon

When I get home
[Samsung Galaxy A20 Questions & Answers] physwizz:
I put it here

https://github.com/physwizz/A20-kernel
[Samsung Galaxy A20 Questions & Answers] Agrim720:
make me contributer so i can commit changes.
[Samsung Galaxy A20 Questions & Answers] hassan9270:
How to install it .. a205f or another phone
[Samsung Galaxy A20 Questions & Answers] physwizz:
awaiting response

https://github.com/physwizz/A20-kernel/invitations
[Samsung Galaxy A20 Questions & Answers] physwizz:
Not ready yet
[Samsung Galaxy A20 Questions & Answers] Agrim720:
so as i can see need tons of commit and u guys need to wait for sometime it takes takes. Bcz samsung is ****ed and on our device dtbo is a diffrent partition so we need to add the overclock+too much commits to bypass the dt.img load in BL.
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION]

I did the commits the big core to 2.2ghz and little core on 1.7ghz.

just comiple the kernel and share it hope it works (didt added the bypass commit for now if it boots then we dont need).
[Samsung Galaxy A20 Questions & Answers] physwizz:
So I need to

1. compile (somehow?)

2. use AIK to unpack my patched boot.img

3. replace the kernel

4. flash the new boot.img using TWRP
[Samsung Galaxy A20 Questions & Answers] Agrim720:
No.

Download toolchain from here- https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/

1. How to Build

- get Toolchain

From android git server, codesourcery and etc ..

- gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-

- edit Makefile

edit "CROSS_COMPILE" to right toolchain path(You downloaded).

EX) CROSS_COMPILE=<android platform directory you download>/android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-

EX) CROSS_COMPILE=/usr/local/toolchain/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- // check the location of toolchain

- to Build

$ export ANDROID_MAJOR_VERSION=p

$ export ARCH=arm64

$ make exynos7885-a20_defconfig

$ make

2. Output files

- Kernel : arch/arm64/boot/Image

- module : drivers/*/*.ko

3. How to Clean

$ make clean

Or for more better understanding google it(how to ckmpile andriod arm64 kernel).

---------- Post added at 08:48 PM ---------- Previous post was at 08:40 PM ----------

@physwizz

tones of work done.

i have added.

SafetyNet patched

- WireGuard Support

- NTFS Support

- UV BIG/LITTLE to 300/200MHz

- OC LITTLE to 1.7Ghz

Oc big to 2.2ghz

- Powersuspend Driver for display

- Multi CPU Governors

- Multi I/O Schedulers

- Multi TCP Algorithms

- Enabled NFS support

- Enabled CIPS support

- Enabled CD/DVD File System

- Added UKSM support

- Drivedroid support (0.10.48+)

- ADB Insecure

- TTL Target enabled

- Limited Wakelocks

- Dynamic Fsync 2.0

- GMS Blocker

- SysfsHelper

- Optimized Deadline I/O

hope it will boot.
[Samsung Galaxy A20 Questions & Answers] physwizz:
I might have a chance today if I'm not called in to work
[Samsung Galaxy A20 Questions & Answers] Agrim720:
All work is done just need to compile :p
[Samsung Galaxy A20 Questions & Answers] physwizz:
Thanks.

Let's hope it works.
[Samsung Galaxy A20 Questions & Answers] Agrim720:
Follow these steps carefully to not get in bootloop.

https://xdaforums.com/android/software/guide-noob-guide-building-custom-kernel-t3775494
[Samsung Galaxy A20 Questions & Answers] physwizz:
Which toolchain do I pick?
[Samsung Galaxy A20 Questions & Answers] Agrim720:
arm64

when u done with compiling. the .img was cooked so what u need to do next is unpack ur boot.img with AIK and Locate the zImage file and replace it with your compiled kernel image (rename it to what came out of the boot image)
[Samsung Galaxy A20 Questions & Answers] physwizz:
I chose this one

gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz

Ok?
[Samsung Galaxy A20 Questions & Answers] jajk:
[MENTION=9333202]Agrim720[/MENTION] It is counterproductive to underclock big cores since these are only used when demand is very high. It is better on battery if they spend the least time active i.e. get the job done as fast as possible. To underclock them is like trying to make the big cores behave more like little cores but still consuming big core power.
[Samsung Galaxy A20 Questions & Answers] physwizz:
There are no files in this folder that end in a "-" they all have something at the end like

Downloads/gcc-linaro-aarch64-linux-gnu-4.8-2013.07-1_linux/bin/aarch64-linux-gnu-ar

So I just used

Downloads/gcc-linaro-aarch64-linux-gnu-4.8-2013.07-1_linux/bin/aarch64-linux-gnu-

And I'm getting this error

$ make exynos7885-a20_defconfig

scripts/Makefile.lib:317: *** missing separator. Stop.

make: *** [scripts_basic] Error 2
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[/COLOR]

its on 2.2ghz though. The lower frequency was underclock.
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] i fix this error in source try to compile it again.

(Now the source will compile with no error).
[Samsung Galaxy A20 Questions & Answers] physwizz:
At work today.

I'll try as soon as I can
[Samsung Galaxy A20 Questions & Answers] Agrim720:
Changelog :p

Built from A205FDDU1BSF1 source code

- Supports Android Pie

- SELinux Permissive

- Init.d support

- Faked Knox 0x0 flag

- SafetyNet patched

- WireGuard Support

- NTFS Support

- OC BIG to 2.2ghz

- OC LITTLE to 1.7Ghz

- Powersuspend Driver for display

- Multi CPU Governers

- Multi I/O Schedulers

- Enabled NFS support

- Enabled CIPS support

- Enabled CD/DVD File System

- ADB Insecure

- TTL Target enabled

- SysfsHelper

- Optimized Deadline I/O

- CRC Disabled by default

- 99Killer service (kills gms in idle for better sleep)

- Security Related Features disabled

- Other improvments for Batterylife and performance

- Boeffla wakelock blocker v1.1.0 With preconfigured

https://github.com/physwizz/A20-kernel/tree/master/Kernel

Just compile it fast
[Samsung Galaxy A20 Questions & Answers] TBM 13:
In the kernel source of the A205G, Samsung recommends to use the aarch64-linux-android-4.9 toolchain. But i'm not a toolchain expert, so i will suppose that one is fine.
[Samsung Galaxy A20 Questions & Answers] Agrim720:
is the clock speed increased?
[Samsung Galaxy A20 Questions & Answers] jajk:
[MENTION=9333202]Agrim720[/MENTION] No, clockspeed stayed the same and it still identified itself as a A205YN so there is more to it.
[Samsung Galaxy A20 Questions & Answers] physwizz:
Yes this is my first attempt at kernel building and I've downloaded both
[Samsung Galaxy A20 Questions & Answers] TBM 13:
Seems to be a problem on your side. It wasn't able to execute the toolchain binary file.

Make sure the toolchain path you set is correct.
[Samsung Galaxy A20 Questions & Answers] physwizz:
Can you get it to work?
[Samsung Galaxy A20 Questions & Answers] TBM 13:
I still get errors because the kernel source has some problems, but i don't get any toolchain-related error.

---------- Post added at 13:24 ---------- Previous post was at 12:59 ----------

Ok, your kernel is really messed-up. It's even missing simple things like brackets.
[Samsung Galaxy A20 Questions & Answers] physwizz:
can you give me your toolchain link? [MENTION=9333202]Agrim720[/MENTION] modifies the source code every day
[Samsung Galaxy A20 Questions & Answers] jajk:
[MENTION=5440376]physwizz[/MENTION] Maybe the best person to ask is responsible for this working custom kernel. The toolchain used for that seems like the most modern and efficient one.

https://xdaforums.com/galaxy-a50/development/kernel-skykernel-v1-0-11-10-2019-t3981693
[Samsung Galaxy A20 Questions & Answers] TBM 13:
I actually used the same toolchain than you because agrim told me to.

I gave up trying to build that kernel. It's really broken
[Samsung Galaxy A20 Questions & Answers] physwizz:
My lates output after make,.

Makefile:708: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler

make: ccache: Command not found

scripts/kconfig/conf --silentoldconfig Kconfig

include/config/auto.conf:552:warning: override: CC_STACKPROTECTOR_NONE changes choice state

Makefile:708: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler

make: ccache: Command not found

CHK include/config/kernel.release

UPD include/config/kernel.release

CHK include/generated/uapi/linux/version.h

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

CC kernel/bounds.s

/bin/sh: ccache: command not found

make[1]: *** [kernel/bounds.s] Error 127

make: *** [prepare0] Error 2
[Samsung Galaxy A20 Questions & Answers] physwizz:
thanks
[Samsung Galaxy A20 Questions & Answers] TBM 13:
make: ccache: Command not found

Did you try to install ccache?
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] use diffrent compiler And as [MENTION=9120939]TBM 13[/MENTION] reported the oc commit is also giving some error at compiler and he is irritated at compiling our source and gived up and dont ask for help to him tho cause he dont have time to do it maybe he is busy in another stuff. he didt has idea to work on universal7885 char stuff tho.. So need to get another dev support who has done the worked universal7885.

---------- Post added at 10:27 AM ---------- Previous post was at 10:15 AM ----------

he cant help us bcz he's done the exynos9610 stuff and exynos7885 is completly diffrent or as i can see a50 source didt have the oc commit tho (the most needed for us) and the another commits he do is also fetched and my source has hell alot of commit and features than a50 source.

---------- Post added at 10:35 AM ---------- Previous post was at 10:27 AM ----------

as i asked [MENTION=7487830]prashantp01[/MENTION] for help and he is also busy at other stuff i will try ask [MENTION=4637718]ananjaser1211[/MENTION] (he is a great dev tho) as i can see he done some work on universal7885 also. he helped me out in past for J7 pro stuff too.
[Samsung Galaxy A20 Questions & Answers] jajk:
[MENTION=9333202]Agrim720[/MENTION] [MENTION=5440376]physwizz[/MENTION] I wasn't suggesting that the author of the A50 custom kernel could assist in making the custom kernel for A20 but he could be asked for help in setting up a workable toolchain. I also suggest that you try and recompile the stock A20 kernel with no commits first before overloading it with commits that muddy the waters as to what is going wrong. Then add just the overclock and get that compiling. If that is the only mod, then it is still a very worthwhile outcome.
[Samsung Galaxy A20 Questions & Answers] Agrim720:
I can understand you as u say about toolchain [MENTION=9120939]TBM 13[/MENTION] has fully working toolchain and the error in compiling is cause by oc commit as last report.

as i can assume all we need is oc and if anyone has doubt about other source commit causing errors i have a source who had only oc commit.

Anyone can try to compile this. (had only oc commit)

https://github.com/agrim720/A20-kernel/tree/master/Kernel

Afterall just one thing to tell you.. My fukkin pc was dead some weeks ago thats my bad luck tho. thats why i am asking for help to ppl on xda or telegram...if i got my new pc (thats not going to happen)(didt have money now) i didt need ****kin help of ppl(probably help of those ppl who is already ****ed and irritated).
[Samsung Galaxy A20 Questions & Answers] physwizz:
I know that working with noobs like me can be frustrating sometimes but please be patient.

We are making good progress.

This is taking longer than it should because my timezone is GMT+11
[Samsung Galaxy A20 Questions & Answers] ananjaser1211:
How can i help ? link me to your source and ill see what i can do. and what is the device codename (A205 or A202)
[Samsung Galaxy A20 Questions & Answers] physwizz:
I found this in the makefile

ARCH ?= arm64

CROSS_COMPILE ?= /home/alex/kernels/aarch64-linux-android-4.9/bin/aarch64-linux-android-
[Samsung Galaxy A20 Questions & Answers] Agrim720:
First of all thanks anan bro.

need help in oc only bcz has 7885 and its on 1.3ghz lol.

Device codename is A205

this source has hell of commits

https://github.com/physwizz/A20-kernel/tree/master/Kernel

(this is not even compiling bcz of getting some error about oc commit).

This source is untouced (awaiting response)

https://github.com/agrim720/A20-kernel/tree/master/Kernel

---------- Post added at 01:50 PM ---------- Previous post was at 01:48 PM ----------

i didt say anything to you or jajk Its not about noob..

The great thing is u are both is nice persons and thats the most needed tho.

---------- Post added at 02:23 PM ---------- Previous post was at 01:50 PM ----------

This is samsung preferred toolchain.
[Samsung Galaxy A20 Questions & Answers] ananjaser1211:
Alright ill try and make it build, it seems mostly toolchain pathing issues but the kernel structure is weird, usually kernels with such structure need CLANG + GCC to compile. that does not seem to be the case here however.

are you sure cross_compile path is correct ?

the A205 is using a cutdown version of the 7885 Chip, called 7884B. usually its intended for arm32_binder64 setup (64bit kernel / 32bit rom) . i wont expect much from it in terms of overclocking really

The maximum allowed freqs in dts are 1352000 and 1560000 , im not familiar with acme overclocking but it may be possible to go higher not sure. regardless

if i have time this week ill try and make it compile the zImage and dtbs, the rest should be easy, but again, triple check your compiler path as that seems to be the issue. in makefile cross_compile

use this toolchian : https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/

git clone it to your /home/[YOURUSERNAME]/aarch64-linux-android-4.9

the export would be

export CROSS_COMPILE=/home/[YOURUSERNAME/aarch64-linux-android-4.9/bin/aarch64-linux-android-

then run

make clean && make mrproper

export ANDROID_MAJOR_VERSION=p

export ARCH=arm64

make exynos7885-a20_defconfig

make
[Samsung Galaxy A20 Questions & Answers] Agrim720:
will Check this and try... And when u have time give it a try.
[Samsung Galaxy A20 Questions & Answers] physwizz:
thanks,

i'll add you as a contributor.

Samsung has underclocked our cpu so we're trying to fix that.

https://github.com/physwizz/A20-kernel/invitations
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] try compile as anan gives instructions above.
[Samsung Galaxy A20 Questions & Answers] physwizz:
Which one do I choose?

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION]

Dont download any toolchain just follow the steps.

U need to git clone the toolchain.. here are the steps

1.From a terminal window, change to the local directory where you want to clone your repository. (go to kernel folder in git)

2.Paste this command

git clone https://github.com/GrowtopiaJaw/aarch64-linux-android-4.9.git -b google --single-branch aarch64-linux-android-4.9

If the clone was successful, a new sub-directory appears on your local drive in the directory where you cloned your repository. This directory has the same name as the Bitbucket repository that you cloned. The clone contains the files and metadata that Git requires to maintain the changes you make to the source files.

then run

make clean && make mrproper

export ANDROID_MAJOR_VERSION=p

export ARCH=arm64

make exynos7885-a20_defconfig

make
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=4637718]ananjaser1211[/MENTION] as u say..

the A205 is using a cutdown version of the 7885 Chip, called 7884B. usually its intended for arm32_binder64 setup (64bit kernel / 32bit rom) . i wont expect much from it in terms of overclocking really

The maximum allowed freqs in dts are 1352000 and 1560000 , im not familiar with acme overclocking but it may be possible to go higher not sure. regardless

if we don't do oc in acme... So need to change frequency values in dtb?
[Samsung Galaxy A20 Questions & Answers] physwizz:
After step 2 it asks for the username and password for the git

then i get this

remote: Repository not found.

fatal: repository 'https://github.com/GrowtopiaJaw/aarc...ndroid-4.9.git/' not found

Then I tried this one and it worked

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION]

Paste this.

( git clone https://github.com/GrowtopiaJaw/aarch64-linux-android-4.9.git -b google --single-branch aarch64-linux-android-4.9 ) without bracket.
[Samsung Galaxy A20 Questions & Answers] physwizz:
Thanks.

Do I still edit the ARCH and the CROSS_COMPILE in the makefile?
[Samsung Galaxy A20 Questions & Answers] Agrim720:
No i already did.
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] as i see the command is not fully copied.

First go to this link

https://github.com/GrowtopiaJaw/aarch64-linux-android-4.9#clone-this-repository

And in this link copy google toolchain clone command.. ( see screenshot above).
[Samsung Galaxy A20 Questions & Answers] physwizz:
it can't find clang
[Samsung Galaxy A20 Questions & Answers] Agrim720:
[MENTION=5440376]physwizz[/MENTION] as u say.

Then I tried this one and it worked

git clone https://android.googlesource.com/pla...ux-android-4.9

if it works u didt need to do this

Quote:

Originally Posted by Agrim720 [MENTION=5440376]physwizz[/MENTION] as i see the command is not fully copied.

First go to this link

https://github.com/GrowtopiaJaw/aarc...his-repository

And in this link copy google toolchain clone command.. ( see screenshot above).
[Samsung Galaxy A20 Questions & Answers] physwizz:
OK I did that and it can't find clang

/GitHub/A20-kernel/Kernel/linux-x86-android-9.0.0_r6-clang-4691093/bin/clang: No such file or directory
[Samsung Galaxy A20 Questions & Answers] Agrim720:
ok.

Use this clang-

https://android.googlesource.com/pl...st/linux-x86/+/android-9.0.0_r6/clang-4691093

gitclone it to /home/physwizz/A20-kernel/kernel/linux-x86-android-9.0.0_r6-clang-4691093

To git clone this.

first type git clone and then copy the link that i provided above for clang and paste the link.

it will be look like this..

git clone https://android.googlesource.com/pl...st/linux-x86/+/android-9.0.0_r6/clang-4691093
[Samsung Galaxy A20 Questions & Answers] Agrim720:
As [MENTION=4637718]ananjaser1211[/MENTION] say a20 has 7884b...Now i checked (forget to check dvc source tho.. But now the things is clear).

Its Really has 7884 (its using universal7885 motherboard as i checked)and max freq in source tree is 1.3 and 1.6ghz. the ram support was also DDR4 Rather than ddr4x and i also didt expect much from this cheap soc now..
[Samsung Galaxy A20 Questions & Answers] ananjaser1211:
again , no experience with acme, but i would say yes, when i mentioned 1352 and 1560 frequency, im talking about the a20_common dts file, which si what will be used, the exyns7885dtsi is a common one between all

increasing a20 dtsi frequency (to match values written in the other dtsi) is probably needed, then the acme overclocking part with the new freq

i would not suggest going more than 100/200 above stock clock, this is intended for low end low power devices, hence why its such a cut down from the full 7885 Core, while it might be possible to get the full clocks with some overvolting, i dont think its worth the harm it will cause on the device/chip