Skip to content

Instantly share code, notes, and snippets.

View pdp7's full-sized avatar
💭
Linux on RISC-V

Drew Fustini pdp7

💭
Linux on RISC-V
View GitHub Profile
@pdp7
pdp7 / BeagleBone: sharing Internet connection from Linux laptop with USB.md
Last active March 31, 2025 03:25
BeagleBone: sharing Internet connection from Linux laptop with USB

WARNING: interfaces can enumarate differently:

ufw status
#iptables -F
#iptables --table nat --append POSTROUTING --out-interface wlxe0b94db737c9 -j MASQUERADE
#iptables --table nat --append POSTROUTING --out-interface enp0s20u1u1 -j MASQUERADE
iptables --table nat --append POSTROUTING --out-interface enp0s20u1u2 -j MASQUERADE
#iptables --append FORWARD --in-interface enx1cba8c9bbeb5 -j ACCEPT
#iptables --append FORWARD --in-interface enx9884e391a556 -j ACCEPT
iptables --append FORWARD --in-interface enx9884e391a559 -j ACCEPT
@pdp7
pdp7 / RISC-V Open Hours June 29.txt
Created June 29, 2022 17:19
RISC-V Open Hours June 29
09:07:47 From Jim Wilson To Everyone:
Slides from last Asian timezone meeting. https://docs.google.com/presentation/d/1l-KyLpX_-FeEqK2lSe6Syl3v9bsisy-TiseFZ8x0a5A/edit#slide=id.g124686d916e_1_55
09:07:59 From Drew Fustini (BayLibre) To Everyone:
entering host code
09:08:03 From Drew Fustini (BayLibre) To Everyone:
sorry for the delay
09:11:01 From Drew Fustini (BayLibre) To Everyone:
Slides https://docs.google.com/presentation/d/1qKeGh2y7n2BRB6M3ofcPvsRsK2iTggwcHXIxDbrkZpo/edit?usp=sharing
09:14:02 From Drew Fustini (BayLibre) To Everyone:
https://wiki.riscv.org/display/TECH/Technical+Overview
@pdp7
pdp7 / acpi-rqsc-resctrl.md
Last active February 22, 2025 21:26
acpi-rqsc-resctrl.txt
mount -t resctrl resctrl /sys/fs/resls -la /sys/fs/resctrl/

ls -la /sys/fs/resctrl/

cd /sys/fs/resctrl/

echo 'L2:3=ff0' >  /sys/fs/resctrl/schemata
@pdp7
pdp7 / sifive unmatched intel arc xe driver.txt
Created February 17, 2025 06:11
sifive unmatched intel arc xe driver
[ 0.000000] Linux version 6.14.0-rc3 (pdp7@thelio) (riscv64-linux-gnu-gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #1219 SMP Sun Feb 16 21:52:34 PST 2025
[ 0.000000] Machine model: SiFive HiFive Unmatched A00
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10004
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
[ 0.000000] SBI DBCN extension detected
[ 0.000000] efi: EFI v2.10 by Das U-Boot
@pdp7
pdp7 / kernel config for Intel Arc on SiFive.txt
Created February 17, 2025 06:07
kernel config for Intel Arc on SiFive
#
# Automatically generated file; DO NOT EDIT.
# Linux/riscv 6.14.0-rc3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="riscv64-linux-gnu-gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=130200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24100
@pdp7
pdp7 / sifive-unmatched-20250208-rx550-boot.log
Created February 9, 2025 02:34
sifive-unmatched-20250208-rx550-boot.log
1 sifive@unmatched:~$ sudo dmesg
[sudo] password for sifive:
[ 0.000000] Linux version 6.8.0-44-generic (buildd@bos03-riscv64-026) (riscv64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #44.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 21 09:27:53 UTC 2024 (Ubuntu 6.8.0-44.44.1-generic 6.8.12)
[ 0.000000] Machine model: SiFive HiFive Unmatched A00
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10004
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
@pdp7
pdp7 / sifive-unmatched-20250208-rx550-lspci.log
Created February 9, 2025 02:31
sifive-unmatched-20250208-rx550-lspci.log
00:00.0 PCI bridge: SiFive, Inc. FU740-C000 RISC-V SoC PCI Express x8 to AXI4 Bridge
01:00.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:00.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:02.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:03.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:04.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
02:08.0 PCI bridge: ASMedia Technology Inc. ASM2824 PCIe Gen3 Packet Switch (rev 01)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
07:00.0 PCI bridge: ASMedia Technology Inc. ASM1184e 4-Port PCIe x1 Gen2 Packet Switch
@pdp7
pdp7 / sifive-unmatched-20250208-rx550-dmesg.log
Created February 9, 2025 02:32
sifive-unmatched-20250208-rx550-dmesg.log
[ 0.000000] Linux version 6.8.0-44-generic (buildd@bos03-riscv64-026) (riscv64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #44.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 21 09:27:53 UTC 2024 (Ubuntu 6.8.0-44.44.1-generic 6.8.12)
[ 0.000000] Machine model: SiFive HiFive Unmatched A00
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10004
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
[ 0.000000] SBI DBCN extension detected
[ 0.000000] efi: EFI v2.10 by Das U-Boot
@pdp7
pdp7 / radeon-sifive-unmatched-20250206-dmesg.log
Created February 7, 2025 18:38
radeon-sifive-unmatched-20250206-dmesg.log
[ 0.000000] Linux version 6.8.0-44-generic (buildd@bos03-riscv64-026) (riscv64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #44.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 21 09:27:53 UTC 2024 (Ubuntu 6.8.0-44.44.1-generic 6.8.12)
[ 0.000000] Machine model: SiFive HiFive Unmatched A00
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10004
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
[ 0.000000] SBI DBCN extension detected
[ 0.000000] efi: EFI v2.10 by Das U-Boot
@pdp7
pdp7 / radeon-sifive-unmatched-20250206-lspci-vv.log
Created February 7, 2025 18:38
radeon-sifive-unmatched-20250206-lspci-vv.log
lspci -vv
[?2004l
00:00.0 PCI bridge: SiFive, Inc. FU740-C000 RISC-V SoC PCI Express x8 to AXI4 Bridge (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 38
Region 0: Memory at 60100000 (32-bit, non-prefetchable) [size=1M]
Bus: primary=00, secondary=01, subordinate=0c, sec-latency=0
I/O behind bridge: 1000-1fff [size=4K] [16-bit]