gem5-users@gem5.org

The gem5 Users mailing list

View all threads

RISCV FS Read-only file system

Νικόλαος Ταμπουρατζής
Wed, Jun 8, 2022 2:34 PM

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

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
HN
Hoa Nguyen
Wed, Jun 8, 2022 9:30 PM

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 Νικόλαος Ταμπουρατζής <
ntampouratzis@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-leave@gem5.org

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 Νικόλαος Ταμπουρατζής < ntampouratzis@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-leave@gem5.org >
Νικόλαος Ταμπουρατζής
Thu, Jun 9, 2022 10:39 AM

Dear Hoa,

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

Best regards,
Nikos

Quoting Hoa Nguyen hoanguyen@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 Νικόλαος Ταμπουρατζής <
ntampouratzis@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-leave@gem5.org

Dear Hoa, Thank you for the quick answer! It worked! :) Best regards, Nikos Quoting Hoa Nguyen <hoanguyen@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 Νικόλαος Ταμπουρατζής < > ntampouratzis@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-leave@gem5.org >>