[PATCH 3/3] UBUNTU: auto-generate uImage file

Bryan Wu bryan.wu at canonical.com
Tue Jul 13 04:44:48 BST 2010


On 07/13/2010 11:22 AM, Bryan Wu wrote:
> From: Sebastien Jan <s-jan at ti.com>
> 
> Signed-off-by: Sebastien Jan <s-jan at ti.com>
> ---
>  debian.ti-omap4/control.stub.in |    2 +-
>  debian/rules.d/2-binary-arch.mk |    6 ++++++
>  2 files changed, 7 insertions(+), 1 deletions(-)
> 
> diff --git a/debian.ti-omap4/control.stub.in b/debian.ti-omap4/control.stub.in
> index 4762b55..9d5ba50 100644
> --- a/debian.ti-omap4/control.stub.in
> +++ b/debian.ti-omap4/control.stub.in
> @@ -3,7 +3,7 @@ Section: devel
>  Priority: optional
>  Maintainer: Ubuntu Kernel Team <kernel-team at lists.ubuntu.com>
>  Standards-Version: 3.6.1
> -Build-Depends: debhelper (>= 3), cpio, module-init-tools, kernel-wedge (>= 2.24ubuntu1), rsync
> +Build-Depends: debhelper (>= 3), cpio, module-init-tools, kernel-wedge (>= 2.24ubuntu1), rsync, uboot-mkimage
>  Build-Depends-Indep: xmlto, docbook-utils, gs, transfig, bzip2, sharutils
>  Build-Conflicts: findutils (= 4.4.1-1ubuntu1)
>  Vcs-Git: git://kernel.ubuntu.com/ubuntu/ubuntu-maverick.git
> diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
> index 4f7b66d..bb4d49d 100644
> --- a/debian/rules.d/2-binary-arch.mk
> +++ b/debian/rules.d/2-binary-arch.mk
> @@ -73,6 +73,12 @@ ifeq ($(no_dumpfile),)
>  	makedumpfile -g $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$* \
>  		-x $(builddir)/build-$*/vmlinux
>  endif
> +	# Generate uImage automatically out of the box
> +	mkimage -A arm -O linux -T kernel -C none -a 0x80008000 \
> +		-e 0x80008000 -n "Ubuntu Kernel" \
> +		-d $(pkgdir)/boot/$(install_file)-$(abi_release)-$* \
> +		$(pkgdir)/boot/uImage-$(abi_release)-$*
> +
>  

I'd like to say this patch is quit convenient for building ARM image for U-Boot.
But it contains sort of hard coded load address and entry address which are
specific for TI omap4 processor. It's not right to do that in our debian
packaging system.

How about using scripts/mkuboot.sh in kernel source tree?

And Oliver, when do you prepare uImage from vmlinuz file? I guess it is when we
installed the kernel package on ti-omap4 target, right?

Thanks,
-- 
Bryan Wu <bryan.wu at canonical.com>
Kernel Developer    +86.138-1617-6545 Mobile
Ubuntu Kernel Team | Hardware Enablement Team
Canonical Ltd.      www.canonical.com
Ubuntu - Linux for human beings | www.ubuntu.com



More information about the kernel-team mailing list