I did the “git clone -devicetree link-” already in the folder for the specific files; but wdym?

|
JaswantTeja 2022-07-21 11:42:58
soenggamlu 2022-07-21 11:42:45
May be just several KBs

Ohh

soenggamlu 2022-07-21 11:43:35
JaswantTeja 2022-07-21 11:42:58
Ohh

And you can use higher compression algorithm if your bootloader supports

JaswantTeja 2022-07-21 11:43:49
soenggamlu 2022-07-21 11:43:35
And you can use higher compression algorithm if your bootloader supports

Oh

Akatsu39 2022-07-21 11:46:51
boot partitions are fuckin 64 or 128MB nowdays
usr_h 2022-07-21 11:47:55
hey guys
soenggamlu 2022-07-21 11:48:34
Yea,so kernel size is not a big problem
usr_h 2022-07-21 11:48:38
what do i need to be an actual kernel dev .. should i learn c programming only
TheVancedGamer 2022-07-21 11:51:50
Akatsu39 2022-07-21 11:46:51
boot partitions are fuckin 64 or 128MB nowdays

Remember when they used to be 8MB?

usr_h 2022-07-21 11:51:58
i think there’s more stuff but i don’t know
Akatsu39 2022-07-21 11:52:00
s2 times
TheVancedGamer 2022-07-21 11:52:07
yeah
TheVancedGamer 2022-07-21 11:52:11
IsoRec was a huge thing
s3gfau1t1337 2022-07-21 19:04:08
Hello everyone

I have a rooted (with Magisk) Samsung Galaxy S20 Ultra 5G (G988B) device with TWRP installed in recovery partition.

Stock kernel version: 4.19.187-20291612
Build number: G988BXXU5CTKG

My purpose is to have a custom kernel which is identical to stock kernel except for configs for ftrace and kgdb (can be changed in defconfig before compilation)

Steps I’ve performed to flash a custom kernel for the given device:
1) Downloaded Linux Kernel for the given device from https://opensource.samsung.com/ SM-G988B_RR_Opensource.zip according to the above mentioned build number
2) Used https://github.com/kdrag0n/proton-clang toolchain to build the kernel
3) Used Android Image Kitchen to generate a new boot.img in the following way:
* Extracted boot.img from the device via dd utility (100% correct, I’ve reflashed the extracted image for the sake of validation and had no problems)
* ./unpacking.sh original_boot.img
* Replaced original_boot.img-kernel file in /split_img directory with custom_kernel_root_dir/arch/arm64/boot/Image
* ./repacking.sh
* Got image-new.img which must contain a bootable custom kernel
4) Rebooted into TWRP and flashed the image-new.img in Boot and then rebooted into System

After that, the device is stuck (NOT bootloop!) in warning screen (device logo name and warning about an unlocked bootloader warranty void) forever. Luckily, I am able to reboot to TWRP and reflash the previous boot.img in order unbrick the device and be able to boot into the rooted device again.

During unpacking and repacking it seems that the original and the custom boot.img files have the same values for kernel base, offset and other values.

So what’s the problem? Can toolchain be problematic/unsuitable even though I was able to compile the kernel with it?

Akatsu39 2022-07-21 21:07:49
s3gfau1t1337 2022-07-21 19:04:08
Hello everyone

I have a rooted (with Magisk) Samsung Galaxy S20 Ultra 5G (G988B) device with TWRP installed in recovery partition.

Stock kernel version: 4.19.187-20291612
Build number: G988BXXU5CTKG

My purpose is to have a custom kernel which is identical to stock kernel except for configs for ftrace and kgdb (can be changed in defconfig before compilation)

Steps I’ve performed to flash a custom kernel for the given device:
1) Downloaded Linux Kernel for the given device from https://opensource.samsung.com/ SM-G988B_RR_Opensource.zip according to the above mentioned build number
2) Used https://github.com/kdrag0n/proton-clang toolchain to build the kernel
3) Used Android Image Kitchen to generate a new boot.img in the following way:
* Extracted boot.img from the device via dd utility (100% correct, I’ve reflashed the extracted image for the sake of validation and had no problems)
* ./unpacking.sh original_boot.img
* Replaced original_boot.img-kernel file in /split_img directory with custom_kernel_root_dir/arch/arm64/boot/Image
* ./repacking.sh
* Got image-new.img which must contain a bootable custom kernel
4) Rebooted into TWRP and flashed the image-new.img in Boot and then rebooted into System

After that, the device is stuck (NOT bootloop!) in warning screen (device logo name and warning about an unlocked bootloader warranty void) forever. Luckily, I am able to reboot to TWRP and reflash the previous boot.img in order unbrick the device and be able to boot into the rooted device again.

During unpacking and repacking it seems that the original and the custom boot.img files have the same values for kernel base, offset and other values.

So what’s the problem? Can toolchain be problematic/unsuitable even though I was able to compile the kernel with it?

No idea how is android kitchen but you can try use mkbootimg/unpackbootimg and create image with it

Mayank12341 2022-07-21 22:38:04
hello, how to fix this

aarch64-elf-ld: unrecognised emulation mode: aarch64linux
Supported emulations: aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb
make[2]: *** [../arch/arm64/kernel/vdso/Makefile:49: arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
make[1]: *** [arch/arm64/Makefile:272: vdso_prepare] Error 2

sakul996 2022-07-21 23:01:52
Mayank12341 2022-07-21 22:38:04
hello, how to fix this

aarch64-elf-ld: unrecognised emulation mode: aarch64linux
Supported emulations: aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb
make[2]: *** [../arch/arm64/kernel/vdso/Makefile:49: arch/arm64/kernel/vdso/vdso.so.dbg] Error 1
make[1]: *** [arch/arm64/Makefile:272: vdso_prepare] Error 2

Make clean && make mrpropper

Probavly your kernel source was dirty
I was happened with me too

RussVenom 2022-07-21 23:29:34
Hi, I’m trying to build a rom for my device (codenamed Vayu) but I can’t basically start the build cuz for device-specifid needed files. I’ve tried to clone the DT on device folder, Kernel in Kernel folder and Vendor in Vendor folder, but the build environment, like, doesn’t sees those files, cuz maybe that’s not the correct way for adding that files. Can anyone help me for fixing this?
Abdul7852 2022-07-21 23:34:25
RussVenom 2022-07-21 23:29:34
Hi, I’m trying to build a rom for my device (codenamed Vayu) but I can’t basically start the build cuz for device-specifid needed files. I’ve tried to clone the DT on device folder, Kernel in Kernel folder and Vendor in Vendor folder, but the build environment, like, doesn’t sees those files, cuz maybe that’s not the correct way for adding that files. Can anyone help me for fixing this?

Tell folder paths

RussVenom 2022-07-21 23:35:37
Abdul7852 2022-07-21 23:34:25
Tell folder paths

i did the “git clone -devicetree link-” already in the folder for the specific files; but wdym?

Mayur 2022-07-21 23:38:03
They are supposed to go in specific pathe like
Mayur 2022-07-21 23:38:20
device/xiaomi/vayu kernel/xiaomi/vayu vendor/xiaomi/vayu
Abdul7852 2022-07-21 23:38:42
Mayur 2022-07-21 23:38:20
device/xiaomi/vayu kernel/xiaomi/vayu vendor/xiaomi/vayu
RussVenom 2022-07-21 23:39:26
Mayur 2022-07-21 23:38:20
device/xiaomi/vayu kernel/xiaomi/vayu vendor/xiaomi/vayu

Oh okay, got it, lemme try

RussVenom 2022-07-21 23:50:50
@xenxynon Can I pm you?
Mayur 2022-07-21 23:51:38
I’m half awake it’s 2:30 am here ig will see tomorrow
Mayur 2022-07-21 23:52:19
You can come pm but I might mess things up😂
RussVenom 2022-07-21 23:53:08
Mayur 2022-07-21 23:52:19
You can come pm but I might mess things up😂

dw, i’m searching like on xda forum or github

Mayur 2022-07-21 23:55:16
RussVenom 2022-07-21 23:53:08
dw, i’m searching like on xda forum or github

I know one guy you can bother
Come pm

s3gfau1t1337 2022-07-22 04:01:23
Akatsu39 2022-07-21 21:07:49
No idea how is android kitchen but you can try use mkbootimg/unpackbootimg and create image with it

The same result – after flashing a new boot.img the device is stuck at boot

sakul996 2022-07-22 04:05:47
s3gfau1t1337 2022-07-22 04:01:23
The same result – after flashing a new boot.img the device is stuck at boot

Have you tried using anykernel3 to flash the kernel?

Anykernel3 can deal with hard part (boot offset, ramdisk?, etc), the same as mkbootimg, but in an automate way

s3gfau1t1337 2022-07-22 04:27:16
sakul996 2022-07-22 04:05:47
Have you tried using anykernel3 to flash the kernel?

Anykernel3 can deal with hard part (boot offset, ramdisk?, etc), the same as mkbootimg, but in an automate way

Yes. Unfortunately, the same result 😒

sakul996 2022-07-22 04:37:11
s3gfau1t1337 2022-07-22 04:27:16
Yes. Unfortunately, the same result 😒

F

sakul996 2022-07-22 04:37:48
Did you have any log? Last_kmsg, pstore, etc
Akatsu39 2022-07-22 09:44:29
s3gfau1t1337 2022-07-22 04:27:16
Yes. Unfortunately, the same result 😒

Tried disabling verification inside vbmeta?

Seiya667 2022-07-22 15:16:56
/notes
|