[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: preferred solution for building kernel.deb and defining Entry point address



Am 13.07.2011 03:41, schrieb Ben Hutchings:
On Tue, 2011-07-12 at 23:05 +0200, Marcus Osdoba wrote:
Am 12.07.2011 01:43, schrieb Ben Hutchings:
The commands on a recent amd64 Squeeze were:

linux-src#>sudo make-kpkg --initrd --cross-compile powerpc-linux-gnu-
--arch powerpc --append-to-version +mikep5 kernel_image
linux-src#>sudo make KDEB_PKGVERSION=upstreamdebpkgcreatorNOINITRD.1.0
ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- deb-pkg

linux-src#>sudo make ARCH=powerpc CROSS32_COMPILE=powerpc-linux-gnu-
CROSS_COMPILE=powerpc-linux-gnu- zImage


I think the problem may be that make-kpkg and make deb-pkg use the
vmlinux file and not the zImage file which is what you need.
True. The default for powerpc seems to be vmlinux in any case. I tried to override it. make deb-pkg: KBUILD_IMAGE=zImage -> That worked. The image inside the generated deb had the desired entry point of 0x600000.

make-kpkg: I tried the equivalent here (--zimage or IMAGE_TYPE=zImage). But that didn't work. The image inside the deb package still had 0xc0000000.

So it is still possible to use the "generate-deb"-scripts (at least the recommended one) for creating bootable Wii kernels.


Reply to: