[SLOF] [PATCH slof 00/10] ext4, gpt, LE ELF

Alexey Kardashevskiy aik at ozlabs.ru
Tue Dec 31 14:04:47 AEDT 2019

This is to make 'boot disk:2,boot\zImage' work when /dev/sda2 is
rather huge ext4 partition with a little endian zImage.
Found few issues on the way.

10/10 is the most questionable - what is the right of doing it?
By default SLOF looks at ELF, that says "0 is base address" but
SLOF itself claims 16KB in slof/fs/claim.fs (grep for
MIN-RAM-RESERVE) so the images have to be loaded elsewhere but

Please comment. Thanks.

Alexey Kardashevskiy (10):
  disk-label: Prepare for extenting
  disk-label: Support Linux GPT partition type
  disk-label: Try ext2 filesystem when booting from GPT partition
  ext2: Prepare for extending
  ext2: Rename group-desc-size
  ext2: Read size of group descriptors
  ext2: Read all 64bit of inode number
  ext2/4: Add basic extent tree support
  elf64: Add LE64 ABIv1/2 support for loading images to given address
  [HACK] boot: Force loading images at 64MB

 lib/libelf/elf.c               |   8 +++
 slof/fs/boot.fs                |   1 +
 slof/fs/packages/disk-label.fs |  66 +++++++++---------
 slof/fs/packages/ext2-files.fs | 123 ++++++++++++++++++++++++++++-----
 4 files changed, 146 insertions(+), 52 deletions(-)


More information about the SLOF mailing list