Skip to content

Instantly share code, notes, and snippets.

View mvaisakh's full-sized avatar
🐧

Vaisakh Murali mvaisakh

🐧
View GitHub Profile
@mvaisakh
mvaisakh / kernel-rebase.sh
Last active October 10, 2024 09:02
A Kernel split changes committing script (used for splitting massive OEM kernel commits)
#!/usr/bin/bash
# author: Vaisakh Murali <[email protected]>
#
# Before you start, make sure you squash all split OEM commits into
# one single commit. This will break down the single huge commit
# into multiple smaller commits, helping to cleanup OEM codes easier.
#
# Make sure this script is renamed to rebase.sh as the script
@mvaisakh
mvaisakh / Bringup.md
Last active November 14, 2024 14:22
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@mvaisakh
mvaisakh / AOSP Clang 9.x.bench.md
Last active May 30, 2021 18:23
Different benchmarks of cannon

Different Kernel Benchmarks of Redmi Note 9T (cannong)

AOSP Clang 9.x (Stock configuration, debugging dropped)

Perf

$ perf bench sched all

Running sched/messaging benchmark... 20 sender and receiver processes per group

name: Kernel Build CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
From 9638ad02a052fa44eb32e7b2d624caa520c4f0a2 Mon Sep 17 00:00:00 2001
From: Vaisakh Murali <[email protected]>
Date: Sat, 20 Jun 2020 12:55:37 +0600
Subject: [PATCH] Makefile: Restore GCC 9.3 inline param logic
* This is a follow up commit to 6cbcf0181d09
* Based on the advice by arter97 to restore the inline params
* This overcomes the regressions introduced in GCC 10
Signed-off-by: Vaisakh Murali <[email protected]>
From 33c6a4b53675e72cac7bbc26582a8be4c1fdf7c5 Mon Sep 17 00:00:00 2001
From: Vaisakh Murali <[email protected]>
Date: Thu, 31 Dec 2020 23:08:02 +0530
Subject: [PATCH] kernel: Add support for usage of inline LLD with GCC Cross
Compilers
* LLD has shown to be much faster than the GCC Standard BFD ld and Gold ld.
* With newer android kernels, usage of these GCC Standard linkers becomes difficult as they
don't support relative relocations.
* LLD supports such relocations, being a modern linker and with the amazing linking speed, it
@mvaisakh
mvaisakh / ACPI Properties for Vega 8 (Alpha)
Created October 26, 2020 03:54
Some properties I merged to for getting HW Acceleration on Vega 8 (Still does not work!!!!!!) https://github.com/mvaisakh/Asus-X505ZA-Ryzen-Hackintosh/issues/1
Head over to https://github.com/mvaisakh/Asus-X505ZA-Ryzen-Hackintosh/issues/1 , Do not email me questions regarding what this gist is about.
DefinitionBlock ("", "SSDT", 2, "SPOOF", "AMDGPU", 0x00001000)
{
External (_SB_.PCI0, DeviceObj)
External (_SB_.PCI0.GP17, DeviceObj)
External (_SB_.PCI0.GP17.VGA_, DeviceObj)
External (GP17, DeviceObj)
External (VGA_, DeviceObj)
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.156-ProjektEva+ (mvaisakh@ProjektEva) (Android (6443078 based on r383902) clang version 11.0.1 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79)) #2 SMP PREEMPT Wed May 6 15:26:36 +06 2020
[ 0.000000] Boot CPU: AArch64 Processor [51af8014]
[ 0.000000] memblock_reserve: 0x5a543 setup_arch+0xac/0x54c
[ 0.000000] Machine: Qualcomm Technologies, Inc. SDM 660 PM660 + PM660L QRD
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000fe800000, size 20 MiB
[ 0.000000] OF: reserved mem: initialized node qseecom_region, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000fe000000, size 8 MiB
[ 0.000000] OF: reserved mem: initialized node adsp_region, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000009cc00000, size 8 MiB
====69845.178353-D
Panic#2 Part1
<6>[ 0.074947] Brought up 8 CPUs
<6>[ 0.074975] SMP: Total of 8 processors activated.
<6>[ 0.074983] CPU features: detected feature: 32-bit EL0 Support
<6>[ 0.074990] CPU features: kernel page table isolation forced OFF by command line option
<6>[ 0.075002] CPU: All CPU(s) started at EL1
<6>[ 0.075083] alternatives: patching kernel code
<6>[ 0.075364] CPU7: update max cpu_capacity 1024
<6>[ 0.100064] CPU1: update max cpu_capacity 1024
This file has been truncated, but you can view the full file.
--------- beginning of system
12-13 13:26:12.753 405 2842 I vold : Trimmed 3683459072 bytes on /data in 1721ms
12-13 13:26:12.753 405 2842 D vold : Starting trim of /cache
12-13 13:26:12.754 621 1489 I chatty : uid=1000(system) Binder:621_3 expire 3 lines
12-13 13:26:12.758 621 621 I chatty : uid=1000 system_server expire 172 lines
12-13 13:26:12.771 621 2871 I chatty : uid=1000 system_server expire 2 lines
12-13 13:26:12.771 405 2842 I vold : Trimmed 259727360 bytes on /cache in 18ms
12-13 13:26:12.772 405 2842 D vold : Starting trim of /persist
12-13 13:26:12.808 405 2842 I vold : Trimmed 28147712 bytes on /persist in 36ms
12-13 13:26:12.809 405 2842 D vold : Starting trim of none