Forum Discussion

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

nios2 + rocket boards linux-socfpga = terminal trouble

Hello, Dear All!

I am trying to launch linux on nios2 soc. I used Altera DE5 board and these instructions:

https://rocketboards.org/foswiki/view/Documentation/NiosIILinuxUserManual

https://rocketboards.org/foswiki/view/documentation/niosiilinuxusermanualforstratixiv

I used the next tools:

- toolchain Sourcery CodeBench Lite 2014.05-47

- kernels 4.4 and 4.7 from https://github.com/altera-opensource/linux-socfpga

- buildroot 2014.02 from http://git.buildroot.net/git/buildroot.git

After configuring FPGA, loading kernel and launching nios2-terminal I saw from jtag-uart messages about succesfull kernel loading and offer to enter login. But when Im trying to enter login (root), nothing happens. It seems like some problems with terminal. Could anybody help me with this issue?

Here you can download the terminal output, *.dts file and .config file for the kernel: https://drive.google.com/file/d/0B9fI2BqoGDwTeEctTnVRQjk5RDQ/view?usp=sharing

For buildroot I used this config: https://rocketboards.org/foswiki/pub/Documentation/NiosIILinuxUserManual/nios2_defconfig

Thanks in advance for any kind of help!

--

With respect,

Korotkyi Ievgen

4 Replies

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

    Hi,

    --- Quote Start ---

    After configuring FPGA, loading kernel and launching nios2-terminal I saw from jtag-uart messages about succesfull kernel loading and offer to enter login. But when Im trying to enter login (root), nothing happens. It seems like some problems with terminal. Could anybody help me with this issue?

    --- Quote End ---

    Does your login tool use /etc/securetty ?

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

    --- Quote Start ---

    Hi,

    Does your login tool use /etc/securetty ?

    Kazu

    --- Quote End ---

    Hello! Thank you for reply! I dont use etc/securetty. At least, I dont see it in my buildroot/output/target/etc

    In buildroot setting I checked "run a getty (login prompt) after boot" (ttyJ0 port, 115200 baudrate) and "Enable root login with password" with empty pass. Init system - Busybox.

    When I see login prompt I'll try to enter "root". But I dont see characters that Im typing.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    --- Quote Start ---

    The problem is solved.

    Quartus 14.1 nios2-terminal simply doesn't send characters:

    https://www.altera.com/support/support-resources/knowledge-base/solutions/rd12312014_400.html

    Excellent "feature"!

    With nios2-terminal from Quartus 13.0.1 all works fine.

    --- Quote End ---

    Maybe, you have the tendency to step on a mine(bug) with pinpoint accuracy(:-.

    But please be careful because Nios2 tools have many mines. We can't expect good qualities like QuartusII to them.

    Kazu