From 2dc1e11c688a439084692e0b86d20adc0310d42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Fern=C3=A1ndez=20Rojas?= Date: Mon, 20 Jun 2016 23:24:50 +0200 Subject: As usual these patches were extracted from the raspberry pi repo: https://github.com/raspberrypi/linux/tree/rpi-4.4.y MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- ...s-mkknlimg-Append-a-trailer-for-all-input.patch | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch (limited to 'target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch') diff --git a/target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch b/target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch new file mode 100644 index 0000000000..4844afb697 --- /dev/null +++ b/target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch @@ -0,0 +1,63 @@ +From 3c64edb93a4702adc85dc1284a83d8c66ad850bf Mon Sep 17 00:00:00 2001 +From: Phil Elwell +Date: Mon, 18 Apr 2016 11:56:53 +0100 +Subject: [PATCH 246/304] scripts/mkknlimg: Append a trailer for all input + +Now that the firmware assumes an unsigned kernel is DT-capable, it is +helpful to be able to mark a kernel as being non-DT-capable. + +Signed-off-by: Phil Elwell +--- + scripts/mkknlimg | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +--- a/scripts/mkknlimg ++++ b/scripts/mkknlimg +@@ -98,7 +98,7 @@ my $append_trailer; + my $trailer; + my $kver = '?'; + +-$append_trailer = $dtok; ++$append_trailer = 1; + + if ($res) + { +@@ -108,7 +108,6 @@ if ($res) + + if ($flags & FLAG_PI) + { +- $append_trailer = 1; + $dtok ||= ($flags & FLAG_DTOK) != 0; + $is_270x ||= ($flags & FLAG_270X) != 0; + $is_283x ||= ($flags & FLAG_283X) != 0; +@@ -116,18 +115,18 @@ if ($res) + } + else + { +- print ("* This doesn't look like a Raspberry Pi kernel. In pass-through mode.\n"); ++ print ("* This doesn't look like a Raspberry Pi kernel.\n"); + } + } + elsif (!$dtok) + { +- print ("* Is this a valid kernel? In pass-through mode.\n"); ++ print ("* Is this a valid kernel?\n"); + } + + if ($append_trailer) + { + printf("DT: %s\n", $dtok ? "y" : "n"); +- printf("DDT: %s\n", $ddtk ? "y" : "n") if ($ddtk); ++ printf("DDT: %s\n", $ddtk ? "y" : "n"); + printf("270x: %s\n", $is_270x ? "y" : "n"); + printf("283x: %s\n", $is_283x ? "y" : "n"); + +@@ -136,7 +135,7 @@ if ($append_trailer) + push @atoms, [ $trailer_magic, pack('V', 0) ]; + push @atoms, [ 'KVer', $kver ]; + push @atoms, [ 'DTOK', pack('V', $dtok) ]; +- push @atoms, [ 'DDTK', pack('V', $ddtk) ] if ($ddtk); ++ push @atoms, [ 'DDTK', pack('V', $ddtk) ]; + push @atoms, [ '270X', pack('V', $is_270x) ]; + push @atoms, [ '283X', pack('V', $is_283x) ]; + push @atoms, [ '283x', pack('V', $is_283x && !$is_270x) ]; -- cgit v1.2.3 From 165abaf3bcd5ef731fc1e293171a8fea751dc769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 22 Jun 2016 15:06:00 +0200 Subject: brcm2708: update linux 4.4 patches to latest version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As usual these patches were extracted from the raspberry pi repo: https://github.com/raspberrypi/linux/tree/rpi-4.4.y Also alphabetically order sound-soc kernel packages. Signed-off-by: Álvaro Fernández Rojas --- .../0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch') diff --git a/target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch b/target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch index 4844afb697..84b5bd356d 100644 --- a/target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch +++ b/target/linux/brcm2708/patches-4.4/0246-scripts-mkknlimg-Append-a-trailer-for-all-input.patch @@ -1,7 +1,7 @@ -From 3c64edb93a4702adc85dc1284a83d8c66ad850bf Mon Sep 17 00:00:00 2001 +From ced7d5ba55445eb116abd68466d6caa1538ff482 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 18 Apr 2016 11:56:53 +0100 -Subject: [PATCH 246/304] scripts/mkknlimg: Append a trailer for all input +Subject: [PATCH 246/381] scripts/mkknlimg: Append a trailer for all input Now that the firmware assumes an unsigned kernel is DT-capable, it is helpful to be able to mark a kernel as being non-DT-capable. -- cgit v1.2.3