* [U-Boot] Passing bootargs to arm64 kernel
@ 2014-08-13 2:21 Youngmin Nam
2014-08-13 10:39 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: Youngmin Nam @ 2014-08-13 2:21 UTC (permalink / raw)
To: u-boot
Hello.
I'm trying to find a way how to pass bootargs to arm64 kernel.
In arm32 kernel, we can pass bootargs with atag from u-boot to kernel. So,
we can overwrite kernel's bootargs with u-boot's bootargs.
But from arm64 kernel, the dtb is the only argument that should be passed
from bootloader which is mandatory.
you can find this contents in kernel
documentation.(Documentation/arm64/Booting.txt)
So, is there any way how to set bootargs by u-boot?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Passing bootargs to arm64 kernel
2014-08-13 2:21 [U-Boot] Passing bootargs to arm64 kernel Youngmin Nam
@ 2014-08-13 10:39 ` Tom Rini
2014-08-14 2:34 ` Youngmin Nam
0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2014-08-13 10:39 UTC (permalink / raw)
To: u-boot
On Wed, Aug 13, 2014 at 11:21:32AM +0900, Youngmin Nam wrote:
> Hello.
> I'm trying to find a way how to pass bootargs to arm64 kernel.
>
> In arm32 kernel, we can pass bootargs with atag from u-boot to kernel. So,
> we can overwrite kernel's bootargs with u-boot's bootargs.
>
> But from arm64 kernel, the dtb is the only argument that should be passed
> from bootloader which is mandatory.
> you can find this contents in kernel
> documentation.(Documentation/arm64/Booting.txt)
>
> So, is there any way how to set bootargs by u-boot?
Yes, within the device tree, like we do today. There's a few issues we
have today, but I need to re-post the booti command support patches,
given what's coming in 3.17 in the kernel.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140813/dfcd3a3d/attachment.pgp>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Passing bootargs to arm64 kernel
2014-08-13 10:39 ` Tom Rini
@ 2014-08-14 2:34 ` Youngmin Nam
2014-08-14 9:27 ` Arnab Basu
0 siblings, 1 reply; 4+ messages in thread
From: Youngmin Nam @ 2014-08-14 2:34 UTC (permalink / raw)
To: u-boot
Thank you for reply Tom,
Let me ask you some questions.
Can we set kernel's bootargs without re-compiling device tree on arm64
kernel by u-boot?
I mean, I want to set kernel's bootargs by u-boot without re-compiling
device tree.
Is it possible?
2014. 8. 13. ?? 7:39? "Tom Rini" <trini@ti.com>?? ??:
> On Wed, Aug 13, 2014 at 11:21:32AM +0900, Youngmin Nam wrote:
>
> > Hello.
> > I'm trying to find a way how to pass bootargs to arm64 kernel.
> >
> > In arm32 kernel, we can pass bootargs with atag from u-boot to kernel.
> So,
> > we can overwrite kernel's bootargs with u-boot's bootargs.
> >
> > But from arm64 kernel, the dtb is the only argument that should be passed
> > from bootloader which is mandatory.
> > you can find this contents in kernel
> > documentation.(Documentation/arm64/Booting.txt)
> >
> > So, is there any way how to set bootargs by u-boot?
>
> Yes, within the device tree, like we do today. There's a few issues we
> have today, but I need to re-post the booti command support patches,
> given what's coming in 3.17 in the kernel.
>
> --
> Tom
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Passing bootargs to arm64 kernel
2014-08-14 2:34 ` Youngmin Nam
@ 2014-08-14 9:27 ` Arnab Basu
0 siblings, 0 replies; 4+ messages in thread
From: Arnab Basu @ 2014-08-14 9:27 UTC (permalink / raw)
To: u-boot
On 08/14/2014 08:04 AM, Youngmin Nam wrote:
> Thank you for reply Tom,
> Let me ask you some questions.
>
> Can we set kernel's bootargs without re-compiling device tree on arm64
> kernel by u-boot?
>
> I mean, I want to set kernel's bootargs by u-boot without re-compiling
> device tree.
>
> Is it possible?
This is done anyway, whatever is defined in CONFIG_BOOTARGS will be
stored in the U-Boot environment variable bootargs and passed as
bootargs to the kernel via the "chosen" node.
See fdt_chosen in common/fdt-support.c.
So if you want the change the bootargs passed to the kernel, just do
> set bootargs '<whatever you want in bootargs>'
at the u-boot prompt and the boot the kernel.
Thanks
Arnab
> 2014. 8. 13. ?? 7:39? "Tom Rini" <trini@ti.com>?? ??:
>
>> On Wed, Aug 13, 2014 at 11:21:32AM +0900, Youngmin Nam wrote:
>>
>>> Hello.
>>> I'm trying to find a way how to pass bootargs to arm64 kernel.
>>>
>>> In arm32 kernel, we can pass bootargs with atag from u-boot to kernel.
>> So,
>>> we can overwrite kernel's bootargs with u-boot's bootargs.
>>>
>>> But from arm64 kernel, the dtb is the only argument that should be passed
>>> from bootloader which is mandatory.
>>> you can find this contents in kernel
>>> documentation.(Documentation/arm64/Booting.txt)
>>>
>>> So, is there any way how to set bootargs by u-boot?
>>
>> Yes, within the device tree, like we do today. There's a few issues we
>> have today, but I need to re-post the booti command support patches,
>> given what's coming in 3.17 in the kernel.
>>
>> --
>> Tom
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-14 9:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 2:21 [U-Boot] Passing bootargs to arm64 kernel Youngmin Nam
2014-08-13 10:39 ` Tom Rini
2014-08-14 2:34 ` Youngmin Nam
2014-08-14 9:27 ` Arnab Basu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox