Skip to content

Instantly share code, notes, and snippets.

View ric96's full-sized avatar
🤨

Sahaj Sarup ric96

🤨
View GitHub Profile
@ric96
ric96 / gist:ded442a2f26d845a3ef1ad112cbfd93b
Created October 20, 2020 16:41
Esxi-Arm Fling on Seattle OD3000
FS0:\> efi\boot\bootaa64.efi -S 1
Loading driver at 0x083F6161000 EntryPoint=0x083F6176AA0
Loading driver at 0x083F6161000 EntryPoint=0x083F6176AA0
UEFI v2.70 (EDK II, Rev.65536)
'Seattle' by 'AMD', firmware version '22:18:58', built on 'Aug 27 2020'
mboot __executable_start is at 0x83f6162000
Processing quirks...
Looking up quirks for 'AMD' 'Seattle' '22:18:58' 'Aug 27 2020'
Processing CPU quirks...
GOP framebuffer @ 0x100000000 (8294400 bytes)
@ric96
ric96 / ttyecho.c
Created August 19, 2019 03:49
ttyecho
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <string.h>
#include <unistd.h>
void print_help(char *prog_name) {
printf("Usage: %s [-n] DEVNAME COMMAND\n", prog_name);
@ric96
ric96 / main.c
Created December 3, 2017 17:00
hcsr04 sample code for zephyr on 96b_carbon
#include <zephyr.h>
#include <misc/printk.h>
#include <device.h>
#include <gpio.h>
#include <sys_clock.h>
#include <misc/util.h>
#include <limits.h>
#define GPIO_OUT_PIN 1
#define GPIO_INT_PIN 3