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

utelnetd for uClinux

Altera_Forum
Honored Contributor II
1,533 Views

Hello, 

 

I followed buildroot guide to build the uclinux image. 

Now I have to enable utelnetd command for remote login. 

 

What i did was: 

I download "utelnetd-0.1.3.tar.gz" and extracted. 

Then I compiled with following command: 

"CC=nios2-linux-uclibc-gcc make" 

Then I got following error: 

******************************* 

nios2-linux-uclibc-gcc utelnetd.o -o utelnetd 

utelnetd.o(.text+0x9c8): In function `main': 

: undefined reference to `daemon' 

collect2: ld returned 1 exit status 

make: *** [utelnetd] Error 1 

******************************* 

 

As per web suggestion, I changes in "buildroot/toolchain_build_nios2/uClibc/libc/unistd/daemon.c" 

that as write vfork() instead of fork() and compiled again the uclibc. 

 

Can anyone help me. 

or Is there any option in buildroot or uclinux-dist to use the utelnetd. 

 

thanks & regard, 

Goutam
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
585 Views

Many servers, like ftpd,telnetd,sshd ported in uClinux-dist, should be invoked by inetd. 

They may have problem running standalone. 

There is no support of fork() and daemon(), because current Nios II has no MMU. 

you may need to enable pty support in kernel to use telnetd and sshd.
0 Kudos
Altera_Forum
Honored Contributor II
585 Views

Hi Hippo, 

 

I had already enable the option of pty support in kernel configuration. 

But, the due to daemon() undefined reference, the daemon elf file has 

not created. 

 

I tried to create the inetd, but it is also not came in /etc/. 

 

Kindly suggest me that what to do for enabling the telenetd and tftpd for uclinux. 

 

 

thanks & regards, 

Goutam
0 Kudos
Altera_Forum
Honored Contributor II
585 Views

 

--- Quote Start ---  

originally posted by goutam_kumar@May 11 2006, 07:07 PM 

hi hippo, 

 

i had already enable the option of pty support in kernel configuration. 

but, the due to daemon() undefined reference, the daemon elf file has 

not created. 

 

i tried to create the inetd, but it is also not came in /etc/. 

 

kindly suggest me that what to do for enabling the telenetd and tftpd for uclinux. 

 

 

thanks & regards, 

goutam 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15291) 

--- quote end ---  

 

--- Quote End ---  

 

please follow step13, for inetd,telnetd 

and step14, for tftpd
0 Kudos
Altera_Forum
Honored Contributor II
585 Views

Hi Hippo, 

 

with a very Good Morning, I have to say that I am able created telnetd. 

But yet I havn&#39;t check it on the board. I will acknowledge afterwards. 

 

For step 14, I have some query. Please clarify these: 

1. while doing "make menuconfig" in uclinux-dist-test. 

it is asking for busybox, tinylogin and all other utility. 

for selecting tftpd, is it necessary to select again busybox in uclinux-dist? 

 

2. i am working with uclinux-dist-test (from uclinux-dist-20051209.tar.gz 

is it ok or I can use the uclinux-dist-20051110.tar.gs

 

This week, I haven&#39;t get any single significant progress. 

My Boss will kill me on monday. 

Please, help me! 

 

 

thanks & regarding 

Goutam
0 Kudos
Altera_Forum
Honored Contributor II
585 Views

 

--- Quote Start ---  

originally posted by goutam_kumar@May 12 2006, 02:15 PM 

hi hippo, 

 

with a very good morning, i have to say that i am able created telnetd. 

but yet i havn&#39;t check it on the board. i will acknowledge afterwards. 

 

for step 14, i have some query. please clarify these: 

1. while doing "make menuconfig" in uclinux-dist-test. 

    it is asking for busybox, tinylogin and all other utility. 

    for selecting tftpd, is it necessary to select again busybox in uclinux-dist? 

 

    2. i am working with uclinux-dist-test (from uclinux-dist-20051209.tar.gz 

        is it ok or i can use the uclinux-dist-20051110.tar.gs

 

this week, i haven&#39;t get any single significant progress. 

my boss will kill me on monday. 

please, help me! 

 

 

thanks & regarding 

goutam 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15313) 

--- quote end ---  

 

--- Quote End ---  

 

I have updated build script, check the buildroot guide again. 

You should use uclinux-dist-20051110. 

 

We already have busybox in buildroot, so don&#39;t select busybox again. 

Select only what you need, the tftpd, and clear all others. 

 

Bless you.
0 Kudos
Reply