Re: Wii Kernel experiments
Adam Shumann <[email protected]> Wed, 29 Jun 2011 15:37:36 -0500
| Newsgroups | gmane.linux.ports.game-cube.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============4100993134139681599== Content-Type: multipart/alternative; boundary=20cf30549613fbda8c04a6dfc205 --20cf30549613fbda8c04a6dfc205 Content-Type: text/plain; charset=ISO-8859-1 Can HBC even boot Kernel ELFs? I thought that BootMii had to be used? (I had to use BootMii when i had Whiite installed) Also, Please post updates on your progress, I am interested in porting Android to the Wii but dont know enough about the kernels to download and patch them. I learn by observing mostly, :) Adam On Wed, Jun 29, 2011 at 2:11 PM, Marcus Osdoba <[email protected] > wrote: > Hello Mailinglist, > > I'm trying to bring the recent Debian Squeeze on my new 2nd hand Wii. > > The mikep5 kernel from 2009 loaded via the homebrew channel and does a > wonderful job. I like to be more flexible with initramfs and > theoretically have access to all squeeze features form their kernel > (2.6.32+debianpatches). > > I had some success in crosscompiling ppc kernels on my amd64 box in the > following variants: > > A) Debian kernel sources + Debian patches + mikep5 patch > B) Debian kernel sources + Debian patches + wii backports from 2.6.38 > > Now I tried to boot the two kernels via HBC, but it gives an error > message, telling me, that this is not a Wii application. > > The file-tool indeed gives different outputs [1]. > > The question is, how to create a bootable elf kernel for the wii? > Or a bit more precise, what (ELF-)format does the HBC expect? > > > Basically I followed the instructions in the wiki [2]. But I used the > the Debian make-kpkg tool to create whole debs and extracted the kernel > image afterwards from this deb. The options for make-kpkg [3] are nearly > the same as those listed in wiki: > --initrd --cross-compile powerc-linux-gnu- --arch powerpc kernel_image > --append-to-version [...] > > One need to know, that I didn't use the devKitPPC-cross toolchain, but > the on-board Emdebian crosstoolchain from squeeze (Debian 4.4.5-8). > > Maybe someone on the list knows, what to do to create the appropriate > ELF format or run into the same traps? > > Many thanks for any hint and/or comment. > > Best regards, > Marcus > > > [1a] original mikep5 > ossy@debian-virtual > :~/embedded/tmp/gc-linux-mikep5-v2.6.32+whiite-1.10/apps/mikep5.110$ > file boot.elf > boot.elf: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 > (SYSV), statically linked, stripped > > [1b] cross compiled debian kernel with mikep5 patches > ossy@debian-virtual:~/embedded/tmp/boot$ file vmlinux-2.6.32+mikep5 > vmlinux-2.6.32+mikep5: ELF 32-bit MSB executable, PowerPC or cisco 4500, > version 1 (SYSV), statically linked, with unknown capability 0x41000000 > = 0x13676e75, with unknown capability 0x10000 = 0xb0402, not stripped > ossy@debian-virtual:~/embedded/tmp/boot$ file vmlinux-2.6.32+wiibackport > vmlinux-2.6.32+wiibackport: ELF 32-bit MSB executable, PowerPC or cisco > 4500, version 1 (SYSV), statically linked, with unknown capability > 0x41000000 = 0x13676e75, with unknown capability 0x10000 = 0xb0402, not > stripped > > [2] http://www.gc-linux.org/wiki/Building_a_GameCube_Linux_Kernel > [3] > > http://gitorious.org/dockstar/emdebian-multistrap/blobs/master/includes/make-kpkg.mk > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > gc-linux-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gc-linux-devel > --20cf30549613fbda8c04a6dfc205 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Can HBC even boot Kernel ELFs? I thought that BootMii had to be used? (I ha= d to use BootMii when i had Whiite installed)<div><br></div><div>Also, Plea= se post updates on your progress, I am interested in porting Android to the= Wii but dont know enough about the kernels to download and patch them. I l= earn by observing mostly, :)</div> <div><br></div><div>Adam<br><br><div class=3D"gmail_quote">On Wed, Jun 29, = 2011 at 2:11 PM, Marcus Osdoba <span dir=3D"ltr"><<a href=3D"mailto:marc= [email protected]">[email protected]</a>></span> wrote= :<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">Hello Mailinglist,<br> <br> I'm trying to bring the recent Debian Squeeze on my new 2nd hand Wii.<b= r> <br> The mikep5 kernel from 2009 loaded via the homebrew channel and does a<br> wonderful job. I like to be more flexible with initramfs and<br> theoretically have access to all squeeze features form their kernel<br> (2.6.32+debianpatches).<br> <br> I had some success in crosscompiling ppc kernels on my amd64 box in the<br> following variants:<br> <br> A) Debian kernel sources + Debian patches + mikep5 patch<br> B) Debian kernel sources + Debian patches + wii backports from 2.6.38<br> <br> Now I tried to boot the two kernels via HBC, but it gives an error<br> message, telling me, that this is not a Wii application.<br> <br> The file-tool indeed gives different outputs [1].<br> <br> The question is, how to create a bootable elf kernel for the wii?<br> Or a bit more precise, what (ELF-)format does the HBC expect?<br> <br> <br> Basically I followed the instructions in the wiki [2]. But I used the<br> the Debian make-kpkg tool to create whole debs and extracted the kernel<br> image afterwards from this deb. The options for make-kpkg [3] are nearly<br= > the same as those listed in wiki:<br> --initrd --cross-compile powerc-linux-gnu- --arch powerpc kernel_image<br> --append-to-version [...]<br> <br> One need to know, that I didn't use the devKitPPC-cross toolchain, but<= br> the on-board Emdebian crosstoolchain from squeeze (Debian 4.4.5-8).<br> <br> Maybe someone on the list knows, what to do to create the appropriate<br> ELF format or run into the same traps?<br> <br> Many thanks for any hint and/or comment.<br> <br> Best regards,<br> Marcus<br> <br> <br> [1a] original mikep5<br> ossy@debian-virtual:~/embedded/tmp/gc-linux-mikep5-v2.6.32+whiite-1.10/apps= /mikep5.110$<br> file boot.elf<br> boot.elf: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1<br> (SYSV), statically linked, stripped<br> <br> [1b] cross compiled debian kernel with mikep5 patches<br> ossy@debian-virtual:~/embedded/tmp/boot$ file vmlinux-2.6.32+mikep5<br> vmlinux-2.6.32+mikep5: ELF 32-bit MSB executable, PowerPC or cisco 4500,<br= > version 1 (SYSV), statically linked, with unknown capability 0x41000000<br> =3D 0x13676e75, with unknown capability 0x10000 =3D 0xb0402, not stripped<b= r> ossy@debian-virtual:~/embedded/tmp/boot$ file vmlinux-2.6.32+wiibackport<br= > vmlinux-2.6.32+wiibackport: ELF 32-bit MSB executable, PowerPC or cisco<br> 4500, version 1 (SYSV), statically linked, with unknown capability<br> 0x41000000 =3D 0x13676e75, with unknown capability 0x10000 =3D 0xb0402, not= <br> stripped<br> <br> [2] <a href=3D"http://www.gc-linux.org/wiki/Building_a_GameCube_Linux_Kerne= l" target=3D"_blank">http://www.gc-linux.org/wiki/Building_a_GameCube_Linux= _Kernel</a><br> [3]<br> <a href=3D"http://gitorious.org/dockstar/emdebian-multistrap/blobs/master/i= ncludes/make-kpkg.mk" target=3D"_blank">http://gitorious.org/dockstar/emdeb= ian-multistrap/blobs/master/includes/make-kpkg.mk</a><br> <br> ---------------------------------------------------------------------------= ---<br> All of the data generated in your IT infrastructure is seriously valuable.<= br> Why? It contains a definitive record of application performance, security<b= r> threats, fraudulent activity, and more. Splunk takes this data and makes<br= > sense of it. IT sense. And common sense.<br> <a href=3D"http://p.sf.net/sfu/splunk-d2d-c2" target=3D"_blank">http://p.sf= .net/sfu/splunk-d2d-c2</a><br> _______________________________________________<br> gc-linux-devel mailing list<br> <a href=3D"mailto:[email protected]">gc-linux-devel@list= s.sourceforge.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/gc-linux-devel" tar= get=3D"_blank">https://lists.sourceforge.net/lists/listinfo/gc-linux-devel<= /a><br> </blockquote></div><br></div> --20cf30549613fbda8c04a6dfc205-- --===============4100993134139681599== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 --===============4100993134139681599== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gc-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gc-linux-devel --===============4100993134139681599==--