summaryrefslogtreecommitdiff
path: root/nix/sd-card.nix
blob: d2faea82ffebfe03829af89437eb58e27d89e821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ ... }: {
  nixpkgs = {
    config.allowUnsupportedSystem = true;

    crossSystem = {
      config = "armv4-unknown-linux-gnueabi";

      gcc = {
        # > Switch "--with-arch" may not be used with switch "--with-cpu"
        # > make[1]: *** [Makefile:4315: configure-gcc] Error 1
        #arch = "armv4";

        # Ver SA110 en arch/arm/mm/Kconfig, es parecido 
        cpu = "arm810";
      };

      linux-kernel = {
        name = "taller";
        target = "uImage";
        makeFlags = [ "LOADADDR=0x01000000" ];
        autoModules = false;
        # Esto es solo para construir el toplevel del system
        baseConfig = "multi_v5_defconfig"; # "multi_v4_defconfig";
      };
    };
  };

  system.stateVersion = "22.11";

  fileSystems."/" = {
    device = "tmpfs";
    fsType = "tmpfs";
  };

  boot.loader = {
    grub.enable = false;
    generic-extlinux-compatible.enable = true;
  };
}