Skip to content

Instantly share code, notes, and snippets.

View Simon-L's full-sized avatar
😠
Leaving Github!

FergusL Simon-L

😠
Leaving Github!
  • Not Microsoft
  • Paris, France
View GitHub Profile
[ 56.815142] dwc2 ff300000.usb: bound driver g_serial
[ 56.815153] dwc2 ff300000.usb: dwc2_hsotg_pullup: is_on: 1 op_state: 9
[ 56.815164] dwc2 ff300000.usb: --- SIMONL --- in host mode, return early from dwc2_hsotg_pullup
---
op_state: 9 -> OTG_STATE_A_HOST
@Simon-L
Simon-L / dmesg
Created March 22, 2024 16:29
dmesg otg then hcd reset to host
------- debug messages from gadget.c
dwc2 ff300000.usb: mapped PA ff300000 to VA (____ptrval____)
dwc2 ff300000.usb: Looking up vusb_d-supply from device tree
dwc2 ff300000.usb: Looking up vusb_d-supply property in node /usb@ff300000 failed
dwc2 ff300000.usb: supply vusb_d not found, using dummy regulator
dwc2 ff300000.usb: Looking up vusb_a-supply from device tree
dwc2 ff300000.usb: Looking up vusb_a-supply property in node /usb@ff300000 failed
dwc2 ff300000.usb: supply vusb_a not found, using dummy regulator
dwc2 ff300000.usb: registering common handler for irq28
@Simon-L
Simon-L / jelos-builder-script.sh
Created February 12, 2024 14:47
WIP: Bash script to build on Scaleway VPS in one command!
#! /bin/bash
REPO="https://github.com/JustEnoughLinuxOS/distribution"
BRANCH="main"
BUILD_OPTS="EMULATION_DEVICE=no ENABLE_32BIT=no"
BUILD_DEVICE="RK3326"
BUILDER="<VPS ip>"
SSH_OPTS="-o PubkeyAuthentication=yes"
// ReloadSoundUI keeps a map that associates labels used in dsp code
// with pointers to Soundfile zones so that they can be reloaded
// while the DSP is running
class ReloadSoundUI : public SoundUI
{
std::map<std::string, Soundfile**> fSfZoneMap;
public:
ReloadSoundUI(const std::string& sound_directory = "", int sample_rate = -1, SoundfileReader* reader = nullptr, bool is_double = false)
#include <iostream>
#include <fstream>
#include <sstream>
#include <thread>
#include <stdlib.h>
#include <unistd.h>
#include "faust/dsp/llvm-dsp.h"
#include "faust/dsp/libfaust.h"
cmake_minimum_required(VERSION 3.14)
project(faustuserprojectwithllvm)
get_filename_component(MYLIBFAUSTEMBEDDED_ROOT
"${CMAKE_CURRENT_LIST_DIR}/../"
ABSOLUTE)
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)
message(/usr/lib/${CMAKE_SYSTEM_PROCESSOR}-linux-gnu/libz3.so)
@Simon-L
Simon-L / rx2tofaust.lua
Created October 11, 2023 13:55
Example usage of revx2.lua to generate Faust file containing the loop samples directly
-- wget https://github.com/rxi/json.lua/raw/master/json.lua
local revx2 = require("revx2")
local inspect = require 'inspect'
local json = require "json"
local wav = require'luawav'
local path = "/path/to/json.json"
local json_file = io.open(path)
local loop = json.decode(json_file:read("*all"))
@Simon-L
Simon-L / CMakeLists.txt
Created July 19, 2023 20:21
Build libfaust with llvm using prebuilt llvm from debian packages
cmake_minimum_required(VERSION 3.14)
project(faustuserprojectwithllvm)
add_executable(faustuserprojectwithllvm main.cpp)
target_compile_features(faustuserprojectwithllvm PRIVATE cxx_std_11)
target_link_libraries(faustuserprojectwithllvm PUBLIC
${PROJECT_SOURCE_DIR}/libfaustwithllvm.a
rt
@Simon-L
Simon-L / build.sh
Created May 3, 2023 11:17
JELOS build DO vm
#! /bin/bash
apt install build-essential docker.io
cd ~
git clone https://github.com/JustEnoughLinuxOS/distribution.git
cd distribution/
# change netbase to 5.6
# adapt flags here
EMULATION_DEVICE=no ENABLE_32BIT=no make docker-AMD64
tar -czvf release.tar.gz release/