Gentoo Archives: gentoo-ppc-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-ppc-user@l.g.o
Subject: Re: [gentoo-ppc-user] yaboot has kicked my butt - 5 times?!
Date: Thu, 23 Sep 2010 20:41:51
Message-Id: AANLkTi=-VGV0-Vpyd6F3Os3Tw-0UGZPXddCpqrzKe2Qv@mail.gmail.com
In Reply to: Re: [gentoo-ppc-user] yaboot has kicked my butt - 5 times?! by Joseph Jezak
1 On Thu, Sep 23, 2010 at 1:02 PM, Joseph Jezak <josejx@g.o> wrote:
2 >  On 09/23/10 12:17, Mark Knecht wrote:
3 >> On Thu, Sep 23, 2010 at 7:10 AM, Joseph Jezak <josejx@g.o> wrote:
4 >> <SNIP>
5 >>> mtab is generated on boot as you mount devices. It's not the problem here.
6 >>>
7 >>> Can you try adding this line to your yaboot config? It will make the
8 >>> system boot directly into a shell instead of starting init:
9 >>> ### Put this in the kernel section
10 >>> append="init=/bin/bash"
11 >>>
12 >>> Once this boots, does hda* exist in /dev? How about /dev/null and /dev/zero?
13 >>>
14 >>> -Joe
15 >> OK, so I did it like this:
16 >>
17 >> boot=/dev/hda2
18 >> #device=/pci@f4000000/ata-6@d/disk@0:
19 >> device=hd:
20 >> timeout=30
21 >> install=/usr/lib/yaboot/yaboot
22 >> magicboot=/usr/lib/yaboot/ofboot
23 >>
24 >> image=/boot/kernel-2.6.34-gentoo-r1
25 >>         label=Gentoo-2.6.34-r1
26 >>         append="init=/bin/bash"
27 >>         partition=4
28 >>         root=/dev/hda4
29 >>         read-only
30 >>
31 >> and ran ybin -v
32 >>
33 >> When I reboot I have no keyboard and cannot probe around. The screen is showing
34 >>
35 >> (none) / #
36 >>
37 >> The kernel boots with printk timing info on each line, and then
38 >> finishes with two messages:
39 >>
40 >> bash: cannot set terminal process group (-1): Inappropriate ioctl for device
41 >> bash: no job control in this shell
42 >>
43 >> and at that point the machine is hung.
44 >>
45 >> So this seems like it's just not finding the hardware at this point?
46 >> No disk? No keyboard?
47 >>
48 >> If you want to see the whole screen I can post another screen shot on Flickr.
49 >>
50 >> Thanks for the interest and help. I'm sure we'll figure it out.
51 >>
52 >> - Mark
53 >>
54 >>
55 > Okay, that all looks fine. Are you sure that you built USB keyboard
56 > support into your kernel? This might be why it wouldn't let you type. I
57 > wouldn't mind seeing another screen shot either. Once you get keyboard
58 > support working, check to see if those device nodes exist.
59 >
60 > -Joe
61
62 Two pictures posted:
63
64 Top half of boot screen:
65 http://www.flickr.com/photos/29328985@N03/5018717650/
66
67 Bottom half of boot screen
68 http://www.flickr.com/photos/29328985@N03/5018718202/
69
70 Full USB HID support is built as modular. I don't seem to be able to
71 change it to built in. make menuconfig is only giving me modular or
72 not set. (Kernel config USB info this is set is at the end)
73
74 lspci says the controller is an Apple controller and the driver is
75 'macio' which seems sensible. I see it in the boot screen I think.
76 That driver is built in, but the PATA_MACIO driver is not:
77
78 (chroot) livecd linux # cat .config | grep MACIO
79 # CONFIG_PATA_MACIO is not set
80 CONFIG_ADB_MACIO=y
81 (chroot) livecd linux #
82
83 Maybe I've mistakenly left the right disk driver out of the kernel
84 thinking the hardware was SATA based? Does the PATA_MACIO option need
85 to be set for the Mac Mini? I don't understand how this kernel config
86 would have ever worked befor unless I'm confusing where it came from.
87
88 Does the append="init=/bin/bash" command allow the kernel to load
89 drivers or do I need to build USBHID into the kernel to get the
90 keyboard to work at this level of boot?
91
92 Thanks,
93 Mark
94
95 (chroot) livecd linux # lspci -k
96 0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
97 Kernel driver in use: agpgart-uninorth
98 0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV280
99 [Radeon 9200] (rev 01)
100 Subsystem: ATI Technologies Inc RV280 [Radeon 9200]
101 Kernel driver in use: radeonfb
102 0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
103 0001:10:12.0 Network controller: Broadcom Corporation BCM4318
104 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
105 Subsystem: Apple Computer Inc. Device 4318
106 0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
107 Kernel driver in use: macio
108 0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
109 0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
110 0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
111 Kernel driver in use: ohci_hcd
112 0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43)
113 Subsystem: NEC Corporation Hama USB 2.0 CardBus
114 Kernel driver in use: ohci_hcd
115 0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43)
116 Subsystem: NEC Corporation Hama USB 2.0 CardBus
117 Kernel driver in use: ohci_hcd
118 0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
119 Subsystem: NEC Corporation USB 2.0
120 Kernel driver in use: ehci_hcd
121 0002:20:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
122 0002:20:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
123 Kernel driver in use: ide-pmac
124 0002:20:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2
125 FireWire (rev 81)
126 Subsystem: Apple Computer Inc. iBook G4 2004
127 Kernel driver in use: ohci1394
128 0002:20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC
129 (Sun GEM) (rev 80)
130 Kernel driver in use: gem
131 (chroot) livecd linux #
132
133
134
135 (chroot) livecd linux # cat .config | grep USB | grep =
136 CONFIG_BT_HCIBFUSB=m
137 CONFIG_USB_CATC=m
138 CONFIG_USB_KAWETH=m
139 CONFIG_USB_PEGASUS=m
140 CONFIG_USB_RTL8150=m
141 CONFIG_USB_USBNET=m
142 CONFIG_USB_NET_AX8817X=m
143 CONFIG_USB_NET_CDCETHER=m
144 CONFIG_USB_NET_NET1080=m
145 CONFIG_USB_NET_MCS7830=m
146 CONFIG_USB_NET_ZAURUS=m
147 CONFIG_SND_USB=y
148 CONFIG_USB_HID=m
149 CONFIG_USB_HIDDEV=y
150 CONFIG_USB_SUPPORT=y
151 CONFIG_USB_ARCH_HAS_HCD=y
152 CONFIG_USB_ARCH_HAS_OHCI=y
153 CONFIG_USB_ARCH_HAS_EHCI=y
154 CONFIG_USB=m
155 CONFIG_USB_DEVICEFS=y
156 CONFIG_USB_DEVICE_CLASS=y
157 CONFIG_USB_MON=m
158 CONFIG_USB_EHCI_HCD=m
159 CONFIG_USB_EHCI_ROOT_HUB_TT=y
160 CONFIG_USB_EHCI_HCD_PPC_OF=y
161 CONFIG_USB_OHCI_HCD=m
162 CONFIG_USB_OHCI_HCD_PPC_OF_BE=y
163 CONFIG_USB_OHCI_HCD_PPC_OF=y
164 CONFIG_USB_OHCI_HCD_PCI=y
165 CONFIG_USB_OHCI_BIG_ENDIAN_DESC=y
166 CONFIG_USB_OHCI_BIG_ENDIAN_MMIO=y
167 CONFIG_USB_OHCI_LITTLE_ENDIAN=y
168 CONFIG_USB_UHCI_HCD=m
169 CONFIG_USB_U132_HCD=m
170 CONFIG_USB_STORAGE=m
171 CONFIG_USB_STORAGE_FREECOM=m
172 CONFIG_USB_STORAGE_ISD200=m
173 CONFIG_USB_STORAGE_USBAT=m
174 CONFIG_USB_STORAGE_SDDR09=m
175 CONFIG_USB_STORAGE_SDDR55=m
176 CONFIG_USB_STORAGE_JUMPSHOT=m
177 CONFIG_USB_SERIAL=m
178 CONFIG_USB_SERIAL_GENERIC=y
179 CONFIG_USB_SERIAL_AIRCABLE=m
180 CONFIG_USB_SERIAL_IPW=m
181 CONFIG_USB_SERIAL_MOS7720=m
182 CONFIG_USB_SERIAL_MOS7840=m
183 CONFIG_USB_SERIAL_SIERRAWIRELESS=m
184 CONFIG_USB_SERIAL_OMNINET=m
185 CONFIG_USB_FTDI_ELAN=m
186 CONFIG_USB_APPLEDISPLAY=m
187 (chroot) livecd linux #

Replies

Subject Author
Re: [gentoo-ppc-user] yaboot has kicked my butt - 5 times?! Joseph Jezak <josejx@g.o>