Skip to content

Commit 202cc56

Browse files
committed
Adjust initrd memory space to 35MiB
This commit adjusts the initrd memory space to 35MiB to fit kernel objects related to virtio-gpu, which requires ~30MiB.
1 parent 1bb6b35 commit 202cc56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#define RAM_SIZE (512 * 1024 * 1024)
99
#define DTB_SIZE (1 * 1024 * 1024)
10-
#define INITRD_SIZE (8 * 1024 * 1024)
10+
#define INITRD_SIZE (35 * 1024 * 1024)
1111

1212
void ram_read(vm_t *core,
1313
uint32_t *mem,

minimal.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
chosen {
1313
bootargs = "earlycon console=ttyS0";
1414
stdout-path = "serial0";
15-
linux,initrd-start = <0x1f700000>; /* @403 MiB (503 * 1024 * 1024) */
15+
linux,initrd-start = <0x1dc00000>; /* @476 MiB (476 * 1024 * 1024) */
1616
linux,initrd-end = <0x1fefffff>; /* @511 MiB (511 * 1024 * 1024 - 1) */
1717
};
1818

0 commit comments

Comments
 (0)