Forum Discussion

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

Nios shell freezes after "booting kernel"

Hello all,

I'm a newbie in both Nios II and ucLinux. I've followed nioswiki's tutorial (http://www.nioswiki.com/installnios2linux) and sucessfully download a ucLinux image into an Altera DE2 board. The problem is, when I execute nios-terminal in the Nios shell, it freezes after:

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

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

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

Uncompressing Linux... Ok, booting the kernel.

The Nios system I've compiled the kernel whit is this one:

(http://img34.imageshack.us/i/niosuclinux.png/)

I've created the PLL for the SDRAM controller via Mega Wizard.

Can anybody help me out with this?

P.S.: I'm using a Open Core time limited sof to configure the FPGA. Can it be the problem?

2 Replies

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

    Hello, it's me again...

    I figured my overly minimalist Nios design could be the problem. I followed phillip lutz's tutorial (http://www.hs-augsburg.de/~carcass/nios2-uclinux/uclinux_nios2_devicedrivers_and_testapplication_documentation.pdf) for porting ucLinux to the altera de2 board. It also freezes at "booting kernel...".

    I customized the DE2_NET example, as he advises. I also checked for IRQ 0 in the design. I ran:

    make xconfig && make vendor_hwselect SYSPTF=/pathtoptf/ && make romfs && make && make linux install

    then

    nios2-configure-sof DE2_NET.sof && nios2-download -g zImage && nios2-terminal

    What am I doing wrong? He says that it could also be a result from a broken initramfs image. Shouldn't make linux install take care of that?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    1. to build nios2 uclinux, just make is enough to build kernel image. there should be no need to add other target, romfs,linux,install etc.

    make menuconfig

    make vendor_hwselect

    make

    2. please post your sopc file, we can look at it.

    - Hippo