[U-Boot-Users] passing bootargs to Linux on NIOS

Wolfgang Denk wd at denx.de
Thu Aug 5 15:42:03 CEST 2004


In message <41120FD7.9070002 at imms.de> you wrote:
> 
> I'm currently implementing the bootm command for the NIOS processor from 
> Altera. I'd like to pass boot arguments to the kernel. I tried to figure 
>   out how it works in other architectures, but I'm still clueless.

What exactly don't you understand? 

> I call the function theKernel(...) with some arguments like I have seen 
> it in other implementations. Now my question is, how do I access these 
> arguments in the kernel?. I know the NIOS processor is passing the first 

Well, how does the NIOS version of the kernel access it's boot arguments?

> 4 arguments in registers when calling a function as a subroutine. But in 
> the linux kernel in main.c is another call in the function 

main.c is not the right place to look. You want to check the kernel's
entry point, i. e. "_start" (there is probably some "head.S"  file  n
your source tree?).

> Or should I just define a piece of memory to put the arguments in? It 
> will be hard coded in the kernel then.

You design it...


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The use of Microsoft crippleware systems is a sin that  carries  with
it its own punishment.
         -- Tom Christiansen in <6bo3fr$pj8$5 at csnews.cs.colorado.edu>




More information about the U-Boot mailing list