public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] kernel source for gentoo
@ 2001-05-13  6:53 Collins Richey
  2001-05-13  8:37 ` Achim Gottinger
  0 siblings, 1 reply; 15+ messages in thread
From: Collins Richey @ 2001-05-13  6:53 UTC (permalink / raw
  To: gentoo

I'm trying to understand where you hide the kernel source on gentoo and
where the options used to generate the standard gentoo kernel are located. 
All that I find under /usr/src is several sets of /include directories but
no source tree.

The kernel you supply, for example, has no sound modules compiled, and I
would like to recompile for sound support (esssolo1.o and soundcore.o are
needed) without breaking anything else.

I understand building kernels from way back, but what's the gentoo-style
procedure for doing this?

Also what is necessary to get ide-cdrw support.  I notice that /dev/sr0 ...
have not been generated.

TIA
-- 
Collins Richey
Denver area
gentoo system



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-13  6:53 [gentoo-dev] kernel source for gentoo Collins Richey
@ 2001-05-13  8:37 ` Achim Gottinger
  2001-05-13 11:29   ` Collins Richey
  2001-05-17 18:06   ` Collins Richey
  0 siblings, 2 replies; 15+ messages in thread
From: Achim Gottinger @ 2001-05-13  8:37 UTC (permalink / raw
  To: gentoo-dev

Collins Richey wrote:
> 
> I'm trying to understand where you hide the kernel source on gentoo and
> where the options used to generate the standard gentoo kernel are located.
> All that I find under /usr/src is several sets of /include directories but
> no source tree.
> 
> The kernel you supply, for example, has no sound modules compiled, and I
> would like to recompile for sound support (esssolo1.o and soundcore.o are
> needed) without breaking anything else.

(The default kernel contains all alsa sound modules)

> 
> I understand building kernels from way back, but what's the gentoo-style
> procedure for doing this?

Current kernel source poackage is broken, eigher use
linux-source-2.4.4-rx.ebuild or
use a default kernel and run a manual config inbetween.

cd /usr/portage/sys-kernel/linux
ebuild linux-2.4.4.5.ebuild unpack
cd /tmp/portage/linux-2.4.4.5/work/linux
make menuconfig
cd /usr/portage/sys-kernel/linux
ebuild linux-2.4.4.5.ebuild merge


bye achim~


> 
> Also what is necessary to get ide-cdrw support.  I notice that /dev/sr0 ...
> have not been generated.
> 
> TIA
> --
> Collins Richey
> Denver area
> gentoo system
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-13  8:37 ` Achim Gottinger
@ 2001-05-13 11:29   ` Collins Richey
  2001-05-13 11:37     ` Achim Gottinger
  2001-05-13 12:44     ` Daniel Robbins
  2001-05-17 18:06   ` Collins Richey
  1 sibling, 2 replies; 15+ messages in thread
From: Collins Richey @ 2001-05-13 11:29 UTC (permalink / raw
  To: gentoo-dev

On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim Gottinger)
wrote:

> Collins Richey wrote:
> > 
> > I'm trying to understand where you hide the kernel source on gentoo and
> > where the options used to generate the standard gentoo kernel are
> located.
> > All that I find under /usr/src is several sets of /include directories
> but
> > no source tree.
> > 
> > The kernel you supply, for example, has no sound modules compiled, and
> I
> > would like to recompile for sound support (esssolo1.o and soundcore.o
> are
> > needed) without breaking anything else.
> 
> (The default kernel contains all alsa sound modules)
> 
> > 
> > I understand building kernels from way back, but what's the
> gentoo-style
> > procedure for doing this?
> 
> Current kernel source poackage is broken, eigher use
> linux-source-2.4.4-rx.ebuild or
> use a default kernel and run a manual config inbetween.
> 
> cd /usr/portage/sys-kernel/linux
> ebuild linux-2.4.4.5.ebuild unpack
> cd /tmp/portage/linux-2.4.4.5/work/linux
> make menuconfig
> cd /usr/portage/sys-kernel/linux
> ebuild linux-2.4.4.5.ebuild merge
> 
> 

I see nothing in the procedure about a kernel (bzImage) name.  Does thios
procedure overwrite your working kernel? (probably not a very good idea!)

-- 
Collins Richey
Denver area
gentoo system



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-13 11:29   ` Collins Richey
@ 2001-05-13 11:37     ` Achim Gottinger
  2001-05-13 12:44     ` Daniel Robbins
  1 sibling, 0 replies; 15+ messages in thread
From: Achim Gottinger @ 2001-05-13 11:37 UTC (permalink / raw
  To: gentoo-dev

Collins Richey wrote:
> 
> On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim Gottinger)
> wrote:
> 
> > Collins Richey wrote:
> > >
> > > I'm trying to understand where you hide the kernel source on gentoo and
> > > where the options used to generate the standard gentoo kernel are
> > located.
> > > All that I find under /usr/src is several sets of /include directories
> > but
> > > no source tree.
> > >
> > > The kernel you supply, for example, has no sound modules compiled, and
> > I
> > > would like to recompile for sound support (esssolo1.o and soundcore.o
> > are
> > > needed) without breaking anything else.
> >
> > (The default kernel contains all alsa sound modules)
> >
> > >
> > > I understand building kernels from way back, but what's the
> > gentoo-style
> > > procedure for doing this?
> >
> > Current kernel source poackage is broken, eigher use
> > linux-source-2.4.4-rx.ebuild or
> > use a default kernel and run a manual config inbetween.
> >
> > cd /usr/portage/sys-kernel/linux
> > ebuild linux-2.4.4.5.ebuild unpack
> > cd /tmp/portage/linux-2.4.4.5/work/linux
> > make menuconfig
> > cd /usr/portage/sys-kernel/linux
> > ebuild linux-2.4.4.5.ebuild merge
> >
> >
> 
> I see nothing in the procedure about a kernel (bzImage) name.  Does thios
> procedure overwrite your working kernel? (probably not a very good idea!)
> 
The kernel gets installed as /boot/boot/bzImage

achim~

> --
> Collins Richey
> Denver area
> gentoo system
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-13 11:29   ` Collins Richey
  2001-05-13 11:37     ` Achim Gottinger
@ 2001-05-13 12:44     ` Daniel Robbins
  1 sibling, 0 replies; 15+ messages in thread
From: Daniel Robbins @ 2001-05-13 12:44 UTC (permalink / raw
  To: gentoo-dev

On Sun, May 13, 2001 at 11:37:33AM -0600, Collins Richey wrote:

> I see nothing in the procedure about a kernel (bzImage) name.  Does thios
> procedure overwrite your working kernel? (probably not a very good idea!)

Collins,

Achim simply described a workaround if you want to use 2.4.4-ac5.  If you're
happy with 2.4.4 (as I am), simply do this:

# cd /usr/portage/sys-apps/linux-sources
# emerge linux-source-2.4.4-r4.ebuild

You'll then find a nice new source tree in /usr/src/linux-2.4.4 (the
/usr/src/linux symlink will be updated to point to this directory).

Additional stuff like alsa will be in the /usr/src/linux-2.4.4/extras directory.

Best Regards,

-- 
Daniel Robbins					<drobbins@gentoo.org>
President/CEO					http://www.gentoo.org 
Gentoo Technologies, Inc.			



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-13  8:37 ` Achim Gottinger
  2001-05-13 11:29   ` Collins Richey
@ 2001-05-17 18:06   ` Collins Richey
  2001-05-17 18:14     ` Achim Gottinger
  2001-05-18  1:56     ` Erik Van Reeth
  1 sibling, 2 replies; 15+ messages in thread
From: Collins Richey @ 2001-05-17 18:06 UTC (permalink / raw
  To: gentoo-dev

On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim Gottinger)
wrote:

> Collins Richey wrote:
> > 
> > I'm trying to understand where you hide the kernel source on gentoo and
> > where the options used to generate the standard gentoo kernel are
> located.

> > 
> > The kernel you supply, for example, has no sound modules compiled, and
> I would like to recompile for sound support (esssolo1.o and soundcore.o
> are needed) without breaking anything else.
> 
> (The default kernel contains all alsa sound modules)
> 

fyi, this doesn't do much good unless you have a sound card that works with
als.


> Current kernel source poackage is broken, eigher use
> linux-source-2.4.4-rx.ebuild or
> use a default kernel and run a manual config inbetween.
> 
> cd /usr/portage/sys-kernel/linux
> ebuild linux-2.4.4.5.ebuild unpack
> cd /tmp/portage/linux-2.4.4.5/work/linux
> make menuconfig
> cd /usr/portage/sys-kernel/linux
> ebuild linux-2.4.4.5.ebuild merge
> 
> 

As I alluded to earlier, it isn't a really good idea to overwrite the
working kernel.  Fortunately I saved the old kernel and modules.  The only
change I made was to add the esssolo1 module, but the new kernel came up
with modules problems and no working eth0.

I think I'll try standard kernel build procedures from the
/tmp/portage/linux-2.4.4.5/work/linux directory with all your patches
applied.

> > Also what is necessary to get ide-cdrw support.  I notice that /dev/sr0
> ...
> > have not been generated.
> > 

Any answer for this question?

Thanks
-- 
Collins Richey
Denver area
gentoo system



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-17 18:06   ` Collins Richey
@ 2001-05-17 18:14     ` Achim Gottinger
  2001-05-18  6:14       ` Collins Richey
  2001-05-18  1:56     ` Erik Van Reeth
  1 sibling, 1 reply; 15+ messages in thread
From: Achim Gottinger @ 2001-05-17 18:14 UTC (permalink / raw
  To: gentoo-dev

Collins Richey wrote:
> 
> On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim Gottinger)
> wrote:
> 
> > Collins Richey wrote:
> > >
> > > I'm trying to understand where you hide the kernel source on gentoo and
> > > where the options used to generate the standard gentoo kernel are
> > located.
> 
> > >
> > > The kernel you supply, for example, has no sound modules compiled, and
> > I would like to recompile for sound support (esssolo1.o and soundcore.o
> > are needed) without breaking anything else.
> >
> > (The default kernel contains all alsa sound modules)
> >
> 
> fyi, this doesn't do much good unless you have a sound card that works with
> als.
> 
> > Current kernel source poackage is broken, eigher use
> > linux-source-2.4.4-rx.ebuild or
> > use a default kernel and run a manual config inbetween.
> >
> > cd /usr/portage/sys-kernel/linux
> > ebuild linux-2.4.4.5.ebuild unpack
> > cd /tmp/portage/linux-2.4.4.5/work/linux
> > make menuconfig
> > cd /usr/portage/sys-kernel/linux
> > ebuild linux-2.4.4.5.ebuild merge
> >
> >
> 
> As I alluded to earlier, it isn't a really good idea to overwrite the
> working kernel.  Fortunately I saved the old kernel and modules.  The only
> change I made was to add the esssolo1 module, but the new kernel came up
> with modules problems and no working eth0.
> 
> I think I'll try standard kernel build procedures from the
> /tmp/portage/linux-2.4.4.5/work/linux directory with all your patches
> applied.

Hi Collins,

I updated the kernel packages yesterday, you can now use
linux-sources-2.4.4.9

If you want the default configuration copy
/usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp to
/usr/src/linux/.config before you run make {x,menu}config.

This kernel package uses the following USE variables for extras "lvm
lm_sensors pcmcia-cs alsa".
Add the ones you want top the USE variable in /etc/make.conf.

After you have build the kernel you can build the extras modules and
utilities by installing

linux-extras-2.4.4.9.ebuild.

bye achim~

> 
> > > Also what is necessary to get ide-cdrw support.  I notice that /dev/sr0
> > ...
> > > have not been generated.
> > >
> 
> Any answer for this question?
> 
> Thanks
> --
> Collins Richey
> Denver area
> gentoo system
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-17 18:06   ` Collins Richey
  2001-05-17 18:14     ` Achim Gottinger
@ 2001-05-18  1:56     ` Erik Van Reeth
  1 sibling, 0 replies; 15+ messages in thread
From: Erik Van Reeth @ 2001-05-18  1:56 UTC (permalink / raw
  To: gentoo-dev

Hi,

Try using /dev/scd as prefix in stead of /dev/sr. So if you have /dev/sr0
being detected
during startup, you can access this device via /dev/scd0.  (see devices.txt)

Hope this helps
Erik



> > > Also what is necessary to get ide-cdrw support.  I notice that
/dev/sr0
> > ...
> > > have not been generated.
> > >
>
> Any answer for this question?
>
> Thanks
> --
> Collins Richey
> Denver area
> gentoo system
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev
>




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-17 18:14     ` Achim Gottinger
@ 2001-05-18  6:14       ` Collins Richey
  2001-05-18 11:38         ` Achim Gottinger
  0 siblings, 1 reply; 15+ messages in thread
From: Collins Richey @ 2001-05-18  6:14 UTC (permalink / raw
  To: gentoo-dev

On Fri, 18 May 2001 01:44:52 +0200 AGottinger@t-online.de (Achim Gottinger)
wrote:

> Collins Richey wrote:
> > 
> > On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim
> Gottinger)
> > wrote:
> > 
> > > Collins Richey wrote:
> > > >

> > > > The kernel you supply, for example, has no sound modules compiled,
> and
> > > I would like to recompile for sound support (esssolo1.o and
> soundcore.o
> > > are needed) without breaking anything else.
> > >
> > > (The default kernel contains all alsa sound modules)
> > >
> > 
> > fyi, this doesn't do much good unless you have a sound card that works
> with
> > als.
> > 
> > > Current kernel source poackage is broken, eigher use
> > > linux-source-2.4.4-rx.ebuild or
> > > use a default kernel and run a manual config inbetween.
> > >
> > > cd /usr/portage/sys-kernel/linux
> > > ebuild linux-2.4.4.5.ebuild unpack
> > > cd /tmp/portage/linux-2.4.4.5/work/linux
> > > make menuconfig
> > > cd /usr/portage/sys-kernel/linux
> > > ebuild linux-2.4.4.5.ebuild merge
> > >
> > >
> > 
> > As I alluded to earlier, it isn't a really good idea to overwrite the
> > working kernel.  Fortunately I saved the old kernel and modules.  The
> only
> > change I made was to add the esssolo1 module, but the new kernel came
> up
> > with modules problems and no working eth0.
> > 
> > I think I'll try standard kernel build procedures from the
> > /tmp/portage/linux-2.4.4.5/work/linux directory with all your patches
> > applied.
> 
> Hi Collins,
> 
> I updated the kernel packages yesterday, you can now use
> linux-sources-2.4.4.9
> 
> If you want the default configuration copy
> /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp to
> /usr/src/linux/.config before you run make {x,menu}config.
> 
> This kernel package uses the following USE variables for extras "lvm
> lm_sensors pcmcia-cs alsa".
> Add the ones you want top the USE variable in /etc/make.conf.
> 
> After you have build the kernel you can build the extras modules and
> utilities by installing
> 
> linux-extras-2.4.4.9.ebuild.
> 

It doesn't work.  I did the following

	cd /usr/portage/sys-kernel/linux-sources
	ebuild linux-2.4.4.9.ebuild unpack
	cp /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
/usr/src/linux/.config
	cd /tmp/portage/linux-2.4.4.9/work/linux
	tried make xconfig (error option not found)
	make menuconfig (added esssolo1 and corrected stuff for ide-scsi)
	cd /usr/portage/sys-kernel/linux-sources
	ebuild linux-2.4.4.9.ebuild merge

When I booted from the new kernel, eth0 would not start.  I discovered that
the procedure had added empty /etc/modules/2.4.4-ac5 for 2.4.4-ac5 but no
/lib/modules/2.4.4-ac5.  Only /etmodules/2.4.4-ac3 and
/lib/modules/2.4.4-ac3 contain data.  Since the kernel calls itself -ac5,
modprobe, etc. will not use any of the modules.

-- 
Collins Richey
Denver area
gentoo system



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-18  6:14       ` Collins Richey
@ 2001-05-18 11:38         ` Achim Gottinger
  2001-05-18 20:33           ` Collins Richey
  0 siblings, 1 reply; 15+ messages in thread
From: Achim Gottinger @ 2001-05-18 11:38 UTC (permalink / raw
  To: gentoo-dev

Collins Richey wrote:
> 
> On Fri, 18 May 2001 01:44:52 +0200 AGottinger@t-online.de (Achim Gottinger)
> wrote:
> 
> > Collins Richey wrote:
> > >
> > > On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim
> > Gottinger)
> > > wrote:
> > >
> > > > Collins Richey wrote:
> > > > >
> 
> > > > > The kernel you supply, for example, has no sound modules compiled,
> > and
> > > > I would like to recompile for sound support (esssolo1.o and
> > soundcore.o
> > > > are needed) without breaking anything else.
> > > >
> > > > (The default kernel contains all alsa sound modules)
> > > >
> > >
> > > fyi, this doesn't do much good unless you have a sound card that works
> > with
> > > als.
> > >
> > > > Current kernel source poackage is broken, eigher use
> > > > linux-source-2.4.4-rx.ebuild or
> > > > use a default kernel and run a manual config inbetween.
> > > >
> > > > cd /usr/portage/sys-kernel/linux
> > > > ebuild linux-2.4.4.5.ebuild unpack
> > > > cd /tmp/portage/linux-2.4.4.5/work/linux
> > > > make menuconfig
> > > > cd /usr/portage/sys-kernel/linux
> > > > ebuild linux-2.4.4.5.ebuild merge
> > > >
> > > >
> > >
> > > As I alluded to earlier, it isn't a really good idea to overwrite the
> > > working kernel.  Fortunately I saved the old kernel and modules.  The
> > only
> > > change I made was to add the esssolo1 module, but the new kernel came
> > up
> > > with modules problems and no working eth0.
> > >
> > > I think I'll try standard kernel build procedures from the
> > > /tmp/portage/linux-2.4.4.5/work/linux directory with all your patches
> > > applied.
> >
> > Hi Collins,
> >
> > I updated the kernel packages yesterday, you can now use
> > linux-sources-2.4.4.9
> >
> > If you want the default configuration copy
> > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp to
> > /usr/src/linux/.config before you run make {x,menu}config.
> >
> > This kernel package uses the following USE variables for extras "lvm
> > lm_sensors pcmcia-cs alsa".
> > Add the ones you want top the USE variable in /etc/make.conf.
> >
> > After you have build the kernel you can build the extras modules and
> > utilities by installing
> >
> > linux-extras-2.4.4.9.ebuild.
> >
> 
> It doesn't work.  I did the following
> 
>         cd /usr/portage/sys-kernel/linux-sources
>         ebuild linux-2.4.4.9.ebuild unpack
>         cp /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> /usr/src/linux/.config
>         cd /tmp/portage/linux-2.4.4.9/work/linux
>         tried make xconfig (error option not found)
>         make menuconfig (added esssolo1 and corrected stuff for ide-scsi)
>         cd /usr/portage/sys-kernel/linux-sources
>         ebuild linux-2.4.4.9.ebuild merge
> 
> When I booted from the new kernel, eth0 would not start.  I discovered that
> the procedure had added empty /etc/modules/2.4.4-ac5 for 2.4.4-ac5 but no
> /lib/modules/2.4.4-ac5.  Only /etmodules/2.4.4-ac3 and
> /lib/modules/2.4.4-ac3 contain data.  Since the kernel calls itself -ac5,
> modprobe, etc. will not use any of the modules.

Hmm, there seems to be a bug in modultils.
/lib/modules/[uname-r]/modules.dep is not generated correct.

Remove /etc/modules/[unname -r] and /etc/modules.conf  and run
/etc/rc.d/init.d/modules. This will generate those files again.

I'm working on that bug here at the moment.

bye achim~
> 
> --
> Collins Richey
> Denver area
> gentoo system
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-18 11:38         ` Achim Gottinger
@ 2001-05-18 20:33           ` Collins Richey
  2001-05-19 10:10             ` Collins Richey
  0 siblings, 1 reply; 15+ messages in thread
From: Collins Richey @ 2001-05-18 20:33 UTC (permalink / raw
  To: gentoo-dev

On Fri, 18 May 2001 19:08:26 +0200 AGottinger@t-online.de (Achim Gottinger)
wrote:

> Collins Richey wrote:
> > 
> > On Fri, 18 May 2001 01:44:52 +0200 AGottinger@t-online.de (Achim
> Gottinger)
> > wrote:
> > 
> > > Collins Richey wrote:
> > > >
> > > > On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim
> > > Gottinger)
> > > > wrote:
> > > >
> > > > > Collins Richey wrote:
> > > > > >
> > 
> > > > > > The kernel you supply, for example, has no sound modules
> compiled,
> > > and
> > > > > I would like to recompile for sound support (esssolo1.o and
> > > soundcore.o
> > > > > are needed) without breaking anything else.
> > > > >
> > > > > (The default kernel contains all alsa sound modules)
> > > > >
> > > >
> > > > fyi, this doesn't do much good unless you have a sound card that
> works
> > > with
> > > > als.
> > > >
> > > > > Current kernel source poackage is broken, eigher use
> > > > > linux-source-2.4.4-rx.ebuild or
> > > > > use a default kernel and run a manual config inbetween.
> > > > >
> > > > > cd /usr/portage/sys-kernel/linux
> > > > > ebuild linux-2.4.4.5.ebuild unpack
> > > > > cd /tmp/portage/linux-2.4.4.5/work/linux
> > > > > make menuconfig
> > > > > cd /usr/portage/sys-kernel/linux
> > > > > ebuild linux-2.4.4.5.ebuild merge
> > > > >
> > > > >
> > > >
> > > > As I alluded to earlier, it isn't a really good idea to overwrite
> the
> > > > working kernel.  Fortunately I saved the old kernel and modules. 
> The
> > > only
> > > > change I made was to add the esssolo1 module, but the new kernel
> came
> > > up
> > > > with modules problems and no working eth0.
> > > >
> > > > I think I'll try standard kernel build procedures from the
> > > > /tmp/portage/linux-2.4.4.5/work/linux directory with all your
> patches
> > > > applied.
> > >
> > > Hi Collins,
> > >
> > > I updated the kernel packages yesterday, you can now use
> > > linux-sources-2.4.4.9
> > >
> > > If you want the default configuration copy
> > > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> to
> > > /usr/src/linux/.config before you run make {x,menu}config.
> > >
> > > This kernel package uses the following USE variables for extras "lvm
> > > lm_sensors pcmcia-cs alsa".
> > > Add the ones you want top the USE variable in /etc/make.conf.
> > >
> > > After you have build the kernel you can build the extras modules and
> > > utilities by installing
> > >
> > > linux-extras-2.4.4.9.ebuild.
> > >
> > 
> > It doesn't work.  I did the following
> > 
> >         cd /usr/portage/sys-kernel/linux-sources
> >         ebuild linux-2.4.4.9.ebuild unpack
> >         cp
> /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> > /usr/src/linux/.config
> >         cd /tmp/portage/linux-2.4.4.9/work/linux
> >         tried make xconfig (error option not found)
> >         make menuconfig (added esssolo1 and corrected stuff for
> ide-scsi)
> >         cd /usr/portage/sys-kernel/linux-sources
> >         ebuild linux-2.4.4.9.ebuild merge
> > 
> > When I booted from the new kernel, eth0 would not start.  I discovered
> that
> > the procedure had added empty /etc/modules/2.4.4-ac5 for 2.4.4-ac5 but
> no
> > /lib/modules/2.4.4-ac5.  Only /etmodules/2.4.4-ac3 and
> > /lib/modules/2.4.4-ac3 contain data.  Since the kernel calls itself
> -ac5,
> > modprobe, etc. will not use any of the modules.
> 
> Hmm, there seems to be a bug in modultils.
> /lib/modules/[uname-r]/modules.dep is not generated correct.
> 
> Remove /etc/modules/[unname -r] and /etc/modules.conf  and run
> /etc/rc.d/init.d/modules. This will generate those files again.
> 
> I'm working on that bug here at the moment.
> 

That may be a problem, too, but I don't think that will fix my problem. 
Something went wrong with the kernel + modules ebuild.  The normal output
of the kernel sequence, ie make mrproper, make xxxconfig, make deps make,
make modules and make modules_install is a bzImage (ebuild got that right)
and a modules directory /lib/module/kernelname (ebuild did not produce
this), so the merge really failed even though it said it was complete.  It
won't do me any good to rebuild the modules.conf etc - the modules
themselves are missing in action.

Thanks,
-- 
Collins Richey
Denver area
gentoo system



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-18 20:33           ` Collins Richey
@ 2001-05-19 10:10             ` Collins Richey
  2001-05-19 12:23               ` Achim Gottinger
  0 siblings, 1 reply; 15+ messages in thread
From: Collins Richey @ 2001-05-19 10:10 UTC (permalink / raw
  To: gentoo-dev

On Fri, 18 May 2001 20:40:53 -0600 Collins Richey <erichey2@home.com>
wrote:

> On Fri, 18 May 2001 19:08:26 +0200 AGottinger@t-online.de (Achim
> Gottinger)
> wrote:
> 
> > Collins Richey wrote:
> > > 
> > > On Fri, 18 May 2001 01:44:52 +0200 AGottinger@t-online.de (Achim
> > Gottinger)
> > > wrote:
> > > 
> > > > Collins Richey wrote:
> > > > >
> > > > > On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim
> > > > Gottinger)
> > > > > wrote:
> > > > >
> > > > > > Collins Richey wrote:
> > > > > > >
> > > 
> > > > > > > The kernel you supply, for example, has no sound modules
> > compiled,
> > > > and
> > > > > > I would like to recompile for sound support (esssolo1.o and
> > > > soundcore.o
> > > > > > are needed) without breaking anything else.
> > > > > >
> > > > > > (The default kernel contains all alsa sound modules)
> > > > > >
> > > > >
> > > > > fyi, this doesn't do much good unless you have a sound card that
> > works
> > > > with
> > > > > als.
> > > > >
> > > > > > Current kernel source poackage is broken, eigher use
> > > > > > linux-source-2.4.4-rx.ebuild or
> > > > > > use a default kernel and run a manual config inbetween.
> > > > > >
> > > > > > cd /usr/portage/sys-kernel/linux
> > > > > > ebuild linux-2.4.4.5.ebuild unpack
> > > > > > cd /tmp/portage/linux-2.4.4.5/work/linux
> > > > > > make menuconfig
> > > > > > cd /usr/portage/sys-kernel/linux
> > > > > > ebuild linux-2.4.4.5.ebuild merge
> > > > > >
> > > > > >
> > > > >
> > > > > As I alluded to earlier, it isn't a really good idea to overwrite
> > the
> > > > > working kernel.  Fortunately I saved the old kernel and modules. 
> > The
> > > > only
> > > > > change I made was to add the esssolo1 module, but the new kernel
> > came
> > > > up
> > > > > with modules problems and no working eth0.
> > > > >
> > > > > I think I'll try standard kernel build procedures from the
> > > > > /tmp/portage/linux-2.4.4.5/work/linux directory with all your
> > patches
> > > > > applied.
> > > >
> > > > Hi Collins,
> > > >
> > > > I updated the kernel packages yesterday, you can now use
> > > > linux-sources-2.4.4.9
> > > >
> > > > If you want the default configuration copy
> > > >
> /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> > to
> > > > /usr/src/linux/.config before you run make {x,menu}config.
> > > >
> > > > This kernel package uses the following USE variables for extras
> "lvm
> > > > lm_sensors pcmcia-cs alsa".
> > > > Add the ones you want top the USE variable in /etc/make.conf.
> > > >
> > > > After you have build the kernel you can build the extras modules
> and
> > > > utilities by installing
> > > >
> > > > linux-extras-2.4.4.9.ebuild.
> > > >
> > > 
> > > It doesn't work.  I did the following
> > > 
> > >         cd /usr/portage/sys-kernel/linux-sources
> > >         ebuild linux-2.4.4.9.ebuild unpack
> > >         cp
> > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> > > /usr/src/linux/.config
> > >         cd /tmp/portage/linux-2.4.4.9/work/linux
> > >         tried make xconfig (error option not found)
> > >         make menuconfig (added esssolo1 and corrected stuff for
> > ide-scsi)
> > >         cd /usr/portage/sys-kernel/linux-sources
> > >         ebuild linux-2.4.4.9.ebuild merge
> > > 
> > > When I booted from the new kernel, eth0 would not start.  I
> discovered
> > that
> > > the procedure had added empty /etc/modules/2.4.4-ac5 for 2.4.4-ac5
> but
> > no
> > > /lib/modules/2.4.4-ac5.  Only /etmodules/2.4.4-ac3 and
> > > /lib/modules/2.4.4-ac3 contain data.  Since the kernel calls itself
> > -ac5,
> > > modprobe, etc. will not use any of the modules.
> > 
> > Hmm, there seems to be a bug in modultils.
> > /lib/modules/[uname-r]/modules.dep is not generated correct.
> > 
> > Remove /etc/modules/[unname -r] and /etc/modules.conf  and run
> > /etc/rc.d/init.d/modules. This will generate those files again.
> > 
> > I'm working on that bug here at the moment.
> > 
> 
> That may be a problem, too, but I don't think that will fix my problem. 
> Something went wrong with the kernel + modules ebuild.  The normal output
> of the kernel sequence, ie make mrproper, make xxxconfig, make deps make,
> make modules and make modules_install is a bzImage (ebuild got that
> right)
> and a modules directory /lib/module/kernelname (ebuild did not produce
> this), so the merge really failed even though it said it was complete. 
> It
> won't do me any good to rebuild the modules.conf etc - the modules
> themselves are missing in action.
> 

FYI.  I've found part of the problem with your kernel ebuild.  I don't know
whether the problen is yours or modutils.  Here's what I did to get a
working kernel

cd /usr/portage/sys-kernel/linu
ebuild linux-2.4.4.5.ebuild unpack
cp -a /tmp/portage/linux-sources-2.4.4.9/work/linux-2.4.4-ac9 /home/collins
cd /home/collins/linux-2.4.4-ac9
make mrproper
make menuconfig
loaded
/usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
modified to add support for esssolo1 and altered a few SCSI settings to get
my CDRW to work
mv'd the /usr/modules/2.4.4-ac3 directory to another name
make dep && make bzImage && make modules && make modules_install
	Everything successful, except at the end of make modules install
	the script attempted to write to /lib/modules/2.4.4-ac3 !!! and failed
	(even though everything else was done for 2.4.4-ac9)
Created an empty 2.4.4-ac3 directory
reran make modules_install
	The script created the mod*** entries in 2.4.4-ac3 instead of 
	in 2.4.4-ac9 where they belong
cp /lib/modules/2.4.4-ac3/* /lib/modules/2.4.4-ac9 where they belong 
	(the actual modules were installed in 2.4.4-ac9)
rm -r /lib/modules/2.4.4-ac3 (the dummy directory)
mv /lib/modules/old-2.4.4-ac3 /lib/modules/2.4.4-ac3 
	(In case I need to boot the old image)
copied the bzImage to /boot/boot
mounted my other distribution partitions and did /sbin/lilo 
reboot - success
	The boot scripts did build the /etc/modules/... stuff and
/etc/modules.conf
	eth0 came up ok, but the scsi-ide stuff I added did not come up
automatically.
	I had to modprobe to load them.  Discovered that the esssolo1 module needs
	soundcore as a module.
modified the .config file
moved the /lib/modules/2.4.4-ac3 directory, made a dummy again
make dep && make bzImage && make modules && make modules_install
	This time the moduels_install put the mod*** files in the ac9 directory!!!
rm -r /lib/modules/2.4.4-ac3 (the dummy directory)
mv /lib/modules/old-2.4.4-ac3 /lib/modules/2.4.4-ac3 
copied the bzImage to /boot/boot
mounted my other distribution partitions and did /sbin/lilo 
reboot - success
	After modprobing, CDRW stuff ok (screcord --scanbus works)
	esssolo1 loaded correctly, but still not getting sound	

I hope this helps in your developing a robust kernel build ebuild.


Thanks
-- 
Collins Richey
Denver area
gentoo system



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-19 10:10             ` Collins Richey
@ 2001-05-19 12:23               ` Achim Gottinger
  2001-05-19 13:37                 ` Collins Richey
  0 siblings, 1 reply; 15+ messages in thread
From: Achim Gottinger @ 2001-05-19 12:23 UTC (permalink / raw
  To: gentoo-dev

Collins Richey wrote:
> 
> On Fri, 18 May 2001 20:40:53 -0600 Collins Richey <erichey2@home.com>
> wrote:
> 
> > On Fri, 18 May 2001 19:08:26 +0200 AGottinger@t-online.de (Achim
> > Gottinger)
> > wrote:
> >
> > > Collins Richey wrote:
> > > >
> > > > On Fri, 18 May 2001 01:44:52 +0200 AGottinger@t-online.de (Achim
> > > Gottinger)
> > > > wrote:
> > > >
> > > > > Collins Richey wrote:
> > > > > >
> > > > > > On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim
> > > > > Gottinger)
> > > > > > wrote:
> > > > > >
> > > > > > > Collins Richey wrote:
> > > > > > > >
> > > >
> > > > > > > > The kernel you supply, for example, has no sound modules
> > > compiled,
> > > > > and
> > > > > > > I would like to recompile for sound support (esssolo1.o and
> > > > > soundcore.o
> > > > > > > are needed) without breaking anything else.
> > > > > > >
> > > > > > > (The default kernel contains all alsa sound modules)
> > > > > > >
> > > > > >
> > > > > > fyi, this doesn't do much good unless you have a sound card that
> > > works
> > > > > with
> > > > > > als.
> > > > > >
> > > > > > > Current kernel source poackage is broken, eigher use
> > > > > > > linux-source-2.4.4-rx.ebuild or
> > > > > > > use a default kernel and run a manual config inbetween.
> > > > > > >
> > > > > > > cd /usr/portage/sys-kernel/linux
> > > > > > > ebuild linux-2.4.4.5.ebuild unpack
> > > > > > > cd /tmp/portage/linux-2.4.4.5/work/linux
> > > > > > > make menuconfig
> > > > > > > cd /usr/portage/sys-kernel/linux
> > > > > > > ebuild linux-2.4.4.5.ebuild merge
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > As I alluded to earlier, it isn't a really good idea to overwrite
> > > the
> > > > > > working kernel.  Fortunately I saved the old kernel and modules.
> > > The
> > > > > only
> > > > > > change I made was to add the esssolo1 module, but the new kernel
> > > came
> > > > > up
> > > > > > with modules problems and no working eth0.
> > > > > >
> > > > > > I think I'll try standard kernel build procedures from the
> > > > > > /tmp/portage/linux-2.4.4.5/work/linux directory with all your
> > > patches
> > > > > > applied.
> > > > >
> > > > > Hi Collins,
> > > > >
> > > > > I updated the kernel packages yesterday, you can now use
> > > > > linux-sources-2.4.4.9
> > > > >
> > > > > If you want the default configuration copy
> > > > >
> > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> > > to
> > > > > /usr/src/linux/.config before you run make {x,menu}config.
> > > > >
> > > > > This kernel package uses the following USE variables for extras
> > "lvm
> > > > > lm_sensors pcmcia-cs alsa".
> > > > > Add the ones you want top the USE variable in /etc/make.conf.
> > > > >
> > > > > After you have build the kernel you can build the extras modules
> > and
> > > > > utilities by installing
> > > > >
> > > > > linux-extras-2.4.4.9.ebuild.
> > > > >
> > > >
> > > > It doesn't work.  I did the following
> > > >
> > > >         cd /usr/portage/sys-kernel/linux-sources
> > > >         ebuild linux-2.4.4.9.ebuild unpack
> > > >         cp
> > > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> > > > /usr/src/linux/.config
> > > >         cd /tmp/portage/linux-2.4.4.9/work/linux
> > > >         tried make xconfig (error option not found)
> > > >         make menuconfig (added esssolo1 and corrected stuff for
> > > ide-scsi)
> > > >         cd /usr/portage/sys-kernel/linux-sources
> > > >         ebuild linux-2.4.4.9.ebuild merge
> > > >
> > > > When I booted from the new kernel, eth0 would not start.  I
> > discovered
> > > that
> > > > the procedure had added empty /etc/modules/2.4.4-ac5 for 2.4.4-ac5
> > but
> > > no
> > > > /lib/modules/2.4.4-ac5.  Only /etmodules/2.4.4-ac3 and
> > > > /lib/modules/2.4.4-ac3 contain data.  Since the kernel calls itself
> > > -ac5,
> > > > modprobe, etc. will not use any of the modules.
> > >
> > > Hmm, there seems to be a bug in modultils.
> > > /lib/modules/[uname-r]/modules.dep is not generated correct.
> > >
> > > Remove /etc/modules/[unname -r] and /etc/modules.conf  and run
> > > /etc/rc.d/init.d/modules. This will generate those files again.
> > >
> > > I'm working on that bug here at the moment.
> > >
> >
> > That may be a problem, too, but I don't think that will fix my problem.
> > Something went wrong with the kernel + modules ebuild.  The normal output
> > of the kernel sequence, ie make mrproper, make xxxconfig, make deps make,
> > make modules and make modules_install is a bzImage (ebuild got that
> > right)
> > and a modules directory /lib/module/kernelname (ebuild did not produce
> > this), so the merge really failed even though it said it was complete.
> > It
> > won't do me any good to rebuild the modules.conf etc - the modules
> > themselves are missing in action.
> >
> 
> FYI.  I've found part of the problem with your kernel ebuild.  I don't know
> whether the problen is yours or modutils.  Here's what I did to get a
> working kernel
> 
> cd /usr/portage/sys-kernel/linu
> ebuild linux-2.4.4.5.ebuild unpack
> cp -a /tmp/portage/linux-sources-2.4.4.9/work/linux-2.4.4-ac9 /home/collins
> cd /home/collins/linux-2.4.4-ac9
> make mrproper
> make menuconfig
> loaded
> /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
> modified to add support for esssolo1 and altered a few SCSI settings to get
> my CDRW to work
> mv'd the /usr/modules/2.4.4-ac3 directory to another name
> make dep && make bzImage && make modules && make modules_install
>         Everything successful, except at the end of make modules install
>         the script attempted to write to /lib/modules/2.4.4-ac3 !!! and failed
>         (even though everything else was done for 2.4.4-ac9)
> Created an empty 2.4.4-ac3 directory
> reran make modules_install
>         The script created the mod*** entries in 2.4.4-ac3 instead of
>         in 2.4.4-ac9 where they belong

yes that is a modutils problem. I'm currently testing a new modules
ini.d script that should do a workaround for that prob.

thanks for the detailed description.

bye achim~



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-19 12:23               ` Achim Gottinger
@ 2001-05-19 13:37                 ` Collins Richey
  2001-05-19 13:50                   ` Achim Gottinger
  0 siblings, 1 reply; 15+ messages in thread
From: Collins Richey @ 2001-05-19 13:37 UTC (permalink / raw
  To: gentoo-dev

On Sat, 19 May 2001 19:53:40 +0200 AGottinger@t-online.de (Achim Gottinger)
wrote:

[ snips ]

> I updated the kernel packages yesterday, you can now use
linux-sources-2.4.4.9
> If you want the default configuration copy
> /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.boootcomp to
> /usr/src/linux/.config before you run make {x,menu}config.  This kernel
package
> uses the following USE variables for extras
> "lvm lm_sensors pcmcia-cs alsa".  Add the ones you want top the USE 
> variable in /etc/make.conf.
> After you have build the kernel you can build the extras modules and
> utilities by installing linux-extras-2.4.4.9.ebuild.


> Hmm, there seems to be a bug in modultils.
> /lib/modules/[uname-r]/modules.dep is not generated correct.
 > Remove /etc/modules/[unname -r] and /etc/modules.conf  and run
> /etc/rc.d/init.d/modules. This will generate those files again.


> yes that is a modutils problem. I'm currently testing a new modules
> ini.d script that should do a workaround for that prob.
> 

Now I have a kernel and modules with the extra stuff I need, but I can't
get
gentoo to load the modules automatically.  

I rebuilt the modules.conf as suggested, but I still only get the tulip
module 
for eth0 loaded automatically.  Other distributions do this with 
/etc/modules/default, but I put entries for esssolo1 (also requires
soundcore), 
ide-scsi, sr_mod, and sg (the last three are used for ide-scsci CDRW
support) 
in default, but no results.

How do I get these loaded automatically?

Also, even though modprobe esssolo1 produces the same messages that I get
on my Caldera distribution, xfce starts with no sound available.  Other
than
order of loading (on Caldera sound loads first, then ide-scsi, and then
tulip),
I can't find any differences, but xfce is able to use sound on Caldera?

Any clues?

-- 
Collins Richey
Denver area
gentoo system



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-dev] kernel source for gentoo
  2001-05-19 13:37                 ` Collins Richey
@ 2001-05-19 13:50                   ` Achim Gottinger
  0 siblings, 0 replies; 15+ messages in thread
From: Achim Gottinger @ 2001-05-19 13:50 UTC (permalink / raw
  To: gentoo-dev

Collins Richey wrote:
> 
> On Sat, 19 May 2001 19:53:40 +0200 AGottinger@t-online.de (Achim Gottinger)
> wrote:
> 
> [ snips ]
> 
> > I updated the kernel packages yesterday, you can now use
> linux-sources-2.4.4.9
> > If you want the default configuration copy
> > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.boootcomp to
> > /usr/src/linux/.config before you run make {x,menu}config.  This kernel
> package
> > uses the following USE variables for extras
> > "lvm lm_sensors pcmcia-cs alsa".  Add the ones you want top the USE
> > variable in /etc/make.conf.
> > After you have build the kernel you can build the extras modules and
> > utilities by installing linux-extras-2.4.4.9.ebuild.
> 
> > Hmm, there seems to be a bug in modultils.
> > /lib/modules/[uname-r]/modules.dep is not generated correct.
>  > Remove /etc/modules/[unname -r] and /etc/modules.conf  and run
> > /etc/rc.d/init.d/modules. This will generate those files again.
> 
> > yes that is a modutils problem. I'm currently testing a new modules
> > ini.d script that should do a workaround for that prob.
> >
> 
> Now I have a kernel and modules with the extra stuff I need, but I can't
> get
> gentoo to load the modules automatically.
> 
> I rebuilt the modules.conf as suggested, but I still only get the tulip
> module
> for eth0 loaded automatically.  Other distributions do this with
> /etc/modules/default, but I put entries for esssolo1 (also requires
> soundcore),
> ide-scsi, sr_mod, and sg (the last three are used for ide-scsci CDRW
> support)
> in default, but no results.

we use /etc/rc.d/config/modules for that

> 
> How do I get these loaded automatically?
> 
> Also, even though modprobe esssolo1 produces the same messages that I get
> on my Caldera distribution, xfce starts with no sound available.  Other
> than
> order of loading (on Caldera sound loads first, then ide-scsi, and then
> tulip),
> I can't find any differences, but xfce is able to use sound on Caldera?
> 
> Any clues?
> 
> --
> Collins Richey
> Denver area
> gentoo system
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2001-05-19 19:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-13  6:53 [gentoo-dev] kernel source for gentoo Collins Richey
2001-05-13  8:37 ` Achim Gottinger
2001-05-13 11:29   ` Collins Richey
2001-05-13 11:37     ` Achim Gottinger
2001-05-13 12:44     ` Daniel Robbins
2001-05-17 18:06   ` Collins Richey
2001-05-17 18:14     ` Achim Gottinger
2001-05-18  6:14       ` Collins Richey
2001-05-18 11:38         ` Achim Gottinger
2001-05-18 20:33           ` Collins Richey
2001-05-19 10:10             ` Collins Richey
2001-05-19 12:23               ` Achim Gottinger
2001-05-19 13:37                 ` Collins Richey
2001-05-19 13:50                   ` Achim Gottinger
2001-05-18  1:56     ` Erik Van Reeth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox