Skip to content

Commit

Permalink
renew demo image
Browse files Browse the repository at this point in the history
  • Loading branch information
fish4terrisa-MSDSM committed Jan 3, 2023
1 parent eaca217 commit b343a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You should put the qcow2 image in /storage/emulated/0/archriscv.qcow2
No other path supported.
You can get the image using [CoelacanthusHex/archriscv-scriptlet](https://github.com/CoelacanthusHex/archriscv-scriptlet)
- A demo image is provided:
- [archriscv-demo.qcow2](https://archive.org/download/archriscv-demo-qcow2/archriscv-demo.qcow2)
- [archriscv-demo.qcow2](https://archive.org/download/archriscv-demo-qcow2_202301/archriscv-demo.qcow2)
- username: root
- password: toor
- (The default shell zsh is rather slow. Strongly recommended to chsh to bash)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ public TerminalSession createTermSession(int sessionType, int sessionNumber) {

// Entrypoint script is configured via environment variables.
// Default values should be same as in LauncherPreferences.initializeDefaults().
environment.add("CONFIG_QEMU_RAM=" + prefs.getString(getResources().getString(R.string.qemu_ram_key), "256"));
environment.add("CONFIG_QEMU_RAM=" + prefs.getString(getResources().getString(R.string.qemu_ram_key), "2048"));
environment.add("CONFIG_QEMU_HDD1_PATH=" + prefs.getString(getResources().getString(R.string.qemu_hdd1_path_key),
getExternalFilesDir(null) + "/os_snapshot.qcow2"));
environment.add("CONFIG_QEMU_HDD2_PATH=" + prefs.getString(getResources().getString(R.string.qemu_hdd2_path_key), ""));
environment.add("CONFIG_QEMU_CDROM_PATH=" + prefs.getString(getResources().getString(R.string.qemu_cdrom_path_key), ""));
environment.add("CONFIG_QEMU_DNS=" + prefs.getString(getResources().getString(R.string.qemu_upstream_dns_key), "1.1.1.1"));
environment.add("CONFIG_QEMU_DNS=" + prefs.getString(getResources().getString(R.string.qemu_upstream_dns_key), "8.8.8.8"));
environment.add("CONFIG_QEMU_EXPOSED_PORTS=" + prefs.getString(getResources().getString(R.string.qemu_exposed_ports_key), ""));

String prefix = Installer.getEnvironmentPrefix(appContext);
Expand Down

0 comments on commit b343a07

Please sign in to comment.