Patch "riscv: boot: Fix creation of loader.bin" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    riscv: boot: Fix creation of loader.bin

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     riscv-boot-fix-creation-of-loader.bin.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7cb31dd876e2c98a8a63cf1c83aabf62aadbb3a7
Author: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Date:   Tue Oct 24 16:53:18 2023 +0200

    riscv: boot: Fix creation of loader.bin
    
    [ Upstream commit 57a4542cb7c9baa1509c3366b57a08d75b212ead ]
    
    When flashing loader.bin for K210 using kflash:
    
        [ERROR] This is an ELF file and cannot be programmed to flash directly: arch/riscv/boot/loader.bin
    
    Before, loader.bin relied on "OBJCOPYFLAGS := -O binary" in the main
    RISC-V Makefile to create a boot image with the right format.  With this
    removed, the image is now created in the wrong (ELF) format.
    
    Fix this by adding an explicit rule.
    
    Fixes: 505b02957e74f0c5 ("riscv: Remove duplicate objcopy flag")
    Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/1086025809583809538dfecaa899892218f44e7e.1698159066.git.geert+renesas@xxxxxxxxx
    Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile
index 22b13947bd131..8e7fc0edf21d3 100644
--- a/arch/riscv/boot/Makefile
+++ b/arch/riscv/boot/Makefile
@@ -17,6 +17,7 @@
 KCOV_INSTRUMENT := n
 
 OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
+OBJCOPYFLAGS_loader.bin :=-O binary
 OBJCOPYFLAGS_xipImage :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
 
 targets := Image Image.* loader loader.o loader.lds loader.bin



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux