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

uClinux boot up

Altera_Forum
Honored Contributor II
1,164 Views

I have created uClinux filesystem using the distribution downloaded from this forum. When I power up the nios2 board, the uClinux can't boot up untill I open nios2-terminal. What is the reason?

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
488 Views

Hi Writer, 

Please check page 11 of the "Reference Guide.pdf", it says: 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

If the JTAG UART is chosen as the console, in order for the kernel to proceed normally, the nios2-terminal utility must be started, either through command line or Eclipse. This is because the JTAG UART FIFO will soon become full if no application reads data out of the JTAG on the other side, and printk (hence the kernel) will get stuck. Fortunately, just starting the nios2-terminal will bring an already stuck kernel back to normal. If starting nios2-terminal is not wanted, please disable JTAG UART console in the Linux kernel configuration.[/b] 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
488 Views

I am having this same problem where I cannot boot Linux (w/MMU) from flash until I connect the USB Blaster and run nios2-terminal. Once I do that, the code runs perfectly from and the messaging comes up on the JTAG console. 

 

I have removed JTAG console support from my image which is what I thought was the problem. Here is snippet from my kernel .config: 

 

CONFIG_SERIAL_CORE=y# CONFIG_SERIAL_ALTERA_JTAGUART is not set 

CONFIG_SERIAL_ALTERA_UART=y 

CONFIG_SERIAL_ALTERA_UART_MAXPORTS=4 

CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200# CONFIG_SERIAL_ALTERA_UART_CONSOLE is not set 

 

Yet, I still see the messages when I connect. Nothing happens in the hardware until I connect the USB Blaster. 

 

If I don't have a console, is that the problem? 

 

I would really appreciate help as this is urgent (and yes, it's Friday night.) 

 

Here are some relevant files: 

 

kernel .config:  

http://davehenning.com/pages/kernel_dot_config 

 

linux-2.6/arch/nios2/kernel/config.c:  

http://davehenning.com/pages/config.c 

 

linux-2.6/arch/nios2/include/asm/custom_fpga.h: 

http://davehenning.com/pages/custom_fpga.h 

 

Dave ...
0 Kudos
Altera_Forum
Honored Contributor II
488 Views

Well, it used to be done by ticking an option in menuconfig. I haven't used the MMU "flavor" much, so I can't comment on whether this sort of thing is feasible in that flow. 

 

http://www.nioswiki.com/index.php?title=operatingsystems/uclinux/uclinuxdist/linuxconfig 

 

I'm taking it that the option mentioned here is no longer available? Have you tried posting to the dev list? 

 

Good luck! 

 

-slacker
0 Kudos
Reply