gem5 FS模式下mount文件到shell

下面是根據我自己的實際情況,寫一點總結。 教程: 1、掛載linux-x86.img mount -o loop,offset=32256 linux-x86.img /mnt 2、看看/mnt目錄下是否有內容,有內容則掛載成功 ls /mnt 3、把要傳輸的文件拷貝到/mnt目錄下 cp ./hello /mnt 4、在啓動FS模擬之前,確保該loop設備已經被卸載了 umount /mnt
相關文章
相關標籤/搜索