Navigation Menu

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 / 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
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
@pdp7
pdp7 / th1520 lpi4 build and boot flow.sh
Last active February 10, 2024 06:44
th1520 lpi4 build and boot flow
#pdp7@thelio:~/dev/kernel/revyos$ cat upload.sh
#!/bin/bash
FILE=`ls -tr ../*image*deb |tail -1`
ls -la $FILE
scp -p $FILE debian@10.0.0.175:.
#pdp7@thelio:~/dev/kernel/revyos$ cat th1520-build.sh
#!/bin/bash -x
@pdp7
pdp7 / thelio build scripts.sh
Created February 10, 2024 06:29
thelio build scripts
pdp7@thelio:~/dev/kernel/revyos$ ls -ltar *sh
-rwxr-xr-x 1 pdp7 pdp7 417 Jan 19 18:00 th1520-build.sh
-rwxr-xr-x 1 pdp7 pdp7 96 Jan 28 10:17 upload.sh
pdp7@thelio:~/dev/kernel/revyos$ cat th1520-build.sh
#!/bin/bash -x
#DEPLOY=/home/pdp7/dev/ahead/xuantie-ubuntu/deploy
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- -j$1 2>&1 | tee build.log.$(date +"%Y-%m-%d_%H-%M-%S")
#cp -p arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dtb ${DEPLOY}/light-beagle.dtb && \
@pdp7
pdp7 / config-6.5.0-9-generic_ubuntu-23.10-preinstalled-server-riscv64+unmatched.img.txt
Created February 7, 2024 01:09
/boot/config-6.5.0-9-generic from ubuntu-23.10-preinstalled-server-riscv64+unmatched.img
#
# Automatically generated file; DO NOT EDIT.
# Linux/riscv 6.5.0-9-generic Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="riscv64-linux-gnu-gcc-13 (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 / log.do_compile.3998572
Created January 29, 2024 22:39
build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/temp/log.do_compile.3998572
~/data/build-webos$ cat /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/temp/log.do_compile.3998572
DEBUG: Executing shell function do_compile
NOTE: VERBOSE=1 cmake --build /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/build --target all --
[1/10] : && /data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot-native/usr/bin/x86_64-webos-linux/x86_64-webos-linux-g++ --sysroot=/data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/luna-service2/3.21.2-37-r32/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/data/dfustini/build-webos/BUILD/work/qemux86_64-webos-linux/
@pdp7
pdp7 / linux-image-6.8.0-rc1-g1229138d8c71_6.8.0-rc1-g1229138d8c71-38_riscv64.deb.log
Created January 29, 2024 00:12
linux-image-6.8.0-rc1-g1229138d8c71_6.8.0-rc1-g1229138d8c71-38_riscv64.deb.log
[ 0.000000] Linux version 6.8.0-rc1-g1229138d8c71 (pdp7@thelio) (riscv64-linux-gnu-gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #38 SMP Sun Jan 28 15:33:57 PST 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] earlycon: uart0 at MMIO32 0x000000ffe7014000 (options '115200n8')
[ 0.000000] printk: legacy bootconsole [uart0] enabled
@pdp7
pdp7 / linux-image-6.8.0-rc1-g4e4b0c0fcf8a-dirty_6.8.0-rc1-g4e4b0c0fcf8a-31_riscv64.txt
Created January 28, 2024 18:38
linux-image-6.8.0-rc1-g4e4b0c0fcf8a-dirty_6.8.0-rc1-g4e4b0c0fcf8a-31_riscv64.deb
[sudo] password for debian:
root@lpi4amain:~# dmesg
[ 0.000000] Linux version 6.8.0-rc1-g4e4b0c0fcf8a-dirty (pdp7@thelio) (riscv64-linux-gnu-gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #31 SMP Sun Jan 28 10:26:31 PST 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
@pdp7
pdp7 / meld-on-sshfs.sh
Created January 28, 2024 17:53
meld-on-sshfs.sh
#!/bin/bash -x
if [ $# -eq 0 ]
then
echo "usage: $0 <path>"
fi
MOUNT=/media/pdp7/thelio
THEAD=$MOUNT/dev/kernel/thead-kernel
MAIN=$MOUNT/dev/kernel/revyos
meld $THEAD/$1 $MAIN/$1
@pdp7
pdp7 / linux-image-6.8.0-rc1-g4e4b0c0fcf8a_6.8.0-rc1-g4e4b0c0fcf8a-20_riscv64.txt
Created January 24, 2024 06:20
boot linux-image-6.8.0-rc1-g4e4b0c0fcf8a_6.8.0-rc1-g4e4b0c0fcf8a-20_riscv64.deb
brom_ver 8
[APP][E] protocol_connect failed, exit.
-----------------------------------------
_____ _ _____ _____ _ __
| __ \ (_)/ ____| __ \| |/ /
| |__) | _ _ _ _| (___ | | | | ' /
| _ / | | | | | | |\___ \| | | | <
| | \ \ |_| | |_| | |____) | |__| | . \
|_| \_\__,_|\__, |_|_____/|_____/|_|\_\