public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Pantelis Antoniou <panto@intracom.gr>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Pass full u-boot environment to booting kernel
Date: Tue, 14 Sep 2004 15:01:40 +0300	[thread overview]
Message-ID: <4146DDA4.5070009@intracom.gr> (raw)
In-Reply-To: <20040914114715.75FB2C1430@atlas.denx.de>

Wolfgang Denk wrote:
> In message <4146C728.7010006@intracom.gr> you wrote:
> 
>>The following patch allows the passing of the full u-boot
>>environment to the booting running kernel.
>>
>>What it does after that is a matter of discussion currently.
> 
> 
> Which discussion are you referring to? I  haven't  seen  any  related
> message yet.
> 

It's a discussion related to the kernel. Its mainly private email
exchanges.

The consensus is that there is no consensus for anything but the
fact that something like this is needed.

The other solution discussed is bi_recs.

> 
>>In the following days I'll also post patches for the kernel
>>and busybox showing what can be acheived.
> 
> 
> Please hold on for a moment.
> 
> I'm afraid I have to tell you that I don't think this makes sense  at
> all.
> 
> There are several reasons for me to tend to reject this patch:
> 
> * The Linux kernel's command line is limited in size. You cannot pass
>   arbitrary amounts of data to the kernel this way.

If you take a look at the patch you'll see that the environment is not
passed in the command line.

Merely a memory structure in a non-overwrittable area is created and
the (physical) address of it is passed to the kernel.

The only thing passed to the kernel is "u-boot-env=007a3140".

There are no adverse effects if the kernel image does not understand the
option.

And finally this functionality is controlled by a single define.
If you don't need it just don't define it.

> 
> * If you want to  make  the  U-Boot  environment  accessable  to  the
>   kernel,  there are other (better?) ways like making it available by
>   the kernel directory (reading directly through the  MTD  layer  for
>   flash, or from I2C for EEPROM, etc.).

No there not.

The point is not to pass the stored environment settings, but the ones
active at the moment of booting.

For example if the network settings are obtained by means of DHCP there
are not generally stored in the non-volatile environment.

> 
> * The U-Boot environment usually contains LOTS of  definitions  which
>   are definitely useless in the Linux kernel, so why pass random data
>   which will never be needed anyway?

It's not just for the kernel. The boot variables are invaluable for
your applications too.

> 
> Best regards,
> 
> Wolfgang Denk
> 

Regards

Pantelis

  reply	other threads:[~2004-09-14 12:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-14 10:25 [U-Boot-Users] [PATCH] Pass full u-boot environment to booting kernel Pantelis Antoniou
2004-09-14 11:47 ` Wolfgang Denk
2004-09-14 12:01   ` Pantelis Antoniou [this message]
2004-09-14 13:19     ` Wolfgang Denk
2004-09-14 13:26       ` Pantelis Antoniou
2004-09-14 15:28         ` Wolfgang Denk
2004-09-14 17:46       ` Eugene Surovegin
2004-09-14 20:37         ` Dan Malek
2004-09-15 13:05       ` Marius Groeger
2004-09-15 13:24         ` Wolfgang Denk
2004-09-15 13:40           ` Pantelis Antoniou
2004-09-15 14:54             ` Wolfgang Denk
2004-09-15 14:04           ` Marius Groeger
2004-09-15 15:00             ` Wolfgang Denk
2004-09-15 14:59           ` Robert Schwebel

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=4146DDA4.5070009@intracom.gr \
    --to=panto@intracom.gr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox