Simon Glass | 6d5d121 | 2024-07-17 09:30:54 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
| 3 | Extlinux Bootmeth |
| 4 | ================= |
| 5 | |
| 6 | `Extlinux <https://uapi-group.org/specifications/specs/boot_loader_specification>`_ |
| 7 | (sometimes called syslinux) allows U-Boot to provide a menu of available |
| 8 | operating systems from which the user can choose. |
| 9 | |
| 10 | U-Boot includes a parser for the `extlinux.conf` file. It consists primarily of |
| 11 | a list of named operating systems along with the kernel, initial ramdisk and |
| 12 | other settings. The file is stored in the `extlinux/` subdirectory, possibly |
| 13 | under the `boot/` subdirectory. This list of prefixes (``{"/", "/boot"}`` by |
| 14 | default) can be selected with the `filename-prefixes` property in the bootstd |
| 15 | device. |
| 16 | |
Simon Glass | 08379df | 2024-07-17 09:30:55 +0100 | [diff] [blame] | 17 | Note that the :doc:`pxelinux` uses the same file format, but in a |
| 18 | network context. |
Simon Glass | 6d5d121 | 2024-07-17 09:30:54 +0100 | [diff] [blame] | 19 | |
| 20 | When invoked on a bootdev, this bootmeth searches for the file and creates a |
| 21 | bootflow if found. |
| 22 | |
| 23 | When the bootflow is booted, the bootmeth calls ``pxe_setup_ctx()`` to set up |
| 24 | the context, then ``pxe_process()`` to process the file. Depending on the |
| 25 | contents, this may boot an operating system or provide a list of options to |
| 26 | the user, perhaps with a timeout. |
| 27 | |
| 28 | The compatible string "u-boot,extlinux" is used for the driver. It is present |
| 29 | if `CONFIG_BOOTMETH_EXTLINUX` is enabled. |