<br><br><div class="gmail_quote">2011/10/24 Tony Breeds <span dir="ltr"><<a href="mailto:tony@bakeyournoodle.com">tony@bakeyournoodle.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Sun, Oct 23, 2011 at 12:25:41AM +0800, Ryan Wang wrote:<br>
> Hi,<br>
><br>
> I know that there are 3 ways to pass params to kernel:<br>
>     (1) params set in openfirmware<br>
>     (2) when yaboot up, in the prompt "boot: ", specify the label and params<br>
>     (3) params in the item "append=" of yaboot.conf<br>
><br>
> My question is:<br>
> How can they combine together? I read some code in yaboot src, but found<br>
> that<br>
> only 2 cases are available:<br>
>       (3) + (1)<br>
>       (3) + (2)<br>
> If I set params with method 1, 2 and 3, then I'll get the results as 2 + 3<br>
> only. That is<br>
>       (1) + (2) + (3) = (3) + (2)<br>
><br>
> Is that right?<br>
<br></div></div></blockquote><div>Thanks, Tony.<br><br>I still have another 2 questions: <br>       1) Where does boot-file come in effect?<br>           E.g. I run 'setenv boot-file xmon=on' in the openfirmware, can the vmlinux booted <br>
           by yaboot get the arg 'xmon=on'?<br>        2) What's the relationship between boot-file and bootargs?<br><br>thanks,<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="h5">
</div></div>OF args are passed to the object booted, they are not passed on beyond<br>
that point.  So if you do something like:<br>
<br>
boot net conf=etc/fubar<br>
<br>
If the ELF servered up is yaboot, yaboot consumes the conf=etc/fubar and<br>
uses your methods 2 and 3 to create the boot args for the kernel you<br>
boot.<br>
<br>
If the ELF servered up is a kernel then they're passed on as expected.<br>
<br>
<br>
Yours Tony<br>
</blockquote></div><br>