From greeen@iii.org.tw Mon Apr 9 22:42:39 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id WAA12293; Mon, 9 Apr 2001 22:42:39 +0200 (MET DST) Received-Date: Mon, 9 Apr 2001 22:42:39 +0200 (MET DST) Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw" via SMTP by guadalquivir.fnet.fr, id smtpd012286; Mon Apr 9 22:42:28 2001 Received: from [140.92.66.45] (helo=iiidns.iii.org.tw) by mta0.iii.org.tw with esmtp (Exim 3.16 #1) id 14mX3v-0005SS-00; Mon, 09 Apr 2001 16:30:15 +0800 Received: from Green ([140.92.12.76]) by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f398N0T11444; Mon, 9 Apr 2001 16:23:04 +0800 (CST) Message-ID: <004101c0c0d0$33ca4b40$4c0c5c8c@trd.iii.org.tw> From: "Green" To: "LinuxKernelMailList" , "MipsMailList" , "LinuxEmbeddedMailList" Subject: I can't read data from COM1 Date: Mon, 9 Apr 2001 16:36:30 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003E_01C0C113.3B269EA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 This is a multi-part message in MIME format. ------=_NextPart_000_003E_01C0C113.3B269EA0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hi all, I write a sample code(user mode) to test the serial driver. I can open COM1 and write string to COM1. But, when I want to read data from COM1, the program will block at read = function. I trace the driver source code. 1. When the program execute write operation, it will call tty_write( ) at = /drivers/char/tty_io.c. Then it will call gs_write( ) at /drivers/char/general.c. 2. When the program execute read operation,it will call tty_read( ) at = /drivers/char/tty_io.c. Then I don't know which function would be called. But it was blocked at operation which called = (tty->ldisc.read)(tty,file,buf,count), as the following /* Function tty_read( ) in tty_io.c */ if (tty->ldisc.read) { /* Program will be blocked here */ i =3D (tty->ldisc.read)(tty,file,buf,count); } else { /* Error happened */ i =3D -EIO; } What parameter should I reset? Thanks in advance. = Green ------=_NextPart_000_003E_01C0C113.3B269EA0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I write a sample code(user = mode) to test the serial=20 driver.
I can open COM1 and write = string to COM1.
But, when I want to read data = from COM1, the program will=20 block at read function.
I trace the driver source = code.
 
1.
When the program execute write = operation, it will call=20 tty_write( ) at=20 /drivers/char/tty_io.c.
Then it will call = gs_write( ) at=20 /drivers/char/general.c.
 
2.
When the program execute read = operation,it will call=20 tty_read( ) at=20 /drivers/char/tty_io.c.
Then I don't know which = function would be=20 called.
But it was blocked at operation = which called=20 (tty->ldisc.read)(tty,file,buf,count), as the=20 following
 
/* Function tty_read( ) in=20 tty_io.c */
if=20 (tty->ldisc.read)
{
      = /* Program will be blocked=20 here */
      i = =3D=20 (tty->ldisc.read)(tty,file,buf,count);
 }
=  else
 {
      /* Error=20 happened */
      i =3D=20 -EIO;
 }
 
What parameter should I = reset?
Thanks in advance.
    =        =20             =    =20             =    =20             =    =20             =    =20             =    =20             =    =20             =    =20 Green
 
------=_NextPart_000_003E_01C0C113.3B269EA0-- From michaels@jungo.com Thu Apr 12 15:39:37 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id PAA08781; Thu, 12 Apr 2001 15:39:37 +0200 (MET DST) Received-Date: Thu, 12 Apr 2001 15:39:37 +0200 (MET DST) Received: from UNKNOWN(212.170.16.42), claiming to be "servidor.spania-hq.com" via SMTP by guadalquivir.fnet.fr, id smtpd008779; Thu Apr 12 15:39:29 2001 Received: from jungo.com ([194.90.113.98] RDNS failed) by servidor.spania-hq.com with Microsoft SMTPSVC(5.0.2195.1600); Thu, 12 Apr 2001 15:40:50 +0200 Message-ID: <3AD5B003.7000908@jungo.com> Date: Thu, 12 Apr 2001 16:39:15 +0300 From: Michael Shmulevich Organization: Jungo LTD User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-21mdk i686; en-US; 0.8.1) Gecko/20010326 X-Accept-Language: en MIME-Version: 1.0 To: Linux/MIPS , FR Linux/MIPS Subject: Dynamic linker and .interp section Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Apr 2001 13:40:52.0120 (UTC) FILETIME=[30E39980:01C0C356] Hello, My question may be a bit off-topic for this list, but still I consider the list as a place that may answer me. I am trying to create a cross-compile environement for linux system that will use some specific dynamic linker. To do so I specify -Wl,--dynamic-linker flag to gcc. However doing this I face several problems: - the place for the linker during the compilation must match the place at the target system (if I pass -Wl,--dynamic-linker /xxx/yyy/ld.so then for the executable kernel looks for /xxx/yyy/ld.so in order to execute it. Instead I would like to use simply /lib/ld.so - If I pass -Wl,--dynamic-linker /lib/ld.so, then the /lib/ld.so must exist during the compilation and match the chosen system's architecture. I don't want to create this file (/lib/ld.so) on my compilation machine, as there are many architectures that get compiled there and I cannot use the same ld.so for all of them. - I saw that in gcc's spec file there is a mention of dynamic linker, for example, this one is for PPC %:{!dynamic-linker:-dynamic-linker /lib/ld.so.1} This one is interesting because there is no /lib/ld.so.1 on my machine, and it resides under /usr/local/powerpc-linux/lib. Still compiler seems to ignore the fact that it is missing from /lib and creates the corresponding .interp section and PT_INTERP header. So my question sounds like: can I specify a non-existing linker and tell ld to ignore missing file? Thanks in advance for any response, no matter how insulting it may be :-) -- Sincerely yours, Michael Shmulevich ______________________________________ Software Developer Jungo - R&D email: michaels@jungo.com web: http://www.jungo.com Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 233 Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide) From macro@ds2.pg.gda.pl Thu Apr 12 16:14:17 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id QAA10300; Thu, 12 Apr 2001 16:14:17 +0200 (MET DST) Received-Date: Thu, 12 Apr 2001 16:14:17 +0200 (MET DST) Received: from delta.ds2.pg.gda.pl(213.192.72.1) via SMTP by guadalquivir.fnet.fr, id smtpd010298; Thu Apr 12 16:13:43 2001 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id QAA25904; Thu, 12 Apr 2001 16:09:48 +0200 (MET DST) Date: Thu, 12 Apr 2001 16:09:47 +0200 (MET DST) From: "Maciej W. Rozycki" To: Michael Shmulevich cc: Linux/MIPS , FR Linux/MIPS Subject: Re: Dynamic linker and .interp section In-Reply-To: <3AD5B003.7000908@jungo.com> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 12 Apr 2001, Michael Shmulevich wrote: > So my question sounds like: can I specify a non-existing linker and tell > ld to ignore missing file? You can. Ld never checks for its existence. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From michaels@jungo.com Thu Apr 12 16:31:07 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id QAA11732; Thu, 12 Apr 2001 16:31:07 +0200 (MET DST) Received-Date: Thu, 12 Apr 2001 16:31:07 +0200 (MET DST) Received: from UNKNOWN(212.170.16.42), claiming to be "servidor.spania-hq.com" via SMTP by guadalquivir.fnet.fr, id smtpd011728; Thu Apr 12 16:31:00 2001 Received: from jungo.com ([194.90.113.98] RDNS failed) by servidor.spania-hq.com with Microsoft SMTPSVC(5.0.2195.1600); Thu, 12 Apr 2001 16:32:07 +0200 Message-ID: <3AD5BBDF.8060101@jungo.com> Date: Thu, 12 Apr 2001 17:29:51 +0300 From: Michael Shmulevich Organization: Jungo LTD User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-21mdk i686; en-US; 0.8.1) Gecko/20010326 X-Accept-Language: en MIME-Version: 1.0 To: "Maciej W. Rozycki" CC: Linux/MIPS , FR Linux/MIPS Subject: Re: Dynamic linker and .interp section References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Apr 2001 14:32:15.0003 (UTC) FILETIME=[5E6E36B0:01C0C35D] Maciej W. Rozycki wrote: > On Thu, 12 Apr 2001, Michael Shmulevich wrote: > > >> So my question sounds like: can I specify a non-existing linker and tell >> ld to ignore missing file? > > > You can. Ld never checks for its existence. As with binutils-2.10 it is not true. Not only ld looks for it, it opens the file, checks the architecture and even checks for SO_NAME (adds it do NEEDS list). I have tried it several times. Sincerely yours, Michael Shmulevich ______________________________________ Software Developer Jungo - R&D email: michaels@jungo.com web: http://www.jungo.com Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 233 Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide) From michaels@jungo.com Thu Apr 12 16:44:27 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id QAA12283; Thu, 12 Apr 2001 16:44:27 +0200 (MET DST) Received-Date: Thu, 12 Apr 2001 16:44:27 +0200 (MET DST) Received: from UNKNOWN(212.170.16.42), claiming to be "servidor.spania-hq.com" via SMTP by guadalquivir.fnet.fr, id smtpd012281; Thu Apr 12 16:44:21 2001 Received: from jungo.com ([194.90.113.98] RDNS failed) by servidor.spania-hq.com with Microsoft SMTPSVC(5.0.2195.1600); Thu, 12 Apr 2001 16:45:42 +0200 Message-ID: <3AD5BF32.8070807@jungo.com> Date: Thu, 12 Apr 2001 17:44:02 +0300 From: Michael Shmulevich Organization: Jungo LTD User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-21mdk i686; en-US; 0.8.1) Gecko/20010326 X-Accept-Language: en MIME-Version: 1.0 To: "Maciej W. Rozycki" CC: Linux/MIPS , FR Linux/MIPS Subject: Re: Dynamic linker and .interp section References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Apr 2001 14:45:43.0455 (UTC) FILETIME=[404E32F0:01C0C35F] Quick prove follow-up, sorry for dounple-posting > You can. Ld never checks for its existence. This one is for non-existing file: /home/michaels/rg.ulibc/pkg/ulibc/extra/gcc-uClibc/gcc-uClibc-i386 -L/home/michaels/rg.ulibc/pkg/ulibc -Wl,-warn-common -o busybox cat.o chmod_chown_chgrp.o clear.o cmdedit.o cp_mv.o date.o df.o dirname.o du.o echo.o find.o grep.o gunzip.o gzip.o halt.o head.o hostname.o id.o ifconfig.o init.o insmod.o interface.o kill.o klogd.o ln.o logger.o ls.o lsmod.o mkdir.o mknod.o more.o mount.o mtab.o nfsmount.o nslookup.o ping.o poweroff.o ps.o pwd.o reboot.o reset.o rm.o rmdir.o rmmod.o route.o sed.o sh.o sleep.o stty.o sync.o syslogd.o tail.o tar.o tee.o telnet.o test.o tftp.o touch.o true_false.o tty.o umount.o uname.o usleep.o which.o whoami.o xargs.o yes.o busybox.o messages.o usage.o utility.o i386-linux-gcc: /lib/ld-ulibc.so.1: No such file or directory i386-linux-gcc: /lib/ld-ulibc.so.1: No such file or directory make: *** [busybox] Error 1 [michaels@kobie busybox]$ This one for empty file: /home/michaels/rg.ulibc/pkg/ulibc/extra/gcc-uClibc/gcc-uClibc-i386 -L/home/michaels/rg.ulibc/pkg/ulibc -Wl,-warn-common -o busybox cat.o chmod_chown_chgrp.o clear.o cmdedit.o cp_mv.o date.o df.o dirname.o du.o echo.o find.o grep.o gunzip.o gzip.o halt.o head.o hostname.o id.o ifconfig.o init.o insmod.o interface.o kill.o klogd.o ln.o logger.o ls.o lsmod.o mkdir.o mknod.o more.o mount.o mtab.o nfsmount.o nslookup.o ping.o poweroff.o ps.o pwd.o reboot.o reset.o rm.o rmdir.o rmmod.o route.o sed.o sh.o sleep.o stty.o sync.o syslogd.o tail.o tar.o tee.o telnet.o test.o tftp.o touch.o true_false.o tty.o umount.o uname.o usleep.o which.o whoami.o xargs.o yes.o busybox.o messages.o usage.o utility.o /lib/ld-ulibc.so.1: file not recognized: File truncated collect2: ld returned 1 exit status make: *** [busybox] Error 1 [michaels@kobie busybox]$ -- Sincerely yours, Michael Shmulevich ______________________________________ Software Developer Jungo - R&D email: michaels@jungo.com web: http://www.jungo.com Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 233 Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide) From macro@ds2.pg.gda.pl Thu Apr 12 16:48:18 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id QAA12777; Thu, 12 Apr 2001 16:48:18 +0200 (MET DST) Received-Date: Thu, 12 Apr 2001 16:48:18 +0200 (MET DST) Received: from delta.ds2.pg.gda.pl(213.192.72.1) via SMTP by guadalquivir.fnet.fr, id smtpd012769; Thu Apr 12 16:47:56 2001 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id QAA26844; Thu, 12 Apr 2001 16:46:32 +0200 (MET DST) Date: Thu, 12 Apr 2001 16:46:31 +0200 (MET DST) From: "Maciej W. Rozycki" To: Michael Shmulevich cc: Linux/MIPS , FR Linux/MIPS Subject: Re: Dynamic linker and .interp section In-Reply-To: <3AD5BBDF.8060101@jungo.com> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 12 Apr 2001, Michael Shmulevich wrote: > > You can. Ld never checks for its existence. > > As with binutils-2.10 it is not true. Not only ld looks for it, it opens > the file, checks the architecture and even checks for SO_NAME (adds it > do NEEDS list). I have tried it several times. It is. Otherwise I wouldn't be able to cross-compile and I am. Check whether you link against a dynamic object. It might have the dynamic linker as one of it's DT_NEEDED dependencies. For example it's the case for libc.so. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From ralf@dea.waldorf-gmbh.de Sat Apr 14 17:09:11 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id RAA00621; Sat, 14 Apr 2001 17:09:11 +0200 (MET DST) Received-Date: Sat, 14 Apr 2001 17:09:11 +0200 (MET DST) Received: from 1-114.ctame700-1.telepar.net.br(200.193.160.114), claiming to be "dea.waldorf-gmbh.de" via SMTP by guadalquivir.fnet.fr, id smtpd000216; Sat Apr 14 17:09:02 2001 Received: (from ralf@localhost) by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f3E2FEo00895 for linux-mips@fnet.fr; Fri, 13 Apr 2001 23:15:14 -0300 Date: Sat, 14 Apr 2001 04:15:14 +0200 From: Ralf Baechle To: linux-mips@fnet.fr Subject: [webzyf@sina.com: the Difference between Mips R2000 and R3000] Message-ID: <20010414041514.E659@bacchus.dhis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Accept-Language: de,en,fr ----- Forwarded message from "Zhu Yifan" ----- From: "Zhu Yifan" Date: Wed, 11 Apr 2001 05:33:11 +0200 (MET DST) To: Subject: the Difference between Mips R2000 and R3000 I can't find enough information about the difference between Mips R2000 and R3000 on MIPS's own website. Is there anyone who can provide me with some detailed technical materials on that? Thanks very much! ----- End forwarded message ----- From ralf@dea.waldorf-gmbh.de Sat Apr 14 17:09:21 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id RAA00649; Sat, 14 Apr 2001 17:09:21 +0200 (MET DST) Received-Date: Sat, 14 Apr 2001 17:09:21 +0200 (MET DST) Received: from 1-114.ctame700-1.telepar.net.br(200.193.160.114), claiming to be "dea.waldorf-gmbh.de" via SMTP by guadalquivir.fnet.fr, id smtpda00216; Sat Apr 14 17:09:10 2001 Received: (from ralf@localhost) by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f3E2Gg600900; Fri, 13 Apr 2001 23:16:42 -0300 Date: Sat, 14 Apr 2001 04:16:42 +0200 From: Ralf Baechle To: "Zhu Yifan" Cc: Subject: Re: the Difference between Mips R2000 and R3000 Message-ID: <20010414041642.F659@bacchus.dhis.org> References: <007901c0c238$3526b460$0b06a8c0@zyf> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <007901c0c238$3526b460$0b06a8c0@zyf>; from webzyf@sina.com on Wed, Apr 11, 2001 at 05:33:11AM +0200 X-Accept-Language: de,en,fr On Wed, Apr 11, 2001 at 05:33:11AM +0200, Zhu Yifan wrote: > I can't find enough information about the difference between Mips > R2000 and R3000 on MIPS's own website. Is there anyone who can provide > me with some detailed technical materials on that? For all practical purposes you can consider them identical modulo bugs and clockrate. Ralf From ralf@dea.waldorf-gmbh.de Sat Apr 14 17:11:01 2001 Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id RAA00709; Sat, 14 Apr 2001 17:11:01 +0200 (MET DST) Received-Date: Sat, 14 Apr 2001 17:11:01 +0200 (MET DST) Received: from 1-114.ctame700-1.telepar.net.br(200.193.160.114), claiming to be "dea.waldorf-gmbh.de" via SMTP by guadalquivir.fnet.fr, id smtpd000707; Sat Apr 14 17:10:54 2001 Received: (from ralf@localhost) by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f3E27H700846; Fri, 13 Apr 2001 23:07:17 -0300 Date: Sat, 14 Apr 2001 04:07:17 +0200 From: Ralf Baechle To: "Green" Cc: "LinuxKernelMailList" , "MipsMailList" , "LinuxEmbeddedMailList" Subject: Re: I can't read data from COM1 Message-ID: <20010414040717.C659@bacchus.dhis.org> References: <004101c0c0d0$33ca4b40$4c0c5c8c@trd.iii.org.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004101c0c0d0$33ca4b40$4c0c5c8c@trd.iii.org.tw>; from greeen@iii.org.tw on Mon, Apr 09, 2001 at 04:36:30PM +0800 X-Accept-Language: de,en,fr On Mon, Apr 09, 2001 at 04:36:30PM +0800, Green wrote: I ran into a similar problem with 2.4.3 where I couldn't enter anything when running mingetty on the console. Turned out that by default the CREAD flag isn't set on a serial interface in 2.4.3 after bootup so you need to initialize this. Ralf