Dear Hoa,

Thank you for the quick answer! It worked! :)

Best regards,
Nikos


Quoting Hoa Nguyen <hoangu...@ucdavis.edu>:

Hi Nikos,

I believe it is due to the default kernel params passed to the kernel
https://gem5.googlesource.com/public/gem5/+/refs/heads/develop/src/python/gem5/components/boards/riscv_board.py#487
.

I think it could be fixed by changing "ro" to "rw", which tells the kernel
to mount "/" as read-write.

Regards,
Hoa Nguyen

On Wed, Jun 8, 2022 at 7:37 AM Νικόλαος Ταμπουρατζής <
ntampourat...@ece.auth.gr> wrote:

Dear gem5 community,

I have successfully run RISCV FS using the following command:

./build/RISCV/gem5.opt configs/example/gem5_library/riscv-fs.py

However, I cannot write anything inside the simulated image because I
get "Read-only file system". How can I resolve it?
My benchmark produces a number of files and it cannot write them
during the simulation.

The terminal output:
  _   _  ____            _     _
| | | |/ ___|__ _ _ __ | |   (_)_ __  _   ___  __
| | | | |   / _` | '_ \| |   | | '_ \| | | \ \/ /
| |_| | |__| (_| | | | | |___| | | | | |_| |>  <
  \___/ \____\__,_|_| |_|_____|_|_| |_|\__,_/_/\_\
Welcome to RiscV

UCanLinux login: root
Password:
root@UCanLinux:~ # ls
index.html
root@UCanLinux:/ # cd /home
root@UCanLinux:/home # ls
root@UCanLinux:/home # mkdir test
mkdir: can't create directory 'test': Read-only file system



Thank you in advance for any help! :)

Best regards,
Nikos
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org



_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to