Skip to content

Commit 1b145b8

Browse files
create /ramdisk on boot
1 parent bf45f22 commit 1b145b8

File tree

6 files changed

+23
-2
lines changed

6 files changed

+23
-2
lines changed

cmake/custom_targets.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function(copy_config TARGETFILE SOURCEFILE)
6868
set(FILENAME "${CMAKE_SOURCE_DIR}/${SOURCEFILE}")
6969
set(OUTNAME "${CMAKE_BINARY_DIR}/iso/${TARGETFILE}")
7070
add_custom_command(OUTPUT ${OUTNAME}
71-
COMMAND mkdir -p "${CMAKE_BINARY_DIR}/iso/harddisk" && mkdir -p "${CMAKE_BINARY_DIR}/iso/boot" && mkdir -p "${CMAKE_BINARY_DIR}/iso/devices" && mkdir -p "${CMAKE_BINARY_DIR}/iso" && cp ${FILENAME} ${OUTNAME}
71+
COMMAND mkdir -p "${CMAKE_BINARY_DIR}/iso/harddisk" && mkdir -p "${CMAKE_BINARY_DIR}/iso/ramdisk" && mkdir -p "${CMAKE_BINARY_DIR}/iso/boot" && mkdir -p "${CMAKE_BINARY_DIR}/iso/devices" && mkdir -p "${CMAKE_BINARY_DIR}/iso" && cp ${FILENAME} ${OUTNAME}
7272
DEPENDS ${FILENAME})
7373
add_custom_target(config_${TARGETFILE} ALL DEPENDS ${OUTNAME})
7474
add_dependencies("kernel.bin" config_${TARGETFILE})

docpages/images/firstboot.png

30.6 KB
Loading

docpages/user-guide/07_INDEX.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Welcome to Retro Rocket! This guide is for everyone who wants to use the system,
55
- \subpage introduction
66
- \subpage system-requirements
77
- \subpage getting-started
8+
- \subpage installation
89
- \subpage desktop-and-shell
910
- \subpage file-system
1011
- \subpage commands

docpages/user-guide/getting-started.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,22 @@ This section will guide you through starting Retro Rocket for the first time.
1111
Retro Rocket will load directly from the CD. You don’t need to install anything to your hard disk to try it out.
1212

1313
### First screen
14-
After a short load you will see some diagnostics, and then arrive at the **command shell prompt**:
14+
After a short load you will see some diagnostics and an image of our mascot, *Rocky*, and then arrive at the **command shell prompt**:
1515

16+
\image html firstboot.png
17+
18+
19+
This is where you type commands.
20+
21+
### First commands to try
22+
- `dir` — lists the contents of the current directory.
23+
- `about` — loads and runs the BASIC program called `about`
24+
25+
### Saving your work
26+
When running from the LiveCD, Retro Rocket automatically creates a **1 GB RAM disk**.
27+
- It is mounted at `/ramdisk`.
28+
- Save your BASIC programs there while experimenting.
29+
- Files in the RAM disk are lost when you shut down or restart.
30+
31+
### Installing to hard disk
32+
If you want to keep your work permanently, you can install Retro Rocket to a SATA or NVMe hard disk. See the @ref installation "Installation" section for details.

docpages/user-guide/installation.md

Whitespace-only changes.

os/programs/init.rrbasic

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ MOUNT "/boot", "hd0", "fat32"
1010
PROCmessage("Setting", "keymap")
1111
KEYMAP "qemu"
1212

13+
RD$ = EMPTYRAMDISK$(1024)
14+
MOUNT "/ramdisk", RD$, "rfs"
15+
1316
SPRITELOAD rocky,"/images/boot.png"
1417
PLOT rocky, GRAPHICS_WIDTH - 128 - 16, 8
1518
SCROLLREGION 0, 16

0 commit comments

Comments
 (0)