Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adapter speed 10000 | |
adapter driver ftdi | |
ftdi_device_desc "Dual RS232-HS" | |
ftdi_vid_pid 0x0403 0x6010 | |
ftdi_layout_init 0x0008 0x001b | |
ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020 | |
set _CHIPNAME riscv | |
transport select jtag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Version dump_proc_mem 0.0.1 | |
# Author Jan Gru | |
# Copyright Copyright (c) Jan Gru | |
# License GNU General Public License | |
# Checks, if root permissions | |
if [ $(id -u) -ne 0 ] | |
then echo "Error: needing root permissions!" >&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KDIR := /home/chriz/repositories/WSL2-Linux-Kernel/ | |
obj-m += chriz_ioctl_kernel.o | |
all: | |
$(MAKE) -C $(KDIR) M=$(PWD) modules | |
gcc -o chriz_ioctl_user chriz_ioctl_user.c | |
clean: | |
rm -rf *.o *.ko *.mod.* *.cmd .module* modules* Module* .*.cmd .tmp* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\00\00bootloader version:210209-4547a8d | |
ddr 0x00000000, 1M test | |
ddr 0x00100000, 2M test | |
DDR clk 2800M,Version: 210206-12505b0 | |
2 1 0 | |
bootloader. | |
OpenSBI v0.8 | |
____ _____ ____ _____ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test case for OP_SPLICE short read issue. Most systems may require the open | |
// file limit to be raised (4096, which is probably still within the hard limit, | |
// should be enough). | |
// | |
// This tries to read from a file called '20k', which I generated with the | |
// following: | |
// `dd if=/dev/random of=20k bs=1k count=20` | |
#define _GNU_SOURCE | |
#include <errno.h> |
Introduced in musl v1.2.1. Design goal: "Strong hardening against memory usage errors by the caller, including detection of overflows, double-free, and use-after-free, and does not admit corruption of allocator state via these errors."
// Singleton: ctx
struct malloc_context {
uint64_t secret;
#ifndef PAGESIZE
size_t pagesize;
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
- Install Xcode from App Store or install Command Line Tools on your Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate ed25519 privkey | |
openssl genpkey -algorithm ed25519 -out privkey.pem | |
# export its pubkey | |
openssl pkey -in privkey.pem -pubout -out pubkey.pem | |
# Generate RSA privkey | |
openssl genrsa -des3 -out private.pem 2048 | |
# export its pubkey | |
openssl rsa -in private.pem -outform PEM -pubout -out public.pem |