[Cbe-oss-dev] Help installing a custom kernel on PS3
Andrea
mariofutire at googlemail.com
Tue Jan 5 09:36:21 EST 2010
On 04/01/10 19:30, Geoff Levand wrote:
> On 01/01/2010 07:20 AM, Andrea wrote:
>> On 01/01/10 15:01, Andrea wrote:
>>> On 01/01/10 03:30, Geoff Levand wrote:
>>>> On 12/31/2009 12:40 PM, Andrea wrote:
>>>>> How would I install "vmlinuz"? I've tried "make zImage", but the file zImage does not look like a
>>>>> bootable kernel.
>>>>
>>>> What happens if you try to boot or kexec it?
>>>
>>> I've tried to use kexec and this is what I get
>>>
>>> [root at ps3 boot]# kexec -l /boot/vmlinux-2.6.32.2 --append="ro root=/dev/mapper/vg_ps3-lv_root
>>> video=ps3fb:mode:3" --initrd=/boot/initramfs-2.6.32.2.img
>>> get_memory_ranges(): Unsupported platform
>>> Could not get memory layout
>>>
>>> This is the version
>>>
>>> kexec-tools-2.0.0-28.fc12.ppc.rpm
>>>
>>> Whose fault is it?
>>
>> I guess it's Fedora's! there is not a kexec-tools.ppc64.
>>
>> I recompiled kexec 2.0.1 for ppc64 and so far it worked.
>
> Is the problem the version of kexec-tools or the 32 bit
> build? Both 32 and 64 bit builds of kexec-tools should work
> on PS3.
I configured it with (build, target, host = ppc) and it hit this error.
I don't see how get_memory_ranges() from kexec-ppc.c could ever work.
Maybe it should not even compile.
from kexec-ppc.c
/* Return a sorted list of memory ranges. */
int get_memory_ranges(struct memory_range **range, int *ranges,
unsigned long kexec_flags)
{
#ifdef WITH_GAMECUBE
int memory_ranges = 0;
/* RAM - lowmem used by DOLs - framebuffer */
memory_range[memory_ranges].start = 0x00003000;
memory_range[memory_ranges].end = 0x0174bfff;
memory_range[memory_ranges].type = RANGE_RAM;
memory_ranges++;
*range = memory_range;
*ranges = memory_ranges;
return 0;
#else
fprintf(stderr, "%s(): Unsupported platform\n", __func__);
return -1;
#endif
}
I guess I should check with configure options kexec-tool.ppc uses, to see if there is a change it
could ever work.
>
> After you find out, please create a Fedora bug report and
> put me on the CC list:
>
> http://bugzilla.redhat.com/
>
> -Geoff
>
>
I had already reported it
https://bugzilla.redhat.com/show_bug.cgi?id=551875
More information about the cbe-oss-dev
mailing list