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

What is wrong with uClinux boot?

Altera_Forum
Honored Contributor II
891 Views

Hello, 

 

When I port the uClinux to my cyclone board, there has something wrong. I do not know clearly where error occur, just paste the result. Please help me. 

 

Here is my HW/SW entironment. 

-- Microtronix Cyclone Board. 

-- Quartus II 4.2 

-- Nios II 1.1 eval edition 

-- Mtx uClinux 1.3 

------------------------------------------------------ 

-- My Nios II System : FLASH/SRAM/SDRAM/OpenCores MAC/uart/jtag-uart/ Nios II/e Core and some pio. 

-- Note : I use Nios II/e Core. 

------------------------------------------------------ 

 

Here is my Step. 

 

1. I compiled the project under Quartus, then download the .sof to the board and run the memtest.c, the SRAM and FLASH run OK. 

2. I creat a Kernel Project, make my own configuration. 

(1) Processor type and feature---> 

Platform--->[Y] Microtronix Cyclone board support 

(2) Device Driver--->ATA/ATAPI/MFM/RLL support---> 

[N] ATA/ATAPI/MFM/RLL support 

(3) Device Driver--->Networking support--->Ethernet <10 or 100Mbit>---> 

[Y] Opencores Emac support 

(4) Device Driver---> Character devices---->  

Serial drivers---> 

[Y] Nios Serial support 

[N] Support for console on Nios UART 

[Y] Altera JTAG UART support 

[Y] Support for console on ALtera JTAG UART 

(5) Leave others default, Save and exit. 

(6) Build Project. 

(7) When upLoad vmlinux.bin(ByteBlasterII[LPT1]), some text display in console. 

---------------------------------------------------------------------------------------------------------------- 

"------------------------------------------------ 

Microtronix Linux Extensions 

Version 1.3, Built December 30th, 2004 

------------------------------------------------ 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

Expected integer value for option &#39;base&#39; 

Value was: &#39;&#39; 

Using default value: -1 

Mar 16, 2005 7:21:33 PM - (??) nios2-flash-programmer: No flash base specified 

nios2-flash_programmer is a utility for programming various types of 

data into flash memory connected to an Altera FPGA. 

 

usage: nios2-flash-programmer [--silent] [--debug] [--sof=file] 

[--log=file] [--cable=cable name] [--device=device number] [--verbose] 

[--help] [--relocate] [--instance=node index] [--input=file] [--quiet] 

[--erase] [--nothing] [--epcs] [--base=addr]  

 

Options may be specified in any order. 

 

--base=<addr> flash base address 

--cable=<cable name> JTAG cable name 

--debug debug mode 

--device=<device number> JTAG index of FPGA 

--epcs program an epcs flash 

--erase completely erase the flash 

--help print this message 

--input=<file> input Flash file to program 

--instance=<node index> OCI node index 

--log=<file> file for logging progress 

--nothing only download flash programmer design and 

verify communication 

--quiet only print errors 

--relocate relocate code following a SOF (EPCS mode 

only) 

--silent silent mode - same as quiet 

--sof=<file> location of target flash programmer 

design SOF. 

--verbose lots of interesting information 

 

The nios2-flash-programmer utilizes a special target design to program 

the flash memory on a board. This design is seamlessly downloaded to 

the target by nios2-flash-programmer when using a Nios Development 

Board. If you wish to program flash on a custom board, you must first 

create your own flash programmer target design. Please refer to the 

"Nios II Flash Programmer User Guide" for details of this procedure. 

 

You may use the --erase option either stand-alone, or with an input file 

to program. If used with an input file, the flash will be completely 

erased before programming. 

 

The --relocate option is used with EPCS serial configuration devices. 

If data has already been programmed into the EPCS device, it will be 

relocated at a higher address to make room for the new data being 

programmed. 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead" 

---------------------------------------------------------------------------------------------- 

 

What is wrong? and Has my vmlinux.bin been uploaded? 

 

Can some tell me?  

 

Thank you very much.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
223 Views

I have solved my problem. 

It is because of the Flash Programming Design. 

 

But another problem comes. 

When I make the system with Nios II/s Core + SDRAM + SRAM + Flash + EPCS + Timer + PIO + JTAG-UART, I creat the kernel and filesystem, upload them. The uClinux can startup in the Nios II SDK Shell. 

 

When I add the OpenCores 10/100M MAC, reconfigure the kernel with the igor_mac support, rebuild the kernle and filesystem. Upload correctly.  

 

But when type nios2-terminal in the Nios II SDK Shell console, the screen display 

nios2-terminal: .................................... 

nios2-terminal: starting in terminal mode (Control-C exits)" 

 

The cursor stay here, nothing appears in the screen. I do not know what is wrong. But without igor_mac, the system can run uClinux properly. 

 

I use Microtronix Cyclone Development Board. 

The OpenCores 10/100M Mac is the earliest version of Microtronix Provided(run under nios I and uClinux V1.0 with linux 2.4.17 kernel). 

Can guys help me? If it is because of the old Version of igor_mac, can someone give me the latest version of the igor_MAC? Just Paste here. 

 

Thank you very much. 

 

In addtion, If I use Custom Board, in uClinux Configure Kernel,  

Processor type and feature --> Platform , which platform shoud I use? 

 

Thank you.
0 Kudos
Reply