From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by mx.groups.io with SMTP id smtpd.web10.1418.1572421463828908367 for ; Wed, 30 Oct 2019 00:44:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=eaW9n8HR; spf=pass (domain: linaro.org, ip: 209.85.222.195, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-qk1-f195.google.com with SMTP id e2so1758934qkn.5 for ; Wed, 30 Oct 2019 00:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YEknsjjzzK/NeFr3jWfTZRsCklmUl1PgLZ6hdN5zKT8=; b=eaW9n8HRMr9I1WP0EhktTo5cXk/pVk+6vSbjN/V0rivebATkwD1wVfHDq+l4qZeFxP LQAm0AXgRxOfPsAAiR90nKwOaY+MASBJ+QAXkPAm7IcuEhlh6FomlWsOeMDwBPRC7Bft +MDkgsKywmjVrykEqoUXE3iG3463ZtH/OhdaIDNCS60pd6lLvZU17IuHVoljD2ZQxdiX GD7P2pqWL1DIgUn3XFG5B5Ey1/8P15vwPziVyAr2l1VGD2vDuedrX8PSvF4h9q2XgAgZ SV1vhYSPNu3lFD9pZ/Ju6qsoe7qxh6WMXW2CUaP3rtGqAS13rJXT9lzUkQZd8Sjn7mxX UjoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YEknsjjzzK/NeFr3jWfTZRsCklmUl1PgLZ6hdN5zKT8=; b=LBQro4PJnCJQQh4QR0Z0d36ABQY0RrBphrMqbHz6oZewHSGrlT4Bj/dfHsTnXf/i+4 W9W0yLb18TWrZQUVAuvuA437Wtd5N/lTCnGnqY8+u1g9cgS5SI3j9qvQqor1cbcJxE4i OjBvmcZTWgxvx2+Y0EmWe1UMgTCPxFl7J4juPblrP3vjeTdVUOCaxfBiouVZTdtcfR4s d6AJ7iKT6cBB6hJbQHd2+8mM5yFJ+D9hOQGtseBbc3GaxRweSJHb7w3eRYHeWO77354O Gk9DWW7w0n0L1ua0TVtfyk5h9M6ac8ZpU3S5oN8obEFPsIsBHvAnj19LLn6L15I9lK11 MqPQ== X-Gm-Message-State: APjAAAXn7f7US7dOtzkf5F9rWODpLnuMt5PG1hOSs/sx7LCAHLclPM+z GpRDbwxLX/En4ddkVWpXEtIhhsojyYHQkK4D2ECTHQ== X-Google-Smtp-Source: APXvYqziyilvj1rmQdmZlpA1J+MlpayiV+aelRFcdK6cwF3+oBdNuRZ5B5cDk89Zxfw7j5ubdN+mSNUpR7xKYiT9pyM= X-Received: by 2002:a37:a211:: with SMTP id l17mr24898737qke.139.1572421462725; Wed, 30 Oct 2019 00:44:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Ard Biesheuvel" Date: Wed, 30 Oct 2019 08:44:09 +0100 Message-ID: Subject: Re: [edk2-devel] How /sys/firmware/fdt getting created To: Prabhakar Kushwaha Cc: edk2-devel-groups-io Content-Type: text/plain; charset="UTF-8" On Wed, 30 Oct 2019 at 08:36, Prabhakar Kushwaha wrote: > > On Wed, Oct 30, 2019 at 12:43 PM Ard Biesheuvel > wrote: > > > > On Tue, 29 Oct 2019 at 18:17, Prabhakar Kushwaha > > wrote: > > > > > > Hi All, > > > > > > I am working on Ubuntu-18.04 with UEFI on ARM64(64 bit) platform. The > > > UEFI used is having ACPI tables. > > > > > > I am trying to understand where and how /sys/firmware/fdt is getting > > > created. is it created by UEFI or grub and passed to Linux? > > > > > > > Neither. It is created by Linux itself. > > > > > > > > Thanks Ard, > > Can you please point me the code where it is getting created. > I want to add below in /sys/firmware/fdt. > > #size-cells = <0x02>; > #address-cells = <0x02>; > Actually, in your case it is GRUB not the kernel that creates the FDT. It does this to pass the initrd information. So if you want to add these properties, you should add them there. Can you explain why doing this is necessary?