SimpleSSD / SimpleSSD-FullSystem

Open-Source Licensed Educational SSD Simulator for High-Performance Storage and Full-System Evaluations
BSD 3-Clause "New" or "Revised" License
93 stars 47 forks source link

How to install programs in the simpleSSD? #4

Closed somnode closed 6 years ago

somnode commented 6 years ago

Hi,

The OC-SSD device is finally captured when I typing following command: ./nvme list. I would like to do a git clone, but there cannot be done apt-get, and downloading a program with wget also cannot be done because of the network problem.

So, how to create a target?

kukdh1 commented 6 years ago

Hi,

gem5 does not support internet connection with host machine (because of timing differences). You must compile all the programs/libraries on host machine (using cross-compiler, if you use ARM), and copy it to the disk image (e.g., linux-aarch64-linux.img).

To create pblk target, use following commands inside the gem5.

# You can find total number of LUN in nvm notation
# e.g., nvm notation (old): [8/1/512/512/64/8] -> 5th number (64) is total LUN
# e.g., nvm notation (new): [8/8/512/64/8] -> 4th number (64) is total LUN
nvme lnvm create -d nvme0n1 -n lnvm0 -t pblk -b 0 -e 63
# -d : identifier of desired device
# -n : target name of the device to initialize
# -t : identifier of target type
# -b : begin of LUNs to use
# -e : end of LUNs to use (here, 63 = 64 - 1)

This will create block device named /dev/lnvm0.

Thanks.

qjyimyy commented 1 year ago

hello,how can i solve the problem that can't find the type of pblk

If i use 'sudo nvme lnvm info' , there is no target type registered. So I can't create pblk target.