mirror of
https://github.com/lupyuen/nuttx-star64.git
synced 2025-01-12 20:58:32 +08:00
Initial RAM Disk
This commit is contained in:
parent
289ff4b42b
commit
02e1b73fdf
1 changed files with 4 additions and 2 deletions
|
@ -3003,10 +3003,10 @@ MEMORY
|
|||
{
|
||||
...
|
||||
/* Added RAM Disk */
|
||||
ramdisk (rwx) : ORIGIN = 0x80800000, LENGTH = 4096K /* w/ cache */
|
||||
ramdisk (rwx) : ORIGIN = 0x80800000, LENGTH = 16M /* w/ cache */
|
||||
|
||||
/* This won't work, crashes with a Memory Mgmt Fault...
|
||||
ramdisk (rwx) : ORIGIN = 0x84000000, LENGTH = 4096K */ /* w/ cache */
|
||||
ramdisk (rwx) : ORIGIN = 0x84000000, LENGTH = 16M */ /* w/ cache */
|
||||
}
|
||||
|
||||
/* Added RAM Disk */
|
||||
|
@ -3024,6 +3024,8 @@ __ramdisk_size = LENGTH(ramdisk);
|
|||
__ramdisk_end = ORIGIN(ramdisk) + LENGTH(ramdisk);
|
||||
```
|
||||
|
||||
(We increased RAM Disk Memory from 4 MB to 16 MB because our RAM Disk is now bigger)
|
||||
|
||||
At Startup, we mount the RAM Disk: [qemu_rv_appinit.c](https://github.com/lupyuen2/wip-pinephone-nuttx/blob/ramdisk/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c#L83C1-L179C2)
|
||||
|
||||
```c
|
||||
|
|
Loading…
Reference in a new issue