ARC: Enable excution of ARCv2 defconfigs in simulation
PATCH 1/1 ARC: Enable excution of ARCv2 defconfigs in simulation
Even though we initially called defconfig after FPGA prototyping platform HAPS, it's nevertheless is useful for running the same image in software simulation.
We do a couple of quirks to the config though:
1. Switch from SMP Linux config to UP.
That's needed to make it runnable in Free nSIM which doesn't support SMP (licenceable full version does support SMP though).
2. Add default Ethernet interface for DHCP boot-time initialization so that in nSIM & QEMU we get a networking interface out of the box on start.
And while at it, improve documentation with build & run commands. And to make instructions smaller and more readable swhich from explicit passing all the optopns to the nSIM driver to use of so-called "props" files (basically, a newline-separated list of options).
Inspired by Waldemar's patch [1].
Assumes ARCv3 defconfigs from [2] are already in place, otherwise a subtly rework will be required.
[1] https://lists.buildroot.org/pipermail/buildroot/2023-December/681898.html
[2] https://lists.buildroot.org/pipermail/buildroot/2024-January/682466.html
--- board/synopsys/nsim/arc700.props | 17 ++++ board/synopsys/nsim/hs4x.props | 18 +++++ board/synopsys/nsim/readme.txt | 117 ++++++++++++++++++---------- configs/snps_archs38_haps_defconfig | 3 +- 4 files changed, 111 insertions(+), 44 deletions(-) create mode 100644 board/synopsys/nsim/arc700.props create mode 100644 board/synopsys/nsim/hs4x.props
board/synopsys/nsim/arc700.props new file +17 -0
@@ -0,0 +1,17 @@ +nsim_mem-dev=uart0,kind=dwuart,base=0xf0000000,irq=24 +icache=32768,64,2,0 +dcache=32768,64,4,0 +nsim_mmu=3 +nsim_isa_family=a700 +nsim_isa_atomic_option=1 +nsim_isa_dpfp=none +nsim_isa_shift_option=2 +nsim_isa_swap_option=1 +nsim_isa_bitscan_option=1 +nsim_isa_sat=1 +nsim_isa_mpy32=1 +nsim_isa_enable_timer_0=1 +nsim_isa_enable_timer_1=1 +isa_counters=1 +nsim_isa_pct_counters=8 +nsim_isa_pct_size=48
board/synopsys/nsim/hs4x.props new file +18 -0
@@ -0,0 +1,18 @@ +nsim_isa_family=av2hs +nsim_isa_core=1 +nsim_isa_atomic_option=1 +nsim_isa_ll64_option=1 +nsim_isa_mpy_option=9 +nsim_isa_div_rem_option=2 +nsim_isa_sat=1 +nsim_isa_code_density_option=2 +nsim_isa_enable_timer_0=1 +nsim_isa_enable_timer_1=1 +nsim_isa_rtc_option=1 +icache=65536,64,4,0 +dcache=65536,64,2,0 +mmu_version=4 +mmu_pagesize=8192 +nsim_mem-dev=uart0,kind=dwuart,base=0xf0000000,irq=24 +nsim_isa_number_of_interrupts=32 +nsim_isa_number_of_external_interrupts=32
board/synopsys/nsim/readme.txt +74 -43
120 lines not on this page · raw message
configs/snps_archs38_haps_defconfig +2 -1
@@ -6,6 +6,7 @@ BR2_archs38=y BR2_TARGET_GENERIC_HOSTNAME="zebu_hs" BR2_TARGET_GENERIC_ISSUE="Welcome to the HAPS Development Platform" BR2_TARGET_ROOTFS_INITRAMFS=y +BR2_SYSTEM_DHCP="eth0" # Linux headers same as kernel, a 5.16 series BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16=y
@@ -14,5 +15,5 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16=y BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.16" -BR2_LINUX_KERNEL_DEFCONFIG="haps_hs_smp" +BR2_LINUX_KERNEL_DEFCONFIG="haps_hs" BR2_LINUX_KERNEL_VMLINUX=y
Signature · 6 lines
2.31.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot