You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c9180e2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/config_txt/boot.adoc
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,8 @@ NOTE: Newer firmware supports the loading of multiple `ramfs` files. You should
73
73
[[initramfs]]
74
74
=== `initramfs`
75
75
76
+
NOTE: Building and updating `initramfs` is considered an advanced technique that's undertaken only by experienced users. It isn't officially supported by Raspberry Pi and we therefore don't provide instructions for it.
77
+
76
78
The `initramfs` command specifies both the ramfs filename *and* the memory address to which to load it. It performs the actions of both `ramfsfile` and `ramfsaddr` in one parameter. The address can also be `followkernel` (or `0`) to place it in memory after the kernel image. Example values are: `initramfs initramf.gz 0x00800000` or `initramfs init.gz followkernel`. As with `ramfsfile`, newer firmwares allow the loading of multiple files by comma-separating their names.
77
79
78
80
NOTE: This option uses different syntax from all the other options, and you should not use the `=` character here.
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/configuration/reference.adoc
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,9 +50,11 @@ Text-based housekeeping information containing the date and git commit ID of the
50
50
51
51
==== `initramfs*`
52
52
53
+
NOTE: Building and updating `initramfs` is considered an advanced technique that's undertaken only by experienced users. It isn't officially supported by Raspberry Pi and we therefore don't provide instructions for it.
54
+
53
55
Contents of the initial ramdisk. This loads a temporary root file system into memory before the real root file system can be mounted.
54
56
55
-
Raspberry Pi OS _Bookworm_ includes an `initramfs` file by default. To enable the initial ramdisk, configure it in xref:config_txt.adoc[`config.txt`] with the xref:config_txt.adoc#auto_initramfs[`auto_initramfs`] keyword.
57
+
Raspberry Pi OS _Bookworm_ and later include an `initramfs` file by default. To enable the initial ramdisk, configure it in xref:config_txt.adoc[`config.txt`] with the xref:config_txt.adoc#auto_initramfs[`auto_initramfs`] keyword.
56
58
57
59
Raspberry Pi OS _Trixie_ includes the `auto_initramfs` keyword by default.
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/linux_kernel/building.adoc
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,16 +223,29 @@ $ sudo reboot
223
223
224
224
[TIP]
225
225
====
226
-
Alternatively, copy the kernel with a different filename (for example, `kernel-myconfig.img`) instead of overwriting the `kernel.img` file. Then, edit `config.txt` in the boot partition to select your kernel:
226
+
Alternatively, copy the kernel with a different filename (for example, `kernel-myconfig.img`) instead of overwriting the `$KERNEL.img` file. Then, edit `config.txt` in the boot partition to select your kernel:
227
227
228
228
[source,ini]
229
229
----
230
230
kernel=kernel-myconfig.img
231
231
----
232
232
233
233
Combine this approach with a custom `LOCALVERSION` to keep your custom kernel separate from the stock kernel image managed by the system. With this arrangement, you can quickly revert to a stock kernel in the event that your kernel cannot boot.
234
+
235
+
Raspberry Pi OS Bookworm and later include an `initramfs` by default, enabled by using `auto_initramfs` in `config.txt`.
236
+
237
+
When `auto_initramfs` is set to `1`, the firmware expects the `initramfs` filename to match the kernel filename by replacing the `kernel` prefix with `initramfs` (and omitting any file extension). For example, `kernel-myconfig.img` looks for `initramfs-myconfig`.
238
+
239
+
If you don't provide a matching filename, you must specify the ramdisk using an explicit `initramfs` directive without an `=` sign, for example:
240
+
241
+
[source,ini]
242
+
----
243
+
initramfs <filename> followkernel
244
+
----
234
245
====
235
246
247
+
NOTE: Building and updating `initramfs` is considered an advanced technique that's undertaken only by experienced users. It isn't officially supported by Raspberry Pi and we therefore don't provide instructions for it.
248
+
236
249
=== Cross-compile the kernel
237
250
238
251
First, you will need a suitable Linux cross-compilation host. We tend to use Ubuntu; since Raspberry Pi OS is also a Debian distribution, compilation commands are similar.
@@ -459,15 +472,24 @@ $ sudo umount mnt/root
459
472
460
473
Finally, connect the boot media to your Raspberry Pi and connect it to power to run your freshly-compiled kernel.
461
474
462
-
463
475
[TIP]
464
476
====
465
-
Alternatively, copy the kernel with a different filename (for example, `kernel-myconfig.img`) instead of overwriting the `kernel.img` file. Then, edit `config.txt` in the boot partition to select your kernel:
477
+
Alternatively, copy the kernel with a different filename (for example, `kernel-myconfig.img`) instead of overwriting the `$KERNEL.img` file. Then, edit `config.txt` in the boot partition to select your kernel:
466
478
467
479
[source,ini]
468
480
----
469
481
kernel=kernel-myconfig.img
470
482
----
471
483
472
484
Combine this approach with a custom `LOCALVERSION` to keep your custom kernel separate from the stock kernel image managed by the system. With this arrangement, you can quickly revert to a stock kernel in the event that your kernel cannot boot.
473
-
====
485
+
486
+
Raspberry Pi OS Bookworm and later include an `initramfs` by default, enabled by using `auto_initramfs` in `config.txt`.
487
+
488
+
When `auto_initramfs` is set to `1`, the firmware expects the `initramfs` filename to match the kernel filename by replacing the `kernel` prefix with `initramfs` (and omitting any file extension). For example, `kernel-myconfig.img` looks for `initramfs-myconfig`.
489
+
490
+
If you don't provide a matching filename, you must specify the ramdisk using an explicit `initramfs` directive without an `=` sign, for example:
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/raspberry-pi/eeprom-bootloader.adoc
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -475,7 +475,9 @@ Default: `""` (not set)
475
475
476
476
The Raspberry Pi Imager application is configured with a JSON file downloaded at startup. By default, Raspberry Pi Imager uses the JSON at https://downloads.raspberrypi.com/os_list_imagingutility_v4.json.
477
477
478
-
Set `IMAGER_REPO_URL` in the EEPROM configuration to specify the location of the JSON file to use during a network install with the embedded Raspberry Pi Imager.
478
+
// Set `IMAGER_REPO_URL` in the EEPROM configuration to specify the location of the JSON file to use during a network install with the embedded Raspberry Pi Imager.
479
+
480
+
NOTE: Using `IMAGER_REPO_URL` to configure a network install with the embedded Raspberry Pi Imager isn't currently supported because of a https://github.com/raspberrypi/rpi-imager/issues/894[known issue].
479
481
480
482
You can also change the URL of the JSON file used by the Raspberry Pi Imager application to get it to offer your own images by one of the following methods:
Copy file name to clipboardExpand all lines: documentation/asciidoc/microcontrollers/micropython/what-is-micropython.adoc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,5 @@
3
3
MicroPython is a full implementation of the Python 3 programming language that runs directly on embedded hardware like Raspberry Pi Pico. You get an interactive prompt (the REPL) to execute commands immediately through USB Serial, and a built-in filesystem. The Pico port of MicroPython includes modules for accessing low-level chip-specific hardware.
4
4
5
5
* The https://github.com/micropython/micropython/wiki[MicroPython Wiki]
6
-
* The https://forum.micropython.org/[MicroPython Forums]
6
+
* The https://github.com/orgs/micropython/discussions/[MicroPython Discussions]
0 commit comments