Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 29 Jan 2020, 18:08
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Video
Lighthouse Puppy AMD Radeon HD 8180 Video Driver
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Meshworks


Joined: 25 Oct 2011
Posts: 38

PostPosted: Thu 04 Sep 2014, 20:12    Post subject:  Lighthouse Puppy AMD Radeon HD 8180 Video Driver
Subject description: how to get 32 bit opengl to compile for WINE based games!
 

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/slackware-14/wine-opengl-issue-with-neverwinter-nights-2-on-slackware-64-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:

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:

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


Code:

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, 13:44; edited 4 times in total
Back to top
View user's profile Send private message 
Meshworks


Joined: 25 Oct 2011
Posts: 38

PostPosted: Thu 04 Sep 2014, 23:51    Post subject:  

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:

#!/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:
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:

<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:

<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:


<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:

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:

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.
Back to top
View user's profile Send private message 
ardvark


Joined: 01 Jul 2013
Posts: 1458
Location: USA

PostPosted: Fri 05 Sep 2014, 15:48    Post subject: Re: Lighthouse Puppy AMD Radeon HD 8180 Video Driver
Subject description: how to get 32 bit opengl to compile for WINE based games!
 

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 Jesus Christ loves and cares about you most of all!

PLEASE READ! You don't have to end up here!
Back to top
View user's profile Send private message 
Devil.Dog


Joined: 07 Sep 2014
Posts: 40
Location: Deepest Pit of Hell

PostPosted: Sun 07 Sep 2014, 05:32    Post subject:  

MuAHhahhahaaahhahahHHAHa!

I have the same laptop!

Doh! ... and the same problem.

Now using DebianDog base.







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!!!!
Back to top
View user's profile Send private message 
ICQ Number 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Video
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0479s ][ Queries: 11 (0.0052s) ][ GZIP on ]