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++
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussões

how to create a linux system on a nios2-mmu for a custom fpga board?

Altera_Forum
Colaborador honorário II
1.869 Visualizações

Hi, 

 

I have a custom FPGA dev board, based on ep3c25, with a 16MBytes SDRAM.  

 

I want to build a linux system with mmu support, I have followed the very how to article: http://nioswiki.com/linux, but always failed.(a custom_fpga.h created) The result is:nios2-download -g images/zimage.initramfs.gz; nios2-terminal 

using cable "usb-blaster [usb 5-1.1]", device 1, instance 0x00 

pausing target processor: ok 

initializing cpu cache (if present) 

ok 

downloaded 1643kb in 14.5s (113.3kb/s) 

verified ok  

starting processor at address 0xc1500000 

nios2-terminal: connected to hardware target using jtag uart on cable 

nios2-terminal: "usb-blaster [usb 5-1.1]", device 1, instance 0 

nios2-terminal: (use the ide stop button or ctrl-c to terminate) 

 

uncompressing linux...  

error 

bad gzip magic numbers 

 

-- system halted 

 

Some file(screenshot) attached, please help me. Thank you!!! 

 

(http://www.alteraforum.com/forum/attachment.php?attachmentid=2581&stc=1&d=1275320625)
0 Kudos
3 Respostas
Altera_Forum
Colaborador honorário II
624 Visualizações

What is your pc linux distro? 

 

Please set "boot link offset" to 0xa00000 in kernel config. It is about 2/3 of 16MB. 

 

Or, please run nios2-download -g images/linux.initramfs.gz 

 

Or, please try u-boot first to verify your system.  

http://nioswiki.com/dasuboot 

 

- Hippo
Altera_Forum
Colaborador honorário II
624 Visualizações

 

--- Quote Start ---  

What is your pc linux distro? 

 

Please set "boot link offset" to 0xa00000 in kernel config. It is about 2/3 of 16MB. 

 

Or, please run nios2-download -g images/linux.initramfs.gz 

 

Or, please try u-boot first to verify your system.  

http://nioswiki.com/dasuboot 

 

- Hippo 

--- Quote End ---  

 

 

Hi, Hippo  

Thank you! 

 

My linux distro is Debian(testing). 

 

I have corrected the boot link to 0xa00000 which point to the kernel space. But after compiling: 

 

nios2-download -g images/zimage.initramfs.gz; nios2-terminal 

Using cable "USB-Blaster [USB 6-1.1]", device 1, instance 0x00 

Processor is already paused 

Initializing CPU cache (if present) 

OK 

Downloaded 1642KB in 14.3s (114.8KB/s) 

Verified OK  

Starting processor at address 0xC1A00000 

nios2-terminal: connected to hardware target using JTAG UART on cable 

nios2-terminal: "USB-Blaster [USB 6-1.1]", device 1, instance 0 

nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) 

 

Uncompressing Linux...  

 

no more character then... 

 

And If I run: 

nios2-download -g images/linux.initramfs.gz; nios2-terminal 

Using cable "USB-Blaster [USB 6-1.1]", device 1, instance 0x00 

Processor is already paused 

Initializing CPU cache (if present) 

OK 

Downloaded 2638KB in 23.0s (114.6KB/s) 

Verified OK  

Starting processor at address 0xC1000000 

nios2-terminal: connected to hardware target using JTAG UART on cable 

nios2-terminal: "USB-Blaster [USB 6-1.1]", device 1, instance 0 

nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) 

 

Early printk initialized 

No more character then.... 

 

 

Which options should I check next? 

 

Thank you !! 

Altera_Forum
Colaborador honorário II
624 Visualizações

Please rename jtag_uart_0 to jtag_uart in your sopc builder. 

 

- Hippo
Responder