All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dzmitry Sankouski <dsankouski@gmail.com>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Save bootargs from 1st stage bootloader like linux does
Date: Mon, 10 Jan 2022 18:01:08 +0300	[thread overview]
Message-ID: <CABTCjFCrd7uM-bgjA5Q9tgeCNJKyHCq0DvCMKDd4aFxW-BYu2Q@mail.gmail.com> (raw)

I'm working on a project to bring mainline linux kernels to android phones.
I'm planning to use u-boot as a secondary stage bootloader packed in
android boot image,
so that linux kernel is replaced with u-boot, and initramfs is replaced
with FIT image.

This approach allows to use u-boot on a phone without much pain with
storage drivers.

Obviously, u-boot should know initramfs load address. It can be obtained
from initrd-start
device tree option. However, on arm64 address to the right device tree is
provided in x0 CPU
register.

Would you accept a patch to preserve boot args on arm64?

             reply	other threads:[~2022-01-10 15:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 15:01 Dzmitry Sankouski [this message]
2022-01-10 15:10 ` Save bootargs from 1st stage bootloader like linux does Dzmitry Sankouski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABTCjFCrd7uM-bgjA5Q9tgeCNJKyHCq0DvCMKDd4aFxW-BYu2Q@mail.gmail.com \
    --to=dsankouski@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.