Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12455 Discussions

wahen i flash my zimage on flash memory , i can't use telnet

Altera_Forum
Honored Contributor II
1,096 Views

hi all  

please , i use µclunix , when i flash the zimage in flash memory ans i desactive the JTAG UART , i can't use telnet , in my file RC , i add inetd&  

 

--- Quote Start ---  

 

hostname uClinux 

mount -t proc proc /proc -o noexec,nosuid,nodev 

mount -t sysfs sysfs /sys -o noexec,nosuid,nodev 

mount -t devpts devpts /dev/pts -o noexec,nosuid 

mount -t usbfs none /proc/bus/usb 

mkdir /var/tmp 

mkdir /var/log 

mkdir /var/run 

mkdir /var/lock 

mkdir /var/empty 

ifconfig lo 127.0.0.1 

route add -net 127.0.0.0 netmask 255.0.0.0 lo# dhcpcd -p -a eth0 & 

cat /etc/motd 

mknoddev 

ifconfig eth0 192.168.10.180 

inetd& 

 

--- Quote End ---  

 

but when i flash my Zimage in RAM , i can use telnet withou any problem 

please, if someone have an idea , or if there is other configuartion to be able to use the telnet , I realy need it  

thank's
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
126 Views

What if you 

disable the JTAG UART and run from RAM? 

enable the JTAG UART and run from flash?
Altera_Forum
Honored Contributor II
126 Views

I have the same problem, 

I write sof in EPCS and program in CFI 

 

--- Quote Start ---  

 

sof2flash --epcs --input=<chemin>/irp.sof --output=fpga_sof.flash 

elf2flash --base=0x02800000 --end=0x02FFFFFF --reset=0x02800000 --input=zImage --output=uc_flash.flash --boot=<chemin>/Altera/nios2eds/components/altera_nios2/boot_loader_cfi.srec 

 

 

nios2-flash-programmer --epcs --base=0x03001800 fpga_sof.flash 

nios2-flash-programmer --base=0x02800000 uc_flash.flash 

 

--- Quote End ---  

uc_flash.flash = 6MBytes, so i changed Processor type and features--> Link address offset for booting from 0x00500000 to 0x01555555 (2/3 of my 32M sdram) 

 

I also changed rc file  

 

--- Quote Start ---  

 

hostname uClinux 

mount -t proc proc /proc -o noexec,nosuid,nodev 

mount -t sysfs sysfs /sys -o noexec,nosuid,nodev 

mount -t devpts devpts /dev/pts -o noexec,nosuid 

mount -t usbfs none /proc/bus/usb 

mkdir /var/tmp 

mkdir /var/log 

mkdir /var/run 

mkdir /var/lock 

mkdir /var/empty 

ifconfig lo 127.0.0.1 

route add -net 127.0.0.0 netmask 255.0.0.0 lo# dhcpcd -p -a eth0 & 

cat /etc/motd 

mknoddev 

ifconfig eth0 192.168.10.170 

inetd&  

 

--- Quote End ---  

 

After reboot, ping 192.168.10.170 work but not telnet 

(I disabled the JTAG UART and i have 2 uart in sopc used for my application) 

 

Thanks for help
Altera_Forum
Honored Contributor II
126 Views

if you disable "Support for console on Altera JTAG UART" only it dosen't work  

but if you add Bypass output when no connection it work for me :)
Altera_Forum
Honored Contributor II
126 Views

yessss it work thanks hayder and ykozlov (http://www.alteraforum.com/forum/member.php?u=26158)

Reply