PowerMac G5 上的 Debian PPC 启动至黑屏

PowerMac G5 上的 Debian PPC 启动至黑屏

作为一个副业项目,我想尝试将 Debian(挤压)扔到一台旧的 G5 PowerMac 上。它安装得很好,但是在引导加载程序和内核启动输出之后,屏幕变成空白。看起来像是视频模式问题或其他问题,但我找不到在哪里更改它。 X 尚未安装,因此它应该启动到登录提示符。

有任何想法吗?

编辑:/var/log/messages我遇到了同样的问题,在它变成空白后我一直在做的是从rescue64安装 CD 上的系统进行调查。事实上,事实证明,我在屏幕闪烁和空白之前短暂看到的行都进入了日志。它们是(我必须输入它,因为我没能从救援系统中将其从机器上取下来):

[drm] Initialized drm 1.1.0 20060810
[drm] nouveau 0000:f0:10.0: Detected an NV30 generation card (0x034100b1)
[drm] nouveau 0000:f0:10.0: OF bios successfully copied (2403 bytes)
[drm] nouveau 0000:f0:10.0: Attempting to load BIOS image from PROM
[drm] nouveau 0000:f0:10.0: ... BIOS checksum invalid
[drm] nouveau 0000:f0:10.0: Attempting to load BIOS image from PRAMIN
[drm] nouveau 0000:f0:10.0: ... BIOS checksum invalid
[drm] nouveau 0000:f0:10.0: Attempting to load BIOS image from PCIROM
[drm] nouveau 0000:f0:10.0: ... BIOS signature not found
[drm] nouveau 0000:f0:10.0: Using BIOS image from PRAMIN
[drm] nouveau 0000:f0:10.0: BMP BIOS found
[drm] nouveau 0000:f0:10.0: BMP version 5.39
[drm] nouveau 0000:f0:10.0: Bios version 04.34.20.19
[drm] nouveau 0000:f0:10.0: Found Display COnfiguration Block version 2.2
[drm] nouveau 0000:f0:10.0: Raw DCB entry 0: 01100102 00000000
[drm] nouveau 0000:f0:10.0: Raw DCB entry 1: 01000100 000088b8
[drm] nouveau 0000:f0:10.0: Raw DCB entry 2: 02110212 11b00000
[drm] nouveau 0000:f0:10.0: Raw DCB entry 3: 02010210 11b088b8
[drm] nouveau 0000:f0:10.0: Raw DCB entry 4: 02010211 11b00003
[drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 0 at offset 0x020A
[drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 1 at offset 0x0457
[drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 2 at offset 0x059D
[drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 3 at offset 0x0723
[drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 4 at offset 0x0740
[drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 5 at offset 0x075D
[drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 6 at offset 0x08E2
[TTM] ZOne  kernel: Available graphics memory: 609784 kiB.
[drm] nouveau 0000:f0:10.0: 64 BiB VRAM
[drm] nouveau 0000:f0:10.0: 64 MiB GART (aperture)
[drm] nouveau 0000:f0:10.0: Allocating FIFO number 0
[drm] nouveau 0000:f0:10.0: nouveau_channel_alloc: initialised FIFO 0
[drm] nouveau 0000:f0:10.0: Initial CRTC_OWNER is 0
[drm] nouveau 0000:f0:10.0: Detected a DVI-I connector
[drm] nouveau 0000:f0:10.0: Detected a DVI-I connector
[drm] nouveau 0000:f0:10.0: Detected a TV connector
[drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on tmds encoder (output 0)
[drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on vga encoder (output 1)
[drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on tmds encoder (output 2)
[drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on vga encoder (output 3)
[drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on TV encoder (output 4)
composite sync not supported
windfarm: SMU failed new fan command falling back to old method
[drm] nouveau 0000:f0:10.0: Load detected on output B
[drm] nouveau 0000:f0:10.0: allocated 720x576 fb: 0x49000, bo c00000004945e000
Console: switching to colour dummy device 80x25
Trying to free nonexistent resource <0000000098004000-000000009807bfff>
Console: switching to colour frame buffer device 90x36
[drm] nouveau 0000:f0:10.0: Setting dpmc mode 0 on TV encoder (output 4)
[drm] nouveau 0000:f0:10.0: Output TV-1 is running on CRTC 1 using output B
fb0: nouveaufb frame buffer device
registered panic notifier
[drm] Initialized nouveau 0.0.15 20090420 for 0000:f0:10.0 on minor 0

请注意:nosplash video=ofonly fb=false已被附加到内核命令行,这确实不是帮助。此外,这些参数是默认添加的(安装程序就是这样做的)。

另请注意:将其更改为nosplash fb=false不会改变任何事情。

另一件事:rescue64安装程序 CD 中的环境运行得很好。它似乎也切换了分辨率(或者可能只是字体?),但最终并没有出现空白屏幕......

答案1

好吧,回答我自己的问题(参见上面的编辑)。

我的直觉显然是对的,或者说部分是对的。nouveau日志中提到的模块(请参阅上面编辑的问题)是罪魁祸首。

  1. 像平常一样安装 Debian 6
  2. 安装后重启
  3. 再次选择从CD启动,这次rescue64在CD的启动提示符处输入
  4. 回答有关区域设置、键盘设置和计算机名称的问题,然后在根分区中执行 shell
  5. (可选)将任何丢失的分区安装到内部文件夹中/target(例如潜在的/boot安装点) - 请记住,您可以使用已创建的其他 TTY(在我的情况Alt+F1下通过)Alt+F4
  6. 现在去编辑/etc/modprobe.d/blacklist.local.conf(据我所知,只有nano(1)可用。以防您不记得:它是无模式的,您只需将光标导航到您想要的位置,然后插入任何字符,然后使用Ctrl+O或保存F3并退出Ctrl+X
  7. 在上一步中打开的文件的blacklist nouveau最后一行下添加一行blacklist
  8. 运行update-initramfs -u -k all以确保您的更改生效
  9. 重新启动进入您的 Debian。这次您应该看到登录提示(可能在fsck运行一段时间后)

对于懒人来说安装后不要重新启动(步骤2)而是切换到 TTY2 左右并运行chroot /target /bin/bash并按照上述步骤 6 开始的步骤操作。

我只是做了第一个版本来记录我为让它发挥作用所做的事情。即调查问题然后解决它。

如果你们/etc/yaboot.conf中的一个人像我一样进行了更改,请撤消您的更改并运行ybin -v(作为超级用户)以使您的驱动器受到“Holy Penguin Pee”的祝福:

$ sudo ybin -v
ybin: Finding OpenFirmware device path to `/dev/sda2'...
ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/sda2...
ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/sda2...
ybin: Installing /etc/yaboot.conf onto /dev/sda2...
ybin: Setting attributes on ofboot...
ybin: Setting attributes on yaboot...
ybin: Setting attributes on yaboot.conf...
ybin: Blessing /dev/sda2 with Holy Penguin Pee...
ybin: Updating OpenFirmware boot-device variable in nvram...

下面是我之前手动输入的逐字日志内容:

May 15 01:01:10 freyja kernel: [    9.589577] [drm] Initialized drm 1.1.0 20060810
May 15 01:01:10 freyja kernel: [   10.151602] [drm] nouveau 0000:f0:10.0: Detected an NV30 generation card (0x034100b1)
May 15 01:01:10 freyja kernel: [   10.175308] [drm] nouveau 0000:f0:10.0: OF bios successfully copied (2403 bytes)
May 15 01:01:10 freyja kernel: [   10.184505] [drm] nouveau 0000:f0:10.0: Attempting to load BIOS image from PROM
May 15 01:01:10 freyja kernel: [   10.334022] [drm] nouveau 0000:f0:10.0: ... BIOS checksum invalid
May 15 01:01:10 freyja kernel: [   10.338877] [drm] nouveau 0000:f0:10.0: Attempting to load BIOS image from PRAMIN
May 15 01:01:10 freyja kernel: [   10.392373] [drm] nouveau 0000:f0:10.0: ... BIOS checksum invalid
May 15 01:01:10 freyja kernel: [   10.397270] [drm] nouveau 0000:f0:10.0: Attempting to load BIOS image from PCIROM
May 15 01:01:10 freyja kernel: [   10.412406] [drm] nouveau 0000:f0:10.0: ... BIOS signature not found
May 15 01:01:10 freyja kernel: [   10.417552] [drm] nouveau 0000:f0:10.0: Using BIOS image from PRAMIN
May 15 01:01:10 freyja kernel: [   10.466924] [drm] nouveau 0000:f0:10.0: BMP BIOS found
May 15 01:01:10 freyja kernel: [   10.471646] [drm] nouveau 0000:f0:10.0: BMP version 5.39
May 15 01:01:10 freyja kernel: [   10.476408] [drm] nouveau 0000:f0:10.0: Bios version 04.34.20.19
May 15 01:01:10 freyja kernel: [   10.481141] [drm] nouveau 0000:f0:10.0: Found Display Configuration Block version 2.2
May 15 01:01:10 freyja kernel: [   10.490332] [drm] nouveau 0000:f0:10.0: Raw DCB entry 0: 01100102 00000000
May 15 01:01:10 freyja kernel: [   10.495056] [drm] nouveau 0000:f0:10.0: Raw DCB entry 1: 01000100 000088b8
May 15 01:01:10 freyja kernel: [   10.499659] [drm] nouveau 0000:f0:10.0: Raw DCB entry 2: 02110212 11b00000
May 15 01:01:10 freyja kernel: [   10.504234] [drm] nouveau 0000:f0:10.0: Raw DCB entry 3: 02010210 11b088b8
May 15 01:01:10 freyja kernel: [   10.508838] [drm] nouveau 0000:f0:10.0: Raw DCB entry 4: 02010211 11b00003
May 15 01:01:10 freyja kernel: [   10.513706] [drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 0 at offset 0x020A
May 15 01:01:10 freyja kernel: [   10.547388] [drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 1 at offset 0x0457
May 15 01:01:10 freyja kernel: [   10.556131] [drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 2 at offset 0x059D
May 15 01:01:10 freyja kernel: [   10.564761] [drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 3 at offset 0x0723
May 15 01:01:10 freyja kernel: [   10.573488] [drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 4 at offset 0x0740
May 15 01:01:10 freyja kernel: [   10.582329] [drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 5 at offset 0x075D
May 15 01:01:10 freyja kernel: [   10.599427] [drm] nouveau 0000:f0:10.0: Parsing VBIOS init table 6 at offset 0x08E2
May 15 01:01:10 freyja kernel: [   10.635233] [TTM] Zone  kernel: Available graphics memory: 609784 kiB.
May 15 01:01:10 freyja kernel: [   10.640736] [drm] nouveau 0000:f0:10.0: 64 MiB VRAM
May 15 01:01:10 freyja kernel: [   10.657097] [drm] nouveau 0000:f0:10.0: 64 MiB GART (aperture)
May 15 01:01:10 freyja kernel: [   10.662541] [drm] nouveau 0000:f0:10.0: Allocating FIFO number 0
May 15 01:01:10 freyja kernel: [   10.668951] [drm] nouveau 0000:f0:10.0: nouveau_channel_alloc: initialised FIFO 0
May 15 01:01:10 freyja kernel: [   10.678762] [drm] nouveau 0000:f0:10.0: Initial CRTC_OWNER is 0
May 15 01:01:10 freyja kernel: [   10.684222] [drm] nouveau 0000:f0:10.0: Detected a DVI-I connector
May 15 01:01:10 freyja kernel: [   10.689702] [drm] nouveau 0000:f0:10.0: Detected a DVI-I connector
May 15 01:01:10 freyja kernel: [   10.695849] [drm] nouveau 0000:f0:10.0: Detected a TV connector
May 15 01:01:10 freyja kernel: [   10.703132] [drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on tmds encoder (output 0)
May 15 01:01:10 freyja kernel: [   10.713152] [drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on vga encoder (output 1)
May 15 01:01:10 freyja kernel: [   10.723157] [drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on tmds encoder (output 2)
May 15 01:01:10 freyja kernel: [   10.735303] [drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on vga encoder (output 3)
May 15 01:01:10 freyja kernel: [   10.745292] [drm] nouveau 0000:f0:10.0: Setting dpms mode 3 on TV encoder (output 4)
May 15 01:01:10 freyja kernel: [   10.931817] composite sync not supported
May 15 01:01:10 freyja kernel: [   10.963409] [drm] nouveau 0000:f0:10.0: Load detected on output B
May 15 01:01:10 freyja kernel: [   10.968590] [drm] nouveau 0000:f0:10.0: allocated 720x576 fb: 0x49000, bo c000000049f1fa00
May 15 01:01:10 freyja kernel: [   10.988557] Console: switching to colour dummy device 80x25
May 15 01:01:10 freyja kernel: [   10.991886] Trying to free nonexistent resource <0000000098004000-000000009807bfff>
May 15 01:01:10 freyja kernel: [   10.992864] Console: switching to colour frame buffer device 90x36
May 15 01:01:10 freyja kernel: [   11.003430] [drm] nouveau 0000:f0:10.0: Setting dpms mode 0 on TV encoder (output 4)
May 15 01:01:10 freyja kernel: [   11.003440] [drm] nouveau 0000:f0:10.0: Output TV-1 is running on CRTC 1 using output B
May 15 01:01:10 freyja kernel: [   11.004528] fb0: nouveaufb frame buffer device
May 15 01:01:10 freyja kernel: [   11.004540] registered panic notifier
May 15 01:01:10 freyja kernel: [   11.004560] [drm] Initialized nouveau 0.0.15 20090420 for 0000:f0:10.0 on minor 0

(由于机器时间,时间有偏差,我没有穿越)

答案2

就我而言,我能够使用 nouveau 驱动程序,但禁用了加速。

要禁用加速 - 请参阅这篇 Linux MINT 帖子。总结:

创建一个文件/etc/modprobe.d/nouveau.conf并添加行options nouveau noaccel=1

执行此操作后,G5 启动到启动显示管理器的位置,此时屏幕再次变为空白,并显示以下消息/var/log/syslog

9 月 9 日 12:04:44 alexis /usr/bin/dbus-launch[840]:gnome-session-is-accelerated:没有硬件 3D 支持。
9 月 9 日 12:04:44 alexis /usr/bin/dbus-launch[840]:gnome-session-check-accelerated:助手退出,代码为 256

经过一些研究,我发现 gnome 会话管理器可能会在没有 3D 加速的情况下被破坏 - 请参阅此启动板错误报告

因此,我切换到xdm显示管理器和lxde桌面:

sudo apt-get install xdm lxde

这些给了我一个功能性的图形登录和桌面。

答案3

如果 PPC Mac 可以通过网络访问,还有另一种方法无需安装 CD:

  • 只需启动它并通过 SSH 连接到它
  • 编辑
    /etc/modprobe.d/blacklist.local.conf
  • 跑步
    更新 initramfs -u -k 全部
  • 初始化6

就是这样!

答案4

只是在黑暗中尝试一下,但尝试使用 CD 上的高级设置并选择目标 initrd,也许还选择 lilo 作为引导加载程序(较旧的计算机也许较旧的引导加载程序会有所帮助)。最糟糕的情况是您学习如何使用高级设置:P

相关内容