Linux-Development-Sys Digest #808, Volume #7 Thu, 27 Apr 00 13:13:21 EDT
Contents:
Booting linux on custom hardware. ([EMAIL PROTECTED])
compiled kernel fails to boot ([EMAIL PROTECTED])
Re: Time for the MS-rats to desert ("Gene Heskett")
Re: bz2 file (Anders Larsen)
Re: MS caught breaking web sites (Alun Jones)
Re: hdc: lost interrupt ("David Acklam")
Re: logging in as root over SSH (Robert Schiele)
Re: Time for the MS-rats to desert (John Unekis)
Re: How to force structure to byte alignment ? (Kaz Kylheku)
Re: reconnect to a closed telnet session (Kaz Kylheku)
Re: MS caught breaking web sites ("Christopher Smith")
SOHO 100Mb/s ethernet PCI card on Linux? (Zirong Wang)
Re: compiled kernel fails to boot (Anders Larsen)
This is a FAQ [Was: Re: cli() & sti()..] (Alan Donovan)
Re: logging in as root over SSH (greg)
Re: Any validating XML Parsers? ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: Booting linux on custom hardware.
Date: Thu, 27 Apr 2000 14:07:46 GMT
Hi,
I am trying to boot linux on a custom-made board based on the 386ex
processor. Could anyone point me to some usefull information??
The obvious point would be to look at the sources of LILO, or some
other boot loader to see what kind of "environment" is linux
expecting to find when the kernel first starts.
Is anyone aware of a more "frinedly" source of information???
Thanks in advance.
npat.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Subject: compiled kernel fails to boot
Date: Thu, 27 Apr 2000 14:07:40 GMT
I have installed RH 6.2 with kernel 2.2.14 on a PC with an SMP
motherboard. When I compile a custom kernel, on reboot it hangs with the
error message:
request_module[block_major_8]: Root fs not mounted
VFS:Cannot open root device 08:05
Kernel panic:VFS:Unable to mount root fs on 08:05
I have tried compiling with SMP support both enabled & disabled without
success.
Any ideas?
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 27 Apr 2000 9:39:19 -0500
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: Re: Time for the MS-rats to desert
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Unrot13 this;
Reply to: <[EMAIL PROTECTED]>
Gene Heskett sends Greetings to bill davidsen;
This post is highly offtopic for nearly all the groups its cross-posted
to.
OTOH, I couldn't have said it better.
[...]
Cheers, Gene
--
Gene Heskett, CET, UHK |Amiga A2k Zeus040, Linux @ 400mhz
Ch. Eng. @ WDTV-5 |This Space for rent
RC5-Moo! 350kkeys/sec, Seti@home 16 hrs a block
email gene underscore heskett at iolinc dot net
This messages reply content, but not any previously quoted material, is
� 2000 by Gene Heskett, all rights reserved.
--
------------------------------
From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: bz2 file
Date: Thu, 27 Apr 2000 16:21:14 +0200
kartika garg wrote:
>
> But I didn't ftp.I downloaded from the net.surely that should not make a
> difference???
Have you compared the length of the file on Windoze with that on Linux?
(that is, did the file corruption occur as you downloaded to Windblows, or
as you FTP'ed the file to linux)
If the length did not change as you transferred the file to Linux, the
corruption most probably occurred as you downloaded to Windows (in a browser?)
You may try right-clicking the link (should force download to disk) instead
of loading the thing into the browser window.
The problem could also be with the server in question (or with an intermediate
proxy); if no MIME type is specified for .bz2 files they might get sent as
"plain/text" causing Windblows to perform a lethal LF->CR/LF conversion.
OTOH, if the length did indeed change as you FTP'ed from Windows to Linux,
then Robert has hit the point.
> Robert Schiele wrote:
>
> > kartika garg wrote:
> > >
> > > Can you not download .bz2 files to windows.I have noticed that when I
> > > download .bz2 files to windows and than ftp it to linux it gives an
> > > error--"files are probably corrupt" but if I download them on linux then
> > > there is no problem. Can somebody tell me the reason???
> >
> > Assure, your ftp client is set to binary mode!
> > The Windows ftp client is normaly set to ascii mode which will corrupt
> > binary code.
--
cheers
Anders Larsen
e-mail: alarsen AT baumerident DOT com
Q: What does the CE in Windows CE stand for?
A: Caveat Emptor
------------------------------
From: [EMAIL PROTECTED] (Alun Jones)
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Date: Thu, 27 Apr 2000 14:52:02 GMT
In article <[EMAIL PROTECTED]>, Rasputin
<[EMAIL PROTECTED]> wrote:
> Scott Zielinski wrote:
> > That's absolutly, completely, untrue. Ever hear of "NT Workstation?" If
> > that isn't a desktop OS....
>
> A 'desktop OS' boots in less than 5 minutes. A 'desktop OS' takes less
> than 5 minutes to shut down. Nuff said.
A desktop OS apparently can't use SCSI drives.
Alun.
~~~~
--
Texas Imperial Software | Try WFTPD, the Windows FTP Server. Find us
1602 Harvest Moon Place | at web site http://www.wftpd.com or email
Cedar Park TX 78613 | us at [EMAIL PROTECTED] VISA / MC accepted.
Fax +1 (512) 378 3246 | NT-based ISPs, be sure to read details of
Phone +1 (512) 378 3246 | WFTPD Pro, NT service version - $100.
------------------------------
From: "David Acklam" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,uk.comp.os.linux
Subject: Re: hdc: lost interrupt
Date: Thu, 27 Apr 2000 09:54:18 -0500
Turn off (U)DMA mode
Linux doesn't like your (U)DMA chipset
Leon Garde <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In comp.os.linux.hardware BP <[EMAIL PROTECTED]> wrote:
> > Hi all,
>
> > I install two IDE disk (6,4 Go each) on /dev/hdc and /dev/hdd - (with 4
> > partitions on each disk: 512Mo, 2Go, 3Go and a swap partition)
>
> > When I try to access hdd disk (with cpio cde for example), system crash
with
> > "hdc: lost interrupt" message - the only way is to reboot the system ...
I
> > 've change partitions size (<1Go), bios configuration (ide block mode,
> > LBA/Normal cfg), but nothing change, I can't have a full access to the
> > second drive
>
> > Does anybody knows what goes wrong ?
>
> the disks dont want to work together.
> solutions:
> a. check the drives are configured properly.
> master, master with slave present, slave etc.
>
> b. swap hdc for hdd or other swaps as needed.
>
> c. remove the drive(s) . buy one large big drive
>
>
> leon
>
------------------------------
From: Robert Schiele <[EMAIL PROTECTED]>
Subject: Re: logging in as root over SSH
Date: Thu, 27 Apr 2000 16:57:17 +0200
greg wrote:
>
> Does anyone see any particular reason why it wouldn't be?
You can do that! You just have to specify
PermitRootLogin yes
in your sshd_config.
Robert
--
Robert Schiele mailto:[EMAIL PROTECTED]
Tel./Fax: +49-621-10059 http://webrum.uni-mannheim.de/math/rschiele/
------------------------------
From: John Unekis <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: Time for the MS-rats to desert
Date: Thu, 27 Apr 2000 10:15:22 -0400
@, . wrote:
> You are a moron
Oh, no, I'm wounded to the core. Such wit, such biting satire.
Why I usually have to travel all the way to a bowling alley to hear such a clever
put-down.
What's the matter Mr. Gates, depressed over your stock prices?
>
>
> In article <[EMAIL PROTECTED]>, John Unekis <[EMAIL PROTECTED]> wrote:
> >There is an old joke about a hooker who goes into a bar, orders a drink, and
> > pays
> >with a 20-dollar bill.
> >The bartender holds the 20 up to the light and remarks - "Hey, you can't use
> >this, this $20 is counterfeit!"
> >To which the hooker exclaims - "Oh, no, I've been raped!"
> >
> >Now that Microsoft stock is in free-fall, quickly heading for under $50/share,
> >there must be a lot
> >of Code-Ho's up in Redmond who have sold their souls to Bill for stock options,
> >dreaming of
> >retiring young and rich, who are now realizing they've been raped.
> >
> >I noticed that Microsoft is reimbursing its senior managers for their stock
> >losses with new stock options which
> >are adjusted for the lower share price.
> >
> >For regular employees, MS is encouraging them to take a "long term view".
> >
> >The only thing long-term at Microsoft is the duration of the screwing that
> >employees are getting.
> >
> >I imagine that it is going to become very difficult to find u-haul trailers in
> >the Redmond area as more and more victims of the "Cult of Bill" awaken from
> > their
> >trances and decide to show Microsoft a long-term view of their ass.
> >
> >Remember all you Microserfs, the ones who bail first will get all the good jobs
> >down in Silicon valley, the stragglers will end up fetching them coffee....
> >
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: How to force structure to byte alignment ?
Reply-To: [EMAIL PROTECTED]
Date: Thu, 27 Apr 2000 15:13:37 GMT
On 27 Apr 2000 11:07:52 GMT, cschiu <[EMAIL PROTECTED]> wrote:
>Hello all ,
>
>Dose everybody know how to force structure to byte alignment ?
>Compile option ? or other method ?
Using GCC, you can use the __attribute__ mechanism to control packing
and alignment of individual members, or the structures that contain
them.
You can get an individual member to be packed snugly against the
previous structure member like this:
struct foo {
char a;
int b __attribute__ (( packed ));
};
This will cause member b to be allocated at offset 1, and the whole structure
will have a size of 5. Adding the packed attribute to members won't
necessarily get rid of padding at the end of the structure, which will still be
added to achieve the minimum alignment.
If you attribute the entire structure type as packed, then all the members are
packed:
struct foo {
char a;
int b;
} __attribute__ (( packed ));
The aligned(N) attribute controls alignment. It can only adjust the
alignment upward, so that
struct foo {
char c;
int x __attribute__ (( aligned(2) ));
};
will not cause x to be at offset 2. However, you can combine
aligned and packed together:
struct foo {
char c;
int x __attribute__ (( packed, aligned(2) ));
};
Now, x is actually at offset 2. The packed attribute causes the
alignment to go to offset 1, and aligned(2) forces it to the next
offset divisible by 2.
Adding an aligned() attribute to a struct can cause it to have
extra padding at the end. If you take a 4 byte structure
and give it __attribute__ (( aligned(16) )) then it will bloat
up to 16 bytes, so that when such structures are put into an array,
each element is aligned on a 16 byte boundary.
--
#exclude <windows.h>
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.networking
Subject: Re: reconnect to a closed telnet session
Reply-To: [EMAIL PROTECTED]
Date: Thu, 27 Apr 2000 15:17:55 GMT
On Thu, 27 Apr 2000 12:38:34 +0200, J�rg Schulz <[EMAIL PROTECTED]> wrote:
>Does anybody know if it is possible to reconnect to an interactive program
>that was
>started during a telnet session which then was closed?
>
>before:
> 135 ? S 0:00 /usr/sbin/inetd
>20213 ? S 0:00 \_ in.telnetd
>20214 p0 S 0:00 \_ -bash
>20221 p0 S 0:00 \_ ./prog
>
>after closing telnet session:
>20221 ? S 0:00 ./prog
This is a bad prog that hasn't responded to the hangup signal properly.
All you can do is kill it.
If you need to be able to detach your terminal from a program and then reattach
later, possibly from another terminal, you need to learn how to use the unique
program ``screen''.
--
#exclude <windows.h>
------------------------------
From: "Christopher Smith" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Date: Fri, 28 Apr 2000 01:40:32 +1000
"Rasputin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Scott Zielinski wrote:
> > > If its a "NT replacement" is not on the desktop. In the real world,
NT is
> > > not a desktop OS.
> > That's absolutly, completely, untrue. Ever hear of "NT Workstation?" If
> > that isn't a desktop OS....
>
> A 'desktop OS' boots in less than 5 minutes. A 'desktop OS' takes less
> than 5 minutes to shut down. Nuff said.
Thus easily allowing NT to be a "desktop OS".
If you've got an NT *Workstation* install that's taking that long to boot
and shut down, you have serious problems.
------------------------------
From: Zirong Wang <[EMAIL PROTECTED]>
Subject: SOHO 100Mb/s ethernet PCI card on Linux?
Date: Thu, 27 Apr 2000 17:34:16 +0200
Hi,
Does anyone known if the SOHO 100 Mb/s PCI ethernet card is supported
by Linux ?
=====================================================================
Zirong Wang Oce Industries 1, Rue J. Lemoine 94015 Creteil France
------------------------------
From: Anders Larsen <[EMAIL PROTECTED]>
Subject: Re: compiled kernel fails to boot
Date: Thu, 27 Apr 2000 17:25:07 +0200
[EMAIL PROTECTED] wrote:
>
> I have installed RH 6.2 with kernel 2.2.14 on a PC with an SMP
> motherboard. When I compile a custom kernel, on reboot it hangs with the
> error message:
> request_module[block_major_8]: Root fs not mounted
> VFS:Cannot open root device 08:05
> Kernel panic:VFS:Unable to mount root fs on 08:05
>
> I have tried compiling with SMP support both enabled & disabled without
> success.
>
> Any ideas?
Sure.
08:05 is major block device 8, that's an SCSI disk, minor 5, that's the
5.th partition on the 1.st disk, so the message means that the kernel is
unable to mount /dev/sda5 as its root fs (/).
Perhaps you have compiled SCSI-disk support as a module, in which case
you'll need an initrd to load the module at boot-time (or did you leave
out SCSI completely)?
In any case, your problem is not SMP related.
--
cheers
Anders Larsen
e-mail: alarsen AT baumerident DOT com
Q: What does the CE in Windows CE stand for?
A: Caveat Emptor
------------------------------
From: Alan Donovan <[EMAIL PROTECTED]>
Subject: This is a FAQ [Was: Re: cli() & sti()..]
Date: Thu, 27 Apr 2000 17:07:24 +0100
Kaz Kylheku wrote:
> [lots of invaluable advice skipped]
Kaz,
I notice there's a fair amount of traffic on this group asking the same
questions relating to cli/sti, exclusion, interrupts etc in drivers
(some from me :-), and that you as guru-in-residence on the group seem
to write a lot of replies to it.
There seem to me to be very few `official' articles about it, apart from
Linus' spinlocks.txt in the linux/Doc directory, and Alessandro Rubini's
book, and there doesn't seem to be a FAQ for this group.
Would you be tempted to roll together and edit several of your replies
on the subject into an article for the kernel source docs? I'm sure an
awful lot of people would find it useful.
alan
--
========================================================================
Alan Donovan [EMAIL PROTECTED] http://www.imerge.co.uk
Imerge Ltd. +44 1223 875265
------------------------------
From: greg <[EMAIL PROTECTED]>
Subject: Re: logging in as root over SSH
Date: Thu, 27 Apr 2000 12:15:40 -0400
Reply-To: [EMAIL PROTECTED]
Thanks to Chris for reminding me the dangers of root logins and to Robert for
pointing me to the right config file, which I amended to 'PermitRootLogin no'.
I forgot about the comp.os.linux.security ng, btw. Next time I'll post these
kinds of concerns there. - Greg
Robert Schiele wrote:
> greg wrote:
> >
> > Does anyone see any particular reason why it wouldn't be?
>
> You can do that! You just have to specify
>
> PermitRootLogin yes
>
> in your sshd_config.
>
> Robert
>
> --
> Robert Schiele mailto:[EMAIL PROTECTED]
> Tel./Fax: +49-621-10059 http://webrum.uni-mannheim.de/math/rschiele/
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Any validating XML Parsers?
Crossposted-To: comp.os.linux.development.apps
Date: Thu, 27 Apr 2000 16:24:41 GMT
In comp.os.linux.development.apps M Sweger <[EMAIL PROTECTED]> wrote:
> I'd think that once the DTD is read in, a symbol table with attributes
> is created. Then the xml document is parsed and the tags are looked up
> in the DTD symbol table for a match along with an attribute match.
It very well may be, but it's not required by the standard. Just as a
C compiler must appear to have seven passes but most implement fewer,
and at least one implements more. Your original question, "Where can I
find a validating XML parser?" not "How do you make a validating XML
parser?" That's better off addressed by studying the source code, and
a stack of really thick books. ;)
Just for the record, I'm an SGML fan, not XML. However, since one's a
superset of the other, it's still partly relevant. The terms
normalise, parse, verify, content, instance, etc all have rigidly
defined meanings in the standard. The standard also specifies enough
other processing that it may be alot more than you're looking for to
just study. In any case, though, you'll definately need a handle on
some of the terms before you dive in.
> Could you explain the normalizing process as to how it basically is done?
Not nearly as well as playing with the program, or a halfway decent
book. It's alot to cover in a newsgroup. The SP documentation should
give you an overview of what's happening. I also liked _SGML
Unleashed_, which I found to be pretty well written despite the series
name. It has the very redemeing quality that unlike most SGML books,
it wasn't written by an expert for other experts.
_SGML CD_ also gets two thumbs up. It presupposes a basic knowledge of
SGML (the above book is enough background), but lists a pile of free
tools and spends a chapter or two explaining each. Considering the
cost of commercial tools, this is the cheap route unless you work at a
major publishing company. ;)
> I'm interested in applying these concepts to another non-xml project
> that has similarities.
If it's similar enough that you can use XML tools on it, I'd consider
moving unless it's just a configuration file or something else
tiny. For any significant amount of text, you're better off with an
ISO standard that already has a raft of API's and tools for it.
If you just want to parse something vaguely xml-looking, you should
probably consider antlr (http://www.antlr.org) or maybe bison, byacc,
or some other yacc derivative. To be 100% honest, both have quirks
that will drive you insane. antlr, however, has a more intuitive
input, I think, and outputs to several different languages. YACC-based
parsers are more common, and you're more likely to find someone who's
used it.
Your other options are the xml modules for perl and python. Perl's
really the clear winner for parsing files of any type, and the clear
loser for scripts over 15 lines long. ;) Python's nice overall, but
not so easy to parse in, and the "standard library" needs a while to
mature still.
PS - followups set to c.o.l.d.apps, since I hope there's never a
kernel-level xml parser.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
** 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
******************************