Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wolk3.8 (linux-2.4.18) without alsa
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
kappax
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 273
Location: The Moon

PostPosted: Sun Jan 12, 2003 8:44 am    Post subject: wolk3.8 (linux-2.4.18) without alsa Reply with quote

Hi all!
Here i am going to tell you how to get the wolk kernel without alsa support, so you can have the wolk kernel and compile your own alsa drivers.
I am not going to get in to why i did this, but i needed to and i am now super happy!

Ok fist you need to emerge wolk-sources-3.8.ebuild
or download
linux-2.4.18.tar.bz2
you will also need
linux-2.4.18-wolk3.8-patchset.tar.bz2

Now that you have thoes files.
remove your /usr/src/linux link (or you might be sad)
then
Code:

cd /usr/src/

and unpack the linux kernel, it will unpack under the name linux :) that is why your link needs to be gone.

now in some other location unpack the wolk patchset.tar.bz2
when you have that done you will need to remove all the alsa patches, this can be done what ever way you want but i did it like this in the pachset dir.
Code:

find -iname "*alsa*" -exec rm {} \;


now wee need to edit some files.
edit this file fist 050_patch-int-2.4.19.1.patc
at line 915 is where we will start to edit.

we need to make that section look like this

Code:

@@ -138,9 +138,10 @@

 CORE_FILES     =kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
 NETWORKS       =net/network.o
+CRYPTO         =crypto/crypto.o

 LIBS           =$(TOPDIR)/lib/lib.a
-SUBDIRS                =kernel drivers mm fs net ipc lib
+SUBDIRS                =kernel drivers mm fs net ipc lib crypto

 ifeq ($(CONFIG_KDB),y)
 CORE_FILES     += kdb/kdb.o


you should see that you have something like this in that section

Code:
 
-SUBDIRS                =kernel drivers mm fs net ipc lib sound


just remove the word sound (make sure you get the space between lib and sound too)

also take the sound out of this line

Code:

+SUBDIRS                =kernel drivers mm fs net ipc lib sound crypto


Now that that is on done on to the next step!

Now we get to edit 534_PPC-fixes.patch
this one is a ez step :)

You will remove the hunk that starts on line 23

Code:

@@ -391,7 +392,7 @@
        comment 'DEACTIVATE THIS AND YOU WILL SEE KERNEL SOUND CORE IN THE MENU BEFORE'
    tristate 'Sound card support' CONFIG_SOUND_ALSA
    if [ "$CONFIG_SOUND_ALSA" != "n" ]; then
-      source sound/oss/dmasound/Config.in
+      #source sound/oss/dmasound/Config.in
       source sound/Config.in
    fi
    endmenu


Now we get to remove a file !!!

remove this file 682_rtc-max-user-freq.patch

Code:

682_rtc-max-user-freq.patch


and that should do it, run the addpatch script and you shold be set.


NOTE< it was late at night when i wrote this, my eye lids are falling down over my eyes as i type, so there is mostlikey errors inst spelling and my speech may sound funny, but that is ok, so long as you understand what i am trying to get acrost to you!.

if any of you find errors after doing this plez post so i can figure out where it is going wrong.

OOPS, i almost forgot!!!

lostlogic helped me learn diff files and patching!! and he helped me (more like he did it) the fist change that needed to happen.

lostlogic is a great guy!! if you see him give him a pat on his back!.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Mon Jan 13, 2003 12:06 am    Post subject: Reply with quote

I still fail to see why the devs think this is a smart move.. I mean the whole keeping alsa seperate from the kernel... I would much rather that we just dumped that feature as it annoys the crap out of me when running WOLK test kernels or development kernels.. I have ALSA in there already.. I don't want devfs and modules.

if we absolutely need this, then let me at least set somewhere that I wish for ALSA driver to be injected and instead rely on the inkernel one.
Back to top
View user's profile Send private message
kappax
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 273
Location: The Moon

PostPosted: Mon Jan 13, 2003 12:50 am    Post subject: Reply with quote

I have got a report fom somebody that this does not work for them, when i get some more time i will make some diff files and a script to fix the patch set.

fornow here is a tar of my working patch set

http://yellowk.n3.net/~kappax/linux-2.4.18-wolk3.8-patchset.tar.bz2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum