From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Wed, 30 Jan 2019 00:24:29 +0100 Subject: [U-Boot] [PATCH v1 0/3] Add support for symlink creation in EXT4 In-Reply-To: <20190129134011.30407-1-jjhiblot@ti.com> References: <20190129134011.30407-1-jjhiblot@ti.com> Message-ID: <20190130002429.39e60861@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 29 Jan 2019 14:40:08 +0100 Jean-Jacques Hiblot wrote: > This series adds support for the creation of symbolic links on ext4 > file-systems. > The motivation behind this work is to have the ability to "do" the job > of update-alternatives in u-boot. > Firmware on TI's platform are usually managed with > update-alternatives and are thus targeted by a symbolic link. In some > situations we need the ability to select an alternate firmware before > the linux kernel is started so that when a early driver needing the > firmware comes up, it can be fed the firmware of our choice. > > Tested on a am57xx_evm, using a EXT4 partition on external SDcard. > The filesystem can be checked later with: fsck.ext4 -f > > usage example: > => ln mmc 0:2 zImage /boot/the_linux_kernel Could you also add a test for symlink to sandbox? This is a high level code (FS ext4), so it can be nice tested there. > > > Jean-Jacques Hiblot (3): > fs: ext4: constify the buffer passed to write functions > fs: ext4: Add support for the creation of symbolic links > fs: Add a new command to create symbolic links > > cmd/fs.c | 14 ++++++++++++ > fs/ext4/ext4_common.c | 6 ++--- > fs/ext4/ext4_common.h | 2 +- > fs/ext4/ext4_write.c | 51 > ++++++++++++++++++++++++++++++++----------- fs/fs.c | > 44 +++++++++++++++++++++++++++++++++++++ include/ext4fs.h | 5 > +++-- include/fs.h | 2 ++ > 7 files changed, 105 insertions(+), 19 deletions(-) > Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: