mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Updated buildroot to use kernel 6.6 and added dedicated qemu emulation script.
This commit is contained in:
parent
e1a7c7986a
commit
13908ac41c
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated file; DO NOT EDIT.
|
# Automatically generated file; DO NOT EDIT.
|
||||||
# Buildroot 2023.05.2-166-gb362115b25 Configuration
|
# Buildroot 2023.05.3 Configuration
|
||||||
#
|
#
|
||||||
BR2_HAVE_DOT_CONFIG=y
|
BR2_HAVE_DOT_CONFIG=y
|
||||||
BR2_HOST_GCC_AT_LEAST_4_9=y
|
BR2_HOST_GCC_AT_LEAST_4_9=y
|
||||||
@ -399,15 +399,16 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT=""
|
|||||||
# Kernel
|
# Kernel
|
||||||
#
|
#
|
||||||
BR2_LINUX_KERNEL=y
|
BR2_LINUX_KERNEL=y
|
||||||
BR2_LINUX_KERNEL_LATEST_VERSION=y
|
# BR2_LINUX_KERNEL_LATEST_VERSION is not set
|
||||||
# BR2_LINUX_KERNEL_LATEST_CIP_VERSION is not set
|
# BR2_LINUX_KERNEL_LATEST_CIP_VERSION is not set
|
||||||
# BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION is not set
|
# BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION is not set
|
||||||
# BR2_LINUX_KERNEL_CUSTOM_VERSION is not set
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
# BR2_LINUX_KERNEL_CUSTOM_TARBALL is not set
|
# BR2_LINUX_KERNEL_CUSTOM_TARBALL is not set
|
||||||
# BR2_LINUX_KERNEL_CUSTOM_GIT is not set
|
# BR2_LINUX_KERNEL_CUSTOM_GIT is not set
|
||||||
# BR2_LINUX_KERNEL_CUSTOM_HG is not set
|
# BR2_LINUX_KERNEL_CUSTOM_HG is not set
|
||||||
# BR2_LINUX_KERNEL_CUSTOM_SVN is not set
|
# BR2_LINUX_KERNEL_CUSTOM_SVN is not set
|
||||||
BR2_LINUX_KERNEL_VERSION="6.3.13"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6"
|
||||||
|
BR2_LINUX_KERNEL_VERSION="6.6"
|
||||||
BR2_LINUX_KERNEL_PATCH=""
|
BR2_LINUX_KERNEL_PATCH=""
|
||||||
# BR2_LINUX_KERNEL_USE_DEFCONFIG is not set
|
# BR2_LINUX_KERNEL_USE_DEFCONFIG is not set
|
||||||
# BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG is not set
|
# BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG is not set
|
||||||
@ -433,6 +434,7 @@ BR2_LINUX_KERNEL_GZIP=y
|
|||||||
#
|
#
|
||||||
# Linux Kernel Extensions
|
# Linux Kernel Extensions
|
||||||
#
|
#
|
||||||
|
# BR2_LINUX_KERNEL_EXT_RTAI is not set
|
||||||
# BR2_LINUX_KERNEL_EXT_EV3DEV_LINUX_DRIVERS is not set
|
# BR2_LINUX_KERNEL_EXT_EV3DEV_LINUX_DRIVERS is not set
|
||||||
# BR2_LINUX_KERNEL_EXT_FBTFT is not set
|
# BR2_LINUX_KERNEL_EXT_FBTFT is not set
|
||||||
# BR2_LINUX_KERNEL_EXT_AUFS is not set
|
# BR2_LINUX_KERNEL_EXT_AUFS is not set
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
memory@80000000 {
|
memory@80000000 {
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x00 0x80000000 0x00 0x08000000>;
|
reg = <0x00 0x80000000 0x00 0x10000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
cpus {
|
cpus {
|
||||||
|
49
linux/testvector-generation/EmulateLinux.sh
Executable file
49
linux/testvector-generation/EmulateLinux.sh
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
usage() { echo "Usage: $0 [-h] [-b <path/to/buildroot>] [-d <path/to/device tree>]" 1>&2; exit 1; }
|
||||||
|
|
||||||
|
help() {
|
||||||
|
echo "Usage: $0 [OPTIONS] <device>"
|
||||||
|
echo " -b <path/to/buildroot> get images from given buildroot"
|
||||||
|
echo " -d <device tree name> specify device tree to use"
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
# defaults
|
||||||
|
imageDir=$RISCV/buildroot/output/images
|
||||||
|
DEVICE_TREE=../devicetree/wally-virt.dtb
|
||||||
|
|
||||||
|
# Process options and arguments. The following code grabs the single
|
||||||
|
# sdcard device argument no matter where it is in the positional
|
||||||
|
# parameters list.
|
||||||
|
ARGS=()
|
||||||
|
while [ $OPTIND -le "$#" ] ; do
|
||||||
|
if getopts "hb:d:" arg ; then
|
||||||
|
case "${arg}" in
|
||||||
|
h) help
|
||||||
|
;;
|
||||||
|
b) BUILDROOT=${OPTARG}
|
||||||
|
;;
|
||||||
|
d) DEVICE_TREE=${OPTARG}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
ARGS+=("${!OPTIND}")
|
||||||
|
((OPTIND++))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# File location variables
|
||||||
|
imageDir=$BUILDROOT/output/images
|
||||||
|
|
||||||
|
#imageDir=$RISCV/buildroot/output/images
|
||||||
|
imageDir=~/repos/buildroot-sept2023/output/images
|
||||||
|
tvDir=$RISCV/linux-testvectors
|
||||||
|
tcpPort=1239
|
||||||
|
|
||||||
|
# QEMU Simulation
|
||||||
|
qemu-system-riscv64 \
|
||||||
|
-M virt -m 256M -dtb $DEVICE_TREE \
|
||||||
|
-nographic \
|
||||||
|
-bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro"
|
||||||
|
-singlestep -rtc clock=vm -icount shift=0,align=off,sleep=on
|
Loading…
Reference in New Issue
Block a user