首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gem5,计算机体系结构

Gem5,计算机体系结构
EN

Stack Overflow用户
提问于 2021-02-23 12:01:12
回答 2查看 97关注 0票数 0

我试图在FS模式下运行gem5,方法是使用命令as:“build/arm/giop5.trugs/gem5/ fs.py gem5 --arm=/home/coep/gem5 5 2/full_system_images/vmlinux.arm.smp.fb.3.2/vmlinux.arm.smp.fb.3.2",并获得错误为:”用法:fs.py选项fs.py:错误:选项--arm-iset:无效选择:‘/home/coep/gem5 5’(从'arm‘中选择,‘拇指’,'aarch64')",请帮我解决这个错误。谢谢。

EN

回答 2

Stack Overflow用户

发布于 2021-04-08 08:03:27

我假设--arm=/home/coep/gem5...vmlinux.arm.smp.fb.3.2参数指定到来宾内核的路径,在这种情况下,应该是--kernel=...

代码语言:javascript
复制
build/ARM/gem5.opt \
configs/example/fs.py \
--disk-image=/home/coep/gem5\ 2/full_system_images/aarch32-ubuntu-natty-headless.img \
--kernel=/home/coep/gem5\ 2/full_system_images/vmlinux.arm.smp.fb.3.2/vmlinux.arm.smp.fb.3.2

论点及其解释在configs/common/Options.py中找到

票数 0
EN

Stack Overflow用户

发布于 2021-05-09 07:18:23

导致此错误的原因可能有多种,其中之一可能是磁盘映像文件的路径不正确。

我在FS模式下运行了gem5,并在Ubuntu18.04LTS上启动了Linux。

您可以遵循以下步骤,第一步是下载和安装完整的系统二进制文件和磁盘映像文件。

代码语言:javascript
复制
 1. $ mkdir full_system_image
 2. $ cd full_system_image/
 3. $ wget http://www.m5sim.org/dist/current/arm/aarch-system-2014-10.tar.bz2
 4. $ tar jxf aarch-system-2014-10.tar.bz2
 5. $ echo "export M5_PATH=/Path to the full_system_image directory/full_system_images/" >> ~/.bashrc
 6. $ source ~/.bashrc
 7. $ echo $M5_PATH  (- check if the path is set correct)

现在路径已经设置好了,下一步是在FS模式下运行gem5。

代码语言:javascript
复制
 1. connect to gem5 base directory
 2. $ ./build/ARM/gem5.opt configs/example/fs.py --disk-image=/home/full_system_image/disks/aarch32-ubuntu-natty-headless.img
 3. Note: --disk-image=path to the full_system_image/disks/aarch32-ubuntu-natty-headless.img
 4. open a new terminal and listen to port 3456 
 5. $ telnet localhost 3456
 6. Here 3456 is a port number on the gem5 terminal
 7. this will take around 30 mins depending on the machine performance.
 8. After this, at the end you will get something like this

    input: AT Raw Set 2 keyboard as /devices/smb.14/motherboard.15/iofpga.17/1c060000.kmi/serio0/input/input0
    input: touchkitPS/2 eGalax Touchscreen as 
    /devices/smb.14/motherboard.15/iofpga.17/1c070000.kmi/serio1/input/input2
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (sda1): using internal journal
    EXT3-fs (sda1): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 8:1.
    Freeing unused kernel memory: 292K (806aa000 - 806f3000)
    random: init urandom read with 14 bits of entropy available
    Ubuntu 11.04 gem5sim ttySA0

 9. login as root

瞧,您已经在FS模式下运行了gem5。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66332726

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档