Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (85) </ ... 67 68 69 70 71 [72] 73 74 75 76 77 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ReMastering HOWTO for DSL, Also for newbies and other enthusiasts< Next Oldest | Next Newest >
loupdesteppes Offline





Group: Members
Posts: 16
Joined: Feb. 2006
Posted: April 19 2007,08:44 QUOTE

un-master have a look on my way of remaster damsmall....maybe it can help you....if you need some added informations, let me know...
best regards
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: April 20 2007,03:43 QUOTE

Thanks, loupdesteppes. I had seen your guide, but didn't know how many differences were between 2.2 and 3.3  I am doing your Method 2, I think. One thing you did that I did not try was dpkg --force-overwrite -i /

I actually have it working well to this point (my generated ISO actually boots!), except that I have not compiled a kernel for a couple of years, and I need to for this project (I need to add some patches to the kernel).

I got the 2.4.26 kernel, do you know if I have to apply the knoppix-kernel.patch before I can compile?

Code Sample
bash-2.05b# patch -v -p1 -d linux-2.4.26 < knoppix-kernel.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/arch/i386/kernel/setup.c.orig        2002-10-04 01:02:25.000000000 +0200
|+++ linux/arch/i386/kernel/setup.c     2002-10-04 01:03:24.000000000 +0200
--------------------------
File to patch:

I can run make menuconfig, I am getting acquainted again with that. There is a lot of information from July 2006 here.

thank you.
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: April 20 2007,04:07 QUOTE

Since I am wanting to avoid re-inventing the wheel, I hate to start with a make menuconfig and have to guess at what all the existing DSL kernel parameters are. After some searching, I came across sysctl, it can read and write parameters from a running kernel. Fortunately, it seems to be present and working!

Code Sample
bash-2.05b# sysctl -a
error: unable to open directory '/proc/sys/'

This was my clue (I have so few of them) to mount /proc:
Code Sample
mount -t proc none /proc
This produced a huge list of kernel parameters! I won't post them here. I wonder if I can pipe that output to a configuration file, so I won't have to simply step through each one and enter it....

EDIT: easy enough to pipe it to a text file anyway. I tried this and it worked:
Code Sample
sysctl -a > sysctl.txt
Looking through it, it has lots and lots of settings for net.ipv4.conf.eth0 (5 pages)  and dev.cdrom.info and nothing about soundcards, modules, etc. I checked it on a running Fedora Core 4 and Debian Sid systems, and they have similar output. Can I just run through make menuconfig plugging in values from this? That would be nice, less trial and error.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 20 2007,07:44 QUOTE

Quote
bash-2.05b# patch -v -p1 -d linux-2.4.26 < knoppix-kernel.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/arch/i386/kernel/setup.c.orig        2002-10-04 01:02:25.000000000 +0200
|+++ linux/arch/i386/kernel/setup.c     2002-10-04 01:03:24.000000000 +0200
--------------------------
File to patch:

This happens to me sometimes - if you enter "/usr/src/linux-2.4.26/arch/i386/kernel/setup.c" after "file to patch:" things should work. You could also try a symlink /usr/src/linux --> /usr/src/linuz-2.4.26

Quote
Since I am wanting to avoid re-inventing the wheel, I hate to start with a make menuconfig and have to guess at what all the existing DSL kernel parameters are.

If you use make menuconfig to load the knoppix .config file and then exit and save it, you will have the default DSL parameters. It is relatively easy to edit the .config file with beaver if you want to customise a kernel to your particular needs.

Maybe the post on a dummy USB stick compile here might be useful.
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: April 20 2007,23:43 QUOTE

Hi Juanito, thanks for the reply. Yes, I have been following your thread very carefully. After I posted last, I tried and was able to patch the kernel (I had a symlink created) with no errors. I will continue on it tonight!

EDIT: I had apt-gotten the Debian Stable gcc-2.95 and had a problem finding it in the DSL extensions (I tried several mirrors) I found it in Google's cache however, so I will continue with it.
Thanks!
Back to top
Profile PM 
422 replies since April 14 2004,19:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (85) </ ... 67 68 69 70 71 [72] 73 74 75 76 77 ... >/
reply to topic new topic new poll
Quick Reply: ReMastering HOWTO for DSL

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code