Lighthouse Puppy AMD Radeon HD 8180 Video Driver

Problems and successes with specific brands/models of computer video hardware
Post Reply
Message
Author
User avatar
Meshworks
Posts: 38
Joined: Tue 25 Oct 2011, 20:55

Lighthouse Puppy AMD Radeon HD 8180 Video Driver

#1 Post by Meshworks »

ONLY SOLUTIONS SO FAR:
1) Get a laptop with an Nvidia Graphics card.
2) Run a 32bit OS with PAE (Driver installs correctly)

The problem is similar to ...
http://murga-linux.com/puppy/viewtopic.php?t=93660
http://www.linuxquestions.org/questions ... -a-753961/

My situation as follows...

On LHP515F and LHP602, on installing the ATI Proprietory driver, there is no installation of the 32bit OpenGL so certain 32bit apps that rely on opengl/directx won't run in Wine (which means no World of Warcraft)!

The error running WoW under the ATI driver is as follows:

Code: Select all

wine Wow.exe -opengl &
...
err:wgl:has_opengl Failed to load libGL: libGL.so.1: wrong ELF class: ELFCLASS64
err:wgl:has_opengl OpenGL support is disabled.
Direct3D9 is not available without OpenGL.
The 64bit side of the driver has installed correctly and allows hardware/direct rendering.

So .. Questions....
How do I get the ATI drivers to compile the 32bit libs under LHP???
How do I get my 32bit win games / graphics apps working???

Command used to install driver:

Code: Select all

./amd-driver-installer-14.10.1006.1001-x86.x86_64.run

Code: Select all

Machine: Asus X102BA.214 netbook
Graphics Card:
AMD Radeon HD 8180
- Display Details from LHP -
Resolution		: 2968x1200 pixels
Vendor		: The X.Org Foundation
Version		: 1.9.5
-Monitors-
Monitor 0		: 1366x768 pixels
Monitor 1		: 1600x1200 pixels
-Extensions-
AMDXVBA
AMDXVOPL
ATIFGLEXTENSION
ATIFGLRXDRI
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
DRI2
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
RANDR
RECORD
RENDER
SGI-GLX
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XFree86-DGA
XFree86-VidModeExtension
XINERAMA
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
XVideo-MotionCompensation
glesx
-OpenGL-
Vendor		: Advanced Micro Devices, Inc.
Renderer		: AMD Radeon HD 8180
Version		: 4.4.12874 Compatibility Profile Context 14.10.1006.1001
Direct Rendering		: Yes

I'm also running LHP515F on an NVIDIA based box. This compiles both 32&64bit extensions to the Nvidia drivers, and therefore runs Wine / Wow perfectly. Hoot Hoot!!! But how to get the ATI drivers working right?!?!?!
Last edited by Meshworks on Fri 05 Sep 2014, 17:44, edited 4 times in total.

User avatar
Meshworks
Posts: 38
Joined: Tue 25 Oct 2011, 20:55

#2 Post by Meshworks »

:idea: Lets try and fix this with a 32bit compiling environment???
...compile the driver in a similar 32 bit slackware
... copy the results to the lib32 etc folders and see if wow finally works?!?!!

Let me know if this is a really bad idea / if there is an easier way plz!

Outline of steps so far and result.

Created folders named in the script below and copied the slacko .iso over there.
eg...
/mnt/sda8/nest/slacko-5.7/slacko-5.7-NO-pae.iso
/mnt/sda8/nest/slacko-5.7/slacko.sh

slacko.sh script...

Code: Select all

#!/bin/bash
# (C) James Budiono 2013
# License: GPL Version 3 or later
#
# $1-iso $-save path

### source dirs
ISOPATH=${1:-/mnt/sda8/nest/slacko-5.7/slacko-5.7-NO-pae.iso}
SAVEDIR=${2:-/mnt/sda8/nest/slacko-5.7/}

### work dirs
SFS_RAMDISK=/mnt/ramdisk # where to create the ramdisk
MOUNT_ROOT=/mnt/slacko # all other mount points will be created here

### mountpoints
AUFS_ROOT=$MOUNT_ROOT/root
SFS_MOUNT=$MOUNT_ROOT/sfs
ADRIVE_MOUNT=$MOUNT_ROOT/adrive
ZDRIVE_MOUNT=$MOUNT_ROOT/zdrive
DEVX_MOUNT=$MOUNT_ROOT/devx

# clean-up when killed
trap 'cleanup; exit' INT QUIT TERM 0

### clean-up everything
cleanup() {
	echo cleaning up ...
	for p in $AUFS_ROOT/dev/shm $AUFS_ROOT/dev/pts $AUFS_ROOT/dev \
	         $AUFS_ROOT/proc $AUFS_ROOT/sys $AUFS_ROOT/sys $AUFS_ROOT/tmp $AUFS_ROOT \
	         $SFS_MOUNT $ADRIVE_MOUNT $ZDRIVE_MOUNT $DEVX_MOUNT $SFS_RAMDISK; do
	    if mountpoint -q $p; then
			fuser -M -k $p 
			umount -l $p
	    fi
	done
}


### mount proc dev sys tmp 
system_mounts() {
	echo mounting system mounts  ...
	mkdir -p $AUFS_ROOT/dev $AUFS_ROOT/proc $AUFS_ROOT/sys $AUFS_ROOT/tmp $AUFS_ROOT/etc
	mount --rbind /dev $AUFS_ROOT/dev
	for p in proc sys tmp; do
		mount --bind /$p $AUFS_ROOT/$p
	done
	cp /root/.Xauthority $AUFS_ROOT/root
	ln -sf /proc/mounts $AUFS_ROOT/etc/mtab
}

### mount sfs-es
sfs_mounts() {
	echo mounting sfs ...
	mkdir -p $SFS_MOUNT $ADRIVE_MOUNT $ZDRIVE_MOUNT $DEVX_MOUNT
	mount -o ro,loop $SFS_RAMDISK/puppy_slacko*.sfs $SFS_MOUNT
	[ -e $SFS_RAMDISK/adrive.sfs ] && mount -o ro,loop $SFS_RAMDISK/adrive.sfs $ADRIVE_MOUNT
	[ -e $SFS_RAMDISK/zdrive.sfs ] && mount -o ro,loop $SFS_RAMDISK/zdrive.sfs $ZDRIVE_MOUNT
	[ -e $SFS_RAMDISK/devx.sfs ] && mount -o ro,loop $SFS_RAMDISK/devx.sfs $DEVX_MOUNT
}

### make aufs union
prepare_union() {
	echo preparing union ...
	local branches
	mkdir -p $SAVEDIR $AUFS_ROOT
	
	branches=br:$SAVEDIR
	for p in $SFS_MOUNT $ADRIVE_MOUNT $ZDRIVE_MOUNT $DEVX_MOUNT; do
		mountpoint -q $p && branches=$branches:$p
	done
	if ! mount -t aufs aufs -o $branches $AUFS_ROOT 2>/dev/null; then
		# savedir may be under aufs already, try creating a tmpfs there and mount again
		mount -t tmpfs tmpfs $SAVEDIR
		mount -t aufs aufs -o $branches $AUFS_ROOT
	fi
}

### copy SFS from ramdisk
prepare_ramdisk() {
	echo preparing ramdisk ...
	mkdir /tmp/xxx.$$	
	if mount -o ro,loop $ISOPATH /tmp/xxx.$$; then
		mkdir -p $SFS_RAMDISK
		mount -t tmpfs tmpfs $SFS_RAMDISK
		cp /tmp/xxx.$$/*.sfs $SFS_RAMDISK
		umount /tmp/xxx.$$
		rmdir /tmp/xxx.$$
		return 0
	else
		rmdir /tmp/xxx.$$
		return 1
	fi
}

### patch .profile to do first-run activities
patch_profile() {
	if ! grep -q gdk-pixbuf-query-loaders $AUFS_ROOT/root/.profile; then
		echo patching .profile
		mv $AUFS_ROOT/root/.profile $AUFS_ROOT/root/.profile-old
		{ 
			echo "echo Entering slacko chroot ..."
			echo "PS1='slacko# '"
			echo "cd /root"
			echo "! [ -e /root/.gtkdone ] && gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders"
			echo "touch /root/.gtkdone"			
			echo "export DISPLAY=:0"
			cat $AUFS_ROOT/root/.profile-old
		} > $AUFS_ROOT/root/.profile
	fi
}


##################################
############# main ###############
! prepare_ramdisk && echo "Cant load base sfs" && exit
sfs_mounts
! prepare_union && echo "Can't make union" && exit
system_mounts
patch_profile
linux32 chroot $AUFS_ROOT /bin/sh --login
#cleanup # activated by trap
Tried running it but it makes a mess because 602 is missing the 'mountpoint' command from util-linux.
Lets use slackpkg to reinstall util-linux stuff (glad i tried cos it DID work)...

Code: Select all

bash-4.1# whereis slackpkg
slackpkg: /usr/sbin/slackpkg /etc/slackpkg /usr/etc/slackpkg /usr/libexec/slackpkg /usr/man/man8/slackpkg.8.gz /usr/share/man/man8/slackpkg.8.gz
<root> ~
bash-4.1# slackpkg
slackpkg - version 2.81.1


This appears to be the first time you have run slackpkg.
Before you install|upgrade|reinstall anything, you need to uncomment
ONE mirror in /etc/slackpkg/mirrors and run:

	# slackpkg update
<root> ~
bash-4.1# slackpkg update

			Downloading http://ftp.mirrorserv...

...	Formatting lists to slackpkg style...
		Package List: using CHECKSUMS.md5 as source
		Package descriptions

<root> ~

Code: Select all

<root> ~
bash-4.1# slackpkg search util-linux

awk: /usr/libexec/slackpkg/pkglist.awk:13: (FILENAME=- FNR=567) fatal: NF set to negative value
Looking for util-linux in package list. Please wait... DONE

The list below shows all packages with name matching "util-linux".

[ installed ] - util-linux-2.21.2-x86_64-5

so its installed but missing the mountpoint command

Code: Select all

<root> ~
bash-4.1# slackpkg upgrade util-linux-2.21.2-x86_64-5

Checking local integrity... DONE
You have a broken /var/log/packages - with two versions of the same package.
The list of packages duplicated in your machine are shown below, but don't
worry about this list - when you select your action, slackpkg will show a
better list:

dbus-python-0.83.1-x86_64-1
dbus-python-1.1.0-x86_64-1 ...
...python-2.6.6-x86_64-1
python-2.7.3-x86_64-2

You can (B)lacklist, (R)emove, or (I)gnore these packages.
Select your action (B/R/I): B

Code: Select all


<root> ~
bash-4.1# slackpkg reinstall util-linux-2.21.2-x86_64-5
...
	(O)verwrite all old files with the new ones. The
	   old files will be stored with the suffix .orig
	(R)emove all .new files
	(P)rompt K, O, R selection for every single file	
What do you want (K/O/R/P)? O
...
awk: /usr/libexec/slackpkg/pkglist.awk:13: (FILENAME=- FNR=567) fatal: NF set to negative value
Looking for util-linux-2.21.2-x86_64-5 in package list. Please wait... \DONE



<root> ~
bash-4.1# mountpoint

Usage:
 mountpoint [-qd] /path/to/directory
 mountpoint -x /dev/device

Options:
 -q, --quiet        quiet mode - don't print anything
 -d, --fs-devno     print maj:min device number of the filesystem
 -x, --devno        print maj:min device number of the block device
 -h, --help         this help

For more information see mountpoint(1).
<root> ~
so lets run the sandbox...

Code: Select all

For Console QuickStart type-> phelp <Enter>  Software versions-> ver <Enter>
<root> /initrd/mnt/dev_save/nest/slacko-5.7
bash-4.1# ./run-slacko.sh
preparing ramdisk ...
mounting sfs ...
preparing union ...
mounting system mounts ...
patching .profile
Entering slacko chroot ...
slacko# uname -a
Linux Mariner30523 3.8.7 #1 SMP Sun Jun 16 09:49:24 PDT 2013 i686 AMD A4-1200 APU with Radeon(TM) HD Graphics AuthenticAMD GNU/Linux
slacko# 

on closing the environment....

Code: Select all

slacko# exit
logout
cleaning up ...
fuser: Invalid option M
fuser: Invalid option M
fuser: Invalid option M
fuser: Invalid option M
fuser: Invalid option M
fuser: Invalid option M
fuser: Invalid option M
fuser: Invalid option M
fuser: Invalid option M
<root> /mnt/sda8/nest/slacko-5.7
lots of debris left behind too - not 'very' cleaned up.

I have no idea how chrooted environments work - or how to tell if this is functioning correctly.

Anyone got any fun commands to test the environment?
I supose my next step is to collect the compiler tools.

User avatar
ardvark
Posts: 1448
Joined: Tue 02 Jul 2013, 03:43
Location: USA

Re: Lighthouse Puppy AMD Radeon HD 8180 Video Driver

#3 Post by ardvark »

Meshworks wrote:ONLY SOLUTIONS SO FAR:
1) Get a laptop with an Nvidia Graphics card.
2) Run a 32bit OS with PAE (Driver installs correctly)
Hi...

Well, the first option would be the best but the second would be the cheapest. :wink:

Regards...
Our Lord and Savior [url=http://peacewithgod.jesus.net/]Jesus Christ[/url] loves and cares about you most of all!

PLEASE READ! You don't have to end up [url=http://www.spiritlessons.com/Documents/BillWiese_23MinutesInHell_Text.htm]here![/url]

User avatar
Devil.Dog
Posts: 39
Joined: Sun 07 Sep 2014, 08:39
Location: Deepest Pit of Hell
Contact:

#4 Post by Devil.Dog »

MuAHhahhahaaahhahahHHAHa!

I have the same laptop!

Doh! ... and the same problem.

Now using DebianDog base.

Image

Image

Image

xxx.
DEVILDOG...
If it moves, EAT IT!
If you can't eat it... HUMP IT!!
If you can't hump it ... KILL IT!!!
If you can't kill it ... it's a ROCK!!!!

Post Reply