public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v1 0/3] Add support for symlink creation in EXT4
@ 2019-01-29 13:40 Jean-Jacques Hiblot
  2019-01-29 13:40 ` [U-Boot] [PATCH v1 1/3] fs: ext4: constify the buffer passed to write functions Jean-Jacques Hiblot
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jean-Jacques Hiblot @ 2019-01-29 13:40 UTC (permalink / raw)
  To: u-boot


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 <dev>

usage example:
=> ln mmc 0:2 zImage /boot/the_linux_kernel


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(-)

-- 
2.17.1

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

end of thread, other threads:[~2019-01-29 23:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-29 13:40 [U-Boot] [PATCH v1 0/3] Add support for symlink creation in EXT4 Jean-Jacques Hiblot
2019-01-29 13:40 ` [U-Boot] [PATCH v1 1/3] fs: ext4: constify the buffer passed to write functions Jean-Jacques Hiblot
2019-01-29 13:40 ` [U-Boot] [PATCH v1 2/3] fs: ext4: Add support for the creation of symbolic links Jean-Jacques Hiblot
2019-01-29 13:40 ` [U-Boot] [PATCH v1 3/3] fs: Add a new command to create " Jean-Jacques Hiblot
2019-01-29 23:24 ` [U-Boot] [PATCH v1 0/3] Add support for symlink creation in EXT4 Lukasz Majewski
2019-01-29 23:26   ` Tom Rini

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