Trials and tribulations of upgrading 2.1 -> 2.2 w/ apt-get, and Q's

Robert M. Fuhrer yellowdog-general@lists.terrasoftsolutions.com
Sun Apr 14 11:25:01 2002


I thought I'd post some notes on my attempts to upgrade a YDL 2.1
system (PowerTower Pro) to 2.2 from CD-ROM.  Hope this is of some use
to others.

[Please note there are some questions at the end...]

I purchased 2.2 on CD-ROM to (a) get 2.2 a bit faster and (b) to pitch
in with a little support for the open-source Linux community.  Well,
it worked, partly, but only after considerable fiddling.

As y'all know, the 2.2 CD-ROM's aren't really for upgrading, but I
thought it should be possible somehow, so I forged on.

After downloading and installing the apt RPM, I noticed apt-cdrom, but
the 2.2 CD-ROM's don't have the index files that apt needs.  Hmmm.
Too bad.

Next, I tried apt-get to yellowdoglinux, but that was *painfully*
slow, even over DSL (I was getting < 10KB/sec).  I didn't see a list
of mirrors anywhere.  Is there one?  I know about the list of FTP
mirrors, but I couldn't tell whether they're supposed to work w/ apt.

Anyway, I've got these nice CD's which clearly have everything I 
need, so why not use those with apt, eh?

I tried copying the RPM's from the CD's to /var/cache/apt/archives,
and then found that the names were subtly wrong (not what the index
that apt-get pulled from yellowdoglinux.com indicated). Unfortunate!

I tried a couple of hacks to "fix" the names (noticing an apparent
pattern of pkgName_version-release_ppc.rpm, which turned out to be
only sort of correct), but they didn't work for all the packages.

Then I saw that apt-get can list the source URL's and destination file
names for the packages it needs.  Turned out that the source names
matched the package names on the CD-ROM's, so I just made a little
script that read the source/dest pairs from apt-get's output and
copied the indicated files from the CD to /var/cache/apt/archives.

This worked!

There were a few updates (5MB or so) that weren't on the CD-ROM, but
that took about 5 minutes as opposed to 12 hours to download.

I then experienced some problems after rebooting, when using my
2.4.10-vintage kernel:

  - modutils complained about mismatched version of module object
    files (as someone else previously reported)
  - networking was simply hosed up (w/ no change in config from 2.1).
    Couldn't even ping localhost, and attempts to fix failed.

The 2.4.18-0.8a "vmlinux" kernel and manually updating the kernel
module set from the install CD-ROM fixed these.

****> However, I now have these problems:

 1) I haven't figured out how to get anything better than VGA
    resolution on the text console with my Radeon 7000 card.
    [N.B.: This worked fine on YDL 2.1 with this video card.]

    1a) Any clues what boot args to use to set the monitor's
        resolution to 1600x1200 (or at least 1280x1024) at boot time?

        I used to use video:vmode:20,cmode:8 with YDL 2.1, but that no
        longer works with 2.2...

        video=radeon:vmode:20 gives me a screen, but not 1280x1024
        (more like VGA resolution).

        In fact, if I specify kernel args like "video:vmode:20" in
        BootX, the console goes black *very* early in the boot process
        (say, after a couple of seconds), and never comes back.  I
        have to give the 3-fingered salute to reboot.

        Specifying nothing gives me the VGA(?) resolution I now have
        on the console.

    1b) Is there a way to switch resolutions outside X Windows after
        booting? ("vmode" used to work, but no longer...)

 2) I can't get into X Windows.

    2a) The display goes black, and never comes back.

        It looks from the log file like it gets stalled (or dies)
        during/just after the PCI scan. I've appended the output of
        "cat /proc/pci" and the contents of both /etc/X11/XF86Config-4
        and /var/log/XFree86.0.log to this message.

    2b) Trying to switch consoles using Alt-Fn (or Ctl-Alt-Fn) does
        nothing!

        I suspect that my X keyboard mapping is buggered, but I think
        the keyboard section of my XF86Config-4 looks reasonable (see
        below).  On the other hand, I saw somewhere on the Web that
        perhaps the XkbModel option is no longer used with XFree86; is
        that true?

    2c) I'm using an old ADB keyboard (an Alps GlidePoint circa 1997
        with an embedded trackpad that emulates an ADB mouse).  Should
        I be using "/dev/mouse" or "/dev/adbmouse" for my mouse device
        file?

 3) For some reason the Mac Cmd key no longer functions as the "alt"
    key on the console as it used to in YDL 2.1 w/ kernel 2.4.10.

    That function is now bound to the Mac option key (incidentally
    labelled "alt" on the keycap).

    Is this normal for YDL 2.2/kernel 2.4.18?  If so, why no mention
    of this in the release docs?  Took me a couple of minutes of
    head-scratching to figure this out...

TIA for any help!

Cheers,
  -- Bob

 -------------------------------------------------------------
 >               "Smooth Jazz" is no jazz at all...          <
 > Dr. Robert M. Fuhrer                   rfuhrer@ba-dsg.net <
 > IBM T.J. Watson Research Center    rfuhrer@watson.ibm.com <
 -------------------------------------------------------------

==============================================================================
$ cat /proc/pci
PCI devices found:
  Bus  0, device  11, function  0:
    Host bridge: Apple Computer Inc. Bandit PowerPC host bridge (rev 3).
      Master Capable.  Latency=32.  
  Bus  0, device  16, function  0:
    Class ff00: Apple Computer Inc. Grand Central I/O (rev 2).
      Master Capable.  Latency=32.  
      Non-prefetchable 32 bit memory at 0xf3000000 [0xf301ffff].
  Bus  1, device  11, function  0:
    Host bridge: Apple Computer Inc. Bandit PowerPC host bridge (#2) (rev 3).
      Master Capable.  Latency=32.  
  Bus  1, device  13, function  0:
    USB Controller: OPTi Inc. 82C861 (rev 16).
      IRQ 27.
      Master Capable.  Latency=32.  
      Non-prefetchable 32 bit memory at 0x90000000 [0x90000fff].
  Bus  1, device  14, function  0:
    VGA compatible controller: ATI Technologies Inc Radeon VE QY (rev 0).
      IRQ 28.
      Master Capable.  Latency=32.  Min Gnt=8.
      Prefetchable 32 bit memory at 0x98000000 [0x9fffffff].
      I/O at 0xff7fe400 [0xff7fe4ff].
      Non-prefetchable 32 bit memory at 0x90010000 [0x9001ffff].

==============================================================================
# XF86Config-4 (XFree86 server configuration file) generated by Yi, the
# Yellow Dog Linux installation tool.
#
# Edit this file with caution, and see the XF86Config manual page.
# (Type "man XF86Config" at the shell prompt.)

Section "ServerLayout"
        Identifier      "XFree86 Configured"
        Screen          0 "Screen0" 0 0
        InputDevice     "Mouse0" "CorePointer"
        InputDevice     "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath         "/usr/X11R6/lib/X11/rgb"
        FontPath        "unix/:7100" # local font server
EndSection

Section "Module"
        Load  "GLcore"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "ddc"
        Load  "bitmap"
        Load  "freetype"
        Load  "speedo"
        Load  "type1"
        Load  "vbe"
        Load  "int10"
        Load  "v4l"
EndSection

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver          "keyboard"

        Option          "CustomKeycodes"
        Option          "XkbModel"      "macintosh_old"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Mouse0"
        Driver          "mouse"
        Option          "ZAxisMapping"  "4 5"
        Option          "Protocol"      ""
        Option          "Device"        "/dev/mouse"
EndSection

Section "Monitor"
        Identifier      "Sony-20sfII"
        VendorName      "Sony"
        ModelName       "CDP-20sfII"

        HorizSync       30-85  # taken out of the Sony CDP-20sfII manual
        VertRefresh     48-150

    # 1024x768 @ 70 Hz, 56.5 kHz hsync
    Modeline "1024x768"    75    1024 1048 1184 1328   768  771  777  806 -hsync -vsync
    # 1024x768 @ 76 Hz, 62.5 kHz hsync
    Modeline "1024x768"    85    1024 1032 1152 1360   768  784  787  823
    # 1024x768 @ 85 Hz, 70.24 kHz hsync
    Modeline "1024x768"   98.9  1024 1056 1216 1408   768 782 788 822 -HSync -VSync
    # 1024x768 @ 100Hz, 80.21 kHz hsync
    Modeline "1024x768"   115.5  1024 1056 1248 1440  768  771  781  802 -HSync -VSync

    # 1152x864 @ 70 Hz, 62.4 kHz hsync
    Modeline  "1152x864"   92    1152 1208 1368 1474   864  865  875  895

    # 1152x864 @ 78 Hz, 70.8 kHz hsync
    Modeline "1152x864"   110   1152 1240 1324 1552   864  864  876  908
    # 1152x864 @ 84 Hz, 76.0 kHz hsync
    Modeline "1152x864"   135    1152 1464 1592 1776   864  864  876  908
    # 1152x864 @ 100 Hz, 89.62 kHz hsync
    Modeline "1152x864"   137.65 1152 1184 1312 1536   864  866  885  902 -HSync -VSync

    # 1280x1024 @ 70 Hz, 74.59 kHz hsync
    Modeline "1280x1024"  126.5 1280 1312 1472 1696  1024 1032 1040 1068 -HSync -VSync
    # 1280x1024 @ 74 Hz, 78.85 kHz hsync
    Modeline "1280x1024"  135    1280 1312 1456 1712  1024 1027 1030 1064
    # 1280x1024 @ 76 Hz, 81.13 kHz hsync
    Modeline "1280x1024"  135    1280 1312 1416 1664  1024 1027 1030 1064
    # 1280x1024 @ 85 Hz, 91.15 kHz hsync
    Modeline "1280x1024"  157.5  1280 1344 1504 1728  1024 1025 1028 1072 +HSync +VSync
    # 1280x1024 @ 100 Hz, 107.16 kHz hsync
    Modeline "1280x1024"  181.75 1280 1312 1440 1696  1024 1031 1046 1072 -HSync -VSync

    # 1600x1200 @ 70 Hz, 87.50 kHz hsync
    Modeline "1600x1200"  189    1600 1664 1856 2160  1200 1201 1204 1250 -HSync -VSync
    # 1600x1200 @ 75 Hz, 93.75 kHz hsync
    Modeline "1600x1200"  202.5  1600 1664 1856 2160  1200 1201 1204 1250 +HSync +VSync
    # 1600x1200 @ 85 Hz, 105.77 kHz hsync
    Modeline "1600x1200"  220    1600 1616 1808 2080  1200 1204 1207 1244 +HSync +VSync
EndSection

Section "Device"
        Identifier      "ATI Radeon"
        Driver          "ati"
        BusID           "PCI:1:14:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "ATI Radeon"
        Monitor    "Sony-20sfII"
        DefaultDepth 24
        SubSection "Display"
                Depth   8
                Modes "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth   15
                Modes "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth   16
                Modes "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth   24
                Modes "1280x1024"
        EndSubSection
EndSection

==============================================================================

XFree86 Version 4.2.0 (echo Yellow Dog Linux release: 4.2.0-6.30d) / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 23 January 2002
        If the server is older than 6-12 months, or if your card is
        newer than the above date, look for a newer version before
        reporting problems.  (See http://www.XFree86.Org/)
Build Operating System: Linux 2.4.18-0.8asmp ppc [ELF] 
Build Host: kaelta.terraplex.com
 
Module Loader present
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/XFree86.0.log", Time: Sun Apr 14 06:54:48 2002
(==) Using config file: "/etc/X11/XF86Config-4"
(==) ServerLayout "XFree86 Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Sony-20sfII"
(**) |   |-->Device "ATI Radeon"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) Option "XkbModel" "macintosh_old"
(**) XKB: model: "macintosh_old"
(**) Option "XkbLayout" "us"
(**) XKB: layout: "us"
(**) Option "CustomKeycodes"
(**) Keyboard: CustomKeycode enabled
(WW) The directory "/usr/share/fonts/default/TrueType" does not exist.
        Entry deleted from font path.
(**) FontPath set to "unix/:7100,/usr/lib/X11/fonts/misc:unscaled,/usr/lib/X11/fonts/75dpi/:unscaled,/usr/lib/X11/fonts/100dpi/:unscaled,/usr/lib/X11/fonts/misc,/usr/lib/X11/fonts/cyrillic,/usr/lib/X11/fonts/Type1,/usr/lib/X11/fonts/Speedo,/usr/lib/X11/fonts/75dpi,/usr/lib/X11/fonts/100dpi,/usr/share/fonts/default/Type1"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(--) using VT number 7

(WW) Open APM failed (/dev/apm_bios) (No such device)
(II) Module ABI versions:
        XFree86 ANSI C Emulation: 0.1
        XFree86 Video Driver: 0.5
        XFree86 XInput driver : 0.3
        XFree86 Server Extension : 0.1
        XFree86 Font Renderer : 0.3
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
        compiled for 4.2.0, module version = 1.0.0
        Module class: XFree86 Font Renderer
        ABI class: XFree86 Font Renderer, version 0.3
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="The XFree86 Project"
        compiled for 4.2.0, module version = 0.1.0
        ABI class: XFree86 Video Driver, version 0.5
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:0b:0: chip 106b,0001 card 0000,0000 rev 03 class 06,00,00 hdr 00
(II) PCI: 00:10:0: chip 106b,0002 card 0000,0000 rev 02 class ff,00,00 hdr 00
(II) PCI: 01:0b:0: chip 106b,0001 card 0000,0000 rev 03 class 06,00,00 hdr 00
(II) PCI: 01:0d:0: chip 1045,c861 card 1045,c861 rev 10 class 0c,03,10 hdr 00
(II) PCI: 01:0e:0: chip 1002,5159 card 1002,0908 rev 00 class 03,00,00 hdr 00
(II) PCI: End of PCI scan
(II) LoadModule: "scanpci"
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor="The XFree86 Project"
        compiled for 4.2.0, module version = 0.1.0
        ABI class: XFree86 Video Driver, version 0.5
(II) UnloadModule: "scanpci"
(II) Unloading /usr/X11R6/lib/modules/libscanpci.a
(II) Host-to-PCI bridge:
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:11:0), (-1,0,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus 0 I/O range:
        [0] -1  0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
        [0] -1  0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
        [0] -1  0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 1: bridge is at (1:11:0), (-1,1,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus 1 I/O range:
        [0] -1  0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 1 non-prefetchable memory range:
        [0] -1  0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 1 prefetchable memory range:
        [0] -1  0x00000000 - 0xffffffff (0x0) MX[B]
==============================================================================