From: Richard Cooper Date: Wed, 17 Jun 2020 19:13:32 +0000 (+0100) Subject: configs: Update starter_fs.py for latest Arm FS binaries. X-Git-Tag: v20.1.0.0~204 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=229f955f6ffd8fbda7f00dd8b81715bef8086f0c;p=gem5.git configs: Update starter_fs.py for latest Arm FS binaries. Updated the default kernel and root device names to match the latest Arm full-system binaries available for download on the gem5 website. Also added a command line option to allow the root device to be specified as an optional command line argument. Change-Id: I27f90ffaf0f4b35c5dcc4c22ac2fbd34f8a040a4 Reviewed-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30814 Maintainer: Andreas Sandberg Tested-by: kokoro --- diff --git a/configs/example/arm/starter_fs.py b/configs/example/arm/starter_fs.py index 3033890f0..8dee13777 100644 --- a/configs/example/arm/starter_fs.py +++ b/configs/example/arm/starter_fs.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016-2017 ARM Limited +# Copyright (c) 2016-2017, 2020 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall @@ -58,9 +58,9 @@ from common.cores.arm import HPI import devices -default_dist_version = '20170616' -default_kernel = 'vmlinux.vexpress_gem5_v1_64.' + default_dist_version +default_kernel = 'vmlinux.arm64' default_disk = 'linaro-minimal-aarch64.img' +default_root_device = '/dev/vda1' # Pre-defined CPU configurations. Each tuple must be ordered as : (cpu_class, @@ -112,7 +112,7 @@ def create(args): # Add the PCI devices we need for this system. The base system # doesn't have any PCI devices by default since they are assumed - # to be added by the configurastion scripts needin them. + # to be added by the configuration scripts needing them. system.pci_devices = [ # Create a VirtIO block device for the system's boot # disk. Attach the disk image using gem5's Copy-on-Write @@ -165,7 +165,7 @@ def create(args): # memory layout. "norandmaps", # Tell Linux where to find the root disk image. - "root=/dev/vda", + "root=%s" % args.root_device, # Mount the root disk read-write by default. "rw", # Tell Linux about the amount of physical memory present. @@ -206,6 +206,10 @@ def main(): parser.add_argument("--disk-image", type=str, default=default_disk, help="Disk to instantiate") + parser.add_argument("--root-device", type=str, + default=default_root_device, + help="OS device name for root partition (default: {})" + .format(default_root_device)) parser.add_argument("--script", type=str, default="", help = "Linux bootscript") parser.add_argument("--cpu", type=str, choices=list(cpu_types.keys()),