gem5-users@gem5.org

The gem5 Users mailing list

View all threads

How to use GUEST BINARIES in fs?

TZ
Taiyu Zhou
Sat, Apr 25, 2020 4:49 AM

Hi guys!
I am trying to run gem5 in fs mode and I follow this tutorial http://learning.gem5.org/book/part5/fs_config.html http://learning.gem5.org/book/part5/fs_config.html. But the kernel in this tutorial is too old ( 2.6.22.9). So I try to download the newer ones in http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries. I think it just simply change the config file to point to the newer image and kernel.

self.kernel = 'aarch-system-201901106/binaries/vmlinux.arm64'
self.setDiskImage('disks/aarch64-ubuntu-trusty-headless.img')

But It can’t work.Gem5 reports that

fatal: could not load kernel symbols

Hi guys! I am trying to run gem5 in fs mode and I follow this tutorial http://learning.gem5.org/book/part5/fs_config.html <http://learning.gem5.org/book/part5/fs_config.html>. But the kernel in this tutorial is too old ( 2.6.22.9). So I try to download the newer ones in http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries <http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries>. I think it just simply change the config file to point to the newer image and kernel. self.kernel = 'aarch-system-201901106/binaries/vmlinux.arm64' self.setDiskImage('disks/aarch64-ubuntu-trusty-headless.img') But It can’t work.Gem5 reports that fatal: could not load kernel symbols
CS
Ciro Santilli
Sat, Apr 25, 2020 11:20 AM

I don't know exactly what is going on, but I've tested
aarch-system-201901106/binaries/vmlinux.arm64 in fs.py and it worked
fine.

So the exact same script works with the old kernel but not new one?
Are you sure that the kernel exists at that path? Also try to GDB/PDB
debug it a bit.

On Sat, Apr 25, 2020 at 5:51 AM Taiyu Zhou via gem5-users
<gem5-users(a)gem5.org> wrote:

Hi guys!
I am trying to run gem5 in fs mode and I follow this tutorial http://learning.gem5.org/book/part5/fs_config.html. But the kernel in this tutorial is too old ( 2.6.22.9). So I try to download the newer ones in http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries. I think it just simply change the config file to point to the newer image and kernel.

self.kernel = 'aarch-system-201901106/binaries/vmlinux.arm64'

self.setDiskImage('disks/aarch64-ubuntu-trusty-headless.img')

But It can’t work.Gem5 reports that

fatal: could not load kernel symbols


gem5-users mailing list -- gem5-users(a)gem5.org
To unsubscribe send an email to gem5-users-leave(a)gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

I don't know exactly what is going on, but I've tested aarch-system-201901106/binaries/vmlinux.arm64 in fs.py and it worked fine. So the exact same script works with the old kernel but not new one? Are you sure that the kernel exists at that path? Also try to GDB/PDB debug it a bit. On Sat, Apr 25, 2020 at 5:51 AM Taiyu Zhou via gem5-users <gem5-users(a)gem5.org> wrote: > > Hi guys! > I am trying to run gem5 in fs mode and I follow this tutorial http://learning.gem5.org/book/part5/fs_config.html. But the kernel in this tutorial is too old ( 2.6.22.9). So I try to download the newer ones in http://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries. I think it just simply change the config file to point to the newer image and kernel. > > self.kernel = 'aarch-system-201901106/binaries/vmlinux.arm64' > > self.setDiskImage('disks/aarch64-ubuntu-trusty-headless.img') > > > But It can’t work.Gem5 reports that > > fatal: could not load kernel symbols > > _______________________________________________ > gem5-users mailing list -- gem5-users(a)gem5.org > To unsubscribe send an email to gem5-users-leave(a)gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s