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 / th1520-gmac1-cmdline-dhcp-boot-log.txt
Created September 29, 2024 03:48
th1520-gmac1-cmdline-dhcp-boot-log.txt
[ 0.000000] Linux version 6.11.0-next-20240920-00013-g596e46b46c6b-dirty (pdp7@x1) (riscv64-linux-gnu-gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1006 SMP Sat Sep 28 18:15:49 PDT 2024
[ 0.000000] Machine model: Sipeed Lichee Pi 4A
[ 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 DBCN extension detected
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000000000000..0x000000000003ffff (256 KiB) nomap non-reusable mmode_resv1@0
@pdp7
pdp7 / th1520-gmac0-cmdline-dhcp-boot-log.txt
Created September 29, 2024 03:47
th1520-gmac0-cmdline-dhcp-boot-log.txt
dmesg |grep -v DEBUG | grep -v systemd
[ 0.000000] Linux version 6.11.0-next-20240920-00013-g596e46b46c6b-dirty (pdp7@x1) (riscv64-linux-gnu-gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1006 SMP Sat Sep 28 18:15:49 PDT 2024
[ 0.000000] Machine model: Sipeed Lichee Pi 4A
[ 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 DBCN extension detected
[ 0.000000] efi: UEFI not found.
@pdp7
pdp7 / th1520 debug mdio on gmac1 boot log.txt
Created September 28, 2024 20:59
th1520 debug mdio on gmac1 boot log
debian@lpi4amain:~$ dmesg |grep -v systemd
[ 0.000000] Linux version 6.11.0-next-20240920-00014-g4cd3c04423e4-dirty (pdp7@x1) (riscv64-linux-gnu-gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #997 SMP Sat Sep 28 13:32:23 PDT 2024
[ 0.000000] Machine model: Sipeed Lichee Pi 4A
[ 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 DBCN extension detected
[ 0.000000] efi: UEFI not found.
@pdp7
pdp7 / th1520 ethernet test boot on lpi4a with nfs rootfs.txt
Last active September 27, 2024 01:24
th1520 ethernet test boot on lpi4a with nfs rootfs
[ 0.000000] Linux version 6.11.0-next-20240920-00012-g928338e99aef-dirty (pdp7@x1) (riscv64-linux-gnu-gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #986 SMP Thu Sep 26 12:04:48 PDT 2024
[ 0.000000] Machine model: Sipeed Lichee Pi 4A
[ 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 DBCN extension detected
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000000000000..0x000000000003ffff (256 KiB) nomap non-reusable mmode_resv1@0
@pdp7
pdp7 / th1520 ethernet test boot on lpi4a.txt
Last active September 26, 2024 18:58
th1520 ethernet test boot log on lpi4a
[ 0.000000] Linux version 6.11.0-next-20240920-00012-g928338e99aef (pdp7@x1) (riscv64-linux-gnu-gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #985 SMP Thu Sep 26 11:54:51 PDT 2024
[ 0.000000] Machine model: Sipeed Lichee Pi 4A
[ 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 DBCN extension detected
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000000000000..0x000000000003ffff (256 KiB) nomap non-reusable mmode_resv1@0
@pdp7
pdp7 / star64 pcie
Created August 3, 2024 17:45
star64 pcie
root
pine64
[ 0.000000] Linux version 5.15.131 (oe-user@oe-host) (riscv64-pine64-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP Thu Sep 21 04:12:12 UTC 2023
[ 0.000000] Kernel command line: earlyprintk console=tty1 console=ttyS0,115200 rootwait splash quiet earlycon=sbi root=/dev/mmcblk1p4
[ 0.000000] Unknown kernel command line parameters "earlyprintk splash", will be passed to user space.
[ 0.910473] axp15060-regulator 5-0036: Register cpu_vdd done! vol range:500 ~ 1540 mV
cat /data/dfustini/demo/docker/Dockerfile 
#########################
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get install -y cmake gcc g++ git libglib2.0-dev ninja-build python3 python3-distutils python3-dev python3-pip
########################
@pdp7
pdp7 / text-clipping-adafruit-bbb.md
Last active May 15, 2024 15:09
Text Clipping on 3.5" TFT LCD on Beagle Bone Black with PIL
@pdp7
pdp7 / linux boot log for cppc patch series.txt
Created March 20, 2024 06:45
linux boot log for cppc patch series
$ qemu/build/qemu-system-riscv64 -M virt,pflash0=pflash0,pflash1=pflash1 -m 2G -smp 8 -serial mon:stdio -nographic -blockdev node-name=pflash0,driver=file,read-only=on,filename=RISCV_VIRT_CODE.fd -blockdev node-name=pflash1,driver=file,filename=RISCV_VIRT_VARS.fd -append "root=/dev/ram ro console=hvc earlycon=sbi loglevel=8" -kernel linux/arch/riscv/boot/Image -bios ~/data/opensbi/build/platform/generic/firmware/fw_dynamic.bin
OpenSBI v1.4-64-ge23cda471586
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
@pdp7
pdp7 / edk2 boot qemu.txt
Last active March 17, 2024 20:47
edk2 boot qemu
dfustini@host:~$ cd ~/data/Build/RiscVVirtQemu/RELEASE_GCC5/FV; ~/data/qemu/build/qemu-system-riscv64 -M virt,pflash0=pflash0,pflash1=pflash1 -m 2G -smp 8 -serial mon:stdio -blockdev node-name=pflash0,driver=file,read-only=on,filename=RISCV_VIRT_CODE.fd -blockdev node-name=pflash1,driver=file,filename=RISCV_VIRT_VARS.fd -kernel ~/linux/arch/riscv/boot/Image -initrd ~/data/buildroot/output/images/rootfs.ext2 -append "root=/dev/ram ro console=hvc earlycon=sbi" -nographic
OpenSBI v1.4
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |