add 'phram' param for tftp boot without flashing

This commit is contained in:
Daniel Barlow 2022-10-07 00:24:35 +01:00
parent e78028e58f
commit 5feda1a1e6
2 changed files with 51 additions and 1 deletions

29
modules/phram.nix Normal file
View file

@ -0,0 +1,29 @@
{
config
, ...
}:
{
config = {
kernel = {
checkedConfig = {
MTD = "y";
MTD_PHRAM = "y";
MTD_CMDLINE_PARTS = "y";
# one or more of the following is required to get from
# VFS: Cannot open root device "1f00" or unknown-block(31,0): error -6
# to
# VFS: Mounted root (squashfs filesystem) readonly on device 31:0.
MTD_OF_PARTS = "y";
PARTITION_ADVANCED = "y";
MSDOS_PARTITION = "y";
EFI_PARTITION = "y";
MTD_BLKDEVS = "y";
MTD_BLOCK = "y";
# CONFIG_MTD_MTDRAM=m c'est quoi?
};
};
};
}