Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

uClinux boot up

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?

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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