Linux-Development-Sys Digest #147, Volume #8 Thu, 14 Sep 00 23:13:12 EDT
Contents:
Re: sound during system startup (in LILO?) (Kasper Dupont)
Re: Help! (Josef Moellers)
Re: new windowing system ("[EMAIL PROTECTED]")
Re: aic7xxx 2.4.0 kernel module...gone ("Jeremy Savoy")
Re: new windowing system (Stefaan A Eeckels)
Any free round-trip-engineering software tools out there? (Gene Montgomery)
Re: new windowing system ([EMAIL PROTECTED])
How to open a network device ("jscunnin")
Re: How to open a network device (Kaz Kylheku)
Re: How to open a network device (Karl Heyes)
Re: new windowing system (Karl Heyes)
Re: lilo problems with 19GB IDE drive (Karl Heyes)
Message distribution manager / server ("Dave Vance")
New problem with writing to ISA hole (Steve Helding)
Re: Message distribution manager / server (Erik Max Francis)
----------------------------------------------------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: sound during system startup (in LILO?)
Date: Thu, 14 Sep 2000 10:45:14 +0200
[EMAIL PROTECTED] wrote:
>
> When a Mac starts up, we hear a pleasant little phooom sound.
> When Windows starts up, we hear some chintsy annoying sound.
> When Linux starts up, one hears nothing except the hard disk.
>
> Has anyone pursued the idea of, perhaps before kernel
> decompression, playing a simple pleasant sound on the PC
> speaker using a modification of the PC Speaker Driver's
> PCM routine? Doing it in LILO would allow removing it via
> an option if the user so desires, and it would also allow
> passing musical notes to the PCM routine to play using perhaps
> a simple sine-wave.
>
> Even a penguin quack would be nice.
>
> uwuh
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
I don't think that LILO will ever get that feature.
You could either write your own loader with that
feature or do it before LILO is being loaded. Most
PC's have 31KB of unused space at the start of the
harddisk, here you could place the sound and a
copy of the MBR in the MBR you could then place
the code to play the sound. That would work
independent of what OS you are using.
--
Kasper Dupont
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: Help!
Date: Thu, 14 Sep 2000 15:03:53 +0200
xing li wrote:
> =
> Thanks a lot!
> As I changed sprintk to sprintf and compiled with -O, it seems fine to
> load the module.
> Why doesn't the compiler give any error message about the undeclared
> function sprintk?
The Reference manual in The White Book has to say this:
A7.3.2 Function Calls
A function call is a postfix expression, ...
If the postfix expression consits of an identifier for which no
declaration exists in the current scope, the identifier is implicitly
declared as if the declaration
extern int identifier();
had been given in the innermost block containing the function call."
In other words: you can call functions without declaring them. The
compiler will declare them as being global functions returning "int"s.
No warning will be given, you are warned!
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
------------------------------
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: Re: new windowing system
Date: Thu, 14 Sep 2000 15:29:27 +0200
Hi,
There are several projects,
like Berlin and believe it or not "Y" ,
It also helps not using rubbish windowing manager like kde,
that like crashing every now and then.
The XFree86 4.0 allows for non socket servers as far as I can recall.
"If the designers of X made cars,
there would be at least 7 steering wheels each working differently,
but you would be able to change gears with the radio"
Richard.
[EMAIL PROTECTED] wrote:
> It seems to me that many people are dissatisfied with X Windows.
> I myself am one of them. It takes up a lot of memory. It is not
> too difficult to code for but is bulky and people say it has
> security holes. Has anyone developed an alternative, however?
> It seems to me that the fact that X uses sockets is bound to
> reduce performance and increase memory use, as well. I myself
> have only very rarely run a program on another computer and
> displayed the window on my system. Is there any reason why a
> simple windowing system cannot exist as a driver?
>
> uwuh
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: "Jeremy Savoy" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: aic7xxx 2.4.0 kernel module...gone
Date: Thu, 14 Sep 2000 09:35:03 -0400
In article <[EMAIL PROTECTED]>, "Ghengis Kahn"
<[EMAIL PROTECTED]> wrote:
I am using the 2.4.0-test7 kernel and I amusing the aic7xxx drivers with
no problem. However, I have the drivers compile into the kernel, not
loaded as a module. I made that mistake once and my machine would not
boot. After reading the docs in the Documentation tree of the new kernel
it clearly states **NOT** to load any of the SCSI stuff as a module if
that is where you boot from. So I recompliled with direct support instead
of modules and it works fine now. Of course if you don't boot from SCSI
then I don't think this matters, but if you've got a scsi drive that gets
used every time the machine is on, or any component for that matter why
not just compile it into the kernel anyways???
> Darren Welson wrote:
>
>> Every time I recompile 2.4.0-test 6,7, and 8 kernel, I cannot seem to
>> successfully load the AIC7XXX module, or at least have it made. Anyone
>> know how I can check to make sure I am actually making this module, or
>> find a way I can to compile it into the kernel? I have added it as a
>> module and IN the kernel in all three test versions as a low-level SCSI
>> option, but what am I missing?
>>
>> darren
>
> I would like to know the answer to that as well. I have the same problem
> with the 2.2.12-20 kernal. As far as I can tell, it is not possible to
> rebuild the kernel with the AIC7xxxx drivers and actually get it to
> boot. I spent several days fighting the "UNRESOLVED SYMBOLS" error on
> boot. So am I stuck running the kernel that was installed from the RH
> installation CD. Like you, I also turned on every damn scsi module
> there was and I even tossed in the IDE modules as well. No luck. There
> is some magic trick that the installation CD knows about that allows the
> aic7xxxx to run with the default install, but for whatever reason
> doesn't work when regen'ing the kernel. I have to conclude there is an
> error in the dependencies ("make dep") that is causing this. But I have
> no clue how to track it down.
>
------------------------------
From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: new windowing system
Date: Thu, 14 Sep 2000 16:52:43 +0200
In article <[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
>
> "If the designers of X made cars,
> there would be at least 7 steering wheels each working differently,
> but you would be able to change gears with the radio"
Nah, it wouldn't have a steering wheel, or a radio, or
a stick, or any other snazzy paraphernalia. No seats,
no doors, actually, no body at all, just a chassis,
an engine, a gearbox and four wheels. But it would
be able to fly, when the good-looking gadget-rich
planned-obsolete car of the competition is stuck in
a traffic jam.
BTW, do they still say "robot" for a traffic light
in your nick of the woods?
Take care,
--
Stefaan
--
Ninety-Ninety Rule of Project Schedules:
The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.
------------------------------
From: Gene Montgomery <[EMAIL PROTECTED]>
Subject: Any free round-trip-engineering software tools out there?
Date: Thu, 14 Sep 2000 15:03:22 GMT
Does anyone know of any round-trip-engineering software tools supporting
for example C, C++, Fortran, and/or Java?
I have in mind something like Together, but perhaps supporting some of
the older languages as well, such as C and Fortran, and of course "price
IS an object" to paraphrase. Commercial tools like Together, although
very nice, run into the thousands of $ - clearly not suitable for the
hobbyist (am I dating myself with that term?).
With these modern tools, I especially like the fact that diagrams and
code remain in sync at all times. Are there any free tools or toolkits
which address the round-trip software engineering domain, even if
partially?
Gene Montgomery
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: Thu, 14 Sep 2000 18:49:58 GMT
In article <sSUv5.5422$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
>Has anyone developed an alternative, however?
>
> Several have done so; none that represent _realistic_ alternatives,
> though.
How are you defining realistic?
> A modicum of research would show that it supports other transport
> layers as well
Modicum? You have to be joking. I went to your link and found
research, yes, but hardly anything I'd find outside some
computer science departent's limited-access library. Sheesh.
uwuh
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "jscunnin" <[EMAIL PROTECTED]>
Subject: How to open a network device
Date: Thu, 14 Sep 2000 14:53:39 -0600
I am trying to perform an ioctl to my network device driver but am unable to
get past the open. I have tried the following code to no avail:
fd = open("eth0",...)
ioctl(fd, ...)
I was under the impression that opening a network device used the symbolic
name "eth0" as opposed to a file in /dev. In either case I am unable to open
the network device driver or to do an ioctl on it.
I am new to network modules (both kernel & user space). Can anyone help
point me in the right direction?
Thanks
John
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: How to open a network device
Reply-To: [EMAIL PROTECTED]
Date: Thu, 14 Sep 2000 21:54:09 GMT
On Thu, 14 Sep 2000 14:53:39 -0600, jscunnin <[EMAIL PROTECTED]>
wrote:
>I am trying to perform an ioctl to my network device driver but am unable to
>get past the open. I have tried the following code to no avail:
>
> fd = open("eth0",...)
> ioctl(fd, ...)
>
>I was under the impression that opening a network device used the symbolic
>name "eth0" as opposed to a file in /dev. In either case I am unable to open
>the network device driver or to do an ioctl on it.
No, opening "eth0" simply opens a file in the current working directory, should
the mode and permissions allow. If eth0 was a magic name, it would cause
problems for someone trying to just use it as a filename. Now what kind of
shitty operating system would do something like that?
>
>I am new to network modules (both kernel & user space). Can anyone help
>point me in the right direction?
You have to create a socket in the AF_PACKET address family. The type is
specified as SOCK_DGRAM or SOCK_RAW. Then you need to bind it to a particular
adapter. This is done using not a struct sockaddr_in but a sockaddr_ll, whose
'sll_ifindex' is used to specify the index number of the interface.
An alternative is to specify SOCK_PACKET type socket, which you can bind to an
interface using sockaddr_pkt instead of a sockaddr_ll, which has a character
field for getting the device by name.
The diffences between these two ways of creating the socket are in how they
handle the details of I/O. SOCK_PACKET is supposedly obsolete.
--
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.
------------------------------
From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: How to open a network device
Date: Thu, 14 Sep 2000 23:11:24 +0000
In article <8prdrk$[EMAIL PROTECTED]>, "jscunnin"
<[EMAIL PROTECTED]> wrote:
> I am trying to perform an ioctl to my network device driver but am unable to
> get past the open. I have tried the following code to no avail:
>
> fd = open("eth0",...) ioctl(fd, ...)
>
Network devices are in a different namespace, arguably it could be under /dev
> I was under the impression that opening a network device used the symbolic
> name "eth0" as opposed to a file in /dev. In either case I am unable to open
> the network device driver or to do an ioctl on it.
>
>
try man socket.
------------------------------
From: Karl Heyes <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: Thu, 14 Sep 2000 23:20:57 +0000
In article <sSUv5.5422$[EMAIL PROTECTED]>, [EMAIL PROTECTED]
(Christopher Browne) wrote:
> It seems to me that the "fact that X uses sockets" represents one of those
> "unexamined fallacies" of life. Because it is a _false_ statement.
>
> A modicum of research would show that it supports other transport layers as
> well, notably local connections via STREAMS pipes and Unix Domain Sockets,
> which are both Rather Faster Than BSD Sockets.
>
Streams has been notorious for being slow, see solaris as an example, but there
has been reports of using pipes and improving X performance, by how much
I don't know.
karl
------------------------------
From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: lilo problems with 19GB IDE drive
Date: Thu, 14 Sep 2000 23:35:19 +0000
In article <8ppf7n$3fp$[EMAIL PROTECTED]>, Jeremy A Carlson
.....
>
> The following is the listing of my lilo.conf:
>
> #boot = /dev/ide/host0/bus0/target0/lun0/disc
> boot = /dev/scsi/host0/bus0/target0/lun0/part1
Doesn't this tell lilo to put itself in the partition not the MBR, try using the
previous line.
> #boot = /dev/sda1
> disk = /dev/scsi/host0/bus0/target0/lun0/disc
> #disk = /dev/sda
> bios = 0x80
> disk = /dev/ide/host0/bus0/target0/lun0/disc
> # bios = 0x80
> # sectors = 63
> # heads = 255
> # cylinders = 2495
> lba32 map = /boot/map install = /boot/boot.b prompt image =
> /boot/vmlinuz-2.4.0-test5
> label = linux root = /dev/scsi/host0/bus0/target0/lun0/part1
> # root = /dev/sda1
> read-only append = "video=aty128fb:1280x1024-32@75"
> other = /dev/ide/host0/bus0/target0/lun0/part1
> label = windows table = /dev/ide/host0/bus0/target0/lun0/disc
> other = /dev/scsi/host0/bus0/target0/lun0/part3
> label = win98 table = /dev/scsi/host0/bus0/target0/lun0/disc
>
> I am using linux kernel 2.4.0-test5, with devfs option. That is why the
> /dev hierarchy is so deep. The commented lines are either for backward
> compatibility or are unsuccessful installations. I'm still not having any
> luck installing lilo onto the ide hard drive. It stops, both with the
> geometry setting and without, at LI. I have also tried to give lilo the
> "normal" geometry of the drive. All to no avail.
I ike the idea of devfs, but needs refining alot more. Just try the linux
boot option for the moment, then add other(s) in later.
Dont't bother with the disk lines for the moment. Do you know which
disk is the boot disk ide/scsi?.
karl
------------------------------
From: "Dave Vance" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development.apps,comp.os.linux.embedded,comp.os.linux.help,comp.os.linux.questions
Subject: Message distribution manager / server
Date: Thu, 14 Sep 2000 17:05:22 -0600
Can anybody tell me if there is such a thing as an Event Distribution
Manager / Event Notification Server / Message Queue Manager / Message
Distribution Manager / Message Notification Server.. for Linux?
Basically, an entity (application, driver, whatever) that accepts messages
from one set of applications and forwards those messages on to another set
of applications, which have "registered" with the distribution manager to
receive messages.
------------------------------
From: Steve Helding <[EMAIL PROTECTED]>
Subject: New problem with writing to ISA hole
Date: 15 Sep 2000 02:30:04 GMT
Reply-To: [EMAIL PROTECTED]
I'm now successfully reading from an ISA board. I know I'm reading it
because the hardware people told me what value I should see, but when I
write to the board I get:
do_wp_page: bogus page at address 40132082 (C0F00000)
Bus error
The code goes like this the beginning of which is borrowed from Rubini's
mapper.c
int main(int argc, char **argv)
{
char *fname = "/dev/mem";
FILE *f;
unsigned int offset = 0xf00000;
unsigned int len = 0x100000;
void *mappedAddr;
int i, j;
int numArgs;
char op[4];
unsigned int size, addr, data;
char *buf;
if (!(f=fopen(fname,"r"))) {
fprintf(stderr, "%s: %s: %s\n", argv[0], fname,
strerror(errno));
exit(1);
}
mappedAddr=mmap(0, len, PROT_READ | PROT_WRITE, MAP_FILE |
MAP_PRIVATE,
if (mappedAddr == (void *)-1) {
fprintf(stderr,"%s: mmap(): %s\n",argv[0],strerror(errno));
exit(1);
}
while(1)
{
if ((buf = readline("Enter command: ")) == NULL)
continue;
add_history(buf);
numArgs = sscanf(buf, "%s %d %x %x", op, &size, &addr, &data);
if ((op[0] = toupper(op[0])) == 'Q')
break;
if (toupper(op[0]) != 'R' && op[0] != 'W' && op[0] != 'I' &&
op[0] != 'O')
{
printf("Unrecognized operation, must be r, w, i or o\n");
free(buf);
continue;
}
if (size != 1 && size != 2 && size != 4)
{
printf("Invalid data size, must be 2 or 4\n");
free(buf);
continue;
}
if (op[0] == 'R' || op[0] == 'W')
{
if (addr < 0xf00000 || addr > 0x1000000)
{
printf("Invalid address, must be between 0xf00000 and
0x1000000\n");
free(buf);
continue;
}
}
if (op[0] == 'R')
{
if (size == 1)
{
data = *(unsigned char *)(mappedAddr + (addr - offset));
}
else if (size == 2)
{
data = *(short *)(mappedAddr + (addr - offset));
}
else
{
data = *(int *)(mappedAddr + (addr - offset));
}
printf("Read %x from address %x\n", data, addr);
}
else if (op[0] == 'W')
{
if (size == 1)
{
*(unsigned char *)(mappedAddr + (addr - offset)) = data;
}
else if (size == 2)
{
*(short *)(mappedAddr + (addr - offset)) = data;
}
else
{
*(int *)(mappedAddr + (addr - offset)) = data;
}
printf("Wrote to address %x value %x\n", addr, data);
}
else if (op[0] == 'I')
{
if (iopl(3)) {perror("iopl()"); exit(1);}
if (size == 1)
{
data = inb(addr);
}
else if (size == 2)
{
data = inw(addr);
}
else
{
data = inl(addr);
}
printf("Read from port %x value %x\n", addr, data);
}
else if (toupper(op[0]) == 'O')
{
if (iopl(3)) {perror("iopl()"); exit(1);}
if (size == 1)
{
outb(data, addr);
}
else if (size == 2)
{
outw(data, addr);
}
else
{
outl(data, addr);
}
printf("Wrote to port %x value %x\n", addr, data);
}
free(buf);
}
fclose(f);
return 0;
}
Also, I had to add the code to keep the memory space reserved from 15M
to 16M to mem_init in the kernel code in
/usr/src/linux/arch/i386/mm/init.c
Anyone have an idea what is going on here?
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development.apps,comp.os.linux.embedded,comp.os.linux.help,comp.os.linux.questions
Subject: Re: Message distribution manager / server
Date: Thu, 14 Sep 2000 16:18:16 -0700
Dave Vance wrote:
> Can anybody tell me if there is such a thing as an Event Distribution
> Manager / Event Notification Server / Message Queue Manager / Message
> Distribution Manager / Message Notification Server.. for Linux?
Yeah, it's called email.
--
Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ A physicist is an atom's way of knowing about atoms.
\__/ George Wald
Fat Boy and Little Man / http://www.fatboyandlittleman.com/
Watch Fat Boy and Little Man go about their antics.
------------------------------
** 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
******************************