Hi Pedro, Please check inline replies for more info
> -----Original Message----- > From: Pedro Becker via gem5-users <[email protected]> > Sent: 22 March 2021 14:15 > To: [email protected] > Cc: Pedro Becker <[email protected]> > Subject: [gem5-users] Re: Cannot boot full-system aarch64 > > Thanks, Arthur and Giocomon for the feedback. > I tried the suggestions but none of them worked. Let me give you more > information about each of them: > > 1) fs.py with older image: > same panic error as above. > > 2) fs.py with --bare-metal and --param 'system.highest_el_is_64 = True' (but > no --param 'system.auto_reset_addr_64 = > True'): > fatal: fatal condition !system->isMemAddr(mapper(_start)) || !system- > >isMemAddr(mapper(_end)) occurred: Kernel is mapped to invalid location > (not memory). start (0xffffff8008080000) - end (0xffffff8008aa74b0) > 0xffffff8008080000:0xffffff8008aa74b0 > Memory Usage: 989592 KBytes > The bare-metal option shouldn't be used. It is basically informing fs.py to not use a bootloader (it is meant to be used to run baremetal binaries) so it is actually conflicting with your --bootloader option. > 3) Using arm/starter_fs.py fails with same panic message as above > > ./build/ARM/gem5.opt configs/example/arm/starter_fs.py --kernel > $M5_PATH/binaries/vmlinux.arm64 --disk-image > /home/pedro/Projects/gem5/fs_files/ubuntu-18.04-arm64-docker.img -- > root /dev/vda > gem5 Simulator System. http://gem5.org > gem5 is copyrighted software; use the --copyright option for details. > > gem5 version 20.1.0.4 > gem5 compiled Mar 22 2021 12:53:04 > gem5 started Mar 22 2021 15:08:37 > gem5 executing on pedro-upc, pid 12936 > command line: ./build/ARM/gem5.opt configs/example/arm/starter_fs.py > --kernel /home/pedro/Projects/gem5/fs_files/aarch-system- > 201901106/binaries/vmlinux.arm64 --disk-image > /home/pedro/Projects/gem5/fs_files/ubuntu-18.04-arm64-docker.img -- > root /dev/vda > > info: Using kernel entry physical address at 0x80080000 > warn: DTB file specified, but no device tree support in kernel > warn: Existing EnergyCtrl, but no enabled DVFSHandler found. > panic: panic condition !e occurred: Failed to find kernel symbol 'panic' I'd suggest to do the following: a) Delete the build folder and rebuild gem5 from scratch b) Redownload the guest binary tarball from <- IMPORTANT https://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries Reason why I am advising for option b is because it seems there's something wrong with the loaded kernel: the panic symbol Is not found within the image and same applies with the "unflatten_device_tre" symbol; this is why gem5 is printing this warning: "warn: DTB file specified, but no device tree support in kernel" FYI I am redownloaded the tarball and I am not able to reproduce your problem so I am temped to say there's something wrong with your setup. What happens if you check for kernel header+symbols with readelf? > > > 4) Trying --bare-metal with arm/starter_fs.py does not work because the > script does not expect that option. So I could not try if it helps. As explained above, --bare-metal option shouldn't be used with the software stack you are using > > 5) I also downloaded a 32 bit image and pointed that (testing with both > arm/starter_fs.py and fs.py) and also pointing the vmlinux.arm (not arm64) > and had the same panic message. > > I'll try to rollback to an older version and see if it works (and at which > commit > things broke). In the meantime, further suggestions are welcome. > > Thank you. > Pedro. > _______________________________________________ > gem5-users mailing list -- [email protected] To unsubscribe send an > email to gem5-users- > [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Kind Regards Giacomo 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-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
