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++
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 讨论

nios2 + rocket boards linux-socfpga = terminal trouble

Altera_Forum
名誉分销商 II
1,764 次查看

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
0 项奖励
4 回复数
Altera_Forum
名誉分销商 II
710 次查看

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
0 项奖励
Altera_Forum
名誉分销商 II
710 次查看

 

--- 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.
0 项奖励
Altera_Forum
名誉分销商 II
710 次查看

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.
0 项奖励
Altera_Forum
名誉分销商 II
710 次查看

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
0 项奖励
回复