Linux-Development-Sys Digest #865, Volume #6 Wed, 23 Jun 99 14:14:16 EDT
Contents:
Re: WinModems and Linux (Robert Krawitz)
Re: Difficulty in compiling kernel 2.2.10 (Paul Kimoto)
PCI driver blues (Danny Sung)
Re: Problems reading CD created under Win9x (Mark Tranchant)
Re: TAO: the ultimate OS ("Bill Zimmerly")
shared memory segment (omprakash gnawali)
shared memory segment (omprakash gnawali)
localhost call fails on Redhat 6.0 when built on SUSE 5.3 (Michael Samson)
Re: You can now use Winmodems in Linux!!!!!!! (Medical Electronics Lab)
problems with gtk+-1.0.4-sol26-sparc-local.gz (Guillermo)
Re: database -- questionnaire (Harald Arnesen)
----------------------------------------------------------------------------
From: Robert Krawitz <[EMAIL PROTECTED]>
Subject: Re: WinModems and Linux
Date: 23 Jun 1999 08:56:04 -0400
Craig Graham <[EMAIL PROTECTED]> writes:
> pzdev <[EMAIL PROTECTED]> wrote:
> > Please excuse me for not threading this with the main WinModems thread,
> > but I'm having problems with my newsreader.
> >
> > A few comments about using WinModems under Linux. Contrary to what has
> > been said in this forum, the reason that a WinModem is less expensive
> > and consumes more of the host CPU is not because it is using the host
> > CPU to perform the work of a UART in a normal modem.
> Are you sure about that? I ask because I've programmed the Rockwell DP
> series chips direct before (we used the data pump chip directly in a settop
> box project I worked on a few years back). Admitedly they have no AT
> command set - all you have is a set of registers that you can access, but
> most of what you had to do was implement a state machine to control
> the data pump.
There are a few different kinds of winmodems -- HSP (host signal
processing), which only have a D-A and rely on the host to do the DSP,
and HCF (controller-free), which have a data pump and rely on the host
for modem control. So both kinds of modems exist.
--
Robert Krawitz <[EMAIL PROTECTED]> http://www.tiac.net/users/rlk/
Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail [EMAIL PROTECTED]
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Difficulty in compiling kernel 2.2.10
Date: 23 Jun 1999 03:21:59 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Wei-shi Tsai wrote:
> sum.c:200: redefinition of `csum_partial_copy'
> checksum.c:105: `csum_partial_copy' previously defined here
> {standard input}: Assembler messages:
> {standard input}:185: Fatal error: Symbol csum_partial_copy already
> defined.
There is no (ix86) checksum.c file in the 2.2 kernel series. It must
be left over from some old kernel source. Delete it.
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (Danny Sung)
Subject: PCI driver blues
Date: Wed, 23 Jun 1999 07:20:22 GMT
Reply-To: [EMAIL PROTECTED]
Okay, attached below is a stripped down version of what I'm trying to
do. This is just a minimal test to see if I can talk to a PCI board
at all.. (it's a board that uses AMCC's S9533, and I'm trying to read
the control register... but just getting 0xff's for every byte that I
read... (meaning a 0xffffffff for 32-bit reads)).
I've tried ioremap(), ioremap_nocache() cause it's non-prefetchable
memory, and __ioremap() with other options I thought might be
helpful... I've tried ioremap(virt_to_bus(addr)) as well. But
nothing is getting anything but FF's.
Some kind soul please help me out?
Thank you kindly,
Danny Sung
PS: I am using RH60, kernel 2.2.5, btw. Oh and it does indeed find
the board's configuration registers and all... I just took the
verification code out focus on the problem.
Here's the code:
#include <linux/config.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/fcntl.h>
#include <linux/malloc.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/wrapper.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/types.h>
#include <asm/uaccess.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/version.h>
void test_video(void);
#define PCI_VENDOR_ID_ANALOGDEV 0x11D4
#define PCI_DEVICE_ID_ANALOGDEV_ADV601VIDEOLAB 0x0601
static u32 pci_addresses[] = {
PCI_BASE_ADDRESS_0,
PCI_BASE_ADDRESS_1,
PCI_BASE_ADDRESS_2,
PCI_BASE_ADDRESS_3,
PCI_BASE_ADDRESS_4,
PCI_BASE_ADDRESS_5,
0
};
#ifdef MODULE
#define videolab_init init_module
void cleanup_module(void)
{
printk("----------- videolab module cleanup ------------\n");
}
#endif
__initfunc(int videolab_init(void))
{
int i;
u32 val;
u32 curr, mask;
int size;
u32 addr=0;
struct pci_dev *dev = 0;
printk("----------- videolab module: loading --------------\n");
dev = pci_find_device(PCI_VENDOR_ID_ANALOGDEV,
PCI_DEVICE_ID_ANALOGDEV_ADV601VIDEOLAB, dev);
if( dev == NULL ) {
printk("videolab: device NOT found!\n");
return(0);
}
i = 0;
/* Find size of memory address */
pci_read_config_dword(dev, pci_addresses[i], &curr);
cli();
pci_write_config_dword(dev, pci_addresses[i], ~0);
pci_read_config_dword(dev, pci_addresses[i], &mask);
pci_write_config_dword(dev, pci_addresses[i], (int)&curr);
sti();
if( (mask & PCI_BASE_ADDRESS_SPACE) == 1 ) {
printk("I/O memory! strange");
return(0);
}
size = ~(PCI_BASE_ADDRESS_MEM_MASK)+1;
printk("attempting to set master...\n");
pci_set_master(dev);
/* Remap memory */
addr = dev->base_address[i];
addr &= PCI_BASE_ADDRESS_MEM_MASK;
addr = (u32)ioremap_nocache(addr, size);
/*addr = (u32)__ioremap(addr, vlab->pcibar[i].size,
_PAGE_PCD|_PAGE_RW|_PAGE_PRESENT);*/
/* read contents of register */
val = readl(addr + 0x38);
printk("read val = %lx\n", (unsigned long)val);
iounmap((u32 *)addr);
return 0;
}
And here's it with makefile and all:
begin 640 pci_test.tar.gz
M'XL(`)2(<#<``^U7ZV_;-A#/U^FON#Q62&EL2WYE<.I@KJUF1AT[<!X=T'6"
M(E$V$9DR1,E-UK5_^XZBI"2.V@;#TFVH?A\<ZNYX[R.9I4.MB/"HMO%T@*:^
MW])A`P#VV\U[?U/H`.W]1M/0FW4#UX;1KK<WH/6$/N6(>62'`!NNS=@-_[S<
MU_C_4RRS^A_;5\2C/GD"&X:NMYM?J'^SL2_KK]=;QKZH?Z/1VM\`_0E\>8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--E^=T+)W.^`=`3&DS/P@IBYF])E
M*1Z2*`Z9JDO"QR00*A.#J]HNO,)8DJ1"@*\CL@C"&T@;'W9K2?(PXI#8KB7/
M6\M]'X2NBE;WUJ:$OMN#9Z)DTICC4U6NA-C[D$;D42H^Z;>['F]7-,G?L29Z
M4[OC-8\2K[,BJ$(O/'LXA:<GO;ZIB0(9!=49UB9I,C>3UK39C'R^*,*LJ$`7
M/JD/#!V;Q]9Q[_2U]MRXW\QVA"?],A(M&P7`220&)<);H5K-.T#$BQQ+<E39
M7VGEIV1A+[.2RU*+U*`7*%8YO+0YR7*%F3K(^<^Z#[.1.2F5IVI4'%&-XO^F
M:,=B@6/C3:H*WEX2KI:VX%UI/#.D?"JWP@ZO'&(4EW:(3E3%OFRTK)/>D6F=
M]`=_RM7T3;HX09?,\9EV@$&EL8H^PG^36418Q$6GAV1&14K2P/'001>$E)]8
MAN=X*S1^2I.8)CQ1(B5_]*\QQ]@],>-TQHB+IP>;:<C,>@<G480AHH)=3>B4
IRF3MQ?SA,);_2)0H4:)$B1(E2I0H4:)$B1(E2I0HD>$O,CQL)``H````
`
end
17576 2
------------------------------
From: Mark Tranchant <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.networking
Subject: Re: Problems reading CD created under Win9x
Date: Wed, 23 Jun 1999 08:06:51 +0100
Reply-To: [EMAIL PROTECTED]
I had this problem too - although 16MB was as far as I could see. I was
advised to investigate the "cruft" mount option for the iso9660
filesystem, but didn't get around to it as my box is dual-boot, and I
used Win95 to pull it off the CD.
Mark.
Rod Smith wrote:
>
> [Posted and mailed]
>
> In article <GxMb3.365$[EMAIL PROTECTED]>,
> "R Potts" <[EMAIL PROTECTED]> writes:
> > I recently donwloaded a 140MB file and had some one copy it to a CD for me
> > under Win95. When I look at the CD under Linux I can see 68MB of the file
> > but when I look at it under a Win95 macine I can see the whole thing.
> >
> > What's up with this and how can I see the whole file. I don't have access
> > to a CD-RW under Linux or another UNIX OS.
>
> Chances are the file was copied using a packet writing program. This is a
> program that lets you treat the CD-R drive as if it were a regular hard
> disk. The problem is that Linux doesn't like CDs created in this way.
>
> If the only way you can get this file into Linux is directly off the CD,
> your best bet is to have your friend try again using conventional CD-R
> software like Easy CD Creator, Nero, or whatnot. Alternatively, you might
> have luck if you ran VMWare on Linux and accessed it from Windows under
> VMWare, but then you'd have to install Windows in VMWare, and that's a lot
> of work to get one file.
>
> --
> Rod Smith
> [EMAIL PROTECTED]
> http://www.channel1.com/users/rodsmith
> NOTE: Remove the "uce" word from my address to mail me
------------------------------
From: "Bill Zimmerly" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: Wed, 23 Jun 1999 09:20:00 -0500
"Like a madman shooting firebrands or deadly arrows is a man who deceives
his neighbor and says, 'I was only joking!'" - Proverbs 26:18-19
Good luck on your "project", Vlad, you're gonna need it.
- Bill
Vladimir Z. Nuri <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I joked about LT's "authority & credentials" & then some humor-impaired
> individual wrote:
>
> : Not to take any respect away from Linus, who certainly deserves our
> : respect...
> : ...but you are not going to earn anyone's respect by insulting us like
that.
> : FYI, some of us were designing and writing operating systems, device
drivers
> : and programming languages before Linus was out of kindergarten.
>
> the insult is in the eye of the beholder.. and who is insulting who?
>
>
> --
>
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
~^
> "in theory, there's no difference
[EMAIL PROTECTED]
> between theory and practice, mad genius research
lab
> but in practice there is!"
http://www8.pair.com/mnajtiv/
------------------------------
From: omprakash gnawali <[EMAIL PROTECTED]>
Subject: shared memory segment
Date: Wed, 23 Jun 1999 11:21:49 -0400
hi:
i was trying to hack a little bit of ipc and mm code so that i could
create a shared memory segment that point to a specified real address. i
created a segment type called MY_SEG and if that flag is passed to
shmget i put in a specific key from shmget itself so now all the shmget
requests with MY_SEG flag point to the same physical page regardless of
the key passed to shmget because i am changing that key to a specific
key from within shmget itself.
after doing this i want to be able to point the shared segment to a
specific hardware address. for instance all the shmget with MY_SEG
should eventually allow me to access address starting lets say
0x50800000.
does anyone have relevant experience in tweaking this kind of things?
thanks in advance.
- om_p
------------------------------
From: omprakash gnawali <[EMAIL PROTECTED]>
Subject: shared memory segment
Date: Wed, 23 Jun 1999 11:22:31 -0400
hi:
i was trying to hack a little bit of ipc and mm code so that i could
create a shared memory segment that point to a specified real address. i
created a segment type called MY_SEG and if that flag is passed to
shmget i put in a specific key from shmget itself so now all the shmget
requests with MY_SEG flag point to the same physical page regardless of
the key passed to shmget because i am changing that key to a specific
key from within shmget itself.
after doing this i want to be able to point the shared segment to a
specific hardware address. for instance all the shmget with MY_SEG
should eventually allow me to access address starting lets say
0x50800000.
does anyone have relevant experience in tweaking this kind of things?
thanks in advance.
- om_p
------------------------------
From: Michael Samson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,redhat.general
Subject: localhost call fails on Redhat 6.0 when built on SUSE 5.3
Date: 23 Jun 1999 14:30:54 GMT
Hello all,
I current have a program which utilizes the localhost call to determine
the correct time.
When I build my program on SUSE 5.3 (statically - libc5) and run this
program
on Redhat 6.0, the localhost call fails.
In addition, when the program is run on Redhat 5.2, SUSE 6.0, Caldera,
etc. it works fine.
When I build the program on Redhat 5.2, and run it on Redhat 6.0, it also
runs fine.
It seems that there is a issue with libc5 on SUSE (statically linked) when
run on Redhat 6.0.
What is the issue here?
I need to build on SUSE 5.3 and have my program run on all other OS's.
Please help. What can I do to accomplish this.
I have attached my code snippet below.
Thanks,
Mike
#include <stdio.h>
#include <time.h>
main(){
time_t current_time;
struct tm *tblock;
char time_string[128];
tzset();
/* gets time of day */
current_time = time(0);
printf("current_time = %d\n",current_time);
/* converts date/time to a structure */
tblock = localtime(¤t_time);
strftime(time_string, 127, "%m/%d/%y,%H:%M:%S", tblock);
printf("time_string = %s\n",time_string);
printf("tzname = %s\n",tzname[daylight]);
printf("daylight = %d\n",daylight);
printf("timezone = %d\n",timezone);
}
================== Posted via SearchLinux ==================
http://www.searchlinux.com
------------------------------
From: Medical Electronics Lab <[EMAIL PROTECTED]>
Subject: Re: You can now use Winmodems in Linux!!!!!!!
Date: Tue, 22 Jun 1999 13:07:56 -0500
Frank v Waveren wrote:
> Can we change the name to hoax? This is some guy who thinks he's funny,
> there are currently no winmodem drivers for linux :-(
So let's change that! I bet if we can help the modem manufacturers
sell an extra 1000 modems a month they'd be happy to help us write
the drivers. I ain't no salesman, but I can deal with modem tones
no problem!
The winmodem is just a digitizer that does DMA into a buffer. The
processor has to convert the audio bits to multiple tone data, and
then to data bits. It's straight forward data manipulation. There
is no reason we can't write a driver for any winmodem.
Who wants to go where no one has gone before?
Patience, persistence, truth,
Dr. mike
------------------------------
From: Guillermo <[EMAIL PROTECTED]>
Subject: problems with gtk+-1.0.4-sol26-sparc-local.gz
Date: Wed, 23 Jun 1999 17:12:52 +0200
I have installed gtk+-1.0.4-sol26-sparc-local.gz in a sparc solaris 2.6
and all was ok during the proces. But whe i go to the examples and I run
make it display me:
ld error fatal
I only have instaled the gcc and make of GNU
Thanks a million
Guillermo
------------------------------
From: Harald Arnesen <[EMAIL PROTECTED]>
Subject: Re: database -- questionnaire
Date: 23 Jun 1999 12:02:22 +0200
[EMAIL PROTECTED] writes:
> My company wants to focus our database product -DBMaker (Does
> anyone hear about it? DBMaker has 5-user free package for anyone who
> wants to try it.) on Linux. We need to gether more information. So I
> have some questions need you guys' help.
>
> 4. What do you think a well-defined database solution should have?
Since all the 'big' databases (Sybase, DB2, Oracle,...) have more or
less free versions for Linux, I think the high-end market about filled
up.
What you should go for is a front-end to these DBs, to make building
applications easier.
Or you could try for something similar to what Windows users have,
Fics <http://www.kvamdata.no>, Lotus Approach or any of the competing
products: A lightweight database, which also can connect to a 'real'
database (the big ones mentioned above).
--
Harald Arnesen, Apall�kkveien 23 A, N-0956 Oslo, Norway
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************