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 lpi4 build and boot flow.sh
Last active February 10, 2024 06:44
th1520 lpi4 build and boot flow
View th1520 lpi4 build and boot flow.sh
#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
View thelio build scripts.sh
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
View config-6.5.0-9-generic_ubuntu-23.10-preinstalled-server-riscv64+unmatched.img.txt
#
# 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
View 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
View 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
View linux-image-6.8.0-rc1-g4e4b0c0fcf8a-dirty_6.8.0-rc1-g4e4b0c0fcf8a-31_riscv64.txt
[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
View 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
View linux-image-6.8.0-rc1-g4e4b0c0fcf8a_6.8.0-rc1-g4e4b0c0fcf8a-20_riscv64.txt
brom_ver 8
[APP][E] protocol_connect failed, exit.
-----------------------------------------
_____ _ _____ _____ _ __
| __ \ (_)/ ____| __ \| |/ /
| |__) | _ _ _ _| (___ | | | | ' /
| _ / | | | | | | |\___ \| | | | <
| | \ \ |_| | |_| | |____) | |__| | . \
|_| \_\__,_|\__, |_|_____/|_____/|_|\_\
@pdp7
pdp7 / linux-image-5.10.113-g944013049165_5.10.113-g944013049165-3_riscv64.txt
Created January 24, 2024 04:40
linux-image-5.10.113-g944013049165_5.10.113-g944013049165-3_riscv64.deb Linux version 5.10.113-g944013049165 (pdp7@thelio)
View linux-image-5.10.113-g944013049165_5.10.113-g944013049165-3_riscv64.txt
brom_ver 8
[APP][E] protocol_connect failed, exit.
-----------------------------------------
_____ _ _____ _____ _ __
| __ \ (_)/ ____| __ \| |/ /
| |__) | _ _ _ _| (___ | | | | ' /
| _ / | | | | | | |\___ \| | | | <
| | \ \ |_| | |_| | |____) | |__| | . \
|_| \_\__,_|\__, |_|_____/|_____/|_|\_\
@pdp7
pdp7 / boot-linux-image-6.7.0-00081-g3f60bbebc61e_6.7.0-00081-g3f60bbebc61e-18_riscv64.txt
Last active January 24, 2024 05:22
linux-image-6.7.0-00081-g3f60bbebc61e_6.7.0-00081-g3f60bbebc61e-18_riscv64.deb
View boot-linux-image-6.7.0-00081-g3f60bbebc61e_6.7.0-00081-g3f60bbebc61e-18_riscv64.txt
brom_ver 8
[APP][E] protocol_connect failed, exit.
-----------------------------------------
_____ _ _____ _____ _ __
| __ \ (_)/ ____| __ \| |/ /
| |__) | _ _ _ _| (___ | | | | ' /
| _ / | | | | | | |\___ \| | | | <
| | \ \ |_| | |_| | |____) | |__| | . \
|_| \_\__,_|\__, |_|_____/|_____/|_|\_\