From 8c29a3fb0ab9f3fb40abb8988ec93634d2bcbca3 Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Wed, 22 Nov 2023 18:26:27 +0800 Subject: [PATCH] ci: change gitlab ci runner to use Nuclei Qemu 2023.10 Signed-off-by: Huaqi Fang <578567190@qq.com> --- .gitlab-ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 730b7e8..98ed845 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,9 +131,9 @@ cache: - xz -f -z build_bootimages.log - | echo ">>Build and generate qemu images for $SOC - $CORE - $BOOT_MODE" - echo ">>> Apply workaround: change TIMERCLK_FREQ from 32768 to 1000000" + #echo ">>> Apply workaround: change TIMERCLK_FREQ from 32768 to 1000000" #sed -i "s/32768/1000000/" conf/$SOC/*.dts - export TIMER_HZ=1000000 + #export TIMER_HZ=1000000 make freeloader QEMU_FREELOADER=work/$SOC/freeloader_qemu.elf cp work/$SOC/freeloader/freeloader.elf $QEMU_FREELOADER @@ -148,7 +148,7 @@ cache: unset TIMER_HZ - | RUNQEMUSH=work/$SOC/run_qemu.sh - echo "qemu-system-riscv64 -M nuclei_u,download=flashxip -cpu nuclei-ux900fd,ext=$ARCH_EXT -smp 8 -m 256M -bios freeloader_qemu.elf -nographic -drive file=disk.img,if=sd,format=raw" > $RUNQEMUSH + echo "qemu-system-riscv64 -M nuclei_${SOC},download=flashxip -cpu nuclei-ux900fd,ext=$ARCH_EXT -smp 8 -m 2G -bios freeloader_qemu.elf -nographic -drive file=disk.img,if=sd,format=raw" > $RUNQEMUSH chmod +x $RUNQEMUSH - | if [ "x$SOC" == "xdemosoc" ] ; then @@ -217,10 +217,6 @@ cache: script: - echo ">>Run using qemu for $SOC - $CORE - $BOOT_MODE" - | - if [ "x$SOC" != "xdemosoc" ] ; then - echo ">>Will not run qemu simulation for $SOC" - exit 0 - fi cd work/$SOC # $(cat run_qemu.sh) is workaround for directly run bash run_qemu.sh # If do kill it will just kill bash process, the qemu process is not killed