Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved - ATI Rage Mobility M3 AGP 2x ibookG3Dual on Xorg
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Sat Mar 10, 2018 1:35 am    Post subject: Solved - ATI Rage Mobility M3 AGP 2x ibookG3Dual on Xorg Reply with quote

Hi ! I have installed Gentoo on my amd64 and got it to run XFCE, but now when for the first time after 2 years trying I have a Gentoo console on my ibook G3 Dual with 348 MB RAM, my first trial with Xorg was not very successful , got a long message which i was not able to print so i wrote a copy of it myself and paste it below as "code" - hope it is OK to do so- beside output of lshw, Xorg.0.log, and the list of modules.builtin:

After googling around an awful lot I am a bit confused and would like some guidance on whether I should deviate from the ppc Handbok and avoid both KMS and DRI/DRM and stick instead to the old driver (aty128).

If the answer is yes must I get a firmaware like is the case for Debian - if I understood what i read on a debian infopage right ? Read that the aty128 was broken in 2015 and wonder if it has been left behind since KMS become standard or if it was fixed in distros like Gentoo which still - thanks for this - support ppc

I don't care for 3D acceleration and if i can use one of the many xorg.confs suggested for my modell of ibook on the webb (would appreciate an specific recommendation) with the old driver and still get some decent colors, fonts and images i would be very happy,

I won't be using this ibook for anthing other then demonstrating what Gentoo can achieve on such an antiquity with no great ambitions. I have run Ubuntu Lucid, Debian Lenny and some version of Xubuntu on this machine but i would like to keep it as a Gentoo demo. Recommendations and suggestions will be much appreciated.

Don't know if it would be correct to ask here whether i may run startx from both root and users or whether I ought to post a specific question on that. Read in several places that it should not be run from root, but later came upon this page https://wiki.gentoo.org/wiki/Non_root_Xorg, which BTW does not concern radeon but Intel and nouveau drivers.



reply from command startx;

Code:

# "my text pasted here as code: this is what i got as an answer from command startx, both as root and as user
#
# hostname: Unknown host
# xauth: file /home/art/-server.auth.2800 does not exist
#
# X.Org X Server 1.19.5
# Release Date: 2017-10-12
#
# X Protocol Version 11, Revision 0
# Build Operating System: Linux 4.9.72-gentoo ppc Gentoo
# Current Operating System: Linux ibookg3 4.9.72-gentoo #1 Feb 23 21:08:46 CET 2018 ppc
# Kernel command line: root=/dev/hda4 ro
# Build Date: 06 March 2018 06:09:13PM
#
# Current version of pixman: 0.34.0
#       Before reporting problems, check http://wiki.x.org
#       to make sure that yoy have the lattest version.
# Markers: (--) probed, (**) from config file, (==) default setting,
#         (++) from command line, (!!) notice, (II) informational,
#        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
# (==) Log file: "/var/log/Xorg.0.log"  Time: Fri Mars 9 23:50:57 2018
# (==) Using config directory: "/etc/X11/xorg.conf.d/
# (EE)
# Fatal server error:
# (EE) no screens found (EE)
# (EE)
# Please consult the  The X.Org Foundation support
#          at http://wiki.x.org
#  for help.
# (EE) Please also check the log file at "var/log/Xorg.0.log" for additional information.
# (EE)
# (EE) Server terminated with error (1). Closing log file
# xinit: giving up
# xinit: unable to connect to X server: Bad file descriptor
# xiinit: server error " 



my /var/log/Xorg.0.log:

Code:

[ 19181.101]
X.Org X Server 1.19.5
Release Date: 2017-10-12
[ 19181.110] X Protocol Version 11, Revision 0
[ 19181.114] Build Operating System: Linux 4.9.72-gentoo ppc Gentoo
[ 19181.118] Current Operating System: Linux ibookG3 4.9.72-gentoo #1 Fri Feb 23 21:08:46 CET 2018 ppc
[ 19181.118] Kernel command line: root=/dev/hda4 ro
[ 19181.126] Build Date: 06 March 2018  06:09:13PM
[ 19181.130] 
[ 19181.135] Current version of pixman: 0.34.0
[ 19181.144]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[ 19181.144] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 19181.164] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Mar  9 19:35:26 2018
[ 19181.203] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 19181.208] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 19181.294] (==) No Layout section.  Using the first Screen section.
[ 19181.294] (==) No screen section available. Using defaults.
[ 19181.294] (**) |-->Screen "Default Screen Section" (0)
[ 19181.294] (**) |   |-->Monitor "<default monitor>"
[ 19181.332] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[ 19181.332] (==) Automatically adding devices
[ 19181.332] (==) Automatically enabling devices
[ 19181.332] (==) Automatically adding GPU devices
[ 19181.332] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 19181.333] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 19181.333]    Entry deleted from font path.
[ 19181.333] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 19181.333]    Entry deleted from font path.
[ 19181.333] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 19181.333]    Entry deleted from font path.
[ 19181.333] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 19181.333]    Entry deleted from font path.
[ 19181.333] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[ 19181.333]    Entry deleted from font path.
[ 19181.333] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 19181.333]    Entry deleted from font path.
[ 19181.333] (==) FontPath set to:
   
[ 19181.333] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 19181.333] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 19181.335] (II) Loader magic: 0x10230638
[ 19181.335] (II) Module ABI versions:
[ 19181.335]    X.Org ANSI C Emulation: 0.4
[ 19181.335]    X.Org Video Driver: 23.0
[ 19181.335]    X.Org XInput driver : 24.1
[ 19181.335]    X.Org Server Extension : 10.0
[ 19181.339] (--) PCI:*(0:0:16:0) 1002:4c46:1002:4c46 rev 2, Mem @ 0x94000000/67108864, 0x90000000/16384, I/O @ 0x00000400/256, BIOS @ 0x????????/131072
[ 19181.340] (II) Open APM successful
[ 19181.342] (II) LoadModule: "glx"
[ 19181.381] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 19181.812] (II) Module glx: vendor="X.Org Foundation"
[ 19181.812]    compiled for 1.19.5, module version = 1.0.0
[ 19181.813]    ABI class: X.Org Server Extension, version 10.0
[ 19181.813] (==) Matched ati as autoconfigured driver 0
[ 19181.813] (==) Matched modesetting as autoconfigured driver 1
[ 19181.813] (==) Matched fbdev as autoconfigured driver 2
[ 19181.813] (==) Assigned the driver to the xf86ConfigLayout
[ 19181.813] (II) LoadModule: "ati"
[ 19181.814] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[ 19181.830] (II) Module ati: vendor="X.Org Foundation"
[ 19181.830]    compiled for 1.19.5, module version = 7.9.0
[ 19181.830]    Module class: X.Org Video Driver
[ 19181.830]    ABI class: X.Org Video Driver, version 23.0
[ 19181.830] (II) LoadModule: "r128"
[ 19181.853] (WW) Warning, couldn't open module r128
[ 19181.854] (II) UnloadModule: "r128"
[ 19181.854] (II) Unloading r128
[ 19181.854] (EE) Failed to load module "r128" (module does not exist, 0)
[ 19181.854] (II) LoadModule: "modesetting"
[ 19181.854] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 19181.883] (II) Module modesetting: vendor="X.Org Foundation"
[ 19181.883]    compiled for 1.19.5, module version = 1.19.5
[ 19181.883]    Module class: X.Org Video Driver
[ 19181.883]    ABI class: X.Org Video Driver, version 23.0
[ 19181.883] (II) LoadModule: "fbdev"
[ 19181.884] (WW) Warning, couldn't open module fbdev
[ 19181.885] (II) UnloadModule: "fbdev"
[ 19181.885] (II) Unloading fbdev
[ 19181.885] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 19181.885] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 19181.885] (--) using VT number 7

[ 19181.903] (EE) open /dev/dri/card0: No such file or directory
[ 19181.903] (WW) Falling back to old probe method for modesetting
[ 19181.903] (EE) open /dev/dri/card0: No such file or directory
[ 19181.904] (EE) Screen 0 deleted because of no matching config section.
[ 19181.904] (II) UnloadModule: "modesetting"
[ 19181.904] (EE) Device(s) detected, but none match those in the config file.
[ 19181.904] (EE)
Fatal server error:
[ 19181.904] (EE) no screens found(EE)
[ 19181.904] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[ 19181.905] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 19181.905] (EE)
[ 19181.938] (EE) Server terminated with error (1). Closing log file.



my builtin modules:

Code:

kernel/arch/powerpc/platforms/powermac/nvram.ko
kernel/kernel/configs.ko
kernel/fs/binfmt_script.ko
kernel/fs/mbcache.ko
kernel/fs/exportfs/exportfs.ko
kernel/fs/ext2/ext2.ko
kernel/fs/ext4/ext4.ko
kernel/fs/isofs/isofs.ko
kernel/fs/jbd2/jbd2.ko
kernel/fs/lockd/lockd.ko
kernel/fs/nfs/nfs.ko
kernel/fs/nfs/nfsv2.ko
kernel/fs/nfs/nfsv3.ko
kernel/fs/nfs/nfsv4.ko
kernel/fs/nfs_common/nfs_acl.ko
kernel/fs/nfs_common/grace.ko
kernel/fs/nls/nls_base.ko
kernel/fs/nls/nls_cp860.ko
kernel/fs/nls/nls_cp865.ko
kernel/fs/nls/nls_cp936.ko
kernel/fs/reiserfs/reiserfs.ko
kernel/crypto/crypto.ko
kernel/crypto/crypto_wq.ko
kernel/crypto/crypto_algapi.ko
kernel/crypto/aead.ko
kernel/crypto/crypto_blkcipher.ko
kernel/crypto/echainiv.ko
kernel/crypto/crypto_hash.ko
kernel/crypto/akcipher.ko
kernel/crypto/kpp.ko
kernel/crypto/cryptomgr.ko
kernel/crypto/hmac.ko
kernel/crypto/crypto_null.ko
kernel/crypto/md5.ko
kernel/crypto/sha1_generic.ko
kernel/crypto/sha256_generic.ko
kernel/crypto/cbc.ko
kernel/crypto/des_generic.ko
kernel/crypto/aes_generic.ko
kernel/crypto/crc32c_generic.ko
kernel/crypto/crct10dif_common.ko
kernel/crypto/crct10dif_generic.ko
kernel/crypto/authenc.ko
kernel/crypto/authencesn.ko
kernel/crypto/rng.ko
kernel/crypto/drbg.ko
kernel/crypto/jitterentropy_rng.ko
kernel/block/deadline-iosched.ko
kernel/block/cfq-iosched.ko
kernel/drivers/ata/libata.ko
kernel/drivers/ata/pata_macio.ko
kernel/drivers/base/firmware_class.ko
kernel/drivers/base/regmap/regmap-i2c.ko
kernel/drivers/block/brd.ko
kernel/drivers/block/loop.ko
kernel/drivers/cdrom/cdrom.ko
kernel/drivers/char/apm-emulation.ko
kernel/drivers/char/generic_nvram.ko
kernel/drivers/connector/cn.ko
kernel/drivers/cpufreq/cpufreq_performance.ko
kernel/drivers/cpufreq/cpufreq_powersave.ko
kernel/drivers/cpufreq/cpufreq_userspace.ko
kernel/drivers/firewire/firewire-core.ko
kernel/drivers/firewire/firewire-ohci.ko
kernel/drivers/firewire/firewire-sbp2.ko
kernel/drivers/firewire/firewire-net.ko
kernel/drivers/hid/hid.ko
kernel/drivers/hid/hid-generic.ko
kernel/drivers/hid/hid-a4tech.ko
kernel/drivers/hid/hid-apple.ko
kernel/drivers/hid/hid-sunplus.ko
kernel/drivers/hid/usbhid/usbhid.ko
kernel/drivers/i2c/i2c-core.ko
kernel/drivers/i2c/busses/i2c-powermac.ko
kernel/drivers/ide/ide-core.ko
kernel/drivers/ide/pdc202xx_new.ko
kernel/drivers/ide/sl82c105.ko
kernel/drivers/ide/ide-pci-generic.ko
kernel/drivers/ide/pmac.ko
kernel/drivers/ide/ide-gd_mod.ko
kernel/drivers/ide/ide-cd_mod.ko
kernel/drivers/input/input-core.ko
kernel/drivers/input/input-leds.ko
kernel/drivers/input/mousedev.ko
kernel/drivers/input/evdev.ko
kernel/drivers/input/mouse/appletouch.ko
kernel/drivers/input/serio/serio.ko
kernel/drivers/leds/led-class.ko
kernel/drivers/leds/trigger/ledtrig-default-on.ko
kernel/drivers/macintosh/mac_hid.ko
kernel/drivers/net/sungem_phy.ko
kernel/drivers/net/ethernet/apple/mace.ko
kernel/drivers/net/ethernet/apple/bmac.ko
kernel/drivers/net/ethernet/sun/sungem.ko
kernel/drivers/of/of_pci.ko
kernel/drivers/of/of_pci_irq.ko
kernel/drivers/power/supply/apm_power.ko
kernel/drivers/power/supply/pmu_battery.ko
kernel/drivers/rtc/rtc-generic.ko
kernel/drivers/scsi/scsi_mod.ko
kernel/drivers/scsi/scsi_transport_spi.ko
kernel/drivers/scsi/scsi_transport_fc.ko
kernel/drivers/scsi/mesh.ko
kernel/drivers/scsi/mac53c94.ko
kernel/drivers/scsi/sd_mod.ko
kernel/drivers/scsi/sr_mod.ko
kernel/drivers/scsi/sg.ko
kernel/drivers/scsi/sym53c8xx_2/sym53c8xx.ko
kernel/drivers/usb/common/usb-common.ko
kernel/drivers/usb/core/usbcore.ko
kernel/drivers/usb/host/ohci-hcd.ko
kernel/drivers/usb/host/ohci-pci.ko
kernel/drivers/usb/mon/usbmon.ko
kernel/drivers/video/backlight/backlight.ko
kernel/drivers/video/backlight/generic_bl.ko
kernel/drivers/video/console/fbcon.ko
kernel/drivers/video/console/bitblit.ko
kernel/drivers/video/console/softcursor.ko
kernel/drivers/video/fbdev/macmodes.ko
kernel/drivers/video/fbdev/core/fb.ko
kernel/drivers/video/fbdev/core/cfbfillrect.ko
kernel/drivers/video/fbdev/core/cfbcopyarea.ko
kernel/drivers/video/fbdev/core/cfbimgblt.ko
kernel/arch/powerpc/oprofile/oprofile.ko
kernel/net/dns_resolver/dns_resolver.ko
kernel/net/ipv4/ah4.ko
kernel/net/ipv4/esp4.ko
kernel/net/ipv4/xfrm4_mode_beet.ko
kernel/net/ipv4/inet_diag.ko
kernel/net/ipv4/tcp_diag.ko
kernel/net/ipv4/tcp_cubic.ko
kernel/net/key/af_key.ko
kernel/net/packet/af_packet.ko
kernel/net/sunrpc/sunrpc.ko
kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
kernel/net/unix/unix.ko
kernel/net/xfrm/xfrm_algo.ko
kernel/net/xfrm/xfrm_user.ko
kernel/lib/bitrev.ko
kernel/lib/crc-ccitt.ko
kernel/lib/crc16.ko
kernel/lib/crc-t10dif.ko
kernel/lib/crc-itu-t.ko
kernel/lib/crc32.ko
kernel/lib/oid_registry.ko
kernel/lib/fonts/font.ko
kernel/lib/lz4/lz4_decompress.ko
kernel/lib/lzo/lzo_compress.ko
kernel/lib/lzo/lzo_decompress.ko
kernel/lib/xz/xz_dec.ko
kernel/lib/zlib_inflate/zlib_inflate.ko




my lshw output:

Code:

ip-109-228-130-61
    description: Computer
    product: iBook 12" (May 2001)
    vendor: Copyright 1983-2001 Apple Computer, Inc. All Rights Reserved
    serial: MDUUV2120UT
    width: 32 bits
  *-core
       description: Motherboard
       physical id: 0
       clock: 66MHz
       capabilities: powerbook4_1 macrisc2 macrisc power_macintosh
     *-firmware
          product: OpenFirmware 3
          physical id: 0
          logical name: /proc/device-tree
          capabilities: bootinfo
     *-memory
          description: System memory
          physical id: 1
          size: 384MiB
        *-bank:0
             description: SDRAM
             physical id: 0
             version: 0000,00 00,00
             slot: DIMM0/BUILT-IN
             size: 128MiB
        *-bank:1
             description: SDRAM
             physical id: 1
             version: 0000,00 00,00
             slot: DIMM1/J12
             size: 256MiB
     *-cpu
          description: CPU
          product: 745/755
          physical id: 2
          bus info: cpu@0
          version: 51.17 (pvr 0008 3311)
          size: 499MHz
          capacity: 499MHz
          clock: 66MHz
          capabilities: performance-monitor cpufreq
        *-cache:0
             description: L1 Cache
             physical id: 0
             size: 32KiB
        *-cache:1
             description: L2 Cache (unified)
             physical id: 1
             size: 256KiB
             clock: 499MHz (2.0ns)
     *-pci:0
          description: Host bridge
          product: UniNorth/Pangea AGP
          vendor: Apple Computer Inc.
          physical id: 100
          bus info: pci@0000:00:0b.0
          version: 00
          width: 32 bits
          clock: 66MHz
          configuration: driver=agpgart-uninorth latency=16
          resources: irq:0
        *-display
             description: VGA compatible controller
             product: Rage Mobility M3 AGP 2x
             vendor: ATI Technologies Inc
             physical id: 10
             bus info: pci@0000:00:10.0
             version: 02
             width: 32 bits
             clock: 66MHz
             capabilities: agp agp-2.0 pm bus_master cap_list rom
             configuration: driver=aty128fb latency=255 mingnt=8
             resources: irq:48 memory:94000000-97ffffff(prefetchable) ioport:400(size=256) memory:90000000-90003fff memory:90020000-9003ffff(prefetchable)
     *-pci:1
          description: Host bridge
          product: UniNorth/Pangea PCI
          vendor: Apple Computer Inc.
          physical id: 101
          bus info: pci@0001:10:0b.0
          version: 00
          width: 32 bits
          clock: 66MHz
          configuration: latency=16
        *-generic
             product: KeyLargo/Pangea Mac I/O
             vendor: Apple Computer Inc.
             physical id: 17
             bus info: pci@0001:10:17.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master
             configuration: driver=macio latency=16
             resources: irq:0 memory:80000000-8007ffff
           *-ide
                description: IDE Channel 0
                physical id: 0
                bus info: ide@0
                logical name: ide0
                clock: 33MHz
              *-disk
                   description: ATA Disk
                   product: TOSHIBA MK1517GAP
                   vendor: Toshiba
                   physical id: 0
                   bus info: ide@0.0
                   logical name: /dev/hda
                   version: A1.14 B
                   serial: 12PC9095T
                   size: 14GiB (15GB)
                   capacity: 14GiB (15GB)
                   capabilities: ata dma lba iordy smart security pm apm partitioned partitioned:mac
                   configuration: apm=off mode=udma2 smart=on
                 *-volume:0
                      description: Apple partition map
                      physical id: 1
                      bus info: ide@0.0,1
                      logical name: /dev/hda1
                      capacity: 31KiB
                 *-volume:1
                      description: Apple Bootstrap
                      physical id: 2
                      bus info: ide@0.0,2
                      logical name: /dev/hda2
                      size: 1021KiB
                      capacity: 1MiB
                      capabilities: bootable hfs initialized
                      configuration: created=2016-11-05 16:55:08 filesystem=hfs label=bootstrap modified=2016-11-05 16:55:09 state=clean
                 *-volume:2
                      description: EXT4 volume
                      vendor: Linux
                      physical id: 3
                      bus info: ide@0.0,3
                      logical name: /dev/hda3
                      logical name: /
                      version: 1.0
                      serial: 4537ee7c-08f3-491e-a013-2847170accbb
                      size: 13GiB
                      capacity: 13GiB
                      capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                      configuration: created=2016-11-05 14:57:17 filesystem=ext4 label=UNIX lastmountpoint=/ï¿œI9ᅵᅵ[PHï¿œ[PHï¿œ.ᅵᅵ[PHï¿œ~Dï¿œI9ᅵזkᅵᅵïᅵᅵᅵ,ᅵᅵïᅵᅵ,ï¿œ ᅵᅵ$ modified=2016-11-05 16:57:45 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,barrier=1,data=ordered mounted=2016-11-21 20:48:19 state=mounted
                 *-volume:3
                      description: Linux swap volume
                      physical id: 4
                      bus info: ide@0.0,4
                      logical name: /dev/hda4
                      version: 1
                      serial: 6cd77c99-4783-4f5f-806f-929ec1bd3319
                      size: 650MiB
                      capacity: 650MiB
                      capabilities: swap initialized
                      configuration: filesystem=swap pagesize=4096
                 *-volume:4
                      description: Apple Free
                      physical id: 5
                      bus info: ide@0.0,5
                      logical name: /dev/hda5
                      capacity: 992KiB
                 *-volume:5
                      description: Apple Free
                      physical id: 6
                      bus info: ide@0.0,6
                      logical name: /dev/hda6
                      capacity: 384KiB
              *-cdrom
                   description: IDE CD-ROM
                   product: LG CD-ROM CRN-8245B
                   physical id: 1
                   bus info: ide@0.1
                   logical name: /dev/hdb
                   version: AHT8
                   capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio
                   configuration: mode=udma2 status=nodisc
        *-usb:0
             description: USB Controller
             product: KeyLargo/Pangea USB
             vendor: Apple Computer Inc.
             physical id: 18
             bus info: pci@0001:10:18.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=ohci_hcd latency=16 maxlatency=86 mingnt=3
             resources: irq:27 memory:80081000-80081fff
        *-usb:1
             description: USB Controller
             product: KeyLargo/Pangea USB
             vendor: Apple Computer Inc.
             physical id: 19
             bus info: pci@0001:10:19.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=ohci_hcd latency=16 maxlatency=86 mingnt=3
             resources: irq:28 memory:80080000-80080fff
     *-pci:2
          description: Host bridge
          product: UniNorth/Pangea Internal PCI
          vendor: Apple Computer Inc.
          physical id: 102
          bus info: pci@0002:20:0b.0
          version: 00
          width: 32 bits
          clock: 66MHz
          configuration: latency=16
        *-firewire
             description: FireWire (IEEE 1394)
             product: UniNorth/Pangea FireWire
             vendor: Apple Computer Inc.
             physical id: e
             bus info: pci@0002:20:0e.0
             version: 00
             width: 32 bits
             clock: 66MHz
             capabilities: pm bus_master cap_list
             configuration: driver=ohci1394 latency=16 maxlatency=24 mingnt=12
             resources: irq:40 memory:f5000000-f5000fff
        *-network
             description: Ethernet interface
             product: UniNorth/Pangea GMAC (Sun GEM)
             vendor: Apple Computer Inc.
             physical id: f
             bus info: pci@0002:20:0f.0
             logical name: eth0
             version: 00
             serial: 00:03:93:6c:e4:60
             size: 100MB/s
             capacity: 100MB/s
             width: 32 bits
             clock: 66MHz
             capabilities: bus_master rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
             configuration: autonegotiation=on broadcast=yes driver=sungem driverversion=0.98 duplex=full ip=109.228.130.61 latency=16 link=yes maxlatency=64 mingnt=64 multicast=yes port=MII speed=100MB/s
             resources: irq:41 memory:f5200000-f53fffff memory:f5100000-f51fffff(prefetchable)
  *-network
       description: Wireless interface
       physical id: 1
       logical name: eth1
       serial: 00:30:65:04:ff:f2
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=orinoco driverversion=0.15 firmware=Lucent/Agere 9.48 link=no multicast=yes wireless=IEEE 802.11b


Last edited by Arthur Grandi on Thu Jun 21, 2018 9:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 125
Location: Funeralopolis

PostPosted: Mon Mar 26, 2018 5:21 pm    Post subject: Reply with quote

A quick look at your Xorg.0.log revealed the following two important lines:
Quote:
[ 19181.339] (--) PCI:*(0:0:16:0) 1002:4c46:1002:4c46 rev 2, Mem @ 0x94000000/67108864, 0x90000000/16384, I/O @ 0x00000400/256, BIOS @ 0x????????/131072
[...]
[ 19181.854] (EE) Failed to load module "r128" (module does not exist, 0)

First one means your card is found by Xorg, which is good. Second one means Xorg tries to load the r128 driver, but does not find it, which is bad. Which GPU support do you tell Gentoo to build via VIDEO_CARDS="..." in /etc/portage/make.conf?

As it's an iBook G3 and you can't replace your ATI Rage, you probably should just use:
VIDEO_CARDS="fbdev r128"

Do a quick rebuild with emerge @x11-module-rebuild and restart X. If the r128 driver does not work automagically, fbdev will. Then you just need to create a /etc/X11/xorg.conf to tune some parameters, to get r128 working.
_________________
Talos II Secure Workstation. [Gentoo Linux] | PMac G5 7,3. PBook G4 5,8. [MorphOS 3.11 / Gentoo Linux]
A1200. ACA-1233, Indivision AGA Mk2. [Amiga OS 3.1.4]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41406
Location: 56N 3W

PostPosted: Mon Mar 26, 2018 8:32 pm    Post subject: Reply with quote

Arthur Grandi,

The automatic driver detection worked.
Code:
[ 19181.813] (==) Matched ati as autoconfigured driver 0
[ 19181.813] (==) Matched modesetting as autoconfigured driver 1
[ 19181.813] (==) Matched fbdev as autoconfigured driver 2

and the ati module loaded
Code:
[ 19181.813] (II) LoadModule: "ati"
[ 19181.814] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[ 19181.830] (II) Module ati: vendor="X.Org Foundation"
[ 19181.830]    compiled for 1.19.5, module version = 7.9.0
[ 19181.830]    Module class: X.Org Video Driver
[ 19181.830]    ABI class: X.Org Video Driver, version 23.0

but your ATI Mobility 128 AGP 2X driver isn't there. Its in a separate x11-drivers/xf86-video-r128 package.
To install that you reed to add r128 to your VIDEO_CARDS, then run
Code:
emerge -uUDav @world
to rebuild everything that supports the r128.

Xorg tried to fall back to the modesetting driver, which is free with Xorg but its missing kernel support.
Code:
[ 19181.903] (EE) open /dev/dri/card0: No such file or directory


On the way, the last option
Code:
[ 19181.885] (EE) Failed to load module "fbdev" (module does not exist, 0)
so Xorg gave up.

Under Graphics support in the kernel, go into
Code:
[*] Enable legacy drivers (DANGEROUS)  --->
and select
Code:
<*>   ATI Rage 128

Under
Code:
<*> /dev/agpgart (AGP Support)  --->
Choose the option for your motherboard chipset probably
Code:
Apple UniNorth & U3 AGP support

If you are a genkernel user, you will need the --menuconfig option
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Mon Mar 26, 2018 9:33 pm    Post subject: Reply with quote

Thanks for your clear answer Neddy Seagoon.

I will follow your instructiions, but before i start may i ask if I am right in interpreting it as if it is OK to proceed without dri/DRM ( because of my RAM restriction) ?

Regards,

Arthur Grandi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41406
Location: 56N 3W

PostPosted: Mon Mar 26, 2018 9:49 pm    Post subject: Reply with quote

Arthur Grandi,

Its been a long time since I used a video card that needed the r128 drivers.
I think the firmware is only used for 3D hardware acceleration and you will get a picture without it.

The kernel settings I gave you will provide DRI/DRM that is compatible with your video card.
The way it works has been redesigned for newer hardware, hence the
Code:
[*] Enable legacy drivers (DANGEROUS)  --->

There have been some security fixes.

You may as well load the firmware. Its provided by linux-firmware.

Be aware that for if you set
Code:
<*>   ATI Rage 128
the firmware must be included in the kernel too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Tue Mar 27, 2018 9:43 am    Post subject: Reply with quote

Thanks so much again Neddy Seagoon !

I think i will make a couple trials and see what happens now that you have narrowed the possible choices from all too many to a very minimum.

It will take me a while before i can report resilts,

Regards,
Arthur Grandi
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Tue Mar 27, 2018 12:43 pm    Post subject: Reply with quote

Late Thanks for your quick and also very clear answer schwarzygesetzlos! I did miss it somehow and noriced it first now.
Back to top
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 125
Location: Funeralopolis

PostPosted: Sun Apr 01, 2018 7:49 pm    Post subject: Reply with quote

And how did it turn out? Were you successful? :)
_________________
Talos II Secure Workstation. [Gentoo Linux] | PMac G5 7,3. PBook G4 5,8. [MorphOS 3.11 / Gentoo Linux]
A1200. ACA-1233, Indivision AGA Mk2. [Amiga OS 3.1.4]
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Mon Apr 02, 2018 12:02 pm    Post subject: Reply with quote

Not yet!

But I managed to improve my Xorg.0.log to a point it had no EEs but still ended in a black screen without keyboard on the terminal i used to startx.

I could change terminals and other terminals had keyboard action. Back to the initial terminal a message in place of the black screen would show that several evdevs related steps were executed and then they were all closed. The xorg-server seemed to be somehow still on as i had no prompt.

Ctrl-C would then show a message about Xorg-server termination and give me back a prompt.

I decided then to try fiddle with xorg-configuration and see if i could overcome the black-screen, and managed to get back att very strange errors, like getting a message in place of the black screen that "Module r128 was not found in /lib/modules/4.9.72-gentoo180310 (which is the right version) at the same time that Xorg.0.log reports that r128 was being loaded from /usr/lib/xorg/modules/drivers


Guess I did a mistake in installing x11-base/xorg-server before media-libs/mesa and x11-base/xorg-drivers. Read somewhere that AFTER installing them one could proceed to install xorg-server. ANd if that it is true fixing it seems to me more complicated than reinstalling the base system.

I have have tried so many ways now, that i am a bit tired and confused. Starting to wonder whether it would not be easier to restart from the starball and a backup of my kernel (just in case) and some key-configuration files. And hope that i could have better control before i do a kernel according to Neddy Seagoons recommendations. Which I haven't done yet cause i want to try solve it att the first level and i got a feeling from the Xorg-logs that we are on the right track. And besides this little box here takes at least 4 days to compile a minimal kernel. That is why I have been putting so much effort on it, It will be the greatest kick to run a graphic Gentoo on it.

Right now the black screen lasts only one second and then the error message comes up withot need to change to another terminal

Thouhgt I might post 3 different Xorg.logs from this morning with minimal changes between them but I am not sure that's the right way and besides I don't know whether they should be wgetpasted or pasted directly.

thanks for your interest

EDIT: I have due to distraction run startx from the root terminal quite a few times too.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41406
Location: 56N 3W

PostPosted: Mon Apr 02, 2018 12:16 pm    Post subject: Reply with quote

Arthur Grandi,

It sounds like Xorg works but has nothing to do, so you get a black screen.
Code:
emerge -1 twm xclock xterm
to get the default packages that startx tries to run.

Quote:
Module r128 was not found in /lib/modules/4.9.72-gentoo180310

Is the kernel part of the driver not being loaded.

Quote:
Xorg.0.log reports that r128 was being loaded from /usr/lib/xorg/modules/drivers

That's the Xorg part of the driver.

You need all the pieces.

-- edit --
The log lists all the possible drivers for your card.
Code:
[ 19181.813] (==) Matched ati as autoconfigured driver 0
[ 19181.813] (==) Matched modesetting as autoconfigured driver 1
[ 19181.813] (==) Matched fbdev as autoconfigured driver 2

ati really means r128
both r128 and modesetting require DRI support in the kernel.

If you want a picture without a kernel rebuild that leaves fbdev.
Code:
emerge -1 xf86-video-fbdev
and add fbdev to your VIDEO_CARDS.
That will be slow, as the CPU does all the work. The graphics card allows the CPU to draw in its memory.

The kernel rebuild need not take 4 days either. You only need to rebuild the changes.
make is lazy. It looks at the timestamp on each output file and if its newer than all the input files, nothing has changed, so make does nothing.
This causes havoc if your time is not monotonic.
The trick is to not throw away the existing output files.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Mon Apr 02, 2018 6:37 pm    Post subject: Reply with quote

Thanks Neddy Seagoon , this sounds very good to me.

You have solved quite a few big questions that i had been worrying about. I think I want to try have a desktop first, even if it is slow, as I won't be really working with this machine.

Once I have calmed down after seeing a desktop, then I can continue without stress to recompile the kernel and pursue a faster desktop.

I have already made a back up of my /usr/src/linux-4.9.72-gentoo folder (missed some links in the process) preparing for the future. I have a newer macbook waiting for Gentoo that i want to be able to give priority to as soon as "possible".

Edit: I have a feeling that this might be SOLVED, but its maybe better to wait and see before setting any tag :-)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41406
Location: 56N 3W

PostPosted: Mon Apr 02, 2018 6:53 pm    Post subject: Reply with quote

Arthur Grandi,

That's a good approach to Gentoo.

Make it work first, make it shiny later. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Tue Apr 10, 2018 11:43 pm    Post subject: Reply with quote

I still can mark this as solved in the sense that got X going, but i am stkill working on it - the old ibook has been chewing up for 2 days and so far has completed 70 out of 250 packages of the world update (profile desktop 13.0). I haven't given up. If you think i should mark it as solved since you have showed me a way I understand and trust, let me know and i will mark it - with pleasure.

EDIT: "I still can't mark.."


Last edited by Arthur Grandi on Wed Apr 11, 2018 8:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5225

PostPosted: Wed Apr 11, 2018 1:02 am    Post subject: Reply with quote

That card will support DRI1 and EXA, iirc. It's worth getting those working over resorting to plain fbdev drivers, the opengl performance is forgettable but it's much better than leaving things to software rendering (lots of things use gl internally, even if they're not 3D).

May be a good idea to use 16bpp instead of the default 24 too, I think those things have 8MB of VRAM which doesn't leave much room for pixmaps - and on a laptop that old you may not be able to see the difference.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Wed Apr 11, 2018 7:24 pm    Post subject: Reply with quote

Thanks Ant P. !

I will have to do some more gogling before i can clearly understand your advice, but it sounds like a good idea if I can implement it the right way.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Sun Apr 15, 2018 7:06 pm    Post subject: Reply with quote

Compiling av new kernel finished last night - took about 6 days. In the meantime i installed on a x86-64 and srated out with a kernel panic, but this is for another thread. This note is ust to let you know i am not giving up, but my process is slow.

thanks for your support so far. I'll be back as soonas there is something to tell - or ask.
Back to top
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 125
Location: Funeralopolis

PostPosted: Tue Apr 24, 2018 8:24 pm    Post subject: Reply with quote

So maybe you should get a Dual core or Quad core PowerMac G5 to get your G3 build jobs done via distcc. :lol:
_________________
Talos II Secure Workstation. [Gentoo Linux] | PMac G5 7,3. PBook G4 5,8. [MorphOS 3.11 / Gentoo Linux]
A1200. ACA-1233, Indivision AGA Mk2. [Amiga OS 3.1.4]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41406
Location: 56N 3W

PostPosted: Tue Apr 24, 2018 8:53 pm    Post subject: Reply with quote

Arthur Grandi,

With your x86-64 you can install a cross compiler and use distcc so that the x86-64 builds PPC code for the Mac.
The Mac sends compile jobs to the x86-64 and the x86-64 sends the compiled code back.

You can even go a stage further and run a qeum PPC chroot on the x86-64. qemu emulates the PPC CPU in software, so its slow but it runs PPC code on the x86-64.

Code:
$ gcc-config -l
 [1] aarch64-unknown-linux-gnu-6.4.0
 [2] aarch64-unknown-linux-gnu-7.3.0 *

 [3] arm-none-eabi-6.4.0 *

 [4] armv6j-hardfloat-linux-gnueabi-7.3.0 *

 [5] armv7a-hardfloat-linux-gnueabi-7.3.0 *

 [6] i586-pc-linux-gnu-7.3.0 *

 [7] i686-pc-linux-gnu-7.3.0 *

 [8] powerpc-unknown-linux-gnu-7.3.0 *

 [9] x86_64-pc-linux-gnu-5.4.0
 [10] x86_64-pc-linux-gnu-6.4.0
 [11] x86_64-pc-linux-gnu-7.3.0 *


1 and 2 are for 64 bit Raspberry Pi 3
4 and 5 are for Raspberry Pi 1 and 2.
7 is for my N270 Acer One netbook, from 2008
8 You want one of these.
9, 10 and 11 are the native compilers for this system.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Sat Apr 28, 2018 4:05 pm    Post subject: Reply with quote

Thanks schwarzygesetzlos and NeddySeagoon for your latest tips.

Last year after very painful atempts to compile with 365 Mb RAM, the friend who introduced me to Gentoo tipped me that i could use a USB-stick som swap and it seems that it made a difference.

At the time I invested a good deal of time trying to understand cross-compiling and felt it was more difficult then Gentoo :-) or that it had a steeper learning curve.

My solution has been try to scan my time between x86_64 and ppc 32. When things go well I can start a process in one machine and then think abouit the next process on the other machine.

That's why it took me so long time to return here.

Installed on my x86_64 which is also a Core 2 Duo, although with a decent amount of RAM. But had to learn a lot there also, although many of my mistakes are just typos that can take me a few days to detect.

So now i have posted on the AMD forum and while I wait i came here and when I should look into your earlier posts to start reconfiguring my ibook kernel I saw your latest tips.

I will wait before i try to venture myself into the the realms of cross-compiling. I will certainly lokk at DRI1 and EXA, iircI - as suggested by Ant P.

I am trusting that with the tips i have got from you this thing will work. It depends on me now. I won't give up.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41406
Location: 56N 3W

PostPosted: Sat Apr 28, 2018 5:38 pm    Post subject: Reply with quote

Arthur Grandi,

Pure cross compiling is hard. Some things just work. Some things need a little bit of coaxing Some build systems are incomplete. A few are cross compile hostile.
Its the fastest way to build binaries for slow hardware.

CPU emulation with a static QEMU is almost as good an a real CPU. Its also slow, sometimes slower than real hardware but if the real hardware is memory constrained, it will avoid the memory constraint.

Cross distcc is a half way house. Its not flawless either. In essence, the host does the preprocessing and the linking and the compile tasks are sent to the cross compiler using dstcc.
As with all things Gentoo, set things up in baby steps and test as you go.

Step 1. Install distcc on both systems and start the service ... just by hand. The default setting should not break anything as it sends things to itself.
You should be able to see compile jobs with one of the monitoring tools.

Step 2. Install crossdev on your x86. Its going to build you a cross toolchain.
It theory, you run
Code:
crossdev -t <CHOST_from_ppc>
but things are rarely that easy.
You need an overlay for crossdev to use.
You need *identical* gcc cross and native versions or you get strange bugs, so you may need to set up an overlay and force versions too.

Step 3. You put both bits together and your x86 builds PPC code.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Sat Apr 28, 2018 10:03 pm    Post subject: Reply with quote

Thanks again Neddy Seagoon

Your tips are very pedagogical and made me feel that it is possible for me to cross-compile some day. But i must learn abouit overlays - tried them once by the handbook , did not really understand what I was doing. And although i guess I understand what gcc and qemu are i am not really familiar with their characteristics.

i had not worked with command line for more than 20 years and i was never an ace at it, so i must build up my self-confidence.

But you guys have made me think about looking again at crosscompiling. Once i get a GUI on the ibook. I know it is the wrong order, but I am not a pro.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41406
Location: 56N 3W

PostPosted: Sat Apr 28, 2018 10:33 pm    Post subject: Reply with quote

Arthur Grandi,

Order is not important. What matters is that you move from one working configuration to another in small steps.
That way when you break your gentoo, you can back out the change, check it works again, then have another go.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Wed May 02, 2018 5:28 pm    Post subject: Reply with quote

Thanks again Neddy Seagoon !

That is a question that confuses me rather often. I will keep your advice i mind and try to plan for small, "recoverable" changes. Right now i am getting ready to recompile the kernel and test startx.
Back to top
View user's profile Send private message
schwarzygesetzlos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2004
Posts: 125
Location: Funeralopolis

PostPosted: Sat May 05, 2018 11:21 am    Post subject: Reply with quote

@Arthur Grandi you may also be interested in http://adelielinux.org/info.html.

They also target G3/G4 systems, you don't need to build packages yourself, and they have a live boot media. May also be faster on low end hardware as they depend on musl instead of glibc.
_________________
Talos II Secure Workstation. [Gentoo Linux] | PMac G5 7,3. PBook G4 5,8. [MorphOS 3.11 / Gentoo Linux]
A1200. ACA-1233, Indivision AGA Mk2. [Amiga OS 3.1.4]
Back to top
View user's profile Send private message
Arthur Grandi
n00b
n00b


Joined: 19 Jan 2017
Posts: 27
Location: Stockholm

PostPosted: Sun May 13, 2018 8:38 pm    Post subject: Reply with quote

Thanks for the tips on Adelie, Schwarzygesetzlos!
Sounds very interesting.

I still trying to finalize the installation of Gentoo. had to interrupt for a while for external reasons but today began to review my notes. One forgets things quickly as a beguinner.
I had to recompile kernel and in the proces made a few extra mistakes. Now i am at the point of adjusting yaboot and revising the kernel config before i try to boot. I hate the idea of getting kernel panic.

I will definitely look into Adelie. Maybe try it on a external disk. Would be possible to install it on an usb to test the installation process? With just 12 GB hårddisk it doesn't sound like a good idea to try a dual Gentoo-Adelie boot. And if i do get gentoo installed i won't like the idea of loosing it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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