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: (15) </ ... 4 5 6 7 8 [9] 10 11 12 13 14 ... >/

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

reply to topic new topic new poll
Topic: How to install CPU Freq Driver, Use cpufreqd with acpid and ACPI< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 23 2006,03:39 QUOTE

Thanks - what I'm struggling with is how to boot off the bzImage or vmlinuz files from a USB boot. The system.map file is in the same directory as vmlinuz (/boot), would a USB boot need this file - if so where should I put it?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 23 2006,04:54 QUOTE

You can probably put it in the root dir / of your usb, depending on how your usb is set up - the dir where the current linux24 resides would be a good idea.

Then you'll have to edit your syslinux.cfg to add a new entry to point to that.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 23 2006,11:51 QUOTE

Hmm - I'm still struggling with this, but thanks for all the help so far.

I had a look in the minirt24.gz file and as you said, there doesn't seem to be anything in there that would be affected by the recompiled kernel.

I borrowed from meo's monster remastering post and did the following:

# mkdir /ramdisk/source
# mkdir /ramdisk/newcd
# mkdir /ramdisk/newcd/KNOPPIX
# cp -Rp /KNOPPIX/* /ramdisk/source
# cp -Rp /KNOPPIX/.bash_profile /ramdisk/source

[copy cpufreq modules, cpufreq modules compiled into the kernel (built-in.o cpufreq.o freq_table.o proc_intf.o userspace.o) & new system.map]

# cp /path/speedstep-centrino.o /ramdisk/source/lib/modules/2.4.26/kernel/arch/i386/kernel
# mkdir /ramdisk/source/lib/modules/2.4.26/kernel/drivers/cpufreq
# cp /path/cpufreq/* /ramdisk/source/lib/modules/2.4.26/kernel/drivers/cpufreq
# cp /path/System.map-2.4.26 /ramdisk/source/boot

# mkisofs -R /ramdisk/source | create_compressed_fs - 65536 > ramdisk/newcd/KNOPPIX/KNOPPIX

After replacing the original KNOPPIX file on my USB stick with the KNOPPIX file created above, I rebooted - I didn't get any error messages during boot but...

"insmod speedstep-centrino" complained about missing symbols
"insmod cpufreq" complained about not knowing which kernel version it was compiled for

...so I guess that's not the answer.

My syslinux.cfg file currently reads as follows:

DEFAULT linux24 APPEND ramdisk_size=100000 init=/etc/init lang=us vga=773 apm=off acpi=force initrd=minirt24.gz nomce noapic quiet frugal restore=sda1 toram syslog mydsl=sda1  BOOT_IMAGE=knoppix

How exactly should I modify it to point to the recompiled vmlinuz file?

Would it make sense to "un-pack" the vmlinuz file (how?) and replace/add to the contents of the KNOPPIX file with its contents?

Apart from creating the loadable modules and the "compiled-in" modules from the patched kernel source, the recompile process must create/modify some files which reference the new modules - would it make sense to replace/add to the contents of the KNOPPIX file with these files?

Where should I look for these files amongst the gazillion files that were added/modified during the recompile process? In a HD installation I presume these files are created from the patched kernel source and copied into the current installation which would not be the case in a USB stick installation
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 23 2006,13:56 QUOTE

Usually it's easier to test out everything to make sure it works before one remasters, but looks like you the hang of the procedure anyways.

You're still not booting off the new kernel, so the modules aren't recognized properly.

In your syslinux.cfg, change try changing the original kernel "linux24" to whichever kernel package you're trying to use - could try either bzimage or vmlinuz I think (not sure of the limitations of syslinux because I mostly use grub).  Of course you can only do this if you've already copied the kernel you are going to use into the same dir as the original linux24.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 23 2006,14:57 QUOTE

I renamed the vmlinuz file to linux24 and copied over the original file in the root of my USB stick.

Things started off promisingly - "Uncompressing linux... OK, booting the kernel" but then I got "Kernel panic: VFS: Unable to mount root FS on 01:00"

I still think that my problems stem from the fact that the recompilation process assumes a HD install - I guess the recompilation in /ramdisk assumes an ext2 file system whilst the USB stick needs a vfat FS (or it tries to boot from my NTFS HD) for example.

Still, someone managed to produce a compiled kernel for the default DSL USB boot... I wonder if using kernel sources from the 3.4 Knoppix CD would help?
Back to top
Profile PM 
74 replies since July 29 2006,19:25 < Next Oldest | Next Newest >

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

Pages: (15) </ ... 4 5 6 7 8 [9] 10 11 12 13 14 ... >/
reply to topic new topic new poll
Quick Reply: How to install CPU Freq Driver

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