Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: Noam Camus <noamikong@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Subject: Re: Changing default kernel load address
Date: Tue, 27 Aug 2019 12:02:35 +0100	[thread overview]
Message-ID: <20190827110234.GB8000@lakrids.cambridge.arm.com> (raw)
In-Reply-To: <CABhetiwRF2Gq3HeG_QNT6t3GtCNJzedeenn6vQC_0FYr5Ee+mA@mail.gmail.com>

On Mon, Aug 26, 2019 at 08:12:27PM +0300, Noam Camus wrote:
> Hi,
> 
> I wish to change an arm64 machine kernel load address and I hope this
> forum can assist.
> 
> In my current setup the KERNEL_START macro (_text) equals 128.5MB:
> KIMAGE_VADDR=128MB
> TEXT_OFFSET=512KB
> 
> I wish to change kernel load address to reside on my internal RAM
> which locates beyond 4GB.

You shouldn't need to modify anything; the kernel can be loaded at any
2MiB-aligned physical address + TEXT_OFFSET. KERNEL_START and
KIMAGE_VADDR are virtual addresses and don't require a specific physical
address.

Please see:

  https://www.kernel.org/doc/html/latest/arm64/booting.html

> Can someone tell what changes I need to do so kernel load address will
> be above 4GB.
> 
> Note: I use FIT image to provide U-Boot the kernel Load address.

I don't know how FIT works, but the U-Boot "booti" command should do the
right thing if given an arm64 kernel Image.

Thanks,
Mark.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-08-27 11:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26 17:12 Changing default kernel load address Noam Camus
2019-08-27 11:02 ` Mark Rutland [this message]
2019-08-30 11:09   ` Noam Camus
2019-08-30 11:19     ` Mark Rutland

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=20190827110234.GB8000@lakrids.cambridge.arm.com \
    --to=mark.rutland@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=noamikong@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox