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++

Problem in booting the kernel

Altera_Forum
Honored Contributor II
923 Views

Hello everyone. I am a newbie in uclinux. 

 

I follow the UClinuxDist in  

http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist

compile the kernel and download it.  

 

In the uart terminal, it's displayed  

"Uncompressing Linux... Ok, booting the kernel." 

and nothing more. 

 

I don’t know how the uclinux works.  

Is there something wrong with boot process? Or I must use u-boot to boot the kernel? 

Or the setting of the kernel is not correct?  

 

thanks! 

 

The following is what i have done. 

I just want to test the uclinux on the sdram, so I didnot use the u-boot as smcnutt recommends. 

QuartusII 5.0, NiosII5.0 

The board is UP3 (sls.com) with 2MByte flash, and 8MByte SDRam.  

http://www.slscorp.com/up3support/tutorial...c6%20manual.pdf (http://www.slscorp.com/up3support/tutorials/up3-1c6%20manual.pdf

and I test the sdram and the flash with the design example from sls.com.  

http://www.slscorp.com/up3support/tutorials/ref_design.zip (http://www.slscorp.com/up3support/tutorials/ref_design.zip

 

First, I download and install the nios2linux-1.4.zip from the forum, and follow the “Linux Quick Start Guide.pdf” to compile the kernel under the nios2 IDE. It’s success. But I don’t know how to download it to ram.  

 

Then, I compile the kernel following the instruction in UClinuxDist under Ubuntu 

http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist

using uClinux-dist-test-20060511.tar.bz2 and uClinux-dist.diff.gz from 

http://nioswiki.jot.com/wikihome/operating...ux-dist.diff.gz (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist/uclinux-dist.diff.gz

and download the kernel in win-xp, with nios II SDK shell. It shows the zImage is download to 0x00500000. The display "Uncompressing Linux... Ok, booting the kernel." 

 

Final, I try the method in  

http://nioswiki.jot.com/wikihome/operating.../buildrootguide (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/buildrootguide

and build the kernel with: 

build0411.zip 

uClibc-0.9.29-pre,busybox-1.1.1-pre0 

binutils-2.15.tar.bz2 

gcc-3.4.6.tar.bz2 

linux-libc-headers-2.6.11.0.tar.bz2 

buildroot-20060320 

uClibc-20060320 

busybox-20060320 

and the uart terminate display the same.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
259 Views

hi hammer 

If u want to run Linux on flash , then for store image into flash you have to store u-boot with some changes or u have to make new the sysem through SOPC builder with CFI-coponent. 

but just if u want to run linux from sdram ,then first compile kernel with required configuration as per“Linux Quick Start Guide.pdf” and then run it. 

it will boot through jtag console. 

 

 

 

--First, I download and install the nios2linux-1.4.zip from the forum, and follow  

--the “Linux Quick Start Guide.pdf” to compile the kernel under the nios2 IDE. It’s  

--success. But I don’t know how to download it to ram.
0 Kudos
Reply