[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iMac G3 r128 - failed to load module "r128"



Hi Adrian,

Here is a follow up on the iMac project. I built xserver-xorg-video-r128 from the buster source (6.12.0). I did not patch the source yet. After installing the driver and trying to start X I get the following:


[   259.895] 
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[   259.914] Build Operating System: Linux 5.4.0-4-powerpc64 ppc Debian
[   259.921] Current Operating System: Linux debian 5.5.0-2-powerpc #1 Debian 5.5.17-1 (2020-04-15) ppc
[   259.921] Kernel command line: BOOT_IMAGE=/boot/vmlinux-5.5.0-2-powerpc root=UUID=7f7ffc1e-a688-4fe9-8eac-ac0c29ef7be8 ro quiet
[   259.935] Build Date: 31 March 2020  10:14:40AM
[   259.942] xorg-server 2:1.20.8-2 (https://www.debian.org/support
[   259.949] Current version of pixman: 0.36.0
[   259.962] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[   259.963] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   259.991] (==) Log file: "/var/log/Xorg.0.log", Time: Sat May 23 22:01:37 2020
[   260.000] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   260.002] (==) No Layout section.  Using the first Screen section.
[   260.002] (==) No screen section available. Using defaults.
[   260.002] (**) |-->Screen "Default Screen Section" (0)
[   260.002] (**) |   |-->Monitor "<default monitor>"
[   260.005] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[   260.005] (==) Automatically adding devices
[   260.005] (==) Automatically enabling devices
[   260.005] (==) Automatically adding GPU devices
[   260.005] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   260.006] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   260.006] Entry deleted from font path.
[   260.006] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[   260.006] (==) ModulePath set to "/usr/lib/xorg/modules"
[   260.006] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[   260.006] (II) Loader magic: 0xe27738
[   260.006] (II) Module ABI versions:
[   260.006] X.Org ANSI C Emulation: 0.4
[   260.006] X.Org Video Driver: 24.1
[   260.006] X.Org XInput driver : 24.1
[   260.007] X.Org Server Extension : 10.0
[   260.016] (++) using VT number 1

[   260.049] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   260.063] (--) PCI:*(0@0:16:0) 1002:5452:1002:5452 rev 0, Mem @ 0x94000000/67108864, 0x90000000/16384, I/O @ 0x00000400/256, BIOS @ 0x????????/131072
[   260.063] (II) LoadModule: "glx"
[   260.065] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   260.162] (II) Module glx: vendor="X.Org Foundation"
[   260.162] compiled for 1.20.8, module version = 1.0.0
[   260.162] ABI class: X.Org Server Extension, version 10.0
[   260.162] (==) Matched ati as autoconfigured driver 0
[   260.162] (==) Matched modesetting as autoconfigured driver 1
[   260.162] (==) Matched fbdev as autoconfigured driver 2
[   260.163] (==) Assigned the driver to the xf86ConfigLayout
[   260.163] (II) LoadModule: "ati"
[   260.164] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[   260.165] (II) Module ati: vendor="X.Org Foundation"
[   260.165] compiled for 1.20.4, module version = 19.1.0
[   260.165] Module class: X.Org Video Driver
[   260.165] ABI class: X.Org Video Driver, version 24.0
[   260.165] (II) LoadModule: "r128"
[   260.166] (II) Loading /usr/lib/xorg/modules/drivers/r128_drv.so
[   260.167] (II) Module r128: vendor="X.Org Foundation"
[   260.167] compiled for 1.20.8, module version = 6.12.0
[   260.167] Module class: X.Org Video Driver
[   260.167] ABI class: X.Org Video Driver, version 24.1
[   260.168] (II) LoadModule: "modesetting"
[   260.169] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   260.198] (II) Module modesetting: vendor="X.Org Foundation"
[   260.198] compiled for 1.20.8, module version = 1.20.8
[   260.198] Module class: X.Org Video Driver
[   260.198] ABI class: X.Org Video Driver, version 24.1
[   260.198] (II) LoadModule: "fbdev"
[   260.199] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   260.214] (II) Module fbdev: vendor="X.Org Foundation"
[   260.214] compiled for 1.20.0, module version = 0.5.0
[   260.215] Module class: X.Org Video Driver
[   260.215] ABI class: X.Org Video Driver, version 24.0
[   260.215] (II) R128: Driver for ATI Rage 128 chipsets:
ATI Rage 128 Mobility M3 LE (PCI), ATI Rage 128 Mobility M3 LF (AGP),
ATI Rage 128 Mobility M4 MF (AGP), ATI Rage 128 Mobility M4 ML (AGP),
ATI Rage 128 Pro GL PA (PCI/AGP), ATI Rage 128 Pro GL PB (PCI/AGP),
ATI Rage 128 Pro GL PC (PCI/AGP), ATI Rage 128 Pro GL PD (PCI),
ATI Rage 128 Pro GL PE (PCI/AGP), ATI Rage 128 Pro GL PF (AGP),
ATI Rage 128 Pro VR PG (PCI/AGP), ATI Rage 128 Pro VR PH (PCI/AGP),
ATI Rage 128 Pro VR PI (PCI/AGP), ATI Rage 128 Pro VR PJ (PCI/AGP),
ATI Rage 128 Pro VR PK (PCI/AGP), ATI Rage 128 Pro VR PL (PCI/AGP),
ATI Rage 128 Pro VR PM (PCI/AGP), ATI Rage 128 Pro VR PN (PCI/AGP),
ATI Rage 128 Pro VR PO (PCI/AGP), ATI Rage 128 Pro VR PP (PCI),
ATI Rage 128 Pro VR PQ (PCI/AGP), ATI Rage 128 Pro VR PR (PCI),
ATI Rage 128 Pro VR PS (PCI/AGP), ATI Rage 128 Pro VR PT (PCI/AGP),
ATI Rage 128 Pro VR PU (PCI/AGP), ATI Rage 128 Pro VR PV (PCI/AGP),
ATI Rage 128 Pro VR PW (PCI/AGP), ATI Rage 128 Pro VR PX (PCI/AGP),
ATI Rage 128 GL RE (PCI), ATI Rage 128 GL RF (AGP),
ATI Rage 128 RG (AGP), ATI Rage 128 VR RK (PCI),
ATI Rage 128 VR RL (AGP), ATI Rage 128 4X SE (PCI/AGP),
ATI Rage 128 4X SF (PCI/AGP), ATI Rage 128 4X SG (PCI/AGP),
ATI Rage 128 4X SH (PCI/AGP), ATI Rage 128 4X SK (PCI/AGP),
ATI Rage 128 4X SL (PCI/AGP), ATI Rage 128 4X SM (AGP),
ATI Rage 128 4X SN (PCI/AGP), ATI Rage 128 Pro ULTRA TF (AGP),
ATI Rage 128 Pro ULTRA TL (AGP), ATI Rage 128 Pro ULTRA TR (AGP),
ATI Rage 128 Pro ULTRA TS (AGP?), ATI Rage 128 Pro ULTRA TT (AGP?),
ATI Rage 128 Pro ULTRA TU (AGP?)
[   260.218] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   260.218] (II) FBDEV: driver for framebuffer: fbdev
[   260.219] (WW) Falling back to old probe method for modesetting
[   260.219] (EE) open /dev/dri/card0: No such file or directory
[   260.219] (WW) Falling back to old probe method for fbdev
[   260.219] (II) Loading sub module "fbdevhw"
[   260.220] (II) LoadModule: "fbdevhw"
[   260.220] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   260.221] (II) Module fbdevhw: vendor="X.Org Foundation"
[   260.221] compiled for 1.20.8, module version = 0.0.2
[   260.221] ABI class: X.Org Video Driver, version 24.1
[   260.222] (II) R128(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[   260.222] (==) R128(0): Depth 24, (--) framebuffer bpp 32
[   260.222] (==) R128(0): Default visual is TrueColor
[   260.222] (==) R128(0): Using gamma correction (1.0, 1.0, 1.0)
[   260.223] (II) R128(0): PCI bus 0 card 16 func 0
[   260.223] (II) R128(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[   260.223] (II) R128(0): Acceleration of RENDER operations will be enabled upon successful loading of DRI and EXA.
[   260.223] (**) R128(0): Using framebuffer device.
[   260.223] (II) R128(0): VGAAccess option set to FALSE, VGA module load skipped.
[   260.223] (==) R128(0): RGB weight 888
[   260.223] (II) R128(0): Using 8 bits per RGB (8 bit DAC)
[   260.223] (II) Loading sub module "fbdevhw"
[   260.223] (II) LoadModule: "fbdevhw"
[   260.224] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   260.224] (II) Module fbdevhw: vendor="X.Org Foundation"
[   260.225] compiled for 1.20.8, module version = 0.0.2
[   260.225] ABI class: X.Org Video Driver, version 24.1
[   260.225] (--) R128(0): Chipset: "ATI Rage 128 Pro ULTRA TR (AGP)" (ChipID = 0x5452)
[   260.225] (--) R128(0): Linear framebuffer at 0x94000000
[   260.225] (--) R128(0): MMIO registers at 0x90000000
[   260.226] (--) R128(0): VideoRAM: 16384 kByte (128-bit SDR SGRAM 1:1)
[   260.226] (II) Loading sub module "ramdac"
[   260.226] (II) LoadModule: "ramdac"
[   260.226] (II) Module "ramdac" already built-in
[   260.226] (II) Loading sub module "ddc"
[   260.226] (II) LoadModule: "ddc"
[   260.226] (II) Module "ddc" already built-in
[   260.226] (II) Loading sub module "i2c"
[   260.226] (II) LoadModule: "i2c"
[   260.227] (II) Module "i2c" already built-in
[   260.227] (WW) R128(0): Failed to read PCI ROM!
[   260.227] (WW) R128(0): Video BIOS not found!
[   260.232] (II) R128(0): PLL parameters: rf=2950 rd=59 min=12500 max=25000; xclk=13000
[   260.233] (EE) 
[   260.233] (EE) Backtrace:
[   260.235] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x230) [0xd4e810]
[   260.236] (EE) 1: linux-vdso32.so.1 (?+0x0) [0x1003fc]
[   260.239] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   260.239] (EE) 2: /usr/lib/xorg/modules/drivers/r128_drv.so (?+0x0) [0xb717fb40]
[   260.241] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   260.241] (EE) 3: /usr/lib/xorg/modules/drivers/r128_drv.so (?+0x0) [0xb717fc90]
[   260.243] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   260.243] (EE) 4: /usr/lib/xorg/modules/drivers/r128_drv.so (?+0x0) [0xb717b530]
[   260.246] (EE) 5: /usr/lib/xorg/Xorg (InitOutput+0x930) [0xbe3080]
[   260.248] (EE) 6: /usr/lib/xorg/Xorg (InitFonts+0x240) [0xb95040]
[   260.250] (EE) 7: /usr/lib/xorg/Xorg (miPolyFillRect+0x1038) [0xb79798]
[   260.252] (EE) 8: /lib/powerpc-linux-gnu/libc.so.6 (__libc_init_first+0x394) [0x196364]
[   260.254] (EE) 9: /lib/powerpc-linux-gnu/libc.so.6 (__libc_start_main+0xfc) [0x1962ec]
[   260.255] (EE) unw_get_proc_info failed: no unwind info found [-10]
[   260.255] (EE) 
[   260.255] (EE) Segmentation fault at address 0x49
[   260.255] (EE) 
Fatal server error:
[   260.255] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   260.255] (EE) 
[   260.256] (EE) 
Please consult the The X.Org Foundation support 
 for help. 
[   260.256] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   260.256] (EE) 
[   260.291] (EE) Server terminated with error (1). Closing log file.

It looks like the problem is the following :
[   260.227] (WW) R128(0): Failed to read PCI ROM!
[   260.227] (WW) R128(0): Video BIOS not found!

I guess that is what the patch is for....to be continued...

Regards,
Jeroen Diederen

Reply to: