Package: linux Version: 4.4~rc7-1~exp1 Tags: patch Since we're appending the DTB, we no longer have to consider the machine ID. I've attached a patch for this problem and some other patches to improve the comments
-- Martin Michlmayr http://www.cyrius.com/
>From 09236185c8b13cbf85642202fb13bd9b8c05629d Mon Sep 17 00:00:00 2001 From: Martin Michlmayr <t...@cyrius.com> Date: Thu, 31 Dec 2015 10:30:12 -0800 Subject: [PATCH 1/3] Update maximum kernel size for armel/kirkwood Since we're appending the DTB, we no longer have to consider the machine ID. --- debian/config/armel/defines | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/config/armel/defines b/debian/config/armel/defines index 043a4b4..d14fbd6 100644 --- a/debian/config/armel/defines +++ b/debian/config/armel/defines @@ -24,9 +24,9 @@ hardware-long: Marvell Kirkwood based systems (SheevaPlug, QNAP TS-119/TS-219, e [kirkwood_image] recommends: u-boot-tools -# SheevaPlug: 4194304 - 8 - 64 = 4194232 -# QNAP TS-119/TS-219: 2097152 - 8 - 64 = 2097080 -check-size: 2097080 +# SheevaPlug: 4194304 - 64 = 4194240 +# QNAP TS-119/TS-219: 2097152 - 64 = 2097088 +check-size: 2097088 check-size-with-dtb: true breaks: flash-kernel (<< 3.37~) configs: -- 2.1.4
>From 69d0185f2edeb14af807b3656e3b31a07e907f7e Mon Sep 17 00:00:00 2001 From: Martin Michlmayr <t...@cyrius.com> Date: Thu, 31 Dec 2015 10:32:17 -0800 Subject: [PATCH 2/3] Add maximum kernel size for HP Media Vault mv2120 --- debian/config/armel/defines | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/config/armel/defines b/debian/config/armel/defines index d14fbd6..cf42883 100644 --- a/debian/config/armel/defines +++ b/debian/config/armel/defines @@ -40,7 +40,7 @@ hardware-long: Marvell Orion 5181, 5182 and 5281 based systems (QNAP TS-109/TS-2 [orion5x_image] recommends: u-boot-tools # D-Link DNS-323: 1572864 - 8 - 64 = 1572792 (too small, no longer supported) -# HP Media Vault mv2120: ca 2 MB +# HP Media Vault mv2120: 2097152 - 8 - 64 = 2097080 # QNAP TS-109/TS-209 & TS-409: 2097152 - 8 - 64 = 2097080 check-size: 2097080 check-size-with-dtb: true -- 2.1.4
>From e4642919d196ce3934df062ee260f861988646f3 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr <t...@cyrius.com> Date: Thu, 31 Dec 2015 10:34:54 -0800 Subject: [PATCH 3/3] Add explanation about calculating maximum kernel sizes --- debian/config/armel/defines | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/config/armel/defines b/debian/config/armel/defines index cf42883..e3cda0b 100644 --- a/debian/config/armel/defines +++ b/debian/config/armel/defines @@ -24,6 +24,7 @@ hardware-long: Marvell Kirkwood based systems (SheevaPlug, QNAP TS-119/TS-219, e [kirkwood_image] recommends: u-boot-tools +## Maximum kernel size for supported devices (64 bytes is the u-boot header) # SheevaPlug: 4194304 - 64 = 4194240 # QNAP TS-119/TS-219: 2097152 - 64 = 2097088 check-size: 2097088 @@ -39,6 +40,7 @@ hardware-long: Marvell Orion 5181, 5182 and 5281 based systems (QNAP TS-109/TS-2 [orion5x_image] recommends: u-boot-tools +## Maximum kernel size for supported devices (8 bytes is the machine ID; 64 bytes the u-boot header) # D-Link DNS-323: 1572864 - 8 - 64 = 1572792 (too small, no longer supported) # HP Media Vault mv2120: 2097152 - 8 - 64 = 2097080 # QNAP TS-109/TS-209 & TS-409: 2097152 - 8 - 64 = 2097080 -- 2.1.4