WIP gl-ar750 mounts root fs and starts pid 1

but still can't open /dev/console so it panics quite quickly
This commit is contained in:
Daniel Barlow 2022-10-07 00:26:32 +01:00
parent 5feda1a1e6
commit 423cf4cbee

View file

@ -10,12 +10,6 @@
# DIY users: the serial port connections have headers preinstalled # DIY users: the serial port connections have headers preinstalled
# and don't need soldering # and don't need soldering
# The default output is a combined image containing a kernel
# packaged as a "uimage" and initrd filesystem. This can be
# downloaded to the device using TFTP and then written into
# flash, or if PHRAM suport is enabled (handy for development)
# unpacked and run directly into RAM
{ {
system = { system = {
crossSystem = { crossSystem = {
@ -26,23 +20,38 @@
}; };
}; };
}; };
kernel = { kernel = rec {
checkedConfig = { checkedConfig = {
"MIPS_ELF_APPENDED_DTB" = "y"; "MIPS_ELF_APPENDED_DTB" = "y";
}; # possibly not all of these are needed, I just
config = { # copied them from qemu
CPU_LITTLE_ENDIAN= "n"; HW_CONSOLE = "y";
CPU_BIG_ENDIAN= "y"; VT_HW_CONSOLE_BINDING = "y";
ATH79 = "y"; SERIAL_8250_CONSOLE = "y";
MIPS_ELF_APPENDED_DTB = "y"; SERIAL_8250 = "y";
SERIAL_CORE_CONSOLE = "y";
DUMMY_CONSOLE = "y";
DUMMY_CONSOLE_COLUMNS = "80";
DUMMY_CONSOLE_ROWS = "25";
# FRAMEBUFFER_CONSOLE = "y";
CONSOLE_LOGLEVEL_DEFAULT = "8";
CONSOLE_LOGLEVEL_QUIET = "4";
# "empty" initramfs source should create an initial # "empty" initramfs source should create an initial
# filesystem that has a /dev/console node and not much # filesystem that has a /dev/console node and not much
# else. Note that pid 1 is started *before* the root # else. Note that pid 1 is started *before* the root
# filesystem is mounted and it expects /dev/console to # filesystem is mounted and it expects /dev/console to
# be present already # be present already
BLK_DEV_INITRD = "y"; BLK_DEV_INITRD = "n";
INITRAMFS_SOURCE = "\"\""; };
config = checkedConfig // {
CPU_LITTLE_ENDIAN= "n";
CPU_BIG_ENDIAN= "y";
ATH79 = "y";
MIPS_ELF_APPENDED_DTB = "y";
# INITRAMFS_SOURCE = "\"\"";
# this is all copied from nixwrt ath79 config. Clearly not all # this is all copied from nixwrt ath79 config. Clearly not all
# of it is device config, some of it is wifi config or # of it is device config, some of it is wifi config or