From dfa8cc69610223ff2bfbca7ec8ec20bb6af2a8dc Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Tue, 17 Mar 2009 17:58:05 +0000 Subject: [PATCH] [arm/iop32x, arm/ixp4xx, arm/orion5x] Add a size check to ensure that the kernel will fit in flash. svn path=/dists/trunk/linux-2.6/; revision=13157 --- debian/changelog | 2 ++ debian/config/arm/defines | 21 +++++++++++++++++++++ debian/config/armel/defines | 17 +++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/debian/changelog b/debian/changelog index 8f38d3a5032e..4e18d402a31a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -65,6 +65,8 @@ linux-2.6 (2.6.29~rc8-1~experimental.1) UNRELEASED; urgency=low * [arm, armel] Enable various V4L USB devices. (Closes: #518582) * [arm/orion5x] Build the SENSORS_LM75 module since it's needed on the D-Link DNS-323. + * [arm/iop32x, arm/ixp4xx, arm/orion5x] Add a size check to ensure that + the kernel will fit in flash. * Add patches from git.marvell.com to improve Kirkwood support: - Orion: make gpio /input/output validation separate - Kirkwood: MPP initialization code diff --git a/debian/config/arm/defines b/debian/config/arm/defines index 2cf33781a7e0..bbf10edd177c 100644 --- a/debian/config/arm/defines +++ b/debian/config/arm/defines @@ -20,16 +20,37 @@ longclass: Footbridge based (CATS, Netwinder) class: IOP32x longclass: IOP32x based (Thecus N2100, etc) +[iop32x_build] +image-file: arch/arm/boot/zImage + +[iop32x_image] +# Thecus N2100: 1441792 - 8 = 1441784 +check-size: 1441784 + [ixp4xx_base] class: IXP4xx longclass: IXP4xx based (Linksys NSLU2, etc) +[ixp4xx_build] +image-file: arch/arm/boot/zImage + +[ixp4xx_image] +# Linksys NSLU2: 1441792 - 16 - 16 = 1441760 +check-size: 1441760 + [orion5x_base] class: Orion longclass: Orion 5181, 5182 and 5281 based (QNAP TS-109/TS-209, etc) +[orion5x_build] +image-file: arch/arm/boot/zImage + [orion5x_image] recommends: uboot-mkimage +# D-Link DNS-323: 1572864 - 8 - 64 = 1572792 +# HP Media Vault mv2120: ca 2 MB +# QNAP TS-109/TS-209 & TS-409: 2097152 - 8 - 64 = 2097080 +check-size: 1572792 [versatile_base] class: Versatile diff --git a/debian/config/armel/defines b/debian/config/armel/defines index 2fecff69f009..88e79df952b5 100644 --- a/debian/config/armel/defines +++ b/debian/config/armel/defines @@ -13,23 +13,40 @@ suggests: fdutils class: IOP32x longclass: IOP32x based (Thecus N2100, etc) +[iop32x_build] +image-file: arch/arm/boot/zImage + [iop32x_image] configs: arm/config.iop32x +# Thecus N2100: 1441792 - 8 = 1441784 +check-size: 1441784 [ixp4xx_base] class: IXP4xx longclass: IXP4xx based (Linksys NSLU2, etc) +[ixp4xx_build] +image-file: arch/arm/boot/zImage + [ixp4xx_image] configs: arm/config.ixp4xx +# Linksys NSLU2: 1441792 - 16 - 16 = 1441760 +check-size: 1441760 [orion5x_base] class: Orion longclass: Orion 5181, 5182 and 5281 based (QNAP TS-109/TS-209, etc) +[orion5x_build] +image-file: arch/arm/boot/zImage + [orion5x_image] configs: arm/config.orion5x recommends: uboot-mkimage +# D-Link DNS-323: 1572864 - 8 - 64 = 1572792 +# HP Media Vault mv2120: ca 2 MB +# QNAP TS-109/TS-209 & TS-409: 2097152 - 8 - 64 = 2097080 +check-size: 1572792 [versatile_base] class: Versatile