Thread (1 message) 1 message, 1 author, 2011-09-20

Re: Passing an initrd to a Linux kernel with Device Tree

From: Grant Likely <hidden>
Date: 2011-09-20 20:10:58

On Tue, Sep 20, 2011 at 06:46:22PM +0100, Olivier Martin wrote:
Hello,

I tried recently to add support in UEFI to pass an initrd with FDT to a
Linux kernel. I have searched the Internet but I did not find any
information to do that.

FYI, this is the way it is done in ATAG:
typedef struct {
  UINT32  start;
  UINT32  size;
} LINUX_ATAG_INITRD2;

The boot loader loads the initrd in system memory and passes the memory
region information through ATAG.


Sorry, if it is the wrong mailing-list. In this case, can someone point me
on the right forum for any Linux FDT oriented questions.
Hmmm, it may not be documented (the binding was implemented a long
time ago before we got strict about documenting bindings).  The magic
is two properties in the /chosen node; "linux,initrd-start" and
"linux,initrd-end".  Each contains the physical start and end
addresses of the initrd.

g.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help