Linux-Development-Sys Digest #429, Volume #8 Fri, 19 Jan 01 03:13:12 EST
Contents:
Kickstart creation (bill davidsen)
Re: Kickstart creation (Bill Hudson)
Re: RedHat install crashes -- "buggy cmd640b" error (H.J. Plankeel)
Re: Problem on Linux 2.4.0 kernel and ALSA sound driver. (Glenn Trigg)
double mmap calls ([EMAIL PROTECTED])
Re: module make install fails after 2.4 kernel update - help (Jerry Peters)
What is "MODULE_PARM" ? ([EMAIL PROTECTED])
Re: 2.2.18 & USB Does It or Doesn't It (Clifford Kite)
how can i modify kernel memory at runtime (Eric Taylor)
Re: Development tools (John E Garrott Sr)
Re: how to turn on/off the 3 LEDs on the keyboard? (Jay Lubomirski)
Re: Re: which development method is right to me ? ("Ho-il, Kang")
Re: Developing a mouse replacement driver. ("PeZ")
Re: Kickstart creation (Josef Moellers)
Re: What is "MODULE_PARM" ? (Josef Moellers)
Module programming ("Sergui Vassiliev")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Kickstart creation
Date: 18 Jan 2001 19:54:34 GMT
I have to install a bunch of servers, and for various reasons will be
using Redhat. I see how to install using a kickstart file, but how do I
create the kickstart file? There are references to a utility which takes
the current installation and creates the ks.cfg file based on the
current install. Obviously there is such a thing, but I sure don't see
the name of it.
I have several 600+ page Redhat books, but they all want to tell me how
to use a ks.cfg, not how to create one in some way better than by hand.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait." -seen in a doctor's office
------------------------------
From: Bill Hudson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Kickstart creation
Date: 18 Jan 2001 20:36:31 GMT
bill davidsen wrote:
>
> I have to install a bunch of servers, and for various reasons will be
> using Redhat. I see how to install using a kickstart file, but how do I
> create the kickstart file? There are references to a utility which takes
> the current installation and creates the ks.cfg file based on the
> current install. Obviously there is such a thing, but I sure don't see
> the name of it.
>
> I have several 600+ page Redhat books, but they all want to tell me how
> to use a ks.cfg, not how to create one in some way better than by hand.
>
http://wwwcache.ja.net/dev/kickstart/KickStart-HOWTO.html
--
Bill Hudson
------------------------------
From: [EMAIL PROTECTED] (H.J. Plankeel)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: RedHat install crashes -- "buggy cmd640b" error
Date: Thu, 18 Jan 2001 20:33:45 GMT
leslie barstow <[EMAIL PROTECTED]> wrote:
>Patrick,
>I also have a CMD640 controller (a really cheap PCI/ISA multi-function
>card), and have had nothing but trouble with it. Linux does better than
>most, but my secondary drive still reports short reads on imaginary sectors.
>MS-DOS won't even recognize the secondary controller - I have to initialize
>using Linux.
I remember there was a serious problem with a CMD640 controller due to
the fact that (as far as I remember) there was only one memory buffer
for both IDE channels, causing data corruption when both channels were
working, for instance installing from a CDROM to a HD.
I remember that after this was discovered workaround code was added in
the operating systems to prevent both channels working at the same
time.
There was at the time (three? years ago) a lot of discussion on the
internet and also testing programs so you could find out if you had
such a chip. Try searching for CMD640 and error or flaw or something
like that as search terms.
Huib
>I am using RedHat (5.0), and the kernel comes with CMD640 support compiled
>in (that's why you're getting the "buggy cmd640" messages - if it weren't,
>you wouldn't get those messages). This looks like a real problem, perhaps
>with the CMD640 workaround code, or perhaps with your system. Your best
>bet is to get an add-on IDE card with BIOS, and go from there (actually,
>your best bet if you're shopping is to just get a new mainboard, CPU, and
>case for a couple hundred - you'll thank yourself in the morning)
>Good Luck
>In comp.os.linux.development.system
> Patrick Mueller <[EMAIL PROTECTED]> wrote:
>: I am trying to install RedHat 5.2 on a system I inherited. It is a (gasp!)
>: Packard Bell Model 3960CD; a P60 with 40MB RAM. I have disconnected the
>: proprietary CDROM, and hooked up a spare IDE (Panasonic 24x, I don't have the
>: model number here). They are both on the PCI IDE port: the 4.3GB HD as master,
>: the CD as slave.
>: [I should add that I also upgraded the 400MB HD to the 4.3GB].
>: The kernel loads fine w/ only the HD, but once the CD is attached
>: to the chain,
>: the crash occurs. I have also tried a different CDROM (Creative 32x), but it
>: still crashes. Unfortunately, the other IDE connector is so badly placed, that
>: it and the floppy connector cannot both be used at the same time; so I can't
>: test if the "PCI IDE" connector is bad.
>: Anyway, here's the guts of the problem -- I hope there's a guru out there who
>: can help me with this. The dump goes like this:
>: ide0: buggy cmd640b interface on PCI(type 2) config=0x3e
>: ide1: not serialized, secondary interface not responding
>: cmd640: drive 0 timings/prefetch(on) preserved, clocks=2/3/3
>: cmd640: drive 1 timings/prefetch(on) preserved, clocks=4/16/17
>: divide error: 0000
>: CPU: 0
>: EIP: 0010:[<0016f2d5>]
>: EFLAGS: 0010246
>: <dump of the registers>
>: Code: f7 74 24 0c 89 c1 66 89 4b 20 8b 7e 78 80 4b 0c 40 0f b6 43
>: I am checking w/ PBell, to see if there is a BIOS upgrade I can get to see if
>: that will help, but I am not confident that they offer much support
>: (especially for a relatively old box like this P60).
>--
>Les Barstow | Apple ][ Forever!
>[EMAIL PROTECTED] |
> | "How may I be honest with you today?"
>Disclaimer: I didn't do it! | -- Tuvoc
When answering by email please remove the ANTISPAM.
Also, I'd like to hear about people who came from Breskens or Groede during the 17th
and 18th century.
Ik ben geinteresseerd in mensen, die afkomstig zijn uit Breskens en Groede (17e en 18e
eeuw).
------------------------------
Crossposted-To: linux.dev.kernel,linux.dev.sound
Subject: Re: Problem on Linux 2.4.0 kernel and ALSA sound driver.
From: [EMAIL PROTECTED] (Glenn Trigg)
Date: 19 Jan 2001 09:14:04 +1100
Bo-kyun Na <[EMAIL PROTECTED]> writes:
> Hi,
> I have a probem with ALSA with linux kernel 2.4.0.
> I know some people have already posted this problem.
> However, I could not find the proper answer.
>
> In my case, I installed it with proper following the steps.
> But sound does not comes out.
>
> Any idea?
> What is the correct way to install on kernel 2.4.0?
Are you using the mixer to unmute & set volumes on the various channels?
Alsa starts with everything muted & volumes at zero normally.
There's nothing special about compiling alsa under 2.4.0 (assuming you're
using the latest alsa version). If you're asking about where to put the
modules, I put them in /lib/modules/2.4.0/kernel/drivers/sound.
Glenn
------------------------------
From: [EMAIL PROTECTED]
Subject: double mmap calls
Date: Thu, 18 Jan 2001 23:39:00 -0000
Does Linux support double mmap calls where a 2nd mmap() can be used
to overlay an existing memory map to another address? I tired of
following all the calls through from sys_mmap() to see if it does
or not (got pretty deep, but nothing obvious one way or the other).
--
=================================================================
| Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/ |
=================================================================
------------------------------
From: Jerry Peters <[EMAIL PROTECTED]>
Subject: Re: module make install fails after 2.4 kernel update - help
Date: Fri, 19 Jan 2001 00:01:31 GMT
Sean Bose <[EMAIL PROTECTED]> wrote:
> Hi Friends and Linux Pals
> I updated RedHat 7.0 to the 2.4.0 kernel by downloading and compiling the
> kernel source from www.kernel.org When I do a make install, the driver
> modules fail to load, complaining that it cannot resolve symbols like
> 'call_func' and 'get_module_symbol'. At this point, let me mention that I
> do not have a 'lib/modules/2.4.0' directory and may be its because of this
> that it is failing.
> Do you know from where we can find the set of required kernel modules for
> kernel 2.4.0. Are there any other components required to be added for
> completeness of the kernel, for purpose of using it as a development system,
> after we build it from the kernel source using 'make bzdisk' and boot up
> from the floppy.
> thanks for the wonderful warmth of the Linux community
> Sean Bose
Did you install the modules with "make modules_install"?
Also, you _did_ upgrade modutils, didn't you?
Jerry
------------------------------
From: [EMAIL PROTECTED]
Subject: What is "MODULE_PARM" ?
Date: Fri, 19 Jan 2001 01:28:26 GMT
Hi..
I am studying linux device driver.
now I am looking through mouce device driver, "busmouse.c".
However, I could not understand "MODULE_PARM(mouse_irq, "i");
I searched the parts of linux kernel source. but, the source is very
complicated. I want to know the function of the sentence.
Thanks in advance.
Sent via Deja.com
http://www.deja.com/
------------------------------
From: Clifford Kite <[EMAIL PROTECTED]>
Subject: Re: 2.2.18 & USB Does It or Doesn't It
Date: Thu, 18 Jan 2001 21:03:12 -0600
mpierce <[EMAIL PROTECTED]> wrote:
> What happens if you're a northern Ohio yank living in Australia and
> you've got a fair dinkum accent?
> I've got 2.4.0 working for the zip and cdrw; now if I can get it to work
> with ADSL and PPP.
There are some problems with ppp-2.4.0 and the 2.4.0 kernel with
getting options from /etc/ppp/options.ttySx files. Try ppp-2.4.0b3
if you use an options.ttySx. Or use ppp-2.3.11 which seems to work
with the 2.4.0 kernel despite the 2.4.0 minimum requirement given in
Documentation/Changes.
Following the Linux mini ASDL howto, which seems to be a good place to
learn something about ADSL, ANT = ADSL Network Termination.
If you have a ANT that connects to a NIC on the linux box then it should
be easy (really easy to *say* that since I've no ADSL experience, BTW).
If you have a ANT that connects to a USB connector on your box then you
may be out of luck. But there are drivers for some USB "modem" support
in the 2.4.0 kernel source, and there is support for using a standard
serial card with a USB connection (for using PPP?).
If you have a PCI integrated ANT/NIC card then there is not likely to
be a Linux driver for it.
Good luck, and thanks for qualifying "yank"; aren't all U.S. citizens
called "yanks" by all aussies? :)
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
/* Speak softly and carry a +6 two-handed sword. */
------------------------------
From: Eric Taylor <[EMAIL PROTECTED]>
Subject: how can i modify kernel memory at runtime
Date: Fri, 19 Jan 2001 03:26:47 GMT
Hi:
I want to try to modify an instruction in
kernel memory. Is there a utility around that
can do this easily.
All I need to do is deposit a single 32bit
value at a particular kernel location. I've
determined the location I want to change
by using gdb:
gdb /usr/src/linux/vmlinux /proc/kcore
(gdb) x/x get_unmapped_area+15+8
0x8011bef3 <get_unmapped_area+23>: 0x40000000
I want to be able to change this value without
the need to rebuild the kernel. (I believe this
value will change where in memory libraries get
loaded)
I'm not worried about syncing with the kernel, but
if such a utility would handle that too, all the
better.
thanks
eric
------------------------------
From: John E Garrott Sr <[EMAIL PROTECTED]>
Subject: Re: Development tools
Date: Thu, 18 Jan 2001 19:31:35 -0800
david lindauer wrote:
>
> Hi,
>
> we are looking at embedding linux on a small circuit board (PC compatible)
> and were wondering what types of development tools would be available.
> Specifically we are looking for some type of GUI environment, preferably with
> the debugger integrated with other tools but possibly with seperate tools and
> debugger environments.
>
> Thanks,
>
> David
A good place to look would be
http://www.hotfeet.ch/~gemi/LDT/
Good luck,
John
------------------------------
From: Jay Lubomirski <[EMAIL PROTECTED]>
Subject: Re: how to turn on/off the 3 LEDs on the keyboard?
Date: Fri, 19 Jan 2001 04:22:28 GMT
Look in the source of this:
http://mars.ark.com/~mbevan/products/netled/index.shtml
Hackker Wong wrote:
> hi,
>
> do u know how to turn on/off the 3 LEDs (caps lock, num lock, scroll
> lock) on the keyboard? i want to control the LEDs in my program. is
> there any system call to do this? i found a function register_led() in
> /usr/src/linux/drivers/char/keyboard.c, but i don't know how to use it.
>
> pls help! thx a lot!
>
> --
> - By Hackker
> ****************************************************
> Mr. Hackker Wong,
> Y99 Student of Computer Science,
> The Chinese University of Hong Kong.
> ****************************************************
> -The World can't run without computer technicians-
>
>
------------------------------
From: "Ho-il, Kang" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.embedded,comp.os.linux.hardware,comp.os.linux.x
Subject: Re: Re: which development method is right to me ?
Date: Fri, 19 Jan 2001 14:27:42 +0900
> Sounds like an ATI card. ATI doesn't like to support Linux. If it
> doesn't have a theater chip I think you'll find a driver that does
> what you want to run X. If you want to do video capture then I don't
> know, I just run X. Have you tried running a Red Hat install and
> letting it guess the card? I dunno what program Red Hat uses for
> probing, but it's probably part of the Xfree86 distro.
>
> If all else fails, and if you're not really motivated, and you want
> better than VGA under X, then I'd bite the bullet and buy a supported
> video card. Otherwise go to the XFree86 website (www.xfree86.org) and
> send them mail asking how you can help.
>
> jim
Thanks for kindness answer.
and... but...
my problem is not only "running X", but also "Writing device support
program". T.T
I must write device support program such as device driver or library.
but, unfourtunly, I am first time linux developer, I can't decide the
methode of development.
that is real problem.
Please answer which right to me.
thanks for reading...
ho-il, kang
email : [EMAIL PROTECTED]
------------------------------
From: "PeZ" <[EMAIL PROTECTED]>
Subject: Re: Developing a mouse replacement driver.
Date: Fri, 19 Jan 2001 09:10:37 +0100
"Kasper Dupont" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> PeZ wrote:
> >
> > My question is :
> > can i use highlevel c network routines in my driver function??? and how
can
> > i link them in...???????
>
> In general you should avoid using highlevel routines inside
> the kernel or take lot of care when doing so.
>
> Probably it would be better to write a daemon runing in user
> space to do what you want to do. You might want to study how
> the repeater function of gpm works.
>
> What exactly is it you want to do?
>
> --
> Kasper Dupont
i already tried to code a daemon.... but i cant write to the device that i
have created.....
btw i want to code a mouse driver that has UDP network input so i can use
any mouse or pointing device (i especially want to use my palm pilot) as my
linux mouse .....
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Kickstart creation
Date: Fri, 19 Jan 2001 08:38:29 +0100
bill davidsen wrote:
> =
> I have to install a bunch of servers, and for various reasons will be
> using Redhat. I see how to install using a kickstart file, but how do I=
> create the kickstart file? There are references to a utility which take=
s
> the current installation and creates the ks.cfg file based on the
> current install. Obviously there is such a thing, but I sure don't see
> the name of it.
> =
> I have several 600+ page Redhat books, but they all want to tell me how=
> to use a ks.cfg, not how to create one in some way better than by hand.=
There used to be an mkkickstart utility (and package), at least I'v
found one on a 6.1 and a 6.2 CD, but not on the 7.0 CD. It was a shell
script which generated the kickstart file for you. When I did my RHCE
with 6.0, there were some bugs in it (among others, partition sizes and
mouse directive were incorrect). I've never used it, so I can't give any
further details.
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: What is "MODULE_PARM" ?
Date: Fri, 19 Jan 2001 08:40:54 +0100
[EMAIL PROTECTED] wrote:
> =
> Hi..
> I am studying linux device driver.
> now I am looking through mouce device driver, "busmouse.c".
> However, I could not understand "MODULE_PARM(mouse_irq, "i");
> I searched the parts of linux kernel source. but, the source is very
> complicated. I want to know the function of the sentence.
> Thanks in advance.
> =
> Sent via Deja.com
> http://www.deja.com/
The directive is used to define a module parameter (hence the name)
"mouse_irq" which is a single integer. You can the load the driver using
e.g.
"insmod busmouse.o mouse_irq=3D12"
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
------------------------------
From: "Sergui Vassiliev" <[EMAIL PROTECTED]>
Subject: Module programming
Crossposted-To: linux.sources.kernel,comp.os.linux.questions
Date: Fri, 19 Jan 2001 09:11:12 +0100
Hello,
I tried to insmod this small module to kernel
but got error:
hello.o: kernel-module version mismatch
hello.o was compiled for kernel version 2.2.18
while this kernel is version 2.4.0
I have kernel 2.4.0, and I have compiled this
program on 2.4.0 too.
If you look in file linux/version.h you will see:
#define UTS_RELEASE "2.2.18"
Maybe here is a problem, but I am not sure
Why does it happen?
Thanks,
SV
==================================
* Copyright (C) 1998 by Ori Pomerantz
*
* "Hello, world" - the kernel module version.
*/
/* The necessary header files */
/* Standard in kernel modules */
#include <linux/kernel.h> /* We're doing kernel work */
#include <linux/module.h> /* Specifically, a module */
/* Deal with CONFIG_MODVERSIONS */
#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif
/* Initialize the module */
int init_module()
{
printk("Hello, world - this is the kernel speaking\n");
/* If we return a non zero value, it means that
* init_module failed and the kernel module
* can't be loaded */
return 0;
}
/* Cleanup - undid whatever init_module did */
void cleanup_module()
{
printk("Short is the life of a kernel module\n");
}
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************