Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12621 Discussions

Bootargs from U-Boot for NIOS2

Altera_Forum
Honored Contributor II
1,089 Views

I had a NIOS2 based custom board running uClinux Kernel v2.6.16. This board also uses u-Boot as it's boot loader and I'm trying to get the "bootargs" within u-Boot passed down to the Kernel. 

 

Does anyone have any pointers, patch or suggestions? 

 

Regards
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
344 Views

 

--- Quote Start ---  

originally posted by cypher@Nov 1 2006, 05:53 AM 

i had a nios2 based custom board running uclinux kernel v2.6.16. this board also uses u-boot as it's boot loader and i'm trying to get the "bootargs" within u-boot passed down to the kernel. 

 

does anyone have any pointers, patch or suggestions? 

 

regards 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19057) 

--- quote end ---  

 

--- Quote End ---  

 

Please look for "command_line" in arch/nios2nommu/kernel/setup.c .
0 Kudos
Altera_Forum
Honored Contributor II
344 Views

 

--- Quote Start ---  

originally posted by hippo@Oct 31 2006, 10:22 PM 

please look for "command_line" in arch/nios2nommu/kernel/setup.c . 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19058) 

--- quote end ---  

 

--- Quote End ---  

 

 

Hippo, 

 

The code I see there uses the compiled in command line. I want to be able to pass in a command line from U-Boot using the bootargs environment variable. In the version of the setup.c I have, there is some code to read this command line information directly from flash, but it has been commented out. 

 

Any other thoughts? 

 

Regards
0 Kudos
Altera_Forum
Honored Contributor II
344 Views

Patches added. 

Please check DasUBoot and UclinuxDist on nios wiki . 

I didn&#39;t try out, yet.
0 Kudos
Altera_Forum
Honored Contributor II
344 Views

 

--- Quote Start ---  

originally posted by hippo@Nov 2 2006, 01:56 AM 

patches added. 

please check dasuboot and uclinuxdist on nios wiki . 

i didn&#39;t try out, yet. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19087) 

--- quote end ---  

 

--- Quote End ---  

 

 

Hippo, 

 

Thank you very much. I was about half way through very similar changes, I was getting stumbled up with the SP movement. I very much appreciate your work.  

 

Thanks again..
0 Kudos
Altera_Forum
Honored Contributor II
344 Views

 

--- Quote Start ---  

originally posted by cypher+nov 3 2006, 04:32 am--><div class='quotetop'>quote (cypher @ nov 3 2006, 04:32 am)</div> 

--- quote start ---  

<!--quotebegin-hippo@Nov 2 2006, 01:56 AM 

patches added. 

please check dasuboot and uclinuxdist on nios wiki . 

i didn&#39;t try out, yet. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19087) 

--- quote end ---  

 

--- Quote End ---  

 

 

Hippo, 

 

Thank you very much. I was about half way through very similar changes, I was getting stumbled up with the SP movement. I very much appreciate your work.  

 

Thanks again.. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19113)</div> 

[/b] 

--- Quote End ---  

 

update again patch ver 12, relocate stack of zimage to 64K above _end instead of at the top of sdram. 

now the u-boot,zimage and vmlinux should not cluster each other.
0 Kudos
Reply