LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-05-2009, 06:05 PM   #16
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320

Daedra, I haven't had time to try this out yet but I think it's worthy of a SlackWiki page...
 
Old 08-05-2009, 06:19 PM   #17
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Just an FYI for everyone. starting with kernel 2.6.28 the asm include files have been moved and because of that klibc will fail to compile. I used a patch I found that made it so that klibc would successfully compile, but then I found out that any programs that rely on klibc (like v86d) will fail to compile. The reason for this the fact that the asm include files have been moved in the 2.6.28 kernels and beyond. To fix this you have to do a little work around.

1) change to your /usr/src/linux directory and backup your .config file somewhere safe. Now we need to change the asm symlink. delete the current symlink at /usr/src/linux/include/asm and then create a new asm symlink like so

cd /usr/src/linux/include
ln -s /usr/src/linux/arch/x86/include/asm

You should now be able to cleanly compile klibc and v86d with klibc support. Be sure to save your packages because once there made you do not need to recompile them with every new kernel release, so once you do this once your done, SAVE YOUR PACKAGE

Because we changed the asm symlink we have now in a sense broken the kernel directory, to fix it change to /usr/src/linux and then run

make mrproper

this will revert your kernel directory back to original settings. Then copy back your .config file to /usr/src/linux and then

make oldconfig

After that your kernel directory will be back to normal and you done. Its definitely a kludge but its the only way I found to compile klibc with never kernels.


I am not sure if this has been fixed in newer kernels or not, I haven't tested it in a while, so any feedback is appreciated.

http://www.archlinux.org/pipermail/a...ry/003213.html

Last edited by Daedra; 08-05-2009 at 06:27 PM.
 
Old 08-05-2009, 06:26 PM   #18
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by dugan View Post
Daedra, I haven't had time to try this out yet but I think it's worthy of a SlackWiki page...
You should when you get time, its so worth it. Anyone out there that uses the console as much as I do then this really is a must IMO, I have a 28in monitor with the console running at 1920x1200, it makes thing so much nicer to work with.
 
Old 08-06-2009, 12:50 AM   #19
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I got it working. My laptop's native resolution wasn't supported though. It's an Asus A8Js with a Geforce Go 7700 card.

I had a custom 2.6.29.4 kernel with the source archive in my home directory, so this is how I did it.

First, I compiled uvesafb into the kernel.

Then, I downloaded klibc-1.5.15 from kernel.org (it's in /testing) and the klibc-fix-2.6.28-includes.patch file from Arch Linux. I compiled klibc like this:

Code:
cd klibc-1.5.15
ln -s ../linux-2.6.29.4 ./linux
patch -p1 < ~/klibc-fix-2.6.28-includes.patch
make
su
make install
cp -a linux/arch/x86/include/asm/* /usr/lib/klibc/include/asm/
ldconfig
exit
Then I compiled v86d like this:
Code:
cd v86d-0.1.9
mkdir -p /usr/share/v86d
./configure --with-klibc
su
make install
cp misc/initramfs /usr/share/v86d
exit
Then I compiled the initramfs image into the kernel, as per Spock's instructions.

DONE!

This wasn't very useful because my native resolution wasn't supported anyway, but now I know how to do it.

Last edited by dugan; 08-06-2009 at 01:06 AM.
 
Old 08-06-2009, 02:25 AM   #20
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
ignore - Nice I didn't know there was a patch for klibc, you got a link for it?

Nevermind, I was thinking of something else

Last edited by Daedra; 08-06-2009 at 02:30 AM.
 
Old 08-06-2009, 02:35 AM   #21
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Nevermind
Edited accordingly.

Last edited by dugan; 08-06-2009 at 02:48 AM.
 
Old 08-06-2009, 04:18 PM   #22
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by dugan View Post
This wasn't very useful because my native resolution wasn't supported anyway, but now I know how to do it.
I had the same problem with my laptop, it didn't support any of the higher resolutions, I'm just glad my 8800GT did.
 
Old 08-08-2009, 08:38 PM   #23
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by ppr:kut View Post
Actually, I have been able to use higher resolutions with nvidia-card and vesa as well. You just have to define the correct vesa-modes, which are indeed not very easy to find. I had an app for this once called vbetest, it comes with lrmi and is also included in mplayer's vesautils. It lists the supported vesa-modes for your graphics card.
vbetest is a great utility and imho should be included on the installation CD. When I ran it on my T400, it gave me a mode number for 1280x800x24 (its native resolution). I added 512 to it and set the "vga=" line in lilo.conf to the result. It worked... with the stock kernel and the stock vesafb driver.

I wish I tried it before setting up uvesafb and not after <headdesk>.

Last edited by dugan; 08-08-2009 at 09:57 PM. Reason: 24 bits, not 32
 
Old 08-08-2009, 09:17 PM   #24
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Are you running current? I just tried installing lrmi and it failed to compile?
 
Old 08-08-2009, 09:39 PM   #25
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I am running -current. I googled for the error and found a patch.

Code:
cd lrmi-0.10
patch -p3 < ../zhcon-0.2.6%2Blinux-headers-2.6.26.patch
make
 
Old 08-09-2009, 03:09 AM   #26
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Quote:
I am running -current. I googled for the error and found a patch.
lrmi on SlackBuilds.org already has a similar patch to make it build against newer kernels.
However, note that lrmi is unmaintained (unfortunately) and won't work/build on a 64bit system.
I've looked for a replacement to vbetest, that also works on slackware64, but so far no luck :/
 
Old 08-09-2009, 03:25 AM   #27
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
That's very unfortunate. You only need to run vbetest once per video card bios, though, so you could find a livecd that has it and run it from there.

Last edited by dugan; 08-09-2009 at 03:28 AM.
 
Old 08-09-2009, 08:46 AM   #28
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by ppr:kut View Post
lrmi on SlackBuilds.org already has a similar patch to make it build against newer kernels.
However, note that lrmi is unmaintained (unfortunately) and won't work/build on a 64bit system.
I've looked for a replacement to vbetest, that also works on slackware64, but so far no luck :/
IIRC, the s2ram tool packaged for debian-esque systems comes complete with a pre-compiled vbetool binary. So if the issue is precisely that it won't build on a 64bit arch, but maybe it will execute then you could get vbetool this way.

If it won't work though, this becomes irrelevant, and as you suggest, we'd be stuck

Sasha
 
Old 08-09-2009, 11:32 AM   #29
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Ok, I did some more research today and may have something to replace lrmi/vbetest

The thing is called hwinfo and is the tool used by Opensuse for hardware detection (which means it's capable of far more than plain vesa mode detection).
Unfortunately those suse bast.. err developers forked off libx86, so you'll need libx86emu to compile hwinfo.

I have slackbuilds for both ready and would be happy if you could test these, preferably on -current. It seemed to run fine here on slack32 and slack64, but you never know...

Anyway, here are the links:
libx86emu.tar.gz
hwinfo.tar.gz

hwinfo --framebuffer should give you the same results as vbetest, albeit already in hexa-decimal
 
Old 08-09-2009, 12:01 PM   #30
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
They built fine on my 32-bit slackware-current system.

And hwinfo --framebuffer worked.

I would have liked to know this though:
Quote:
./check_hd is the main part of the compilation process, and it is very CPU intensive. On my EeePC it runs for 20 minutes or half an hour at times. How long did you let yours run? Don't worry, if it got that far, it is very likely to compile just fine in the end.

Last edited by dugan; 08-09-2009 at 12:05 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I installed Wine and configure this at Debian 4.0 r1.I installed windows software hassancemk Linux - Software 2 04-01-2008 11:28 PM
Ndiswrapper installed driver installed, hardware present, but modprobe doesn't likeit Flukey Linux - Hardware 1 04-14-2007 11:22 AM
Cannot boot already installed ubuntu on newly installed win xp abhi_337 Ubuntu 1 07-13-2006 03:33 AM
ndiswrapper installed, driver installed. No device appears... kurtwisener Fedora 5 03-25-2006 03:10 PM
I have Redhat 3.0 factory installed on my Dell hardware. I have installed JDK 1.4.2 vcvinith Red Hat 2 04-18-2005 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration