{"id":2225583,"url":"http://patchwork.ozlabs.org/api/1.2/covers/2225583/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/cover.1776759754.git.weijie.gao@mediatek.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<cover.1776759754.git.weijie.gao@mediatek.com>","list_archive_url":null,"date":"2026-04-21T08:35:39","name":"[v2,0/8] Add support for ubi environment to create volumes","submitter":{"id":75269,"url":"http://patchwork.ozlabs.org/api/1.2/people/75269/?format=json","name":"Weijie Gao","email":"weijie.gao@mediatek.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/cover.1776759754.git.weijie.gao@mediatek.com/mbox/","series":[{"id":500759,"url":"http://patchwork.ozlabs.org/api/1.2/series/500759/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=500759","date":"2026-04-21T08:35:39","name":"Add support for ubi environment to create volumes","version":2,"mbox":"http://patchwork.ozlabs.org/series/500759/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2225583/comments/","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256\n header.s=dk header.b=PLLQ2xri;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=mediatek.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=mediatek.com header.i=@mediatek.com\n header.b=\"PLLQ2xri\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=mediatek.com","phobos.denx.de;\n spf=pass smtp.mailfrom=weijie.gao@mediatek.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0G0B0nx5z1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 18:35:54 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id B2F1E8431E;\n\tTue, 21 Apr 2026 10:35:51 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 655CA84390; Tue, 21 Apr 2026 10:35:50 +0200 (CEST)","from mailgw02.mediatek.com (unknown [210.61.82.184])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id D976C84258\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 10:35:46 +0200 (CEST)","from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by\n mailgw02.mediatek.com (envelope-from <weijie.gao@mediatek.com>)\n (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256)\n with ESMTP id 509235258; Tue, 21 Apr 2026 16:35:41 +0800","from mtkmbs13n1.mediatek.inc (172.21.101.193) by\n mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.2562.29; Tue, 21 Apr 2026 16:35:40 +0800","from mcddlt001.gcn.mediatek.inc (10.19.240.15) by\n mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id\n 15.2.2562.29 via Frontend Transport; Tue, 21 Apr 2026 16:35:39 +0800"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,\n UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2","X-UUID":["14b7a1503d5d11f19a16598d5ca7f8ec-20260421","14b7a1503d5d11f19a16598d5ca7f8ec-20260421"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n d=mediatek.com;\n s=dk;\n h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From;\n bh=HqRrDJkGtvQuJaBck1Eem1vcOSdlack2qNrkn0GeAhQ=;\n b=PLLQ2xriHy47dn9+u953EN2B0vrXZTAxvzDHbBaHrfQoXEvB2ExtCVUdMHCDXPk8E9YYSCsqbH6ofusopVjJCShICUF7jVYbsUu8fOPgcrWCJrzNWGUTxKQjoJpOaInZ2IEMhVb9gyB8dvUNk7j+P0VLLM/I1Ik1LpsGkM/d2ds=;","X-CID-P-RULE":"Release_Ham","X-CID-O-INFO":"VERSION:1.3.12, REQID:10239a89-288f-4202-b54e-5aa9697c6a23,\n IP:0,\n U\n RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION\n :release,TS:-5","X-CID-META":"VersionHash:e7bac3a, CLOUDID:cfb01cd6-060f-4ecc-9ee0-121eeeb4a682,\n B\n ulkID:nil,BulkQuantity:0,Recheck:0,SF:102|836|865|888|898,TC:-5,Content:0|\n 15|50,EDM:-3,IP:nil,URL:0,File:130,RT:0,Bulk:nil,QS:nil,BEC:-1,COL:0,OSI:0\n ,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0","X-CID-BVR":"2,SSN|SDN","X-CID-BAS":"2,SSN|SDN,0,_","X-CID-FACTOR":"TF_CID_SPAM_SNR","X-CID-RHF":"D41D8CD98F00B204E9800998ECF8427E","From":"Weijie Gao <weijie.gao@mediatek.com>","To":"<u-boot@lists.denx.de>","CC":"GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>, Tom Rini\n <trini@konsulko.com>, Marek Vasut <marek.vasut+renesas@mailbox.org>, Simon\n Glass <sjg@chromium.org>, Weijie Gao <weijie.gao@mediatek.com>","Subject":"[PATCH v2 0/8] Add support for ubi environment to create volumes","Date":"Tue, 21 Apr 2026 16:35:39 +0800","Message-ID":"<cover.1776759754.git.weijie.gao@mediatek.com>","X-Mailer":"git-send-email 2.17.0","MIME-Version":"1.0","Content-Type":"text/plain","X-MTK":"N","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"This patch series expose more ubi helpers to allow the ubi environment to\ncreate ubi env volumes if not exist.\n\nChanges:\nv2: Add const qualifier for char */void * in function parameters\n    Adjust normal command message\n\nWeijie Gao (8):\n  ubi: remove unnecessary extern directive from function prototypes\n  cmd: ubi: mark read-only function parameters with const\n  cmd: ubi: use void * for buf parameter in ubi_volume_read\n  cmd: ubifs: mark string parameters with const\n  cmd: ubi: reorganize command messages\n  cmd: ubi: expose more APIs to public\n  cmd: ubi: allow creating volume with all free spaces in ubi_create_vol\n  env: ubi: add support to create environment volume if it does not\n    exist\n\n cmd/ubi.c             | 141 ++++++++++++++++++++++++++++--------------\n cmd/ubifs.c           |   2 +-\n env/Kconfig           |  11 ++++\n env/ubi.c             |  34 +++++++++-\n fs/ubifs/super.c      |   2 +-\n fs/ubifs/ubifs.c      |   2 +-\n include/ubi_uboot.h   |  20 +++---\n include/ubifs_uboot.h |   4 +-\n 8 files changed, 154 insertions(+), 62 deletions(-)"}