Skip to content

Commit

Permalink
ci: change gitlab ci runner to use Nuclei Qemu 2023.10
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Nov 24, 2023
1 parent 1f239b6 commit 8c29a3f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8c29a3f

Please sign in to comment.