* DSDT in initrd?
@ 2003-04-28 18:19 Markus Gaugusch
[not found] ` <20030504215051.GA488@elf.ucw.cz>
0 siblings, 1 reply; 10+ messages in thread
From: Markus Gaugusch @ 2003-04-28 18:19 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Has anybody thought about putting the dsdt into the initial ramdisk?
This would make changing/updating it much easier.
Markus
--
__________________ /"\
Markus Gaugusch \ / ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org X Against HTML Mail
/ \
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <20030504215051.GA488-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
@ 2003-05-05 6:39 ` Markus Gaugusch
[not found] ` <Pine.LNX.4.53.0305050829420.25721-sxQ525G0OhRQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Markus Gaugusch @ 2003-05-05 6:39 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> > Has anybody thought about putting the dsdt into the initial ramdisk?
> > This would make changing/updating it much easier.
> I guess initrd is too late to override it...
If I would mount it, probably yes. But I rather thought about the way that
bootsplash uses: Scan the initrd for a magic signature and read it 'raw'.
The dsdt would not be in the filesystem of the initrd, but just appended
to the compressed initrd. I think that something that is early enough for
bootsplash should be early enough for the dsdt as well.
Markus
--
__________________ /"\
Markus Gaugusch \ / ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org X Against HTML Mail
/ \
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <Pine.LNX.4.53.0305050829420.25721-sxQ525G0OhRQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
@ 2003-05-05 23:07 ` Bob Lees
[not found] ` <200305060007.49847.bob-l+PWtdWbHAsG2Il/BtU0GPXRex20P6io@public.gmane.org>
2003-05-06 4:05 ` Christian Zoz
1 sibling, 1 reply; 10+ messages in thread
From: Bob Lees @ 2003-05-05 23:07 UTC (permalink / raw)
To: Markus Gaugusch, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Why use initrd? Why not allow a file name to be passed to the kernel at boot
a la acpi=off, acpi=mydst.hex or whatever? Put the file in the /boot
directory?
Just my two pennies worth
Bob
On Monday 05 May 2003 07:39, Markus Gaugusch wrote:
> > > Has anybody thought about putting the dsdt into the initial ramdisk?
> > > This would make changing/updating it much easier.
> >
> > I guess initrd is too late to override it...
>
> If I would mount it, probably yes. But I rather thought about the way that
> bootsplash uses: Scan the initrd for a magic signature and read it 'raw'.
> The dsdt would not be in the filesystem of the initrd, but just appended
> to the compressed initrd. I think that something that is early enough for
> bootsplash should be early enough for the dsdt as well.
>
> Markus
--
Bob Lees
Diamond Consulting Services Ltd
Aylesbury, Bucks, HP17 8UG
Phone: +44 (0) 1296 747667
Fax: +44 (0) 1296 747557
email: bob-l+PWtdWbHAsG2Il/BtU0GPXRex20P6io@public.gmane.org
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <Pine.LNX.4.53.0305050829420.25721-sxQ525G0OhRQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2003-05-05 23:07 ` Bob Lees
@ 2003-05-06 4:05 ` Christian Zoz
1 sibling, 0 replies; 10+ messages in thread
From: Christian Zoz @ 2003-05-06 4:05 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Mon, May 05, Markus Gaugusch wrote:
> > > Has anybody thought about putting the dsdt into the initial ramdisk?
> > > This would make changing/updating it much easier.
> > I guess initrd is too late to override it...
> If I would mount it, probably yes. But I rather thought about the way that
> bootsplash uses: Scan the initrd for a magic signature and read it 'raw'.
> The dsdt would not be in the filesystem of the initrd, but just appended
> to the compressed initrd. I think that something that is early enough for
> bootsplash should be early enough for the dsdt as well.
And this would make patching dsdt much easier for the unexperienced
user. Just download a file and call 'mkinitrd'.
If bootsplash is early enough, then lets do that.
--
ciao, christian
--------------------------------------------------------------------
Verglichen mit jedem x-beliebigen Redmonder Betriebssystem-Clone
ist Linux geradezu eine leuchtende Perle der Datensicherheit.
------ Frank Rennemann (http://www.linux-knowledge-portal.org) -----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <200305060007.49847.bob-l+PWtdWbHAsG2Il/BtU0GPXRex20P6io@public.gmane.org>
@ 2003-05-06 5:47 ` Markus Gaugusch
[not found] ` <Pine.LNX.4.53.0305060743450.2529-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
[not found] ` <20030508210923.GA4466@elf.ucw.cz>
0 siblings, 2 replies; 10+ messages in thread
From: Markus Gaugusch @ 2003-05-06 5:47 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On May 6, Bob Lees <bob-l+PWtdWbHAsG2Il/BtU0GPXRex20P6io@public.gmane.org> wrote:
> Why use initrd? Why not allow a file name to be passed to the kernel at
> boot a la acpi=off, acpi=mydst.hex or whatever? Put the file in the
> /boot directory?
I think that this is not possible. The filesystem would have to be
accessible which is not the case at the early stage where ACPI loads
(there could even be the case, that no interrupts are assigned yet, to use
the scsi controller where the partition with the file is stored). Not to
mention, that harddisk and scsi drivers are loaded much later anyway.
The initrd is the only sane way to do this. I could also change my patch
to accept a plain DSDT file, without my 'magic' signature, if no other
initrd data is present.
Markus
--
__________________ /"\
Markus Gaugusch \ / ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org X Against HTML Mail
/ \
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <Pine.LNX.4.53.0305060743450.2529-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
@ 2003-05-06 6:42 ` Christian Zoz
[not found] ` <20030506064222.GV1817-l3A5Bk7waGM@public.gmane.org>
2003-05-06 8:06 ` Alexander Hoogerhuis
1 sibling, 1 reply; 10+ messages in thread
From: Christian Zoz @ 2003-05-06 6:42 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Tue, May 06, Markus Gaugusch wrote:
> On May 6, Bob Lees <bob-l+PWtdWbHAsG2Il/BtU0GPXRex20P6io@public.gmane.org> wrote:
> > Why use initrd? Why not allow a file name to be passed to the kernel at
> > boot a la acpi=off, acpi=mydst.hex or whatever? Put the file in the
> > /boot directory?
> I think that this is not possible. The filesystem would have to be
> accessible which is not the case at the early stage where ACPI loads
> (there could even be the case, that no interrupts are assigned yet, to use
> the scsi controller where the partition with the file is stored). Not to
> mention, that harddisk and scsi drivers are loaded much later anyway.
> The initrd is the only sane way to do this. I could also change my patch
> to accept a plain DSDT file, without my 'magic' signature, if no other
> initrd data is present.
Grub should be able to handle the file access at this stage.
--
ciao, christian
--------------------------------------------------------------------
Verglichen mit jedem x-beliebigen Redmonder Betriebssystem-Clone
ist Linux geradezu eine leuchtende Perle der Datensicherheit.
------ Frank Rennemann (http://www.linux-knowledge-portal.org) -----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <20030506064222.GV1817-l3A5Bk7waGM@public.gmane.org>
@ 2003-05-06 7:14 ` Markus Gaugusch
0 siblings, 0 replies; 10+ messages in thread
From: Markus Gaugusch @ 2003-05-06 7:14 UTC (permalink / raw)
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On May 6, Christian Zoz <zoz-l3A5Bk7waGM@public.gmane.org> wrote:
> Grub should be able to handle the file access at this stage.
Not everybody is using Grub.
My patch works fine, although I think that I found some possible
improvements, but nothing important yet.
Markus
--
__________________ /"\
Markus Gaugusch \ / ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org X Against HTML Mail
/ \
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <Pine.LNX.4.53.0305060743450.2529-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2003-05-06 6:42 ` Christian Zoz
@ 2003-05-06 8:06 ` Alexander Hoogerhuis
[not found] ` <871xzcts6v.fsf-E1YXmAG8v4VQD7NkSvH8p9BPR1lH4CV8@public.gmane.org>
1 sibling, 1 reply; 10+ messages in thread
From: Alexander Hoogerhuis @ 2003-05-06 8:06 UTC (permalink / raw)
To: Markus Gaugusch; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Markus Gaugusch <markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org> writes:
> On May 6, Bob Lees <bob-l+PWtdWbHAsG2Il/BtU0GPXRex20P6io@public.gmane.org> wrote:
> > Why use initrd? Why not allow a file name to be passed to the kernel at
> > boot a la acpi=off, acpi=mydst.hex or whatever? Put the file in the
> > /boot directory?
> I think that this is not possible. The filesystem would have to be
> accessible which is not the case at the early stage where ACPI loads
> (there could even be the case, that no interrupts are assigned yet, to use
> the scsi controller where the partition with the file is stored). Not to
> mention, that harddisk and scsi drivers are loaded much later anyway.
> The initrd is the only sane way to do this. I could also change my patch
> to accept a plain DSDT file, without my 'magic' signature, if no other
> initrd data is present.
>
Or make the acpi=file.hex boot argument refer to a file within the
initrd image. Then its just a case of getting mkinitrd patched to look
for /boot/dsdt.hex by default, and letting the user specificy an
alternate DSDT by parameter and generating initrd's would be a simple.
mvh,
A
- --
Alexander Hoogerhuis | alexh-rpjHciJLgqZBDgjK7y7TUQ@public.gmane.org
CCNP - CCDP - MCNE - CCSE | +47 908 21 485
"You have zero privacy anyway. Get over it." --Scott McNealy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQE+t20FCQ1pa+gRoggRAqGvAKCZ1Vj+UcYKaRc/mvjwPkO7SKNqgACfSc7H
O0FXhxPs9k0paJ0i2jUSZgA=
=c/nm
-----END PGP SIGNATURE-----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <871xzcts6v.fsf-E1YXmAG8v4VQD7NkSvH8p9BPR1lH4CV8@public.gmane.org>
@ 2003-05-06 8:17 ` Markus Gaugusch
0 siblings, 0 replies; 10+ messages in thread
From: Markus Gaugusch @ 2003-05-06 8:17 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On May 6, Alexander Hoogerhuis <alexh-rpjHciJLgqZBDgjK7y7TUQ@public.gmane.org> wrote:
> Or make the acpi=file.hex boot argument refer to a file within the
> initrd image. Then its just a case of getting mkinitrd patched to look
> for /boot/dsdt.hex by default, and letting the user specificy an
> alternate DSDT by parameter and generating initrd's would be a simple.
I don't have the knowledge (yet) to mount the initrd. Usually, it is
mounted after everything is initialised, but not at the early stage where
ACPI is loaded. I don't even know if any filesystem drivers are present at
this stage.
Markus
--
__________________ /"\
Markus Gaugusch \ / ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org X Against HTML Mail
/ \
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: DSDT in initrd?
[not found] ` <20030508210923.GA4466-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
@ 2003-05-09 6:46 ` Markus Gaugusch
0 siblings, 0 replies; 10+ messages in thread
From: Markus Gaugusch @ 2003-05-09 6:46 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On May 8, Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org> wrote:
> I don't think that 'magic' signature is good idea. It seems fragile...
The initrd filesystem is usually compressed, isn't it? ("file initrd"
returns "gzipped compressed data" for me).
So most clear-text strings will be messed up, especially if they have the
length and structure of mine (several parts are twice in the string).
Also, SuSE (I think you had an @suse email some time ago?) uses the same
technique for the bootsplash, and I think that something used by a major
distributor has probably been reviewed by a few peopl.
The only additional things I could check, are the bytes following the
signature and check if their value is "DSDT" (which is a good idea and
should be done).
I don't know if any other sanity checks can be done, but the ACPI
code could should already do that part for me anyway?
Markus
--
__________________ /"\
Markus Gaugusch \ / ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org X Against HTML Mail
/ \
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-05-09 6:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-28 18:19 DSDT in initrd? Markus Gaugusch
[not found] ` <20030504215051.GA488@elf.ucw.cz>
[not found] ` <20030504215051.GA488-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-05-05 6:39 ` Markus Gaugusch
[not found] ` <Pine.LNX.4.53.0305050829420.25721-sxQ525G0OhRQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2003-05-05 23:07 ` Bob Lees
[not found] ` <200305060007.49847.bob-l+PWtdWbHAsG2Il/BtU0GPXRex20P6io@public.gmane.org>
2003-05-06 5:47 ` Markus Gaugusch
[not found] ` <Pine.LNX.4.53.0305060743450.2529-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2003-05-06 6:42 ` Christian Zoz
[not found] ` <20030506064222.GV1817-l3A5Bk7waGM@public.gmane.org>
2003-05-06 7:14 ` Markus Gaugusch
2003-05-06 8:06 ` Alexander Hoogerhuis
[not found] ` <871xzcts6v.fsf-E1YXmAG8v4VQD7NkSvH8p9BPR1lH4CV8@public.gmane.org>
2003-05-06 8:17 ` Markus Gaugusch
[not found] ` <20030508210923.GA4466@elf.ucw.cz>
[not found] ` <20030508210923.GA4466-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-05-09 6:46 ` Markus Gaugusch
2003-05-06 4:05 ` Christian Zoz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox