From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.web12.1249.1572419591693146979 for ; Wed, 30 Oct 2019 00:13:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=GeRLGP2b; spf=pass (domain: linaro.org, ip: 209.85.128.48, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wm1-f48.google.com with SMTP id p21so877624wmg.2 for ; Wed, 30 Oct 2019 00:13:11 -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=B95QYhN+DX8WVfOv7arrn2L6zLT+jh+epL+XtI8Zh0k=; b=GeRLGP2bDT91rOJYYy2vBvihfCpcgjW/TX7GgXEqkN/eV6sOhBKOAkt30Mi/1dGfWm G/xqUt9M+Un96x9xqv0KzxmPfE309AELbLfAjqyq7s9s8vb9Zdpoe95LJT7m4zp9arzz ERqLxEbAuqBUBYEF4DCcToUp28kA3QF46h+9bbiVvslhdL25LfM++8cEGj46UYC2B7kY jn2wxM4oYqNyQ/GBKe7M11YMTzakqD+CKSFBnOg6dL2hdMmsSW+pCiIsgqSsbP72/3GS I/y9oaxjBh7b55tKCAQsOS5CyYG5UgbKCrmMJdCQQYCcQZ87r1ijRCKIB6lFnDwmPysK KLbw== 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=B95QYhN+DX8WVfOv7arrn2L6zLT+jh+epL+XtI8Zh0k=; b=M7IvbQx9mM8po7RSEdd0UBs40uwQRSptPTChCLsLpD3kxTn4ASGp2wgI2+ZCzYB3Yn Moq+5KJG8ocg2s1UzctiyG3meeNLrXcPf6kLCIpkK67QX3rw+uplzzAT7H2f2Q7j+eWX VliA+6Jdxsn3KAep8Q1zcqjUup3SO8KbPvgPzH8fL5+T4g/rZNM7fkTw15QLqY/LS6U9 /DbriFhritkoRruF/RQxH9zvRTtxl6nvi41YanMX6lJTV48CZhMvxPrUc3zgFTqZN7Tp cTWs+cc2Jk59s//4MxJE3S4e2KoFJtKtUcyICdk1yFgPSCqlO+w97u8KEhE4Xl2U9mnz 7S5Q== X-Gm-Message-State: APjAAAWVvyezzj/9F4Ni+tYjIoPfADShs5iqT53kGqCdbw+xSCldhAuL Ihg6ICvefI6pQOEt6SmA315yxhjQNJuVmXdRG5/PsQ== X-Google-Smtp-Source: APXvYqzOPolINK7ZZrh0p5qjTNwqxutYatMaH4BwyiEKaUGWqmSXiWiKqELqbZ//U7SDI9QimdAbmADgErJX6wbUEFc= X-Received: by 2002:a1c:9d07:: with SMTP id g7mr7626111wme.53.1572419590119; Wed, 30 Oct 2019 00:13:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Ard Biesheuvel" Date: Wed, 30 Oct 2019 08:12:57 +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 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. > below is the dts format of /sys/firmware/fdt. > > /dts-v1/; > > / { > > chosen { > linux,uefi-mmap-desc-ver = <0x1>; > linux,uefi-mmap-desc-size = <0x30>; > linux,uefi-mmap-size = <0xcc0>; > linux,uefi-mmap-start = <0x0 0xeda13018>; > linux,uefi-system-table = <0x0 0xfafd0018>; > bootargs = "BOOT_IMAGE=/boot/vmlinuz-5.4.0-rc4+ > root=UUID=798a858c-4f20-4b99-aa40-99bff9394093 ro crashkernel=2G > console=ttyAMA0"; > linux,initrd-end = <0x0 0xeb381a34>; > linux,initrd-start = <0x0 0xdd5f5000>; > }; > }; > > also, under what scenario/config fields is getting added fdt. > #size-cells = <0x02>; > #address-cells = <0x02>; > > --prabhakar (pk) > > >