[gem5-dev] Change in gem5/gem5[develop]: util,python: Updated git-pre-commit.py to use Python3
Bobby R. Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/38475 ) Change subject: util,python: Updated git-pre-commit.py to use Python3 .. util,python: Updated git-pre-commit.py to use Python3 Change-Id: I3897a57237637a55e75b3c9c4cb43918b39cf7d0 --- M util/git-pre-commit.py 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/git-pre-commit.py b/util/git-pre-commit.py index 4e443ec..bf13f3b 100755 --- a/util/git-pre-commit.py +++ b/util/git-pre-commit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright (c) 2016 ARM Limited # All rights reserved -- To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/38475 To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings Gerrit-Project: public/gem5 Gerrit-Branch: develop Gerrit-Change-Id: I3897a57237637a55e75b3c9c4cb43918b39cf7d0 Gerrit-Change-Number: 38475 Gerrit-PatchSet: 1 Gerrit-Owner: Bobby R. Bruce Gerrit-MessageType: newchange ___ gem5-dev mailing list -- gem5-dev@gem5.org To unsubscribe send an email to gem5-dev-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
[gem5-dev] Change in gem5/gem5[develop]: util,python: Updated maintainers.py to fix deprecation warning
Bobby R. Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/38476 ) Change subject: util,python: Updated maintainers.py to fix deprecation warning .. util,python: Updated maintainers.py to fix deprecation warning The following warning was being thrown: ``` util/maint/lib/maintainers.py:120: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ``` This is fixed by adding `Loader=yaml.FullLoader` when calling `yaml.load()`. Change-Id: I3b79115379a45409967a8848175658ab3c13bfc7 --- M util/maint/lib/maintainers.py 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/maint/lib/maintainers.py b/util/maint/lib/maintainers.py index 0b29b67..5d993f8 100644 --- a/util/maint/lib/maintainers.py +++ b/util/maint/lib/maintainers.py @@ -106,7 +106,7 @@ @classmethod def from_yaml(cls, yaml_str: str) -> "Maintainers": -return cls(yaml.load(yaml_str)) +return cls(yaml.load(yaml_str, Loader=yaml.FullLoader)) @classmethod def _load_maintainers_file(cls, @@ -117,9 +117,9 @@ if isinstance(path_or_file, str): with open(path_or_file, 'r') as fin: -return yaml.load(fin) +return yaml.load(fin, Loader=yaml.FullLoader) else: -return yaml.load(path_or_file) +return yaml.load(path_or_file, Loader=yaml.FullLoader) @classmethod def _parse_subsystem(cls, tag: str, ydict: Mapping[str, Any]) -> Subsystem: -- To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/38476 To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings Gerrit-Project: public/gem5 Gerrit-Branch: develop Gerrit-Change-Id: I3b79115379a45409967a8848175658ab3c13bfc7 Gerrit-Change-Number: 38476 Gerrit-PatchSet: 1 Gerrit-Owner: Bobby R. Bruce Gerrit-MessageType: newchange ___ gem5-dev mailing list -- gem5-dev@gem5.org To unsubscribe send an email to gem5-dev-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
[gem5-dev] Re: Kernel ``init'' in Ubuntu 18.04 for ARM
Hi Samuel, Thanks for reporting this. There is an init file, it is in the root directory: /init.gem5. You can manually select that by using the --kernel-init option in fs_bigLITTLE.py I will amend the distributed disk image providing a symlink to /init.gem5 in /sbin/init for consistency With our previous disk images Kind Regards Giacomo > -Original Message- > From: Samuel Thomas via gem5-dev > Sent: 11 December 2020 15:42 > To: gem5-dev@gem5.org > Cc: Samuel Thomas > Subject: [gem5-dev] Kernel ``init'' in Ubuntu 18.04 for ARM > > Hi all, > > I'm building and running gem5 using the guest binary Ubuntu 18.04 image for > ARM64 linked from the gem5 guest binaries page > (https://www.gem5.org/documentation/general_docs/fullsystem/guest_binari > es). However, when running the system in full system for ARM bigLITTLE > > ``` > gem5-workspace/gem5/build/ARM/base-gem5.opt gem5- > workspace/gem5/configs/example/arm/fs_bigLITTLE.py --kernel gem5- > workspace/gem5/dist/binaries/vmlinux.arm64 --cpu-type atomic --dtb gem5- > workspace/gem5/system/arm/dt/armv8_gem5_v1_big_little_2_2.dtb --disk > gem5-workspace/gem5/dist/disks/ubuntu-18.04-arm64-docker.img -- > bootscript gem5-workspace/gem5/bootscripts/test.rcS > ``` > > I get the following error > > ``` > [3.915428] Kernel panic - not syncing: Requested init /sbin/init failed > (error - > 2). > [3.915434] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0+ #1 > [3.915439] Hardware name: V2P-AARCH64 (DT) > [3.915442] Call trace: > [3.915447] dump_backtrace+0x0/0x1c0 > [3.915453] show_stack+0x14/0x20 > [3.915458] dump_stack+0x8c/0xac > [3.915462] panic+0x130/0x288 > [3.915467] kernel_init+0xa8/0x108 > [3.915472] ret_from_fork+0x10/0x18 > [3.915477] Kernel Offset: disabled > [3.915481] CPU features: 0x21c06492 > [3.915485] Memory Limit: 2048 MB > [3.915492] ---[ end Kernel panic - not syncing: Requested init /sbin/init > failed > (error -2). ]--- > ``` > > And a kernel panic in the host terminal process. > > I mounted the Ubuntu 18.04 disk image into a temporary directory to examine > the contents of the /sbin/ directory to confirm that there wasn't an init file > there (which there was not). > > My next step was to look at the /sbin/ directory of an Ubuntu 18.04 virtual > machine to see if perhaps there was a different kernel init file being used > under this version of Ubuntu (I also have the "aarch64-ubuntu-trusty- > headless.img" downloaded from gem5 guest binaries, and there is a file > /sbin/init in that image) so that I could just change where gem5 looks for > this > binary, but - based on the VM - it seems as though this file structure hasn't > changed. > > Is this an issue with gem5's released version of Ubuntu 18.04 for ARM? And if > so, is there either (a) an alternative image file for Ubuntu 18.04 for ARM > with > the appropriate kernel initialization files or (b) a place where those files > exist > where I can install them onto the current Ubuntu 18.04 image? > > Thank you for your help! > > Sam > ___ > gem5-dev mailing list -- gem5-dev@gem5.org To unsubscribe send an email to > gem5-dev- > le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ___ gem5-dev mailing list -- gem5-dev@gem5.org To unsubscribe send an email to gem5-dev-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
[gem5-dev] Kernel ``init'' in Ubuntu 18.04 for ARM
Hi all, I'm building and running gem5 using the guest binary Ubuntu 18.04 image for ARM64 linked from the gem5 guest binaries page (https://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries). However, when running the system in full system for ARM bigLITTLE ``` gem5-workspace/gem5/build/ARM/base-gem5.opt gem5-workspace/gem5/configs/example/arm/fs_bigLITTLE.py --kernel gem5-workspace/gem5/dist/binaries/vmlinux.arm64 --cpu-type atomic --dtb gem5-workspace/gem5/system/arm/dt/armv8_gem5_v1_big_little_2_2.dtb --disk gem5-workspace/gem5/dist/disks/ubuntu-18.04-arm64-docker.img --bootscript gem5-workspace/gem5/bootscripts/test.rcS ``` I get the following error ``` [3.915428] Kernel panic - not syncing: Requested init /sbin/init failed (error -2). [3.915434] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0+ #1 [3.915439] Hardware name: V2P-AARCH64 (DT) [3.915442] Call trace: [3.915447] dump_backtrace+0x0/0x1c0 [3.915453] show_stack+0x14/0x20 [3.915458] dump_stack+0x8c/0xac [3.915462] panic+0x130/0x288 [3.915467] kernel_init+0xa8/0x108 [3.915472] ret_from_fork+0x10/0x18 [3.915477] Kernel Offset: disabled [3.915481] CPU features: 0x21c06492 [3.915485] Memory Limit: 2048 MB [3.915492] ---[ end Kernel panic - not syncing: Requested init /sbin/init failed (error -2). ]--- ``` And a kernel panic in the host terminal process. I mounted the Ubuntu 18.04 disk image into a temporary directory to examine the contents of the /sbin/ directory to confirm that there wasn't an init file there (which there was not). My next step was to look at the /sbin/ directory of an Ubuntu 18.04 virtual machine to see if perhaps there was a different kernel init file being used under this version of Ubuntu (I also have the "aarch64-ubuntu-trusty-headless.img" downloaded from gem5 guest binaries, and there is a file /sbin/init in that image) so that I could just change where gem5 looks for this binary, but - based on the VM - it seems as though this file structure hasn't changed. Is this an issue with gem5's released version of Ubuntu 18.04 for ARM? And if so, is there either (a) an alternative image file for Ubuntu 18.04 for ARM with the appropriate kernel initialization files or (b) a place where those files exist where I can install them onto the current Ubuntu 18.04 image? Thank you for your help! Sam ___ gem5-dev mailing list -- gem5-dev@gem5.org To unsubscribe send an email to gem5-dev-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s