File kernel.its of Package image-qemu

/dts-v1/;
/ {
  description = "Simple image with single Linux kernel and FDT blob";
  #address-cells = <1>;
  images {
    kernel {
      description = "Linux kernel";
      data = /incbin/("kernel");
      type = "kernel_noload";
      arch = "arm64";
      os = "linux";
      compression = "none";
      // for some reason those entries are needed with bootm
      // default load addr is 0x40200000
      load = <0x0000000>;
      entry = <0x0000000>;
      hash-1 {
        algo = "sha256";
      };
    };
    /*
    fdt {
      description = "Flattened Device Tree blob";
      data = /incbin/("qemu1.dtb");
      type = "flat_dt";
      arch = "arm64";
      compression = "none";
      load = <0x46800000>;
      //load = <0x40000000>;
      hash-1 {
        algo = "sha256";
      };
    };
    */
    ramdisk {
      description = "Initial ramdisk";
      data = /incbin/("initrd");
      type = "ramdisk";
      os = "linux";
      arch = "arm64";
      compression = "none";
      // XXX: why can't u-boot pick the address?
      load = <0x48000000>;
      entry = <0x48000000>;
      hash-1 {
        algo = "sha256";
      };
    };
    bootargs {
      description = "Set kernel boot arguments";
      data = /incbin/("bootargs.env");
      type = "script";
      hash-1 {
        algo = "sha256";
      };
    };
  };
  configurations {
    default = "qemu-arm";
    qemu-arm {
      description = "Boot Linux in QEMU";
      kernel = "kernel";
      ramdisk = "ramdisk";
      script = "bootargs";
      compatible = "linux,dummy-virt";
      //fdt = "fdt";
      /*
      signature-1 {
        //algorithm can be set from outside via -o
        algo = "sha256";
        //algo = "sha256,ecdsa256";
        //algo = "sha256,rsa2048";
	// XXX: u-boot -g parmeter should actually set that
	key-name-hint = "foo";
	sign-images = "ramdisk", "kernel";
      };
      */
    };
  };
};
openSUSE Build Service is sponsored by