|
TuxMobil
|
site map · index a-z · search |
|
Slackware 9.1 (Kernel 2.4.22) on a HP Pavilion ZE4315US Laptop
By Norm Kravatz <nocho_at_mail.com>
Hardware Overview
The only thing I felt compelled to change from stock configuration was the amount of RAM
dedicated to video in the BIOS. Considering the lobotomized mobile Radeon card in there isn't really
suited for serious 3-D usage anyway, 64MB is way overkill, since it takes
from your main system memory
pool and reduces you effectively down to 192MB. Instead, I opted to just wittle down the allocated
video RAM to 16MB, more than enough for general desktop use and light 3-D demands while still leaving
240MB for the system. Enough to feel comfortable omitting a swap file as well. Install Issues
If you already attempted to install by now, you probably found yourself getting nowhere fast.
Go ahead and install Slackware however you want. If for whatever reason you follow these instructions and still have trouble, omit the E, KDE, KDEI, and
Y packages, which I have no use for and didn't bother testing. I just did a full install of everything else, figuring its better to have and not need, than to need and not have.
Before you reboot for the first time, you'll want to make sure a couple of the startup scripts are temporarily disabled lest you hard lock at boot:
There is also something in the PCI hotplug system that causes a freeze, so lets just disable it for now:
There. We should be able to Ctrl-Alt-Del now without fear of lockage when we come back up. Network, Sound, ModemThe network card should have been auto-detected and added to your /etc/rc.d/rc.netdevice startup file:
Sound support can be added to /etc/rc.d/rc.local or launched manually via:
The integrated modem does, in fact, work under Linux -- but only apparently when the trident module is NOT loaded first. Don't load the trident module after using the modem either, or it will lock. Just reboot in-between sessions. Annoying, but still pretty cool.
Just download the source tar-ball
from the horse's mouth
Just press enter for the defaults and it should automatically soft-link /dev/ttySHSF0 to /dev/modem for you, and you can make use of it immediately. USB and FirewireUSB support should be detected automatically by the /etc/rc.d/rc.hotplug script (which launches /etc/hotplug/usb.rc specifically). I've tested this out and verified it works with the external floppy. Just make sure its plugged in (use the lsusb command to verify) then:
Firewire... I have no idea. While it appears the ieee1394 agent should run as part
of the HotPlug system, I have no devices to test with yet. modprobe ieee1394
runs without errors and lsmod confirms it, so I'm assuming the base
port-support is working. Someone please e-mail me at the address on top of this page with any
first-hand accounts of actual FireWire devices working under Linux. Will update this document
as soon as I find out. Cardbus (PCMCIA) Support
For whatever reason, the "yenta-socket" driver that comes integrated with recent kernels can't detect and set the IRQ properly in this system. The result varies from non-detection of insertion/removal events to instant total
system hard-lock. The easiest way I've found to fix it so far is to just disable the internal "yenta-socket" support and resort back to the "antiquated" i82365 module that comes with the pcmcia-cs package instead. Before we recompile the pcmcia-cs package though, we should go ahead and recompile the kernel to enable ACPI support and disable internal PCMCIA support there first. KernelCompiling a New Kernel to Fix ACPI and Disable Internal PCMCIA Handling
Make sure you have the Slackware 'K' (Linux kernel source code) package installed, or if its easier, download the Linux 2.4.22 source
I'm not going to get into the specifics of compiling kernels. There are plenty of HOWTOs and documentation out there, plus I don't want to sound overly redundant for those who are quite adept at it. So I'll just keep this short and simple, staying with the path of least resistance which also minimizes unforeseen issues. So just execute the following as root:
At this point, unless you know what you're doing, you'll want to just load the defaults from the /boot/config file (option second from bottom). These are the base config options I would recommend changing:
Obviously, there's alot of other stuff you can nit-pick and get rid of, esp. if you are sure you'll never need it, but since most everything in Slackware is compiled as a module (which is a really good way to go) and since we aren't hurting for disk space, better to play it on the safe side for now until we know everything is working, even if it means a slightly longer compile time. Notice we did not include PCMCIA support in the kernel. We're going to have to use the "legacy" drivers in the pcmcia-cs package instead.
The entire process takes about 30 minutes.
Save and exit, run /sbin/lilo to commit the changes and reboot. You should have two Linux options now: one for your original kernel that came with Slackware 9.1, and your new custom kernel that is optimized for your hardware! Recompiling and Tweaking pcmcia-cs to Fix Our Little Problem
Make sure you've recompiled a kernel with internal PCMCIA support
disabled (as detailed in the section immediately above) and reboot before
continuing.
Now issue the following commands to install pcmcia-cs:
One last quick thing, you'll need to comment out the exclude line in the /etc/pcmcia/config.opts configuration file (at line 36) so that it can use IRQ 7 for the actual card data interrupts, as well as add another line after that so that it never defaults to IRQ 12. Otherwise you can expect lockage or less-than-optimal cardbus performance at best:
Thats it! Reboot that puppy and you're all set. Fixing the ACPI Handler Script
This system handles ACPI a bit weird, and generates a forward-slash character instead of a space between the event strings in /proc/acpi/event which the acpid daemon watches. No need to fret, as a quick tweak of the ACPI handler script can get it so you can have the system shutdown properly (init 0) upon just pressing the power button as its supposed to. All you have to do is edit the /etc/acpi/acpi_handler.sh script with your favorite text editor. Running XFree86
I'm not going to bother covering XFree86 Feel free to e-mail any thoughts, suggestions, success stories to the address at the top of this page. |
|||||||||||||||||
|
print · i-mode · WAP · PDA contact · imprint · privacy (P3P) · sponsors · RSS © Werner Heuser 1997-2011 · http://tuxmobil.org/linux-ze4315us-slack-9.1.html · last change Wed Nov 26 2008 |
||||||||||||||||||