DEVILDOG!!! A Linux for Satan!!!

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
Devil.Dog
Posts: 39
Joined: Sun 07 Sep 2014, 08:39
Location: Deepest Pit of Hell
Contact:

#31 Post by Devil.Dog »

so ...

the 3.14.n kernel actually needs patching to install the 14.4 ati / fglrx driver correctly.

didn't see that coming.

found a patch - applied it - fully compiled the driver - restarted - tested - all good - installing compiz - BATTERY FLAT! NooOOoOooOOoOoOOooo!!!

ok ... well ... redo tonight but can confirm that Debian kernel-3.14-0.bpo.1-686-Pae can be made to run the fglrx driver.... it also fixes my touchscreen - hoot hoot hoot!

Im alot happier about this more modern kernel - its the first we tried but FAILED to direct render first time round.

Ill post the new version tonight maybe !

: ))))

xxx.

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

FGLRX ATI Driver install on 3.14-0.bpo.1-686-pae

#32 Post by Devil.Dog »

OK -

Code: Select all

./amd-driver-installer-14.10.1006.1001-x86.x86_64.run
Problem: fglrx-install.log ...

Code: Select all

Supported adapter detected.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Unloading radeon module...
Unloading drm module...
Error: Module drm is in use by: ttm drm_kms_helper
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating kernel module now.
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.14-0.bpo.1-686-pae/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-3.14-0.bpo.1-686-pae'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_GetEffectiveUid':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1787:5: error: incompatible types when returning type 'kuid_t' but 'KCL_TYPE_Uid' was expected
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1793:1: warning: control reaches end of non-void function [-Wreturn-type]
make[4]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[3]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.14-0.bpo.1-686-pae'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[Reboot] Kernel Module : update-initramfs
Solution: ... http://devgurus.amd.com/thread/168727

Patch Content: ...

Code: Select all

--- ./firegl_public.c.orig	2014-05-25 11:15:02.198520000 +0900
+++ ./firegl_public.c	2014-05-25 11:15:46.289501864 +0900
@@ -1784,7 +1784,8 @@
 #else 
 
 #ifdef current_euid
-    return current_euid();
+//    return current_euid();
+    return __kuid_val(current_euid());
 #else
     return current->euid;
 #endif

Next do this as root to patch the kmod.

Code: Select all

    # cd /lib/modules/fglrx/build_mod/  
    # patch -u < "PATH to firegl_public_c.patch"  

Finally, re-compile and install the kmod .

Code: Select all

    # cd /lib/modules/fglrx/build_mod/  
    # ./make.sh  
    # cd ..  
    # ./make_install.sh  
My Result varied slightly cos of a typo ...

Code: Select all

root@dog:/lib/modules/fglrx/build_mod# patch -u < "/mnt/live/mnt/sda8/devil-dog/firegl_public_c.patch" 
patching file firegl_public.c
root@dog:/lib/modules/fglrx/build_mod# cd ..
root@dog:/lib/modules/fglrx# ./make.sh
bash: ./make.sh: No such file or directory
root@dog:/lib/modules/fglrx# ls       
build_mod  make_install.sh
root@dog:/lib/modules/fglrx# cd build_mod
root@dog:/lib/modules/fglrx/build_mod# ls
2.6.x		   firegl_public.c  kcl_agp.h	  kcl_ioctl.h	  kcl_str.h
drm.h		   firegl_public.h  kcl_config.h  kcl_iommu.c	  kcl_type.h
drmP.h		   kcl.c	    kcl_debug.c   kcl_iommu.h	  kcl_wait.c
drm_compat.h	   kcl.h	    kcl_debug.h   kcl_osconfig.h  kcl_wait.h
drm_os_linux.h	   kcl_acpi.c	    kcl_io.c	  kcl_pci.c	  libfglrx_ip.a
drm_proc.h	   kcl_acpi.h	    kcl_io.h	  kcl_pci.h	  make.sh
fglrxko_pci_ids.h  kcl_agp.c	    kcl_ioctl.c   kcl_str.c	  make.sh.log
root@dog:/lib/modules/fglrx/build_mod# ./make.sh
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.14-0.bpo.1-686-pae/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-3.14-0.bpo.1-686-pae'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.o
/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.c: In function 'KCL_IOMMU_CheckInfo':
/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.c:190:21: warning: unused variable 'pdev' [-Wunused-variable]
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
  LD [M]  /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
  LD [M]  /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.14-0.bpo.1-686-pae'
build succeeded with return value 0
duplicating results into driver repository...
done.
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
root@dog:/lib/modules/fglrx/build_mod# cd ..
root@dog:/lib/modules/fglrx# ls
build_mod  fglrx.3.14-0.bpo.1-686-pae.ko  make.3.14-0.bpo.1-686-pae.log  make_install.sh
root@dog:/lib/modules/fglrx# ./make_install
bash: ./make_install: No such file or directory
root@dog:/lib/modules/fglrx# ./make_install.sh
- recreating module dependency list
- trying a sample load of the kernel modules... done.

... mid post break brb.
Please enjoy some screeners while I think about remastering....

Compiz Startup (yes that's an error but it works even if its not doing anything fancy).
Image

Openbox Desktop
Image
Attachments
firegl_public_c.patch.zip
firegl_public.o patch
(328 Bytes) Downloaded 303 times
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!!!!

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

#33 Post by Devil.Dog »

..... annnnnd.....

More Eyecandy!
Image
Image
Image
Image

^^ those are on a default 'clean boot' (no save!).

xxx.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#34 Post by saintless »

Thank you very much, Devil.Dog! Screenshots look great!
Links to your instructions for both kernels added in HowTo thread post:
http://www.murga-linux.com/puppy/viewto ... 519#791519

Toni

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

#35 Post by Devil.Dog »

saintless wrote:Thank you very much, Devil.Dog!
No Tony ... thank YOU for sticking with the Debian core.

: )

xxx.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#36 Post by saintless »

Hi, Devil.Dog.
Just checked the first two posts and downloaded 061-dd-0.2-base.3.14.0.bpo-pae.squashfs. I see you added full build environment and separate DEVX is not needed anymore for DevilDog.
Unfortunately i don't have proper hardware to test it but if you like to make it smaller I suggest to test extracting the module (example in /live/image):

Code: Select all

unsquashfs -d /live/image/working-dir /path-to/061-dd-0.2-base.3.14.0.bpo-pae.squashfs
Remove /live/image/working-dir/opt (I think /opt it is the same as inside 01-filesystem.squashfs).
Remove /live/image/working-dir/lib/modules/3.2.0-4-486 (I think /lib/modules/3.2.0-4-486 it is the same as inside 01-filesystem.squashfs).
And repack it again (example for maximum xz compression - smallest size):

Code: Select all

mksquashfs /live/image/working-dir /path-to-new/061-dd-0.2-base.3.14.0.bpo-pae.squashfs -comp xz -b 1024k -Xbcj x86
I also think you can boot without /live/image/live/026-kernel-3.14.0.bpo-pae.squashfs because the same kernel is already full size and patched inside 061-dd-0.2-base.3.14.0.bpo-pae.squashfs /lib/modules/3.14-0.bpo.1-686-pae
I think you can use only vmlinuz6 and initrd63.xz from 026-kernel-3.14-Pae.tar.gz to boot.

When you are ready with final DevilDog version I can try to make more suggestions for slimming down the squashfs module size if you want.

Great job patching 3.14-Pae kernel ati driver!

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

#37 Post by Devil.Dog »

: )

Hi Saintless!

Yeah you're right - the ati driver is the only item using the compiler at the moment.
DEVX / compiler could be alot slimmer and still set that up correctly.

ATI driver yeah ... solution on a mandriva site hoot hoot !!!

Needs to loose weight. When we get to v0.9 Ill start worrying about size.

V0.3 after the weekend!

PS. ty for including these below I would have suffered remembering how!
unsquashfs -d /live/image/working-dir /path-to/061-dd-0.2-base.3.14.0.bpo-pae.squashfs
and...
mksquashfs /live/image/working-dir /path-to-new/061-dd-0.2-base.3.14.0.bpo-pae.squashfs -comp xz -b 1024k -Xbcj x86
xxx.

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

compiz screensaver replacement script

#38 Post by Devil.Dog »

Code: Select all

aptitude install xdotool xprintidle
... or ...
apt-get install xdotool xprintidle
and copy this script into somewhere u can make executable

Code: Select all

#compiz screensaver replacement script
#hold down middle mouse...
#on my setup that's 'rotate cube'
xdotool mousedown 2

#get time since last user interaction
d=$(export DISPLAY=:0 && xprintidle)
y=$d

sleep 6

#get new time since last user interaction
d=$(export DISPLAY=:0 && xprintidle)


until (( d < y ))
do

#get new time since last user interaction
d=$(export DISPLAY=:0 && xprintidle)

#move mouse to right
xdotool mousemove_relative --sync 2 0

sleep 0.0666

#again
done

#release mouse button
xdotool mouseup 2
Its a little twitchy - but basically works well enough.

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

#39 Post by Devil.Dog »

Its a little twitchy - but basically works well enough.
^^ scratch that ... the compiz script above is BETTER than the original because it allows me to orientate the screen before it starts rolling!

: )

Nasty bug in Gnome Media Player...

Left click + hold the volume button... at the same time click the right mouse button... Broken sound system! Audio becomes mute across the entire audio platform.

: (

I realised earlier that our objectives are nearly met.
The ASUS X102B hardware platform is supported.
The beautiful compiz desktop is running.
WIndows is unharmed.
Everyone who sees DevilDog running is 'ooooh.... ahhhh....!!!'
And of course many souls have been harvested.
So that's a success, right?!

: )

DD 0.3 will be released before next weekend.
Again its a complete reroll featuring a DEVX development environment.

xxx.

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

#40 Post by Devil.Dog »

: )

... Updated compiz - unsuported plugins
>>> DOWNLOAD LINK <<< 6.5mb Compiz Fusion Unsuported Extras SFS.

Image
Image

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

#41 Post by Devil.Dog »

Noticed certain software seems to break OPENGL.

This package is a forced reinstallation of the FGLRX driver.

But, hey, it might work on other DEBIANDOG 314 installations with no ATI driver. 45mb in size.

: )

https://drive.google.com/file/d/0B1TgWj ... sp=sharing

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#42 Post by saintless »

Devil.Dog wrote:But, hey, it might work on other DEBIANDOG 314 installations with no ATI driver. 45mb in size.
Thank you, Devil.Dog!
I will ask the next person looking for ATI driver for DebianDog to test it.

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

NVIDIA-Linux-96-43-23 drivers don't work on modern kernels

#43 Post by Devil.Dog »

The NVIDIA-Linux-96-43-23 drivers don't work on modern kernels.

SEE:

https://devtalk.nvidia.com/default/topi ... 11-needed/

There is a patched runfile here:

https://docs.google.com/file/d/0B-eorm- ... edit?pli=1

I *should* check that runfile (mysterious anon source etc).

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

Cerberus Guards The Gate!

#44 Post by Devil.Dog »

Hmmmm....

DD has run for over a year on various platforms. Its been my main OS all this time and has been ... magnificent.

I moved on to other stuff some time ago ... simply because the Debian base to this release has been so stable I haven't had to worry about it!

My next venture in OS is an exploration of high throughput computing, and an attempt to build a viable HTC from spare computing cycles gathered from the wilds of the internet. I can't wait!

x.

Cerberus Guards The Gate!
www.murga-linux.com/puppy/viewtopic.php?t=101291

ps. A Personal note to Liz Hurley.
OMG We think you are great. You should go ring on Hugh's doorbell RIGHT NOW ... call him a looser and ask him when he last kicked himself for being such a jerk!!! Err... and yes sorry about the ladyboy stuff - just kidding hehehe!

pps. Sorry Ted hehehe. Now my dogs dead too!

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#45 Post by Ted Dog »

Lol so you are not going to reuse my distro name again???? For satanic purposes :evil: Thank G-d! :lol:

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

hehehe

#46 Post by Devil.Dog »

Hi Ted! yeah .. I might behave for a while!

Post Reply