public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] linux-custom: Fix decompressed kernel name for arm64
@ 2021-01-22 17:13 Anton Mikanovich
  2021-01-25 12:32 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Anton Mikanovich @ 2021-01-22 17:13 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

We are performing gunzip from vmlinuz on arm64, so output should have
correct naming.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/conf/bitbake.conf                                   | 1 +
 meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index acce55d..9859456 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -61,6 +61,7 @@ CACHE = "${TMPDIR}/cache"
 KERNEL_FILE ?= "vmlinuz"
 KERNEL_FILE_mipsel ?= "vmlinux"
 KERNEL_FILE_riscv64 ?= "vmlinux"
+KERNEL_FILE_arm64 ?= "vmlinux"
 
 OVERRIDES = "${DISTRO_ARCH}:${COMPAT_OVERRIDE}:${MACHINE}:${DISTRO}:forcevariable"
 FILESOVERRIDES = "${DISTRO_ARCH}:${MACHINE}"
diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
index 8eca4c7..69fb88d 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -26,9 +26,9 @@ do_install() {
     fi
     krel="$(${MAKE} O=${O} -s --no-print-directory kernelrelease)"
     case "${ARCH}" in
-        mips|powerpc|riscv) kimage_path="boot/vmlinux-${krel}"    ;;
-                        um) kimage_path="usr/bin/vmlinux-${krel}" ;;
-                         *) kimage_path="boot/vmlinuz-${krel}"    ;;
+        mips|powerpc|riscv|arm64) kimage_path="boot/vmlinux-${krel}"    ;;
+                              um) kimage_path="usr/bin/vmlinux-${krel}" ;;
+                               *) kimage_path="boot/vmlinuz-${krel}"    ;;
     esac
 
     print_settings
-- 
2.20.1


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

* Re: [PATCH] linux-custom: Fix decompressed kernel name for arm64
  2021-01-22 17:13 [PATCH] linux-custom: Fix decompressed kernel name for arm64 Anton Mikanovich
@ 2021-01-25 12:32 ` Jan Kiszka
  2021-01-25 12:51   ` Anton Mikanovich
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2021-01-25 12:32 UTC (permalink / raw)
  To: Anton Mikanovich, isar-users

On 22.01.21 18:13, Anton Mikanovich wrote:
> We are performing gunzip from vmlinuz on arm64, so output should have
> correct naming.
> 

What's the practical impact of this change? How did you notice it? Can
anything break that expected the old incorrect name?

Jan

> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta/conf/bitbake.conf                                   | 1 +
>  meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 6 +++---
>  2 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index acce55d..9859456 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -61,6 +61,7 @@ CACHE = "${TMPDIR}/cache"
>  KERNEL_FILE ?= "vmlinuz"
>  KERNEL_FILE_mipsel ?= "vmlinux"
>  KERNEL_FILE_riscv64 ?= "vmlinux"
> +KERNEL_FILE_arm64 ?= "vmlinux"
>  
>  OVERRIDES = "${DISTRO_ARCH}:${COMPAT_OVERRIDE}:${MACHINE}:${DISTRO}:forcevariable"
>  FILESOVERRIDES = "${DISTRO_ARCH}:${MACHINE}"
> diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
> index 8eca4c7..69fb88d 100644
> --- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
> +++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
> @@ -26,9 +26,9 @@ do_install() {
>      fi
>      krel="$(${MAKE} O=${O} -s --no-print-directory kernelrelease)"
>      case "${ARCH}" in
> -        mips|powerpc|riscv) kimage_path="boot/vmlinux-${krel}"    ;;
> -                        um) kimage_path="usr/bin/vmlinux-${krel}" ;;
> -                         *) kimage_path="boot/vmlinuz-${krel}"    ;;
> +        mips|powerpc|riscv|arm64) kimage_path="boot/vmlinux-${krel}"    ;;
> +                              um) kimage_path="usr/bin/vmlinux-${krel}" ;;
> +                               *) kimage_path="boot/vmlinuz-${krel}"    ;;
>      esac
>  
>      print_settings
> 

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

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

* Re: [PATCH] linux-custom: Fix decompressed kernel name for arm64
  2021-01-25 12:32 ` Jan Kiszka
@ 2021-01-25 12:51   ` Anton Mikanovich
  2021-01-25 13:11     ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Anton Mikanovich @ 2021-01-25 12:51 UTC (permalink / raw)
  To: isar-users; +Cc: Jan Kiszka

25.01.2021 15:32, Jan Kiszka wrote:
> On 22.01.21 18:13, Anton Mikanovich wrote:
>> We are performing gunzip from vmlinuz on arm64, so output should have
>> correct naming.
>>
> What's the practical impact of this change? How did you notice it? Can
> anything break that expected the old incorrect name?
>
> Jan

I've noticed that when building custom kernel for imx8 (which is arm64) 
on one of the private projects. Naming decompressed image as compressed 
one cause bootloader configuring issues and general misunderstanding.
Moreover, the same logic is already fixed for riscv, so arm64 also 
should work in the same way.
All additional logic assuming incorrect name should be fixed of course.

-- 
Anton Mikanovich
Promwad Ltd.
External service provider of ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn, Germany
+49 (89) 122 67 24-0
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov


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

* Re: [PATCH] linux-custom: Fix decompressed kernel name for arm64
  2021-01-25 12:51   ` Anton Mikanovich
@ 2021-01-25 13:11     ` Jan Kiszka
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2021-01-25 13:11 UTC (permalink / raw)
  To: Anton Mikanovich, isar-users

On 25.01.21 13:51, Anton Mikanovich wrote:
> 25.01.2021 15:32, Jan Kiszka wrote:
>> On 22.01.21 18:13, Anton Mikanovich wrote:
>>> We are performing gunzip from vmlinuz on arm64, so output should have
>>> correct naming.
>>>
>> What's the practical impact of this change? How did you notice it? Can
>> anything break that expected the old incorrect name?
>>
>> Jan
> 
> I've noticed that when building custom kernel for imx8 (which is arm64)
> on one of the private projects. Naming decompressed image as compressed
> one cause bootloader configuring issues and general misunderstanding.
> Moreover, the same logic is already fixed for riscv, so arm64 also
> should work in the same way.
> All additional logic assuming incorrect name should be fixed of course.
> 

We have tons of arm64 systems out there, that's why I'm asking
cautiously. If you can't specify the impact, whether if it requires a
RECIPE-API-CHANGELOG entry e.g., I guess we need to test it...

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

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

end of thread, other threads:[~2021-01-25 13:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 17:13 [PATCH] linux-custom: Fix decompressed kernel name for arm64 Anton Mikanovich
2021-01-25 12:32 ` Jan Kiszka
2021-01-25 12:51   ` Anton Mikanovich
2021-01-25 13:11     ` Jan Kiszka

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