From patchwork Mon Dec 22 11:56:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 72 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404618; bh=ooIQKGgm7QQd6M2Y29rY1iRBAye75gTyFISqdilDi5c=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Xu1ksQWr8aFGLMLnWmqgO14XpZ1+WdxzzJBAm4omWbLn49/ZuBwwxraSnxj8It0Zt cLpn/HoDd6I81RjaQ9338fGwG/TeTXrMJDYPXxrg9xJymWHyFdub692egMZ79aeTiB qTOhkslbnAgMCetVGcPPIqboOQ4LLm2brtwLIaZCRyK5t7quSslTB89bxFSZOhV1fc tltGK02NTHPLe0XGFuoHUDRIo5LkhmlydAHV3b2T2D9aA7KZAXngc1e2ffKvKgL3BS 65Jjh5CYGlUangap28iMQdDrYGNa6N69CbgMW+hJKltBtrUa4eslpkIaHW3ytiighX CWtIp/vjZELIQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 65FA364D60 for ; Mon, 22 Dec 2025 04:56:58 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id UA9Ni56dMahe for ; Mon, 22 Dec 2025 04:56:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404618; bh=ooIQKGgm7QQd6M2Y29rY1iRBAye75gTyFISqdilDi5c=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Xu1ksQWr8aFGLMLnWmqgO14XpZ1+WdxzzJBAm4omWbLn49/ZuBwwxraSnxj8It0Zt cLpn/HoDd6I81RjaQ9338fGwG/TeTXrMJDYPXxrg9xJymWHyFdub692egMZ79aeTiB qTOhkslbnAgMCetVGcPPIqboOQ4LLm2brtwLIaZCRyK5t7quSslTB89bxFSZOhV1fc tltGK02NTHPLe0XGFuoHUDRIo5LkhmlydAHV3b2T2D9aA7KZAXngc1e2ffKvKgL3BS 65Jjh5CYGlUangap28iMQdDrYGNa6N69CbgMW+hJKltBtrUa4eslpkIaHW3ytiighX CWtIp/vjZELIQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 519BD64D3E for ; Mon, 22 Dec 2025 04:56:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404616; bh=rLpl/lNP7SlZYznJKzte2lMWwRRGQfReW+3LdKOX3fw=; h=From:To:Cc:Subject:Date:From; b=GoLQ/YU5bLgiYoP8J+Eu2ERhIAo1IrV0Dgl69h2qwjxErAu0Q3LK81Olo0bNc7ZT5 QbQ3ZrRXMEoH9G1D/sYj4ICTFkQo/TCME54sIY9D6xWsN1ECpjiRl2z15GNB9Tg8y8 kHT4S0P2aLzpQYjJe6GH+XUSfTWeAengbMeqqo5WbpqOatjudLNIgjw7NVHLZmG6f4 MFqPkneFeBsg+LjLpiUQbgnSApyFx1HyqTXXKdiwCwCJwgkcamdiVciyjNoQ7LE+tU 8zz7Y5geb7GzgZj5OHegdBP1Z/KTYWW0ASXz3tAHC1N+rwBt67XuQFxUAI4w3CUzli xQboY4bv6EwvA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7453A64C31; Mon, 22 Dec 2025 04:56:56 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id LwSNrs2g7kMZ; Mon, 22 Dec 2025 04:56:56 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404612; bh=3NPx+OXdQJfDB8e+dCdXtzSjCjpbM3RphvPJIl6WDds=; h=From:To:Cc:Subject:Date:From; b=EPfpI/brT8jvkqnsnCGLSV1DS7srmCZFDpelk0yb31YzV8ZKOFdIDmSixQ6sQp+n8 KXqxSIiysDb7JRAPqHk0jIRuSmioV/TYy/lK7YeFp9g6q8Z/nO10q2Da6WhJCyoeY6 kL/ZvYhz0iFSx9MzXKqNtq20UErcXjnnW6VfQMTmxQKyhzQ2Qyk8b4HiOCkHGPyXes JYBqrzpN+D9vziuGs4cdVl9BH5ygsHsr+4LAqwn83WYDck0NX1mCtpxJze3mz78pET Bvx3rc7GaYp6z2Ya6+GSeY9e0OtapQjJWXcTyHCjRra7yAVmjCyhYz6dFAH1IyCwMD NtGFDX8Eo24mg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 098355FB5A; Mon, 22 Dec 2025 04:56:51 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Dec 2025 04:56:04 -0700 Message-ID: <20251222115639.700578-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: EYA35MOHP3W32E2YJFHCYB5LXWF6CTDV X-Message-ID-Hash: EYA35MOHP3W32E2YJFHCYB5LXWF6CTDV X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/26] fs: ext4l: Add support for mounting ext4 filesystems (part G) List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass This series adds the ext4l filesystem driver, which is a port of the Linux ext4 driver to U-Boot. It allows mounting ext4 filesystems in read-only mode. The driver uses Linux kernel code directly where possible, with compatibility shims to handle differences between Linux and U-Boot. This approach makes it easier to keep the driver up to date with upstream changes. Key features: - Read-only mounting of ext4 filesystems - Support for extents, flex_bg, and other ext4 features - Buffer cache for improved performance - CRC32C checksums for metadata verification Simon Glass (26): fs: ext4l: Add minimal probe support linux: Move common types to types.h fs: ext4l: Add CONFIG_EXT4_JOURNAL option linux: Add jiffies.h with MAX_JIFFY_OFFSET linux: Add blk_types.h with blk_opf_t linux: Add BDEVNAME_SIZE to blkdev.h linux: Update jbd2.h includes linux: printk: Fix KERN_* macros for string concatenation linux: Add rwlock support to spinlock.h fs: ext4l: Use types from linux headers fs: jbd2: Add jbd2_journal_init_global() for ext4l fs: ext4: Allow EXT4_WRITE with FS_EXT4L fs: ext4l: Initialise multi-block allocator fs: ext4l: Initialise extent status cache fs: ext4l: Add super_block and block_device allocations fs: ext4l: Allocate fs_context fs: ext4l: Allocate ext4_fs_context fs: ext4l: Initialise super_block and call ext4_fill_super() fs: ext4l: Add buffer_head I/O infrastructure fs: ext4l: Add CONFIG_EXT4L_DEBUG to control messages fs: ext4l: Use real rbtree implementation fs: ext4l: Add CRC32C implementation linux: crc32c: Use ext4l CRC32C implementation fs: ext4l: Mount filesystems read-only fs: ext4l: Add inode and bmap functions fs: ext4l: Support mounting a filesystem read-only .pickman-history | 121 +++ arch/arm/dts/k3-am62a-ddr.dtsi | 7 +- arch/arm/dts/k3-j721s2-ddr.dtsi | 12 +- arch/arm/dts/k3-j784s4-ddr.dtsi | 24 +- arch/arm/mach-k3/Kconfig | 3 + arch/arm/mach-k3/Makefile | 2 +- arch/arm/mach-k3/am62px/am62p5_fdt.c | 83 ++ arch/arm/mach-k3/am62px/am62p5_init.c | 62 ++ .../arm/mach-k3/include/mach/am62p_hardware.h | 65 ++ arch/arm/mach-k3/include/mach/k3-ddr.h | 15 + arch/arm/mach-k3/k3-ddr.c | 72 ++ board/ti/am62ax/evm.c | 17 +- board/ti/am62px/evm.c | 17 +- board/ti/am62x/evm.c | 63 +- board/ti/am64x/evm.c | 73 +- board/ti/am65x/evm.c | 29 +- board/ti/common/Makefile | 1 + board/ti/common/k3-ddr.c | 33 + board/ti/common/k3-ddr.h | 12 + board/ti/j721e/evm.c | 29 +- board/ti/j721s2/evm.c | 35 +- board/ti/j722s/evm.c | 17 +- board/ti/j784s4/evm.c | 17 +- configs/am62ax_evm_a53_defconfig | 1 - configs/am62px_evm_a53_defconfig | 1 - configs/am62x_evm_a53_defconfig | 1 - configs/am62x_evm_r5_defconfig | 1 - configs/am64x_evm_a53_defconfig | 1 - configs/am64x_evm_r5_defconfig | 1 - configs/am65x_evm_a53_defconfig | 1 - configs/am65x_evm_r5_defconfig | 1 - configs/am65x_evm_r5_usbdfu_defconfig | 1 - configs/am65x_evm_r5_usbmsc_defconfig | 1 - configs/j7200_evm_a72_defconfig | 1 - configs/j721e_evm_a72_defconfig | 1 - configs/j721s2_evm_a72_defconfig | 1 - configs/j722s_evm_a53_defconfig | 1 - configs/j784s4_evm_a72_defconfig | 1 - drivers/ram/Kconfig | 10 + drivers/ram/k3-ddrss/k3-ddrss.c | 219 +++++- fs/Makefile | 2 +- fs/ext4/Kconfig | 2 +- fs/ext4l/Kconfig | 23 + fs/ext4l/Makefile | 2 +- fs/ext4l/ext4.h | 31 + fs/ext4l/ext4_uboot.h | 151 ++-- fs/ext4l/extents_status.c | 5 +- fs/ext4l/interface.c | 224 +++++- fs/ext4l/stub.c | 49 +- fs/ext4l/super.c | 38 +- fs/ext4l/support.c | 555 +++++++++++++ fs/fs_legacy.c | 5 +- fs/jbd2/journal.c | 22 + include/ext4l.h | 31 + include/linux/blk_types.h | 18 + include/linux/blkdev.h | 3 + include/linux/buffer_head.h | 8 +- include/linux/compat.h | 16 +- include/linux/crc32c.h | 19 +- include/linux/jbd2.h | 5 + include/linux/jiffies.h | 18 + include/linux/printk.h | 18 +- include/linux/spinlock.h | 21 + include/linux/types.h | 36 + tools/buildman/func_test.py | 1 + tools/buildman/main.py | 4 +- tools/buildman/test_boards.py | 739 ++++++++++++++++++ tools/pickman/README.rst | 70 +- tools/pickman/agent.py | 69 +- tools/pickman/control.py | 73 ++ tools/pickman/ftest.py | 82 ++ 71 files changed, 2907 insertions(+), 486 deletions(-) create mode 100644 arch/arm/mach-k3/include/mach/k3-ddr.h create mode 100644 arch/arm/mach-k3/k3-ddr.c create mode 100644 board/ti/common/k3-ddr.c create mode 100644 board/ti/common/k3-ddr.h create mode 100644 fs/ext4l/support.c create mode 100644 include/ext4l.h create mode 100644 include/linux/blk_types.h create mode 100644 include/linux/jiffies.h create mode 100644 tools/buildman/test_boards.py