2022-10-03 23:28:15 +02:00
|
|
|
# GL.INet GL-AR750 "Creta" travel router
|
|
|
|
# - QCA9531 @650Mhz SoC
|
|
|
|
# - dual band wireless: IEEE 802.11a/b/g/n/ac
|
|
|
|
# - two 10/100Mbps LAN ports and one WAN
|
|
|
|
# - 128MB DDR2 RAM / 16MB NOR Flash
|
|
|
|
# - "ath79" soc family
|
|
|
|
# https://www.gl-inet.com/products/gl-ar750/
|
|
|
|
|
|
|
|
# I like GL.iNet devices because they're relatively accessible to
|
|
|
|
# DIY users: the serial port connections have headers preinstalled
|
|
|
|
# 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
|
|
|
|
|
2022-09-20 00:51:38 +02:00
|
|
|
{
|
|
|
|
system = {
|
|
|
|
crossSystem = {
|
|
|
|
config = "mips-unknown-linux-musl";
|
|
|
|
gcc = {
|
|
|
|
abi = "32";
|
|
|
|
arch = "mips32"; # maybe mips_24kc-
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-10-03 23:28:15 +02:00
|
|
|
kernel = {
|
|
|
|
checkedConfig = {
|
2022-10-05 22:52:30 +02:00
|
|
|
"MIPS_ELF_APPENDED_DTB" = "y";
|
2022-10-03 23:28:15 +02:00
|
|
|
};
|
|
|
|
config = {
|
2022-10-05 22:58:39 +02:00
|
|
|
CPU_LITTLE_ENDIAN= "n";
|
|
|
|
CPU_BIG_ENDIAN= "y";
|
|
|
|
ATH79 = "y";
|
2022-10-05 22:52:30 +02:00
|
|
|
MIPS_ELF_APPENDED_DTB = "y";
|
|
|
|
|
2022-10-05 22:58:39 +02:00
|
|
|
# "empty" initramfs source should create an initial
|
|
|
|
# filesystem that has a /dev/console node and not much
|
|
|
|
# else. Note that pid 1 is started *before* the root
|
|
|
|
# filesystem is mounted and it expects /dev/console to
|
|
|
|
# be present already
|
|
|
|
BLK_DEV_INITRD = "y";
|
|
|
|
INITRAMFS_SOURCE = "\"\"";
|
|
|
|
|
2022-10-03 23:28:15 +02:00
|
|
|
# this is all copied from nixwrt ath79 config. Clearly not all
|
|
|
|
# of it is device config, some of it is wifi config or
|
|
|
|
# installation method config or ...
|
2022-10-05 22:58:39 +02:00
|
|
|
|
2022-10-03 23:28:15 +02:00
|
|
|
"CMDLINE_PARTITION" = "y";
|
|
|
|
"DEBUG_INFO" = "y";
|
|
|
|
"EARLY_PRINTK" = "y";
|
|
|
|
"FW_LOADER" = "y";
|
|
|
|
# we don't have a user helper, so we get multiple 60s pauses
|
|
|
|
# at boot time unless we disable trying to call it
|
|
|
|
"FW_LOADER_USER_HELPER" = "n";
|
2022-10-05 22:58:39 +02:00
|
|
|
|
|
|
|
# "IMAGE_CMDLINE_HACK" = "n";
|
|
|
|
|
2022-10-03 23:28:15 +02:00
|
|
|
"MODULE_SIG" = "y";
|
|
|
|
"MTD_CMDLINE_PARTS" = "y";
|
2022-10-05 22:58:39 +02:00
|
|
|
# "MTD_SPLIT_FIRMWARE" = "y";
|
2022-10-03 23:28:15 +02:00
|
|
|
"PARTITION_ADVANCED" = "y";
|
|
|
|
"PRINTK_TIME" = "y";
|
|
|
|
"SQUASHFS" = "y";
|
|
|
|
"SQUASHFS_XZ" = "y";
|
2022-10-05 22:58:39 +02:00
|
|
|
# "ASN1" = "y";
|
|
|
|
# "ASYMMETRIC_KEY_TYPE" = "y";
|
|
|
|
# "ASYMMETRIC_PUBLIC_KEY_SUBTYPE" = "y";
|
|
|
|
# "CRC_CCITT" = "y";
|
|
|
|
# "CRYPTO" = "y";
|
|
|
|
# "CRYPTO_ARC4" = "y";
|
|
|
|
# "CRYPTO_CBC" = "y";
|
|
|
|
# "CRYPTO_CCM" = "y";
|
|
|
|
# "CRYPTO_CMAC" = "y";
|
|
|
|
# "CRYPTO_GCM" = "y";
|
|
|
|
# "CRYPTO_HASH_INFO" = "y";
|
|
|
|
# "CRYPTO_LIB_ARC4" = "y";
|
|
|
|
# "CRYPTO_RSA" = "y";
|
|
|
|
# "CRYPTO_SHA1" = "y";
|
|
|
|
# "ENCRYPTED_KEYS" = "y";
|
|
|
|
# "KEYS" = "y";
|
2022-10-03 23:28:15 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
outputs.default = "combined-image";
|
|
|
|
boot = {
|
|
|
|
loadAddress = "0x80060000";
|
|
|
|
entryPoint = "0x80060000";
|
|
|
|
};
|
2022-09-20 00:51:38 +02:00
|
|
|
}
|