This document describes how to make the system :
- boot on a SDCARD
- load the kernel from the SDCARD
- mount a NVMe partition as /
- use / for the whole system and applications
In this document folder and directory mean the same thing.
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2 | |
/* | |
* Copyright (c) 2012 Arvin Schnell <arvin.schnell@gmail.com> | |
* Copyright (c) 2012 Rob Clark <rob@ti.com> | |
* Copyright (c) 2017 Miouyouyou <Myy> <myy@miouyouyou.fr> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation |
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2 | |
#include <wayland-client.h> | |
#include <wayland-server.h> | |
#include <wayland-client-protocol.h> | |
#include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers | |
#include "init_window.h" | |
#include "log.h" | |
#include <string.h> |
# Set this variable with the path to your kernel. | |
# Don't use /usr/src/linux if you're cross-compiling... | |
MYY_KERNEL_DIR ?= ../linux | |
# If you're compiling for ARM64, this will be arm64 | |
ARCH ?= arm | |
# This is the prefix attached to your cross-compiling gcc/ld/... tools | |
# In my case, gcc is armv7a-hardfloat-linux-gnueabi-gcc | |
# If you've installed cross-compiling tools and don't know your |
// This will works on Embedded GPU that implements .gem_prime_mmap like Rockchip ones. | |
// This will fail on most DRM drivers for GPU with dedicated memory as they tend to NOT implement .gem_prime_mmap. | |
#include <stdio.h> | |
#include <libdrm/drm.h> | |
#include <stdint.h> | |
#include <sys/mman.h> | |
#include <string.h> |
/* UTF-32 codepoint to UTF-8 sequence converter by Miouyouyou | |
* | |
* To the extent possible under law, the person who associated CC0 with | |
* this content has waived all copyright and related or neighboring | |
* rights to this content. | |
* | |
* You should have received a copy of the CC0 legalcode along with this | |
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
* | |
*/ |
/* A really dumb Steam Idler in C for Linux systems. | |
* Might work on Mac OS too but I never tested it. | |
* | |
* /!\ You need to have Steam currently running on the computer | |
* ⁻⁻⁻ executing this software. | |
* | |
* Short version : | |
* gcc -o SteamIdler steam-idler.c libsteam_api.so | |
* | |
* Long version : |
#include <stdint.h> | |
#include <elf.h> | |
#include <sections/data.h> | |
#include <string.h> | |
#include <assert.h> | |
#define INSTRUCTION_SIZE 9*4 | |
#define DATA_SIZE 16 |
sudo bash ./compile.sh docker REPOSITORY_INSTALL="u-boot,kernel,armbian-config,armbian-firmware" KERNEL_ONLY=no KERNEL_CONFIGURE=no BOARD=nanopct4 KERNEL_TARGET=current BRANCH=current BUILD_DESKTOP=yes DESKTOP_ENVIRONMENT="xfce" RELEASE="focal" DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DESKTOP_APPGROUPS_SELECTED="browsers editors programming 3dsupport" |
extends Node | |
func align_buffer_on_4_bytes(buffer:PoolByteArray): | |
var buffer_size:int = buffer.size() | |
for i in range(0, buffer_size & 3): | |
buffer.append(0) | |
func convert_gltf_to_glb_working(gltf_filepath:String, glb_out_filepath:String): | |
var f:File = File.new() | |
var err_ret = f.open(gltf_filepath, File.READ) |