Skip to content

Instantly share code, notes, and snippets.

View cjdelisle's full-sized avatar

Caleb James DeLisle cjdelisle

  • Paris France
View GitHub Profile
@cjdelisle
cjdelisle / patch-add-econet-support-diff-v2-v3.patch
Created March 30, 2025 16:39
Add EcoNet EN751221 MIPS platform support - diff patch v2 -> v3
diff --git a/Documentation/devicetree/bindings/timer/econet,en751221-timer.yaml b/Documentation/devicetree/bindings/timer/econet,en751221-timer.yaml
index 883b904250b2..c1e7c2b6afde 100644
--- a/Documentation/devicetree/bindings/timer/econet,en751221-timer.yaml
+++ b/Documentation/devicetree/bindings/timer/econet,en751221-timer.yaml
@@ -18,13 +18,14 @@ description:
properties:
compatible:
oneOf:
- - items:
- - const: econet,en751221-timer
@cjdelisle
cjdelisle / patch-add-econet-support-diff-v1-v2.patch
Last active March 25, 2025 13:45
Difference between v1 and v2 of patchset "Add EcoNet EN751221 MIPS platform support"
diff --git a/Documentation/devicetree/bindings/interrupt-controller/econet,en751221-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/econet,en751221-intc.yaml
index 1b0f262c9630..5536319c49c3 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/econet,en751221-intc.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/econet,en751221-intc.yaml
@@ -9,7 +9,7 @@ title: EcoNet EN751221 Interrupt Controller
maintainers:
- Caleb James DeLisle <[email protected]>
-description: |
+description:
[ 0.000000] Linux version 5.15.104 (user@cjd-dev) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r22407-4c4ab86c1e) 12.2.0, GNU ld (GNU Binutils) 2.40.0)
#0 SMP Thu May 25 09:09:10 2023
[ 0.000000] ISPRAM0: PA=1c000000,Size=00010000,enabled
[ 0.000000] EcoNet SoC: RAM: DDR3 128 MB
[ 0.000000] CPU/SYS frequency: 900/225 MHz
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019558 (MIPS 34Kc)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Detected 1 available secondary CPU(s)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
bldr> jump 80002000
Jump to 80002000
[ 0.000000] Linux version 6.6.71 (user@cjd-dev) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r28629+1-99431e3150) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Tue Jan 28 15:28:14 2025
[ 0.000000] ISPRAM0: PA=1c000000,Size=00010000,enabled
[ 0.000000] prom_init
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019558 (MIPS 34Kc)
[ 0.000000] plat_mem_setup
[ 0.000000] MIPS: machine is Generic EN751221 SoC
/dts-v1/;
// THIS DOES NOT WORK
// It's a scratch pad for nailing down where all of the devices are on the EN7526.
/ {
compatible = "econet,en7526";
#address-cells = <1>;
#size-cells = <1>;
BGA IC
Xtal:1
DDR3 init.
DRAMC init done.
Calculate size.
DRAM size=512MB(supported max size)
Set new TRFC.
ddr-1066

CJVPS Hosting

What is the machine

  • 1 VCPU Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz
  • 4 GB RAM
  • 50 GB available storage
    • virtio-fs over ZFS
    • Quota is on compressed data, so the actual amount you can store will exceed 50GB
  • Internet access
  • Cjdns: Native
@cjdelisle
cjdelisle / mail.cjdns.fr.conf
Created September 5, 2023 17:50
mailcow reverse proxy nginx example
server {
listen [::]:80;
listen 80;
server_name mail.cjdns.fr;
access_log /var/log/nginx/http.mail.cjdns.fr.access.log;
error_log /var/log/nginx/http.mail.cjdns.fr.error.log info;
# Enables or disables emitting nginx version on error pages and in the "Server" response header field.
server_tokens off;
@cjdelisle
cjdelisle / pkteerium.xyz.conf
Created September 4, 2023 21:54
Pkteerium nginx conf
server {
listen [::]:80;
listen 80;
server_name pkteerium.xyz;
error_log /var/log/nginx/pkteerium.error.log info;
location / {
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
}
# Enables or disables emitting nginx version on error pages and in the "Server" response header field.
@cjdelisle
cjdelisle / pkteerium.xyz.conf
Created May 10, 2022 13:36
Nginx file for The Pkteerium - A Pleroma server which serves the frontend separately from the backend.
server {
listen [::]:80;
listen 80;
server_name pkteerium.xyz;
error_log /var/log/nginx/pkteerium.error.log info;
location / {
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
}
# Enables or disables emitting nginx version on error pages and in the "Server" response header field.