Re: yaboot has kicked my butt - 5 times?!

Mark Knecht <[email protected]> Thu, 23 Sep 2010 13:41:40 -0700
Newsgroups gmane.linux.gentoo.ppc
Message-ID <[email protected]>
On Thu, Sep 23, 2010 at 1:02 PM, Joseph Jezak <[email protected]> wrote:
> =C2=A0On 09/23/10 12:17, Mark Knecht wrote:
>> On Thu, Sep 23, 2010 at 7:10 AM, Joseph Jezak <[email protected]> wrote:
>> <SNIP>
>>> mtab is generated on boot as you mount devices. It's not the problem he=
re.
>>>
>>> Can you try adding this line to your yaboot config? It will make the
>>> system boot directly into a shell instead of starting init:
>>> ### Put this in the kernel section
>>> append=3D"init=3D/bin/bash"
>>>
>>> Once this boots, does hda* exist in /dev? How about /dev/null and /dev/=
zero?
>>>
>>> -Joe
>> OK, so I did it like this:
>>
>> boot=3D/dev/hda2
>> #device=3D/pci@f4000000/ata-6@d/disk@0:
>> device=3Dhd:
>> timeout=3D30
>> install=3D/usr/lib/yaboot/yaboot
>> magicboot=3D/usr/lib/yaboot/ofboot
>>
>> image=3D/boot/kernel-2.6.34-gentoo-r1
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 label=3DGentoo-2.6.34-r1
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 append=3D"init=3D/bin/bash"
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 partition=3D4
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 root=3D/dev/hda4
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 read-only
>>
>> and ran ybin -v
>>
>> When I reboot I have no keyboard and cannot probe around. The screen is =
showing
>>
>> (none) / #
>>
>> The kernel boots with printk timing info on each line, and then
>> finishes with two messages:
>>
>> bash: cannot set terminal process group (-1): Inappropriate ioctl for de=
vice
>> bash: no job control in this shell
>>
>> and at that point the machine is hung.
>>
>> So this seems like it's just not finding the hardware at this point?
>> No disk? No keyboard?
>>
>> If you want to see the whole screen I can post another screen shot on Fl=
ickr.
>>
>> Thanks for the interest and help. I'm sure we'll figure it out.
>>
>> - Mark
>>
>>
> Okay, that all looks fine. Are you sure that you built USB keyboard
> support into your kernel? This might be why it wouldn't let you type. I
> wouldn't mind seeing another screen shot either. Once you get keyboard
> support working, check to see if those device nodes exist.
>
> -Joe

Two pictures posted:

Top half of boot screen:
http://www.flickr.com/photos/29328985@N03/5018717650/

Bottom half of boot screen
http://www.flickr.com/photos/29328985@N03/5018718202/

Full USB HID support is built as modular. I don't seem to be able to
change it to built in. make menuconfig is only giving me modular or
not set.  (Kernel config USB info this is set is at the end)

lspci says the controller is an Apple controller and the driver is
'macio' which seems sensible. I see it in the boot screen I think.
That driver is built in, but the PATA_MACIO driver is not:

(chroot) livecd linux # cat .config | grep MACIO
# CONFIG_PATA_MACIO is not set
CONFIG_ADB_MACIO=3Dy
(chroot) livecd linux #

Maybe I've mistakenly left the right disk driver out of the kernel
thinking the hardware was SATA based? Does the PATA_MACIO option need
to be set for the Mac Mini? I don't understand how this kernel config
would have ever worked befor unless I'm confusing where it came from.

Does the append=3D"init=3D/bin/bash" command allow the kernel to load
drivers or do I need to build USBHID into the kernel to get the
keyboard to work at this level of boot?

Thanks,
Mark

(chroot) livecd linux # lspci -k
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
        Kernel driver in use: agpgart-uninorth
0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV280
[Radeon 9200] (rev 01)
        Subsystem: ATI Technologies Inc RV280 [Radeon 9200]
        Kernel driver in use: radeonfb
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
0001:10:12.0 Network controller: Broadcom Corporation BCM4318
[AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
        Subsystem: Apple Computer Inc. Device 4318
0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
        Kernel driver in use: macio
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
        Kernel driver in use: ohci_hcd
0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43)
        Subsystem: NEC Corporation Hama USB 2.0 CardBus
        Kernel driver in use: ohci_hcd
0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43)
        Subsystem: NEC Corporation Hama USB 2.0 CardBus
        Kernel driver in use: ohci_hcd
0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
        Subsystem: NEC Corporation USB 2.0
        Kernel driver in use: ehci_hcd
0002:20:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
0002:20:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
        Kernel driver in use: ide-pmac
0002:20:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2
FireWire (rev 81)
        Subsystem: Apple Computer Inc. iBook G4 2004
        Kernel driver in use: ohci1394
0002:20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC
(Sun GEM) (rev 80)
        Kernel driver in use: gem
(chroot) livecd linux #



(chroot) livecd linux # cat .config | grep USB | grep =3D
CONFIG_BT_HCIBFUSB=3Dm
CONFIG_USB_CATC=3Dm
CONFIG_USB_KAWETH=3Dm
CONFIG_USB_PEGASUS=3Dm
CONFIG_USB_RTL8150=3Dm
CONFIG_USB_USBNET=3Dm
CONFIG_USB_NET_AX8817X=3Dm
CONFIG_USB_NET_CDCETHER=3Dm
CONFIG_USB_NET_NET1080=3Dm
CONFIG_USB_NET_MCS7830=3Dm
CONFIG_USB_NET_ZAURUS=3Dm
CONFIG_SND_USB=3Dy
CONFIG_USB_HID=3Dm
CONFIG_USB_HIDDEV=3Dy
CONFIG_USB_SUPPORT=3Dy
CONFIG_USB_ARCH_HAS_HCD=3Dy
CONFIG_USB_ARCH_HAS_OHCI=3Dy
CONFIG_USB_ARCH_HAS_EHCI=3Dy
CONFIG_USB=3Dm
CONFIG_USB_DEVICEFS=3Dy
CONFIG_USB_DEVICE_CLASS=3Dy
CONFIG_USB_MON=3Dm
CONFIG_USB_EHCI_HCD=3Dm
CONFIG_USB_EHCI_ROOT_HUB_TT=3Dy
CONFIG_USB_EHCI_HCD_PPC_OF=3Dy
CONFIG_USB_OHCI_HCD=3Dm
CONFIG_USB_OHCI_HCD_PPC_OF_BE=3Dy
CONFIG_USB_OHCI_HCD_PPC_OF=3Dy
CONFIG_USB_OHCI_HCD_PCI=3Dy
CONFIG_USB_OHCI_BIG_ENDIAN_DESC=3Dy
CONFIG_USB_OHCI_BIG_ENDIAN_MMIO=3Dy
CONFIG_USB_OHCI_LITTLE_ENDIAN=3Dy
CONFIG_USB_UHCI_HCD=3Dm
CONFIG_USB_U132_HCD=3Dm
CONFIG_USB_STORAGE=3Dm
CONFIG_USB_STORAGE_FREECOM=3Dm
CONFIG_USB_STORAGE_ISD200=3Dm
CONFIG_USB_STORAGE_USBAT=3Dm
CONFIG_USB_STORAGE_SDDR09=3Dm
CONFIG_USB_STORAGE_SDDR55=3Dm
CONFIG_USB_STORAGE_JUMPSHOT=3Dm
CONFIG_USB_SERIAL=3Dm
CONFIG_USB_SERIAL_GENERIC=3Dy
CONFIG_USB_SERIAL_AIRCABLE=3Dm
CONFIG_USB_SERIAL_IPW=3Dm
CONFIG_USB_SERIAL_MOS7720=3Dm
CONFIG_USB_SERIAL_MOS7840=3Dm
CONFIG_USB_SERIAL_SIERRAWIRELESS=3Dm
CONFIG_USB_SERIAL_OMNINET=3Dm
CONFIG_USB_FTDI_ELAN=3Dm
CONFIG_USB_APPLEDISPLAY=3Dm
(chroot) livecd linux #