* booting 2.6.4 from OpenFirmware
@ 2004-03-30 22:18 Martin Schaffner
2004-03-30 22:58 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 7+ messages in thread
From: Martin Schaffner @ 2004-03-30 22:18 UTC (permalink / raw)
To: linux-kernel
Hi,
I try to boot linux-2.6.4 from OpenFirmware on my Apple iBook2 (dual
USB). I'm using the image named "vmlinux.elf-pmac". While linux-2.4.25
boots fine, linux-2.6.4 doesn't without the following modifications:
http://membres.lycos.fr/schaffner/howto/linux26-boot-of.txt
(I found this procedure by trial and error, by mixing stuff from 2.4
into the build of 2.6.)
If I try to boot the stock kernel, OpenFirmware tells me "Claim
failed", and returns to the command prompt.
Does anybody have an idea what is the cause of this?
Thanks,
Martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: booting 2.6.4 from OpenFirmware
2004-03-30 22:18 booting 2.6.4 from OpenFirmware Martin Schaffner
@ 2004-03-30 22:58 ` Benjamin Herrenschmidt
2004-03-31 11:58 ` Marco d'Itri
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2004-03-30 22:58 UTC (permalink / raw)
To: Martin Schaffner; +Cc: Linux Kernel list
On Wed, 2004-03-31 at 08:18, Martin Schaffner wrote:
> Hi,
>
> I try to boot linux-2.6.4 from OpenFirmware on my Apple iBook2 (dual
> USB). I'm using the image named "vmlinux.elf-pmac". While linux-2.4.25
> boots fine, linux-2.6.4 doesn't without the following modifications:
>
> http://membres.lycos.fr/schaffner/howto/linux26-boot-of.txt
>
> (I found this procedure by trial and error, by mixing stuff from 2.4
> into the build of 2.6.)
>
> If I try to boot the stock kernel, OpenFirmware tells me "Claim
> failed", and returns to the command prompt.
>
> Does anybody have an idea what is the cause of this?
That's strange, I do such netbooting everyday on a wide range of
machines without trouble. Are you using some kind of cross compiler ?
Maybe there are some issues with cross compiling of the boot wrapper...
Ben.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: booting 2.6.4 from OpenFirmware
2004-03-30 22:58 ` Benjamin Herrenschmidt
@ 2004-03-31 11:58 ` Marco d'Itri
2004-04-01 1:17 ` Martin Schaffner
2004-04-01 21:40 ` Olaf Hering
2 siblings, 0 replies; 7+ messages in thread
From: Marco d'Itri @ 2004-03-31 11:58 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Martin Schaffner, Linux Kernel list
On Mar 31, Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> > If I try to boot the stock kernel, OpenFirmware tells me "Claim
> > failed", and returns to the command prompt.
> >
> > Does anybody have an idea what is the cause of this?
>
> That's strange, I do such netbooting everyday on a wide range of
> machines without trouble. Are you using some kind of cross compiler ?
> Maybe there are some issues with cross compiling of the boot wrapper...
I experienced the same problem (2.4.x kernels would boot from OF, 2.6.x
would not) on my B50 machines, I may even have discussed it with you on
IRC.
I did not try to debug this further and I started using yaboot.
--
ciao, |
Marco | [5461 tro7jFYIQ7uH6]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: booting 2.6.4 from OpenFirmware
2004-03-30 22:58 ` Benjamin Herrenschmidt
2004-03-31 11:58 ` Marco d'Itri
@ 2004-04-01 1:17 ` Martin Schaffner
2004-04-01 15:17 ` Tom Rini
2004-04-01 21:40 ` Olaf Hering
2 siblings, 1 reply; 7+ messages in thread
From: Martin Schaffner @ 2004-04-01 1:17 UTC (permalink / raw)
To: linux-kernel
On 30.03.2004, at 23:58, Benjamin Herrenschmidt wrote:
> On Wed, 2004-03-31 at 08:18, Martin Schaffner wrote:
>> Hi,
>>
>> I try to boot linux-2.6.4 from OpenFirmware on my Apple iBook2 (dual
>> USB). I'm using the image named "vmlinux.elf-pmac". While linux-2.4.25
>> boots fine, linux-2.6.4 doesn't [...]
>>
>> If I try to boot the stock kernel, OpenFirmware tells me "Claim
>> failed", and returns to the command prompt.
>
> That's strange, I do such netbooting everyday on a wide range of
> machines without trouble. Are you using some kind of cross compiler ?
> Maybe there are some issues with cross compiling of the boot wrapper...
I WAS cross-compiling, but the problem persists when compiling
natively. I don't net-boot but load the image from a HFS+ partition. I
can't boot
http://membres.lycos.fr/schaffner/vmlinux.orig
which is a compilation of linux-2.6.4 with
http://membres.lycos.fr/schaffner/.config
I can, however, boot
http://membres.lycos.fr/schaffner/vmlinux.patched
which is the same after the following patch:
http://membres.lycos.fr/schaffner/boot-of-works.patch
Maybe the problem is specific to the model of the machine?
Thanks,
Martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: booting 2.6.4 from OpenFirmware
2004-04-01 1:17 ` Martin Schaffner
@ 2004-04-01 15:17 ` Tom Rini
0 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2004-04-01 15:17 UTC (permalink / raw)
To: Martin Schaffner; +Cc: linux-kernel
On Thu, Apr 01, 2004 at 02:17:24AM +0100, Martin Schaffner wrote:
>
> On 30.03.2004, at 23:58, Benjamin Herrenschmidt wrote:
>
> >On Wed, 2004-03-31 at 08:18, Martin Schaffner wrote:
> >>Hi,
> >>
> >>I try to boot linux-2.6.4 from OpenFirmware on my Apple iBook2 (dual
> >>USB). I'm using the image named "vmlinux.elf-pmac". While linux-2.4.25
> >>boots fine, linux-2.6.4 doesn't [...]
> >>
> >>If I try to boot the stock kernel, OpenFirmware tells me "Claim
> >>failed", and returns to the command prompt.
> >
> >That's strange, I do such netbooting everyday on a wide range of
> >machines without trouble. Are you using some kind of cross compiler ?
> >Maybe there are some issues with cross compiling of the boot wrapper...
>
> I WAS cross-compiling, but the problem persists when compiling
> natively. I don't net-boot but load the image from a HFS+ partition. I
> can't boot
>
> http://membres.lycos.fr/schaffner/vmlinux.orig
>
> which is a compilation of linux-2.6.4 with
>
> http://membres.lycos.fr/schaffner/.config
>
> I can, however, boot
>
> http://membres.lycos.fr/schaffner/vmlinux.patched
>
> which is the same after the following patch:
>
> http://membres.lycos.fr/schaffner/boot-of-works.patch
>
> Maybe the problem is specific to the model of the machine?
I suspect that there's some ELF sections which need to be dropped.
Can you do an objdump -x on the vmlinux.elf-pmac with and without that
patch and tell us which names are missing from the working one? Thanks.
--
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: booting 2.6.4 from OpenFirmware
2004-03-30 22:58 ` Benjamin Herrenschmidt
2004-03-31 11:58 ` Marco d'Itri
2004-04-01 1:17 ` Martin Schaffner
@ 2004-04-01 21:40 ` Olaf Hering
2004-04-02 3:22 ` Martin Schaffner
2 siblings, 1 reply; 7+ messages in thread
From: Olaf Hering @ 2004-04-01 21:40 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Martin Schaffner, Linux Kernel list
On Wed, Mar 31, Benjamin Herrenschmidt wrote:
> On Wed, 2004-03-31 at 08:18, Martin Schaffner wrote:
> > Hi,
> >
> > I try to boot linux-2.6.4 from OpenFirmware on my Apple iBook2 (dual
> > USB). I'm using the image named "vmlinux.elf-pmac". While linux-2.4.25
> > boots fine, linux-2.6.4 doesn't without the following modifications:
> >
> > http://membres.lycos.fr/schaffner/howto/linux26-boot-of.txt
> >
> > (I found this procedure by trial and error, by mixing stuff from 2.4
> > into the build of 2.6.)
> >
> > If I try to boot the stock kernel, OpenFirmware tells me "Claim
> > failed", and returns to the command prompt.
> >
> > Does anybody have an idea what is the cause of this?
>
> That's strange, I do such netbooting everyday on a wide range of
> machines without trouble. Are you using some kind of cross compiler ?
> Maybe there are some issues with cross compiling of the boot wrapper...
This is fixed. your options:
update to 2.6.5-rc3
disable modversions
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: booting 2.6.4 from OpenFirmware
2004-04-01 21:40 ` Olaf Hering
@ 2004-04-02 3:22 ` Martin Schaffner
0 siblings, 0 replies; 7+ messages in thread
From: Martin Schaffner @ 2004-04-02 3:22 UTC (permalink / raw)
To: Olaf Hering, linux-kernel
On 01.04.2004, at 16:17, Tom Rini wrote:
> On Thu, Apr 01, 2004 at 02:17:24AM +0100, Martin Schaffner wrote:
>>
>> On 30.03.2004, at 23:58, Benjamin Herrenschmidt wrote:
>>
>>> On Wed, 2004-03-31 at 08:18, Martin Schaffner wrote:
>>>> Hi,
>>>>
>>>> I try to boot linux-2.6.4 from OpenFirmware on my Apple iBook2 (dual
>>>> USB). I'm using the image named "vmlinux.elf-pmac". While
>>>> linux-2.4.25
>>>> boots fine, linux-2.6.4 doesn't [...]
>>>>
>>>> If I try to boot the stock kernel, OpenFirmware tells me "Claim
>>>> failed", and returns to the command prompt.
>>>
>>> That's strange, I do such netbooting everyday on a wide range of
>>> machines without trouble. Are you using some kind of cross compiler ?
>>> Maybe there are some issues with cross compiling of the boot
>>> wrapper...
>
> I suspect that there's some ELF sections which need to be dropped.
> Can you do an objdump -x on the vmlinux.elf-pmac with and without that
> patch and tell us which names are missing from the working one?
> Thanks.
http://membres.lycos.fr/schaffner/objdump-x-diff
The problem is probably that the image of 2.6.4 has two LOAD commands.
On 01.04.2004, at 22:40, Olaf Hering wrote:
> This is fixed. your options:
> update to 2.6.5-rc3
> disable modversions
Yes, 2.6.5-rc3 works. Thank you!
--
Martin Schaffner
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-04-02 2:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-30 22:18 booting 2.6.4 from OpenFirmware Martin Schaffner
2004-03-30 22:58 ` Benjamin Herrenschmidt
2004-03-31 11:58 ` Marco d'Itri
2004-04-01 1:17 ` Martin Schaffner
2004-04-01 15:17 ` Tom Rini
2004-04-01 21:40 ` Olaf Hering
2004-04-02 3:22 ` Martin Schaffner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox