HowTo: Cooker on PPC

2003-10-20 Thread Stew Benedict

Had a lite period so I decided to look at cooker-ppc and see how usable it 
was.  Things are a little rough, and Olivier has had some other things to 
tend to, so PPC fell behind a little bit, but I've currently got a 
functional PPC system running 9.2/Cooker with KDE and the drak tools.  
(Gnome has some issues too, but I didn't get that far).

First off, the bits you'll need that aren't on the mirrors are on my web 
space:

http://peoples.mandrakesoft.com/~sbenedict/cooker-ppc

Look for files dated Oct-2003

I've also been experimenting with benh's 2.6.0-test7 tree.  First pass 
booted with no console or keyboard, but got me into X. 2nd pass resolved 
the console/keyboard issues, but I keep getting kernel panics on modprobe, 
so I need to look at that a bit more.

Anyway back to cooker.  I took fairly good notes, but may have missed 
something.  If you try this and get stuck, post to the list and we can 
work through it.  Where I mention having to build something, the 
resulting files should be on my web space, so you shouldn't need those 
steps.

I used ftp://mandrake.redbox.cz/Mandrake-devel/cooker/ppc as my urpmi 
source, removing my 9.1 updates and CD sources:

addmedia from redbox
urpmi   glibc
perl
urpme   perl-GTK2
perl-Gtk2
urpmi
yaboot
XFree86
removed update_source and CD1-3 sources
urpme   kdebase
urpme   kdevelop kdemultimedia-devel
urpme   koffice kdegraphics-devel
arts
kdelibs-common
coreutils
add signature to urpmi.cfg
--auto-select - still key issues
gpg --armor --export 70771FF3 > 70771FF3.asc
rpm --import 70771FF3.asc
rpm -q gpg-pubkey
--auto-select 349 packages
shut down for the day

resume:
resumed auto-select on imac - 101 packages
urpme gnumeric, gnucash, Guppi, xemacs
--auto-select 6 packages
no kdebase in PPC tree, get SRPM and build it (see my web space)  
watch arts - there is a mixture of old/new packages on the mirrors

rpm -ivh libkdebase4-3.1.3-79mdk.ppc.rpm
urpmi galaxy-kde-kwin
urpmi kdebase-servicemenu mdklaunchhelp --allow-force
killed download before the old kdebase came down
rpm -ivh libkdebase4-konsole-3.1.3-79mdk.ppc.rpm 
libkdebase4-kate-3.1.3-79mdk.ppc.rpm 
libkdebase4-nsplugins-3.1.3-79mdk.ppc.rpm kdebase-3.1.3-79mdk.ppc.rpm 
kdebase-progs-3.1.3-79mdk.ppc.rpm kdebase-konsole-3.1.3-79mdk.ppc.rpm 
kdebase-kdeprintfax-3.1.3-79mdk.ppc.rpm kdebase-common-3.1.3-79mdk.ppc.rpm 
kdebase-kate-3.1.3-79mdk.ppc.rpm 
kdebase-kdm-config-file-3.1.3-79mdk.ppc.rpm 
/var/cache/urpmi/partial/kdebase-servicemenu-1.0-11mdk.noarch.rpm 
/var/cache/urpmi/partial/mdklaunchhelp-9.2-6mdk.ppc.rpm
rpm -ivh kdebase-kdm-3.1.3-79mdk.ppc.rpm
telinit 5
still can't login
rpm -e mdkkdm
telinit 3
telinit 5
login works

Had some strange issues at this point with urpmi saying it couldn't 
install things due to lacking files which were already present in the 
system.  I decided to rebuild the drak tools since the mirror files were 
old, and subsequently had to build quite a bit of stuff to make this 
happen.

build pango-devel
rpm -Uvh libpango1.0_0-* pango-1.2.5-2mdk.ppc.rpm
build gtk+2.0
rpm -Uvh /home/stew/rpm/RPMS/ppc/libgtk+2.0_0-devel-2.2.4-2mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/libgtk+2.0_0-2.2.4-2mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/gtk+2.0-2.2.4-2mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/libgtk+-x11-2.0_0-2.2.4-2mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/libgdk_pixbuf2.0_0-*
build perl-Gtk2
rpm -Uvh /home/stew/rpm/RPMS/ppc/perl-Gtk2-0.95-6mdk.ppc.rpm
build drakxtools
build urpmi (gurpmi missing on mirror)
build python
rpm -Uvh /home/stew/rpm/RPMS/ppc/libpython2.3-* 
/home/stew/rpm/RPMS/ppc/python-2.3-4mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/python-base-2.3-4mdk.ppc.rpm
build libuser
rpm -Uvh /home/stew/rpm/RPMS/ppc/libuser*

userdrake build
get mandrake_doc-common from x86 tree
rpm -Uvh /home/stew/rpm/RPMS/noarch/gurpmi-4.4-37mdk.noarch.rpm 
/home/stew/rpm/RPMS/ppc/drakxtools-newt-9.2-16mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/drakxtools-9.2-16mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/userdrake-0.92-24mdk.ppc.rpm 
/home/stew/rpm/RPMS/ppc/mandrake_doc-common-9.2-1mdk.noarch.rpm
rpm -Uvh /home/stew/rpm/RPMS/ppc/harddrake-*
urpmi mdkkdm
urpmi drakconf
update-menus

Now mdkkdm runlevel 5 login works, drakconf works, KDE works.
Additional urpmi --auto-select now complains about nautilus and other 
Gnome related packages.


If I get the 2.6 kernel to be reasonably stable, I'll post a package for 
it too.
 
Hope this is useful.

-- 
Stew Benedict

--
MandrakeSoft




Re: iBook 800, CDRW (Nov. 2002): X-problems for me too!

2003-10-20 Thread Andreas
Am Montag, 20. Oktober 2003 23:28 schrieb Ted Johansson:
> Stew Benedict wrote:
> >On Mon, 20 Oct 2003, Ted Johansson wrote:
> >>If I use "video=radeonfb" as boot parameters (using yaboot.conf), I get
> >>the virtual terminals correct. Other combinations of kernel
> >>video-parameters work less good.
> >>
> >>But for XFree, I can not find a working set of parameters.
> >>
> >>Yellow Dog Linux 3.0 runs happily directly on this machine, but since I
> >>use MDK9.1 & 9.2 on my two i586 machines, I really like to see the 9.1
> >>ppc version also running on the iBook.
> >>
> >>Dual-booting it with OSX.
> >>
> >>
> >>Please, any suggestions from the list that I can test to get XFree
> >>working for this machine?
> >
> >You've tried adding
> >
> >Option "UseFBDev" "true"
> >
> >To /etc/X11/XF86Config-4?
>
> I tested but no success. X starts, but there is a distinct flickering in
> rightmost part of the screen. When I log out from X (in the case I did
> not boot directly into X, instead used startx), the screen turns
> "in-side out" white/grey/colored and it is impossible to see anything or
> switch to text mode.
>
> Checking /var/log/XFree86.0.log shows in the middle of the large log an
> error message like:
> (EE) RADEON():  Failed to open framebuffer device, consult...
>
> and
>
> (WW) RADEON(0): fbdevHWInit failed, not using framebuffer device
> (--)  RADEON(0): Chipset: "ATI Radeon Mobility M7 LW (AGP)" (ChipID =
> 0x4c57)
>
> if this can be of any help.
>
>
> Below is the complete XF86Config-4 that was used.
>
>
>
> /Ted
>
> 
> # File generated by XFdrake.
>
> # **
> # Refer to the XF86Config man page for details about the format of
> # this file.
> # **
>
> Section "Files"
> # Multiple FontPath entries are allowed (they are concatenated
> together) # By default, Mandrake 6.0 and later now use a font server
> independent of
> # the X server to render fonts.
> FontPath "unix/:-1"
> EndSection
>
> Section "ServerFlags"
> #DontZap # disable  (server abort)
> #DontZoom # disable / (resolution switching)
> AllowMouseOpenFail # allows the server to start up even if the mouse
> doesn't work
> EndSection
>
> Section "Module"
> Load "dbe" # Double-Buffering Extension
> Load "v4l" # Video for Linux
> Load "extmod"
> Load "type1"
> Load "freetype"
> Load "glx" # 3D layer
> EndSection
>
> Section "InputDevice"
> Identifier "Keyboard1"
> Driver "Keyboard"
> Option "XkbModel" "pc105"
> Option "XkbLayout" "se"
> Option "XkbCompat" ""
> Option "XkbOptions" ""
> EndSection
>
> Section "InputDevice"
> Identifier "Mouse1"
> Driver "mouse"
> Option "Protocol" "IMPS/2"
> Option "Device" "/dev/usbmouse"
> Option "Emulate3Buttons"
> Option "Emulate3Timeout" "50"
> EndSection
>
> Section "Monitor"
> Identifier "monitor1"
> VendorName "Apple"
> ModelName "iBook2 1024x768"
> HorizSync 28.0-49.0
> VertRefresh 43.0-72.0
>
> # Apple iMac modes
> ModeLine "1024x768"   78.525 1024 1049 1145 1312   768  769  772
> 800 +hsync +vsync
> ModeLine "800x600"62.357  800  821  901 1040   600  601  604
> 632 +hsync +vsync
> ModeLine "640x480"49.886  640  661  725  832   480  481  484
> 514 +hsync +vsync
>
> # Apple monitors tend to do 832x624
> ModeLine "832x624"57  832  876  940 1152   624  625  628
> 667 -hsync -vsync
>
> # Apple PowerBook G3
> ModeLine "800x600"100 800  816  824  840   600  616  624
> 640 -hsync -vsync
>
> # Apple TI Powerbook
> ModeLine "1152x768"   78.741 1152 1173 1269 1440   768  769  772
> 800 +vsync +vsync
>
> # Pismo Firewire G3
> ModeLine "1024x768"   65 1024 1032 1176 1344   768  771  777
> 806 -hsync -vsync
>
> # iBook2
> ModeLine "1024x768"   65 1024 1048 1184 1344   768  771  777
> 806 -hsync -vsync
>
> # 17" Apple Studio Display
> ModeLine "1024x768"   112.62 1024 1076 1248 1420 768 768 780 808
> +hsync +vsync
>
> # HiRes Apple Studio Display
> ModeLine "1280x1024"  1351280 1288 1392 1664  1024 1027 1030 1064
>
> # Another variation
> ModeLine "1280x1024"  134.989 1280 1317 1429 1688  1024 1025 1028
> 1066 +hsync +vsync
> EndSection
>
> Section "Device"
> Identifier "device1"
> VendorName "ATI"
> BoardName "ATI Radeon"
> Driver "radeon"
> BusID "PCI:0:16:0"
> Option "DPMS"
> Option "UseFBDev" "true"
> EndSection
>
> Section "Screen"
> Identifier "screen1"
> Device "device1"
> Monitor "monitor1"
> DefaultColorDepth 16
>
> Subsection "Display"
> Depth 8
> Modes "1024x768" "800x600" "640x480"
> EndSubsection
>
> Subsection "Display"
> Depth 15
> Modes "1024x768" "800x600" "640x480"
> EndSubsection
>
> Subsection "Display"
> D

Re: iBook 800, CDRW (Nov. 2002): X-problems for me too!

2003-10-20 Thread Ted Johansson
Stew Benedict wrote:

On Mon, 20 Oct 2003, Ted Johansson wrote:

 

If I use "video=radeonfb" as boot parameters (using yaboot.conf), I get 
the virtual terminals correct. Other combinations of kernel 
video-parameters work less good.

But for XFree, I can not find a working set of parameters.

Yellow Dog Linux 3.0 runs happily directly on this machine, but since I 
use MDK9.1 & 9.2 on my two i586 machines, I really like to see the 9.1 
ppc version also running on the iBook.

Dual-booting it with OSX.

Please, any suggestions from the list that I can test to get XFree 
working for this machine?

   

You've tried adding 

Option "UseFBDev" "true"

To /etc/X11/XF86Config-4?

 

I tested but no success. X starts, but there is a distinct flickering in 
rightmost part of the screen. When I log out from X (in the case I did 
not boot directly into X, instead used startx), the screen turns 
"in-side out" white/grey/colored and it is impossible to see anything or 
switch to text mode.

Checking /var/log/XFree86.0.log shows in the middle of the large log an 
error message like:
(EE) RADEON():  Failed to open framebuffer device, consult...

and

(WW) RADEON(0): fbdevHWInit failed, not using framebuffer device
(--)  RADEON(0): Chipset: "ATI Radeon Mobility M7 LW (AGP)" (ChipID = 
0x4c57)

if this can be of any help.

Below is the complete XF86Config-4 that was used.



/Ted


# File generated by XFdrake.
# **
# Refer to the XF86Config man page for details about the format of
# this file.
# **
Section "Files"
   # Multiple FontPath entries are allowed (they are concatenated together)
   # By default, Mandrake 6.0 and later now use a font server 
independent of
   # the X server to render fonts.
   FontPath "unix/:-1"
EndSection

Section "ServerFlags"
   #DontZap # disable  (server abort)
   #DontZoom # disable / (resolution switching)
   AllowMouseOpenFail # allows the server to start up even if the mouse 
doesn't work
EndSection

Section "Module"
   Load "dbe" # Double-Buffering Extension
   Load "v4l" # Video for Linux
   Load "extmod"
   Load "type1"
   Load "freetype"
   Load "glx" # 3D layer
EndSection
Section "InputDevice"
   Identifier "Keyboard1"
   Driver "Keyboard"
   Option "XkbModel" "pc105"
   Option "XkbLayout" "se"
   Option "XkbCompat" ""
   Option "XkbOptions" ""
EndSection
Section "InputDevice"
   Identifier "Mouse1"
   Driver "mouse"
   Option "Protocol" "IMPS/2"
   Option "Device" "/dev/usbmouse"
   Option "Emulate3Buttons"
   Option "Emulate3Timeout" "50"
EndSection
Section "Monitor"
   Identifier "monitor1"
   VendorName "Apple"
   ModelName "iBook2 1024x768"
   HorizSync 28.0-49.0
   VertRefresh 43.0-72.0
   # Apple iMac modes
   ModeLine "1024x768"   78.525 1024 1049 1145 1312   768  769  772  
800 +hsync +vsync
   ModeLine "800x600"62.357  800  821  901 1040   600  601  604  
632 +hsync +vsync
   ModeLine "640x480"49.886  640  661  725  832   480  481  484  
514 +hsync +vsync

   # Apple monitors tend to do 832x624
   ModeLine "832x624"57  832  876  940 1152   624  625  628  
667 -hsync -vsync

   # Apple PowerBook G3
   ModeLine "800x600"100 800  816  824  840   600  616  624  
640 -hsync -vsync

   # Apple TI Powerbook
   ModeLine "1152x768"   78.741 1152 1173 1269 1440   768  769  772  
800 +vsync +vsync

   # Pismo Firewire G3
   ModeLine "1024x768"   65 1024 1032 1176 1344   768  771  777  
806 -hsync -vsync

   # iBook2
   ModeLine "1024x768"   65 1024 1048 1184 1344   768  771  777  
806 -hsync -vsync

   # 17" Apple Studio Display
   ModeLine "1024x768"   112.62 1024 1076 1248 1420 768 768 780 808 
+hsync +vsync

   # HiRes Apple Studio Display
   ModeLine "1280x1024"  1351280 1288 1392 1664  1024 1027 1030 1064
   # Another variation
   ModeLine "1280x1024"  134.989 1280 1317 1429 1688  1024 1025 1028 
1066 +hsync +vsync
EndSection

Section "Device"
   Identifier "device1"
   VendorName "ATI"
   BoardName "ATI Radeon"
   Driver "radeon"
   BusID "PCI:0:16:0"
   Option "DPMS"
   Option "UseFBDev" "true"
EndSection
Section "Screen"
   Identifier "screen1"
   Device "device1"
   Monitor "monitor1"
   DefaultColorDepth 16
   Subsection "Display"
   Depth 8
   Modes "1024x768" "800x600" "640x480"
   EndSubsection
   Subsection "Display"
   Depth 15
   Modes "1024x768" "800x600" "640x480"
   EndSubsection
   Subsection "Display"
   Depth 16
   Modes "1024x768" "800x600" "640x480"
   EndSubsection
   Subsection "Display"
   Depth 24
   Modes "1024x768" "800x600" "640x480"
   EndSubsection
EndSection
Section "ServerLayout"
   Identifier "layout1"
   InputDevice "Keyboard1" "CoreKeyboard"
   InputDevice "Mouse1" "CorePointer"
   Screen "screen1"
EndSection






Re: iBook 800, CDRW (Nov. 2002): X-problems for me too!

2003-10-20 Thread Stew Benedict

On Mon, 20 Oct 2003, Ted Johansson wrote:

> If I use "video=radeonfb" as boot parameters (using yaboot.conf), I get 
> the virtual terminals correct. Other combinations of kernel 
> video-parameters work less good.
> 
> But for XFree, I can not find a working set of parameters.
> 
> Yellow Dog Linux 3.0 runs happily directly on this machine, but since I 
> use MDK9.1 & 9.2 on my two i586 machines, I really like to see the 9.1 
> ppc version also running on the iBook.
> 
> Dual-booting it with OSX.
> 
> 
> Please, any suggestions from the list that I can test to get XFree 
> working for this machine?
> 
> 

You've tried adding 

Option "UseFBDev" "true"

To /etc/X11/XF86Config-4?

-- 
Stew Benedict

--
MandrakeSoft




iBook 800, CDRW (Nov. 2002): X-problems for me too!

2003-10-20 Thread Ted Johansson
Hello list,

the problem with my machine is similar to Andreas' 700 MHz-problem 
discussed on this list during September (as can be found in the 
archives), but my machine is the iBook 800 MHz combo version from Nov. 
2002 with 512 MB of RAM, and graphics is (according to OSX system 
information) ATY,RageM7, with 32 MB of memory.  It may be mostly the 
same hardware as the 700 CD-version but the tricks suggested in the 
thread does not work for me.

I wonder if this is another of Apple's updated hardware that needs 
additional tuning.

I am testing with Mandrake 9.1, the downloaded ISO version, with the 
mandrake (not benh) kernel. Managed to install it although the constant 
flickering of the screen (it is like two flickering parallel images), 
since I know the i586 version install quite well. No one of the 
suggested "video=xxx" produced a working graphics setup. The text mode 
crashes when it identifies the keyboard.

If I use "video=radeonfb" as boot parameters (using yaboot.conf), I get 
the virtual terminals correct. Other combinations of kernel 
video-parameters work less good.

But for XFree, I can not find a working set of parameters.

Yellow Dog Linux 3.0 runs happily directly on this machine, but since I 
use MDK9.1 & 9.2 on my two i586 machines, I really like to see the 9.1 
ppc version also running on the iBook.

Dual-booting it with OSX.

Please, any suggestions from the list that I can test to get XFree 
working for this machine?

/Ted