about summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/generic-extlinux-compatible
Commit message (Collapse)AuthorAge
* nixos/hardware.deviceTree: new moduleKai Wohlfahrt2019-08-07
| | | | | | Add support for custom device-tree files, and applying overlays to them. This is useful for supporting non-discoverable hardware, such as sensors attached to GPIO pins on a Raspberry Pi.
* Revert "treewide: use buildPackages for config builders"Christian Kampka2019-05-31
| | | | This reverts commit 35af6e36057cafbb30df684326803e9e54bb377e.
* Revert "extlinux-conf: fix cross compilation"Christian Kampka2019-05-31
| | | | This reverts commit f17dd04f12a6eccdf613968efca38cfd0edfd2c0.
* treewide: use buildPackages for config buildersMatthew Bauer2019-01-02
|
* extlinux-conf: fix cross compilationeburimu2018-12-06
|
* extlinux-conf-builder: Choose whether to use DTBs on per-generation basisTuomas Tynkkynen2016-07-10
| | | | | | Previously, the value from stdenv.platform.kernelDTB was used. That doesn't work well if both kinds (DTB and non-DTB) of generations exist in the system profile.
* nixos: introduce system.nixosLabel option and use it where appropriateJan Malakhovski2016-01-08
| | | | | | | | | | | | | | Setting nixosVersion to something custom is useful for meaningful GRUB menus and /nix/store paths, but actuallly changing it rebulids the whole system path (because of `nixos-version` script and manual pages). Also, changing it is not a particularly good idea because you can then be differentitated from other NixOS users by a lot of programs that read /etc/os-release. This patch introduces an alternative option that does all you want from nixosVersion, but rebuilds only the very top system level and /etc while using your label in the names of system /nix/store paths, GRUB and other boot loaders' menus, getty greetings and so on.
* extlinux-conf-builder: Fix warning when building in chrootTuomas Tynkkynen2015-07-26
| | | | | | | | | | | When using extlinux-conf-builder in a nix build using chroots, the following error message could be seen: /nix/store/XXX-extlinux-conf-builder.sh: line 121: cd: /nix/var/nix/profiles: No such file or directory To avoid this, just skip the code path parsing /nix/var/nix/profiles when $numGenerations (passed from the command line) is 0 (which is the only legal value of $numGenerations in a nix build context).
* extlinux-conf-builder: Set menu title to force prompt displayTuomas Tynkkynen2015-07-22
| | | | | | | | | Without a menu title, U-Boot's distro scripts just autoboot the first entry by default. When I initially wrote this, my board wasn't apparently running stock U-Boot but had some local hacks saved in the U-Boot's environment which made it always display the prompt.
* extlinux-conf-builder: Make it work on non-DTB systemsTuomas Tynkkynen2015-07-22
| | | | | With this, boot.loader.generic-extlinux-compatible can be used with linuxPackages_rpi on the Raspberry Pi.
* extlinux-conf-builder: Properly copy kernels for the default entryTuomas Tynkkynen2015-07-22
| | | | | | | When calling addEntry inside a subshell, the filesCopied array would be updated only in the subshell's environment. This would only cause an issue if no -g flag was passed to the script, causing no kernels to be copied.
* generic-extlinux-compatible: Add new bootloader for ARMTuomas Tynkkynen2015-05-17
This module generates a /boot/extlinux/extlinux.conf bootloader configuration file that is supported by e.g. U-Boot: http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.distro;hb=refs/heads/master With this, all ARM boards supported by U-Boot can be booted in a common way (a single boot file generator, all boards booting via initrd like x86) and with same boot menu functionality as GRUB has. -- sample extlinux.conf file -- # Generated file, all changes will be lost on nixos-rebuild! # Change this to e.g. nixos-42 to temporarily boot to an older configuration. DEFAULT nixos-default TIMEOUT 50 LABEL nixos-default MENU LABEL NixOS - Default LINUX ../nixos/n7vxfk60nb5h0mcbhkwwxhcz2q2nvxzv-linux-4.1.0-rc3-cpufreq-zImage INITRD ../nixos/0ss2zs8sb6d1qn4gblxpwlxkfjsgs5f0-initrd-initrd FDTDIR ../nixos/n7vxfk60nb5h0mcbhkwwxhcz2q2nvxzv-linux-4.1.0-rc3-cpufreq-dtbs APPEND systemConfig=/nix/store/469qvr43ln8bfsnk5lzcz6m6jfcgdd4r-nixos-15.06.git.0b7a7a6M init=/nix/store/469qvr43ln8bfsnk5lzcz6m6jfcgdd4r-nixos-15.06.git.0b7a7a6M/init loglevel=8 console=ttyS0,115200n8 drm.debug=0xf LABEL nixos-71 MENU LABEL NixOS - Configuration 71 (2015-05-17 21:32 - 15.06.git.0b7a7a6M) LINUX ../nixos/n7vxfk60nb5h0mcbhkwwxhcz2q2nvxzv-linux-4.1.0-rc3-cpufreq-zImage INITRD ../nixos/0ss2zs8sb6d1qn4gblxpwlxkfjsgs5f0-initrd-initrd FDTDIR ../nixos/n7vxfk60nb5h0mcbhkwwxhcz2q2nvxzv-linux-4.1.0-rc3-cpufreq-dtbs APPEND systemConfig=/nix/store/469qvr43ln8bfsnk5lzcz6m6jfcgdd4r-nixos-15.06.git.0b7a7a6M init=/nix/store/469qvr43ln8bfsnk5lzcz6m6jfcgdd4r-nixos-15.06.git.0b7a7a6M/init loglevel=8 console=ttyS0,115200n8 drm.debug=0xf