Skip to content

Instantly share code, notes, and snippets.

View avi951's full-sized avatar

Avi Shihora avi951

View GitHub Profile
@avi951
avi951 / OpenWRT_AP_Setup_Axon
Created September 25, 2025 11:57
OpenWRT_AP_Setup_Axon
Setup Guide
@avi951
avi951 / YOCTO-vaaman.md
Created July 29, 2025 11:49 — forked from dubistweltmeister05/YOCTO-vaaman.md
Details about working with the YOCTO build for Vaaman

YOCTO Local Source -

Can be accessed via - ssh pratiksha@galactos.local

/home/pratiksha/hdd/pratiksha/kshitij/vicharak-linux-sdk/yocto

YOCTO Git repos -

meta rockchip - https://github.com/vicharak-in/meta-rockchip

rockchip-kernel - https://github.com/vicharak-in/rockchip-linux-kernel-priv

action_pool_depth
Current value (from the default) = -1
From //build/toolchain/BUILD.gn:11
Pool for non goma tasks.
added_rust_stdlib_libs
Current value (from the default) = []
From //build/config/rust.gni:44
@avi951
avi951 / chromium_clang_gcc_cross_compile
Created May 6, 2025 12:08
chromium_clang_gcc_cross_compile
root@b1587d74d17c:/home/chrom-d/chromium/src# ninja -j20 -C out/Release chrome chrome_sandbox content_shell chrome
ninja: Entering directory `out/Release'
[15/64233] CXX obj/base/base/field_trial_param_associator.o
FAILED: obj/base/base/field_trial_param_associator.o
/usr/lib/llvm-19/bin/clang++ -MD -MF obj/base/base/field_trial_param_associator.o.d -DBASE_IMPLEMENTATION -DIS_RAW_PTR_IMPL -DUSE_SYMBOLIZE -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -D__ARM_NEON__=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.129/include/cxx.h\" -DGLOG_EXPORT= -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_D
@avi951
avi951 / Vaaman-log-new image
Created March 31, 2025 06:41
Vaaman-log-new image
/lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
##########################################################
### ###
### It's the first time booting. ###
### The rootfs will be configured. ###
### ###
### !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ###
### !!! Wait for a minute until the board reboots. !!! ###
### !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ###
@avi951
avi951 / Debian-log
Created January 30, 2025 06:15
Debian-log
Processing triggers for desktop-file-utils (0.26-1) ...
Install blueman....................
Install blueman....................
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'blueman' instead of '/packages/blueman/blueman_2.2.4-3_arm64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
@avi951
avi951 / 5.10 Old Firmware
Created January 24, 2025 14:59
5.10 Old Firmware
vicharak@vicharak:~$ sudo /usr/bin/start_bt.sh
Realtek Bluetooth :Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 3.1.dced3af.20210423-153942
Realtek Bluetooth :Use epoll
Realtek Bluetooth :[SYNC] Get SYNC Resp Pkt
Realtek Bluetooth :[CONFIG] Get SYNC pkt
Realtek Bluetooth :[CONFIG] Get CONFG pkt
Realtek Bluetooth :[CONFIG] Get CONFG resp pkt
Realtek Bluetooth :dic is 1, cfg field 0x14
@avi951
avi951 / BT_AXON_LOG
Created January 21, 2025 05:02
BT_AXON_LOG - New Firmware
BT-LOG - After Rebooting Axon ( 1st time log )
[ 8.635957] [BT_RFKILL]: Enter rfkill_rk_set_power
[ 8.635965] [BT_RFKILL]: Set blocked:0
[ 8.635968] [BT_RFKILL]: rfkill_rk_set_power: toggle = false
[ 8.635971] [BT_RFKILL]: Enter rfkill_rk_sleep_bt
[ 8.635974] [BT_RFKILL]: *** bt sleep: 0 ***
[ 8.635987] hey, I have been called here for "CONFIG_BT_AUTOSLEEP"
[ 8.635990] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host high!
[ 8.691411] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host input!
@avi951
avi951 / gpioset_high_low.c
Last active January 18, 2025 13:17
gpioset_high_low.c
#include <stdio.h>
#include <gpiod.h>
#include <unistd.h>
#define GPIO_CHIP "/dev/gpiochip4" // Specify the correct GPIO chip device
#define GPIO_NUMBER 135 // Global GPIO number
#define GPIO_CHIP_BASE 128 // The base GPIO number for gpiochip4 (for example)
int main()
{
@avi951
avi951 / MGMT - When Bluetooth turn on and searching device
Created January 16, 2025 07:07
MGMT - When Bluetooth turn on and searching device
vicharak@vicharak:~$ sudo btmon
Bluetooth monitor ver 5.72
= Note: Linux version 6.1.75-axon (aarch64) 0.205658
= Note: Bluetooth subsystem version 2.22 0.205665
= New Index: 40:F4:C9:94:85:1F (Primary,UART,hci0) [hci0] 0.205670
= Open Index: 40:F4:C9:94:85:1F [hci0] 0.205671
= Index Info: 40:F4:C9:94:85:1F (Realtek Semiconductor Corporation) [hci0] 0.205672
@ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.205675
@ MGMT Open: bluetoothctl (privileged) version 1.22 {0x0002} 7.096061
@ MGMT Command: Start Discovery (0x0023) plen 1 {0x0001} [hci0] 13.287695