Skip to content

Instantly share code, notes, and snippets.

View smalinux's full-sized avatar
🎯
FOCUS

Sohaib Mohamed smalinux

🎯
FOCUS
View GitHub Profile
@smalinux
smalinux / bbb_flash_emmc.md
Created November 25, 2024 16:33 — forked from Zixuan-Qiao/bbb_flash_emmc.md
Summary on how to flash the onboard eMMC of Beaglebone Black

Beaglebone Black - Flashing the eMMC with the Latest Image

The kernel image that came with the board is usually outdated. Thus, I decided to update it to the latest image by flashing the onboard eMMc with an SD card. The process I followed is documented here.

Required Hardware

Beaglebone Black, PC running on Ubuntu (ver 20.04)

Serial to USB cable, USB type A to mini B cable, power adapter

Micro SD card and adapter

@smalinux
smalinux / README.md
Last active July 11, 2024 09:15
⭐ Portfolio

TL;DR

I've started my journey by building many Linux kernel modules and my own OS from scratch. Then I contributed to open-source projects like Google Summer of Code[^12], Htop [^1], PCP [^2], and Linux kernel [^3].

I needed to choose a Linux subsystem to focus on and to learn Linux through it. I chose the performance aspects of Linux. My experience with Htop and PCP made this decision for me.

I am passionate about performance engineering and monitoring, because it gave me the power to touch dark places in the system that nobody in other Linux subsystems could touch.

I'm interested in performance aspects of software systems and metrics collection tools such as Htop, perf and eBPF.

@smalinux
smalinux / gsoc-report.md
Last active February 2, 2025 21:15
⭐ Google Summer of Code 2022

Generalized columns in Htop - Project Summary

This is the final report for the project I was working for Google Summer of Code 2022

Abstract

The htop utility recently acquired the ability to display multiple Tabs in its user interface. Currently these display only process information. The aim of this project is to support generalized Tabs, where information beyond processes can be displayed in columns.

  • Extend htop Tabs to provide a more generalized Tab and Columns concept, such that top-most resource utilization for system objects other than processes can
@smalinux
smalinux / drvinfo
Last active November 26, 2021 10:07
barebox
barebox@riscv-virtio,qemu:/ drvinfo
Driver Device(s)
--------------------
syscon
riscv-timer
riscv-timer
riscv
cpus:[email protected]
cpus:[email protected]
cpus:[email protected]
[smalinux@dhcppc9 test]$ ./emulate.pl virt64_defconfig
Can't exec "tuxmake": No such file or directory at ./emulate.pl line 377.
vsystem: No such file or directory
Error building: -1
Resolved: https://gitlab.com/Linaro/tuxmake/-/blob/master/docs/install-rpm.md
[smalinux@dhcppc9 test]$ tuxmake -a riscv -k virt64_defconfig --kconfig-add=test/kconfig/base.cfg -b /tmp/bareboxbuild-eof2wEgQ36 -o /tmp/bareboxbuild-eof2wEgQ36/artifacts default
@smalinux
smalinux / .gitignore
Last active April 1, 2023 12:57
/home/smalinux/.newsboat/urls
compile_commands*
@smalinux
smalinux / stackoverflow
Created September 4, 2021 06:26
C programmers
https://stackoverflow.com/users/379897
# GUI.py
# RUN THIS FILE
import pygame
from solver import solve, valid
import time
pygame.font.init()
class Grid:
# To change the starting board change this
https://github.com/kraten/chessbot
https://github.com/LouisAsanaka/PyChessBot
https://github.com/Panc4kes/chess.com-bot
https://github.com/kochsebastian/ChessVisionBot
https://github.com/taiypeo/ChessBot
https://github.com/edfrue/chess_cheat
https://github.com/Stanou01260/chessbot_python
https://github.com/GabrieleMaurina/chess-cheat
https://github.com/Akenne/Chess-Bot
@smalinux
smalinux / 0001-mychar-hello-world-character-driver.patch
Last active January 18, 2021 17:35
Embox hacking - 101 tutorial
From 39991fa0f75e7e6302f17e4882ff2d2a18f36cae Mon Sep 17 00:00:00 2001
From: Sohaib Mohammed <[email protected]>
Date: Sat, 16 Jan 2021 06:48:31 +0200
Subject: [PATCH 1/1] mychar - hello world character device
---
src/kernel/Mybuild | 7 +++++++
src/kernel/mychar.c | 31 +++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+)
create mode 100644 src/kernel/mychar.c