DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression
@ 2020-04-28 17:47 Oleksij Rempel
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled Oleksij Rempel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Oleksij Rempel @ 2020-04-28 17:47 UTC (permalink / raw)
  To: distrokit; +Cc: Oleksij Rempel

With LZO we need 1 second less of boot time.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 configs/platform-mips/kernelconfig             | 4 ++--
 configs/platform-mips/kernelconfig-ar9331      | 4 ++--
 configs/platform-mips/kernelconfig-ar9331.diff | 2 +-
 configs/platform-mips/kernelconfig-malta       | 4 ++--
 configs/platform-mips/kernelconfig-malta.diff  | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/configs/platform-mips/kernelconfig b/configs/platform-mips/kernelconfig
index de6eee8..fe2371c 100644
--- a/configs/platform-mips/kernelconfig
+++ b/configs/platform-mips/kernelconfig
@@ -35,8 +35,8 @@ CONFIG_HAVE_KERNEL_LZ4=y
 # CONFIG_KERNEL_GZIP is not set
 # CONFIG_KERNEL_BZIP2 is not set
 # CONFIG_KERNEL_LZMA is not set
-CONFIG_KERNEL_XZ=y
-# CONFIG_KERNEL_LZO is not set
+# CONFIG_KERNEL_XZ is not set
+CONFIG_KERNEL_LZO=y
 # CONFIG_KERNEL_LZ4 is not set
 CONFIG_DEFAULT_HOSTNAME="(none)"
 # CONFIG_SWAP is not set
diff --git a/configs/platform-mips/kernelconfig-ar9331 b/configs/platform-mips/kernelconfig-ar9331
index e4f763a..6f56139 100644
--- a/configs/platform-mips/kernelconfig-ar9331
+++ b/configs/platform-mips/kernelconfig-ar9331
@@ -35,8 +35,8 @@ CONFIG_HAVE_KERNEL_LZ4=y
 # CONFIG_KERNEL_GZIP is not set
 # CONFIG_KERNEL_BZIP2 is not set
 # CONFIG_KERNEL_LZMA is not set
-CONFIG_KERNEL_XZ=y
-# CONFIG_KERNEL_LZO is not set
+# CONFIG_KERNEL_XZ is not set
+CONFIG_KERNEL_LZO=y
 # CONFIG_KERNEL_LZ4 is not set
 CONFIG_DEFAULT_HOSTNAME="(none)"
 # CONFIG_SWAP is not set
diff --git a/configs/platform-mips/kernelconfig-ar9331.diff b/configs/platform-mips/kernelconfig-ar9331.diff
index 633fd7f..77b21c7 100644
--- a/configs/platform-mips/kernelconfig-ar9331.diff
+++ b/configs/platform-mips/kernelconfig-ar9331.diff
@@ -1,4 +1,4 @@
-c3574396e522fd9ac33d1d4c2475ac18
+230e86625b9c4aa9eba186c9ef927f4e
 # CONFIG_ACORN_PARTITION is undefined
 # CONFIG_AIX_PARTITION is undefined
 # CONFIG_AMIGA_PARTITION is undefined
diff --git a/configs/platform-mips/kernelconfig-malta b/configs/platform-mips/kernelconfig-malta
index 2930fb9..513d992 100644
--- a/configs/platform-mips/kernelconfig-malta
+++ b/configs/platform-mips/kernelconfig-malta
@@ -33,8 +33,8 @@ CONFIG_HAVE_KERNEL_LZ4=y
 # CONFIG_KERNEL_GZIP is not set
 # CONFIG_KERNEL_BZIP2 is not set
 # CONFIG_KERNEL_LZMA is not set
-CONFIG_KERNEL_XZ=y
-# CONFIG_KERNEL_LZO is not set
+# CONFIG_KERNEL_XZ is not set
+CONFIG_KERNEL_LZO=y
 # CONFIG_KERNEL_LZ4 is not set
 CONFIG_DEFAULT_HOSTNAME="(none)"
 # CONFIG_SWAP is not set
diff --git a/configs/platform-mips/kernelconfig-malta.diff b/configs/platform-mips/kernelconfig-malta.diff
index 44017bc..9c16047 100644
--- a/configs/platform-mips/kernelconfig-malta.diff
+++ b/configs/platform-mips/kernelconfig-malta.diff
@@ -1,4 +1,4 @@
-c3574396e522fd9ac33d1d4c2475ac18
+230e86625b9c4aa9eba186c9ef927f4e
 # CONFIG_8139CP is not set
 # CONFIG_8139TOO is not set
 # CONFIG_ACENIC is not set
-- 
2.26.2


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled
  2020-04-28 17:47 [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Oleksij Rempel
@ 2020-04-28 17:47 ` Oleksij Rempel
  2020-04-28 21:04   ` Robert Schwebel
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table Oleksij Rempel
  2020-04-28 21:03 ` [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Robert Schwebel
  2 siblings, 1 reply; 8+ messages in thread
From: Oleksij Rempel @ 2020-04-28 17:47 UTC (permalink / raw)
  To: distrokit; +Cc: Oleksij Rempel

Without prompt we can't enable it.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 configs/platform-mips/platformconfig      | 1 +
 configs/platform-mips/platforms/kernel.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/platform-mips/platformconfig b/configs/platform-mips/platformconfig
index 6051159..bad7d52 100644
--- a/configs/platform-mips/platformconfig
+++ b/configs/platform-mips/platformconfig
@@ -105,6 +105,7 @@ PTXCONF_TARGET_EXTRA_LDFLAGS=""
 PTXCONF_KERNEL=y
 PTXCONF_KERNEL_VERSION="5.6.2"
 PTXCONF_KERNEL_MD5="8b96e9e8eff865ff84a23b4f858dafa1"
+PTXCONF_KERNEL_LZOP=y
 PTXCONF_DTC=y
 PTXCONF_DTC_INSTALL_OFTREE=y
 PTXCONF_DTC_OFTREE_DTS_PATH="${PTXDIST_PLATFORMCONFIGDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts"
diff --git a/configs/platform-mips/platforms/kernel.in b/configs/platform-mips/platforms/kernel.in
index e9cce24..1889211 100644
--- a/configs/platform-mips/platforms/kernel.in
+++ b/configs/platform-mips/platforms/kernel.in
@@ -20,6 +20,7 @@ config KERNEL_INSTALL
 	bool
 
 config KERNEL_LZOP
+	prompt "build lzop hosttool"
 	bool
 
 endif	# KERNEL
-- 
2.26.2


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table
  2020-04-28 17:47 [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Oleksij Rempel
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled Oleksij Rempel
@ 2020-04-28 17:47 ` Oleksij Rempel
  2020-04-28 21:04   ` Robert Schwebel
  2020-05-15  7:42   ` Ahmad Fatoum
  2020-04-28 21:03 ` [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Robert Schwebel
  2 siblings, 2 replies; 8+ messages in thread
From: Oleksij Rempel @ 2020-04-28 17:47 UTC (permalink / raw)
  To: distrokit; +Cc: Oleksij Rempel

it should be provided by the bootloader

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 ...2-MIPS-malta-remove-fixed-partitions.patch | 45 +++++++++++++++++++
 .../platform-mips/patches/linux-5.6.2/series  |  3 +-
 2 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch

diff --git a/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
new file mode 100644
index 0000000..a920a4b
--- /dev/null
+++ b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
@@ -0,0 +1,45 @@
+From: Oleksij Rempel <o.rempel@pengutronix.de>
+Date: Tue, 28 Apr 2020 14:55:25 +0200
+Subject: [PATCH] MIPS: malta: remove fixed partitions
+
+this partition table should be provided by the bootloader
+
+Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
+---
+ arch/mips/boot/dts/mti/malta.dts | 23 -----------------------
+ 1 file changed, 23 deletions(-)
+
+diff --git a/arch/mips/boot/dts/mti/malta.dts b/arch/mips/boot/dts/mti/malta.dts
+index f03279b1cde7..7642a7c53a3a 100644
+--- a/arch/mips/boot/dts/mti/malta.dts
++++ b/arch/mips/boot/dts/mti/malta.dts
+@@ -57,29 +57,6 @@ flash@1e000000 {
+ 		bank-width = <4>;
+ 		#address-cells = <1>;
+ 		#size-cells = <1>;
+-
+-		partitions {
+-			compatible = "fixed-partitions";
+-			#address-cells = <1>;
+-			#size-cells = <1>;
+-
+-			yamon@0 {
+-				label = "YAMON";
+-				reg = <0x0 0x100000>;
+-				read-only;
+-			};
+-
+-			user-fs@100000 {
+-				label = "User FS";
+-				reg = <0x100000 0x2e0000>;
+-			};
+-
+-			board-config@3e0000 {
+-				label = "Board Config";
+-				reg = <0x3e0000 0x20000>;
+-				read-only;
+-			};
+-		};
+ 	};
+ 
+ 	fpga_regs: system-controller@1f000000 {
diff --git a/configs/platform-mips/patches/linux-5.6.2/series b/configs/platform-mips/patches/linux-5.6.2/series
index dadc772..a885d05 100644
--- a/configs/platform-mips/patches/linux-5.6.2/series
+++ b/configs/platform-mips/patches/linux-5.6.2/series
@@ -1,4 +1,5 @@
 # generated by git-ptx-patches
 #tag:base --start-number 1
 0001-HACK-MIPS-disable-bogus-code.patch
-# 1aabf59e6345434460b53d6d21377e5e  - git-ptx-patches magic
+0002-MIPS-malta-remove-fixed-partitions.patch
+# 598cc0167d4c33db68cf711e58479093  - git-ptx-patches magic
-- 
2.26.2


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression
  2020-04-28 17:47 [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Oleksij Rempel
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled Oleksij Rempel
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table Oleksij Rempel
@ 2020-04-28 21:03 ` Robert Schwebel
  2 siblings, 0 replies; 8+ messages in thread
From: Robert Schwebel @ 2020-04-28 21:03 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: distrokit

On Tue, Apr 28, 2020 at 07:47:47PM +0200, Oleksij Rempel wrote:
> With LZO we need 1 second less of boot time.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  configs/platform-mips/kernelconfig             | 4 ++--
>  configs/platform-mips/kernelconfig-ar9331      | 4 ++--
>  configs/platform-mips/kernelconfig-ar9331.diff | 2 +-
>  configs/platform-mips/kernelconfig-malta       | 4 ++--
>  configs/platform-mips/kernelconfig-malta.diff  | 2 +-
>  5 files changed, 8 insertions(+), 8 deletions(-)

Applied to next

> diff --git a/configs/platform-mips/kernelconfig b/configs/platform-mips/kernelconfig
> index de6eee8..fe2371c 100644
> --- a/configs/platform-mips/kernelconfig
> +++ b/configs/platform-mips/kernelconfig
> @@ -35,8 +35,8 @@ CONFIG_HAVE_KERNEL_LZ4=y
>  # CONFIG_KERNEL_GZIP is not set
>  # CONFIG_KERNEL_BZIP2 is not set
>  # CONFIG_KERNEL_LZMA is not set
> -CONFIG_KERNEL_XZ=y
> -# CONFIG_KERNEL_LZO is not set
> +# CONFIG_KERNEL_XZ is not set
> +CONFIG_KERNEL_LZO=y
>  # CONFIG_KERNEL_LZ4 is not set
>  CONFIG_DEFAULT_HOSTNAME="(none)"
>  # CONFIG_SWAP is not set
> diff --git a/configs/platform-mips/kernelconfig-ar9331 b/configs/platform-mips/kernelconfig-ar9331
> index e4f763a..6f56139 100644
> --- a/configs/platform-mips/kernelconfig-ar9331
> +++ b/configs/platform-mips/kernelconfig-ar9331
> @@ -35,8 +35,8 @@ CONFIG_HAVE_KERNEL_LZ4=y
>  # CONFIG_KERNEL_GZIP is not set
>  # CONFIG_KERNEL_BZIP2 is not set
>  # CONFIG_KERNEL_LZMA is not set
> -CONFIG_KERNEL_XZ=y
> -# CONFIG_KERNEL_LZO is not set
> +# CONFIG_KERNEL_XZ is not set
> +CONFIG_KERNEL_LZO=y
>  # CONFIG_KERNEL_LZ4 is not set
>  CONFIG_DEFAULT_HOSTNAME="(none)"
>  # CONFIG_SWAP is not set
> diff --git a/configs/platform-mips/kernelconfig-ar9331.diff b/configs/platform-mips/kernelconfig-ar9331.diff
> index 633fd7f..77b21c7 100644
> --- a/configs/platform-mips/kernelconfig-ar9331.diff
> +++ b/configs/platform-mips/kernelconfig-ar9331.diff
> @@ -1,4 +1,4 @@
> -c3574396e522fd9ac33d1d4c2475ac18
> +230e86625b9c4aa9eba186c9ef927f4e
>  # CONFIG_ACORN_PARTITION is undefined
>  # CONFIG_AIX_PARTITION is undefined
>  # CONFIG_AMIGA_PARTITION is undefined
> diff --git a/configs/platform-mips/kernelconfig-malta b/configs/platform-mips/kernelconfig-malta
> index 2930fb9..513d992 100644
> --- a/configs/platform-mips/kernelconfig-malta
> +++ b/configs/platform-mips/kernelconfig-malta
> @@ -33,8 +33,8 @@ CONFIG_HAVE_KERNEL_LZ4=y
>  # CONFIG_KERNEL_GZIP is not set
>  # CONFIG_KERNEL_BZIP2 is not set
>  # CONFIG_KERNEL_LZMA is not set
> -CONFIG_KERNEL_XZ=y
> -# CONFIG_KERNEL_LZO is not set
> +# CONFIG_KERNEL_XZ is not set
> +CONFIG_KERNEL_LZO=y
>  # CONFIG_KERNEL_LZ4 is not set
>  CONFIG_DEFAULT_HOSTNAME="(none)"
>  # CONFIG_SWAP is not set
> diff --git a/configs/platform-mips/kernelconfig-malta.diff b/configs/platform-mips/kernelconfig-malta.diff
> index 44017bc..9c16047 100644
> --- a/configs/platform-mips/kernelconfig-malta.diff
> +++ b/configs/platform-mips/kernelconfig-malta.diff
> @@ -1,4 +1,4 @@
> -c3574396e522fd9ac33d1d4c2475ac18
> +230e86625b9c4aa9eba186c9ef927f4e
>  # CONFIG_8139CP is not set
>  # CONFIG_8139TOO is not set
>  # CONFIG_ACENIC is not set
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
> 

-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled Oleksij Rempel
@ 2020-04-28 21:04   ` Robert Schwebel
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Schwebel @ 2020-04-28 21:04 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: distrokit

On Tue, Apr 28, 2020 at 07:47:48PM +0200, Oleksij Rempel wrote:
> Without prompt we can't enable it.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  configs/platform-mips/platformconfig      | 1 +
>  configs/platform-mips/platforms/kernel.in | 1 +
>  2 files changed, 2 insertions(+)

Applied to next

> diff --git a/configs/platform-mips/platformconfig b/configs/platform-mips/platformconfig
> index 6051159..bad7d52 100644
> --- a/configs/platform-mips/platformconfig
> +++ b/configs/platform-mips/platformconfig
> @@ -105,6 +105,7 @@ PTXCONF_TARGET_EXTRA_LDFLAGS=""
>  PTXCONF_KERNEL=y
>  PTXCONF_KERNEL_VERSION="5.6.2"
>  PTXCONF_KERNEL_MD5="8b96e9e8eff865ff84a23b4f858dafa1"
> +PTXCONF_KERNEL_LZOP=y
>  PTXCONF_DTC=y
>  PTXCONF_DTC_INSTALL_OFTREE=y
>  PTXCONF_DTC_OFTREE_DTS_PATH="${PTXDIST_PLATFORMCONFIGDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts"
> diff --git a/configs/platform-mips/platforms/kernel.in b/configs/platform-mips/platforms/kernel.in
> index e9cce24..1889211 100644
> --- a/configs/platform-mips/platforms/kernel.in
> +++ b/configs/platform-mips/platforms/kernel.in
> @@ -20,6 +20,7 @@ config KERNEL_INSTALL
>  	bool
>  
>  config KERNEL_LZOP
> +	prompt "build lzop hosttool"
>  	bool
>  
>  endif	# KERNEL
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
> 

-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table Oleksij Rempel
@ 2020-04-28 21:04   ` Robert Schwebel
  2020-05-15  7:42   ` Ahmad Fatoum
  1 sibling, 0 replies; 8+ messages in thread
From: Robert Schwebel @ 2020-04-28 21:04 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: distrokit

On Tue, Apr 28, 2020 at 07:47:49PM +0200, Oleksij Rempel wrote:
> it should be provided by the bootloader
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  ...2-MIPS-malta-remove-fixed-partitions.patch | 45 +++++++++++++++++++
>  .../platform-mips/patches/linux-5.6.2/series  |  3 +-
>  2 files changed, 47 insertions(+), 1 deletion(-)
>  create mode 100644 configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch

Applied to next

> diff --git a/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> new file mode 100644
> index 0000000..a920a4b
> --- /dev/null
> +++ b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> @@ -0,0 +1,45 @@
> +From: Oleksij Rempel <o.rempel@pengutronix.de>
> +Date: Tue, 28 Apr 2020 14:55:25 +0200
> +Subject: [PATCH] MIPS: malta: remove fixed partitions
> +
> +this partition table should be provided by the bootloader
> +
> +Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> +---
> + arch/mips/boot/dts/mti/malta.dts | 23 -----------------------
> + 1 file changed, 23 deletions(-)
> +
> +diff --git a/arch/mips/boot/dts/mti/malta.dts b/arch/mips/boot/dts/mti/malta.dts
> +index f03279b1cde7..7642a7c53a3a 100644
> +--- a/arch/mips/boot/dts/mti/malta.dts
> ++++ b/arch/mips/boot/dts/mti/malta.dts
> +@@ -57,29 +57,6 @@ flash@1e000000 {
> + 		bank-width = <4>;
> + 		#address-cells = <1>;
> + 		#size-cells = <1>;
> +-
> +-		partitions {
> +-			compatible = "fixed-partitions";
> +-			#address-cells = <1>;
> +-			#size-cells = <1>;
> +-
> +-			yamon@0 {
> +-				label = "YAMON";
> +-				reg = <0x0 0x100000>;
> +-				read-only;
> +-			};
> +-
> +-			user-fs@100000 {
> +-				label = "User FS";
> +-				reg = <0x100000 0x2e0000>;
> +-			};
> +-
> +-			board-config@3e0000 {
> +-				label = "Board Config";
> +-				reg = <0x3e0000 0x20000>;
> +-				read-only;
> +-			};
> +-		};
> + 	};
> + 
> + 	fpga_regs: system-controller@1f000000 {
> diff --git a/configs/platform-mips/patches/linux-5.6.2/series b/configs/platform-mips/patches/linux-5.6.2/series
> index dadc772..a885d05 100644
> --- a/configs/platform-mips/patches/linux-5.6.2/series
> +++ b/configs/platform-mips/patches/linux-5.6.2/series
> @@ -1,4 +1,5 @@
>  # generated by git-ptx-patches
>  #tag:base --start-number 1
>  0001-HACK-MIPS-disable-bogus-code.patch
> -# 1aabf59e6345434460b53d6d21377e5e  - git-ptx-patches magic
> +0002-MIPS-malta-remove-fixed-partitions.patch
> +# 598cc0167d4c33db68cf711e58479093  - git-ptx-patches magic
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
> 

-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table
  2020-04-28 17:47 ` [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table Oleksij Rempel
  2020-04-28 21:04   ` Robert Schwebel
@ 2020-05-15  7:42   ` Ahmad Fatoum
  2020-05-15  7:58     ` Oleksij Rempel
  1 sibling, 1 reply; 8+ messages in thread
From: Ahmad Fatoum @ 2020-05-15  7:42 UTC (permalink / raw)
  To: Oleksij Rempel, distrokit

Hello Oleksij,

On 4/28/20 7:47 PM, Oleksij Rempel wrote:
> it should be provided by the bootloader

barebox already deletes an existing partitions node on fixup, see of_partition_fixup().
Does this not work for you?

> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  ...2-MIPS-malta-remove-fixed-partitions.patch | 45 +++++++++++++++++++
>  .../platform-mips/patches/linux-5.6.2/series  |  3 +-
>  2 files changed, 47 insertions(+), 1 deletion(-)
>  create mode 100644 configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> 
> diff --git a/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> new file mode 100644
> index 0000000..a920a4b
> --- /dev/null
> +++ b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> @@ -0,0 +1,45 @@
> +From: Oleksij Rempel <o.rempel@pengutronix.de>
> +Date: Tue, 28 Apr 2020 14:55:25 +0200
> +Subject: [PATCH] MIPS: malta: remove fixed partitions
> +
> +this partition table should be provided by the bootloader
> +
> +Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> +---
> + arch/mips/boot/dts/mti/malta.dts | 23 -----------------------
> + 1 file changed, 23 deletions(-)
> +
> +diff --git a/arch/mips/boot/dts/mti/malta.dts b/arch/mips/boot/dts/mti/malta.dts
> +index f03279b1cde7..7642a7c53a3a 100644
> +--- a/arch/mips/boot/dts/mti/malta.dts
> ++++ b/arch/mips/boot/dts/mti/malta.dts
> +@@ -57,29 +57,6 @@ flash@1e000000 {
> + 		bank-width = <4>;
> + 		#address-cells = <1>;
> + 		#size-cells = <1>;
> +-
> +-		partitions {
> +-			compatible = "fixed-partitions";
> +-			#address-cells = <1>;
> +-			#size-cells = <1>;
> +-
> +-			yamon@0 {
> +-				label = "YAMON";
> +-				reg = <0x0 0x100000>;
> +-				read-only;
> +-			};
> +-
> +-			user-fs@100000 {
> +-				label = "User FS";
> +-				reg = <0x100000 0x2e0000>;
> +-			};
> +-
> +-			board-config@3e0000 {
> +-				label = "Board Config";
> +-				reg = <0x3e0000 0x20000>;
> +-				read-only;
> +-			};
> +-		};
> + 	};
> + 
> + 	fpga_regs: system-controller@1f000000 {
> diff --git a/configs/platform-mips/patches/linux-5.6.2/series b/configs/platform-mips/patches/linux-5.6.2/series
> index dadc772..a885d05 100644
> --- a/configs/platform-mips/patches/linux-5.6.2/series
> +++ b/configs/platform-mips/patches/linux-5.6.2/series
> @@ -1,4 +1,5 @@
>  # generated by git-ptx-patches
>  #tag:base --start-number 1
>  0001-HACK-MIPS-disable-bogus-code.patch
> -# 1aabf59e6345434460b53d6d21377e5e  - git-ptx-patches magic
> +0002-MIPS-malta-remove-fixed-partitions.patch
> +# 598cc0167d4c33db68cf711e58479093  - git-ptx-patches magic
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table
  2020-05-15  7:42   ` Ahmad Fatoum
@ 2020-05-15  7:58     ` Oleksij Rempel
  0 siblings, 0 replies; 8+ messages in thread
From: Oleksij Rempel @ 2020-05-15  7:58 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: distrokit


[-- Attachment #1.1: Type: text/plain, Size: 3941 bytes --]

On Fri, May 15, 2020 at 09:42:42AM +0200, Ahmad Fatoum wrote:
> Hello Oleksij,
> 
> On 4/28/20 7:47 PM, Oleksij Rempel wrote:
> > it should be provided by the bootloader
> 
> barebox already deletes an existing partitions node on fixup, see of_partition_fixup().
> Does this not work for you?

It is just warning made by analyzer. And in most cases it is indeed a bad
idea to put project configuration in to a mainline kernel dts.

> > 
> > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> > ---
> >  ...2-MIPS-malta-remove-fixed-partitions.patch | 45 +++++++++++++++++++
> >  .../platform-mips/patches/linux-5.6.2/series  |  3 +-
> >  2 files changed, 47 insertions(+), 1 deletion(-)
> >  create mode 100644 configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> > 
> > diff --git a/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> > new file mode 100644
> > index 0000000..a920a4b
> > --- /dev/null
> > +++ b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> > @@ -0,0 +1,45 @@
> > +From: Oleksij Rempel <o.rempel@pengutronix.de>
> > +Date: Tue, 28 Apr 2020 14:55:25 +0200
> > +Subject: [PATCH] MIPS: malta: remove fixed partitions
> > +
> > +this partition table should be provided by the bootloader
> > +
> > +Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> > +---
> > + arch/mips/boot/dts/mti/malta.dts | 23 -----------------------
> > + 1 file changed, 23 deletions(-)
> > +
> > +diff --git a/arch/mips/boot/dts/mti/malta.dts b/arch/mips/boot/dts/mti/malta.dts
> > +index f03279b1cde7..7642a7c53a3a 100644
> > +--- a/arch/mips/boot/dts/mti/malta.dts
> > ++++ b/arch/mips/boot/dts/mti/malta.dts
> > +@@ -57,29 +57,6 @@ flash@1e000000 {
> > + 		bank-width = <4>;
> > + 		#address-cells = <1>;
> > + 		#size-cells = <1>;
> > +-
> > +-		partitions {
> > +-			compatible = "fixed-partitions";
> > +-			#address-cells = <1>;
> > +-			#size-cells = <1>;
> > +-
> > +-			yamon@0 {
> > +-				label = "YAMON";
> > +-				reg = <0x0 0x100000>;
> > +-				read-only;
> > +-			};
> > +-
> > +-			user-fs@100000 {
> > +-				label = "User FS";
> > +-				reg = <0x100000 0x2e0000>;
> > +-			};
> > +-
> > +-			board-config@3e0000 {
> > +-				label = "Board Config";
> > +-				reg = <0x3e0000 0x20000>;
> > +-				read-only;
> > +-			};
> > +-		};
> > + 	};
> > + 
> > + 	fpga_regs: system-controller@1f000000 {
> > diff --git a/configs/platform-mips/patches/linux-5.6.2/series b/configs/platform-mips/patches/linux-5.6.2/series
> > index dadc772..a885d05 100644
> > --- a/configs/platform-mips/patches/linux-5.6.2/series
> > +++ b/configs/platform-mips/patches/linux-5.6.2/series
> > @@ -1,4 +1,5 @@
> >  # generated by git-ptx-patches
> >  #tag:base --start-number 1
> >  0001-HACK-MIPS-disable-bogus-code.patch
> > -# 1aabf59e6345434460b53d6d21377e5e  - git-ptx-patches magic
> > +0002-MIPS-malta-remove-fixed-partitions.patch
> > +# 598cc0167d4c33db68cf711e58479093  - git-ptx-patches magic
> > 
> 
> -- 
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 96 bytes --]

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-15  7:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 17:47 [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Oleksij Rempel
2020-04-28 17:47 ` [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled Oleksij Rempel
2020-04-28 21:04   ` Robert Schwebel
2020-04-28 17:47 ` [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table Oleksij Rempel
2020-04-28 21:04   ` Robert Schwebel
2020-05-15  7:42   ` Ahmad Fatoum
2020-05-15  7:58     ` Oleksij Rempel
2020-04-28 21:03 ` [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox