[U-Boot] [PATCH v3] fs/ext4: Support device block sizes != 512 bytes

2013-05-01 Thread Egbert Eich
From: Egbert Eich e...@suse.com The 512 byte block size was hard coded in the ext4 file systems. Large harddisks today support bigger block sizes typically 4096 bytes. This patch removes this limitation. Signed-off-by: Egbert Eich e...@suse.com --- Changes for v2

[U-Boot] [PATCH] cmd/gpt: Support gpt command for all devices.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com The gpt command was only implemented for mmc devices. There is no reason why this command should not be generalized and be applied all other storage device classes. This change both simplifies the implementation and eliminates a build failure for systems that don't

[U-Boot] [PATCH 0/5] Add Support for Storage Devices with Blocksizes != 512.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com The patches provide fixes for partition tables: - GPT - ISO (to ignore devices with blocksize != 512) The ext4 fs code also got fixed. I've reviewed the fat code, it seems to be ok already (except for a bug that I came across). I may be persuaded to take a shot

[U-Boot] [PATCH 1/5] disk/gpt: Fix GPT Partition handling for Blocksize != 512.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com Disks beyond 2T in size use blocksizes of 4096 bytes. However a lot of code in u-boot still assumes a 512 byte blocksize. Signed-off-by: Egbert Eich e...@suse.com --- disk/part_efi.c| 32 include/common.h | 10

[U-Boot] [PATCH 2/5] disk/iso: Add Support for Block Sizes 512 Byte to ISO partition support.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com For ISO we check the block size of the device if this is != the CD sector size we assume that the device has no ISO partition. Signed-off-by: Egbert Eich e...@suse.com --- disk/part_iso.c |3 +++ include/common.h |2 +- 2 files changed, 4 insertions

[U-Boot] [PATCH 3/5] fs/fat: Don't multiply fatsize with sector size.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com Here at this place we need the fat size in sectors not bytes. Signed-off-by: Egbert Eich e...@suse.com --- fs/fat/fat_write.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index b4022aa..fd07240

[U-Boot] [PATCH 4/5] part/dev_desc: Add log2 of Blocksize to block_dev_desc data struct.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com This value serves as the shift value used to calculate the block number to read in file systems when implementing aviable block sizes. Signed-off-by: Egbert Eich e...@suse.com --- common/cmd_ide.c |4 common/cmd_sata.c |1 + common

[U-Boot] [PATCH 5/5] fs/ext4: Support device block sizes != 512 bytes.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com The 512 byte block size was hard coded in the ext4 file systems. Large harddisks today support bigger block sizes typically 4096 bytes. Signed-off-by: Egbert Eich e...@suse.com --- fs/ext4/dev.c | 52 +-- fs

[U-Boot] [PATCH] cmd/gpt: Support gpt command for all devices.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com The gpt command was only implemented for mmc devices. There is no reason why this command should not be generalized and be applied all other storage device classes. This change both simplifies the implementation and eliminates a build failure for systems that don't

[U-Boot] [PATCH] disk: part_dos: check harder for partition table.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com Devices that used to have a whole disk FAT filesystem but got then partitioned will most likely still have a FAT or FAT32 signature in the first sector as this sector does not get overwritten by a partitioning tool (otherwise the tool would risk to kill the mbr

[U-Boot] [PATCH v2] fs/ext4: Support device block sizes != 512 bytes.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com The 512 byte block size was hard coded in the ext4 file systems. Large harddisks today support bigger block sizes typically 4096 bytes. Signed-off-by: Egbert Eich e...@suse.com --- fs/ext4/dev.c | 60 +++ fs

[U-Boot] [PATCH v2] disk/gpt: Fix GPT Partition handling for Blocksize != 512.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com Disks beyond 2T in size use blocksizes of 4096 bytes. However a lot of code in u-boot still assumes a 512 byte blocksize. Signed-off-by: Egbert Eich e...@suse.com --- disk/part_efi.c| 38 ++ include/common.h | 11

[U-Boot] [PATCH v2] part/dev_desc: Add log2 of Blocksize to block_dev_desc data struct.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com This value serves as the shift value used to calculate the block number to read in file systems when implementing aviable block sizes. Signed-off-by: Egbert Eich e...@suse.com --- common/cmd_ide.c |5 + common/cmd_sata.c |1 + common

[U-Boot] [PATCH v2] cmd/gpt: Support gpt command for all devices.

2013-03-26 Thread egbert . eich
From: Egbert Eich e...@suse.com The gpt command was only implemented for mmc devices. There is no reason why this command should not be generalized and be applied all other storage device classes. This change both simplifies the implementation and eliminates a build failure for systems that don't

[U-Boot] [PATCH] disk/part_dos: check harder for partition table

2013-03-26 Thread Egbert Eich
From: Egbert Eich e...@suse.com Devices that used to have a whole disk FAT filesystem but got then partitioned will most likely still have a FAT or FAT32 signature in the first sector as this sector does not get overwritten by a partitioning tool (otherwise the tool would risk to kill the mbr

[U-Boot] [Patch v2] cmd/gpt: Support gpt command for all devices

2013-04-09 Thread Egbert Eich
From: Egbert Eich e...@suse.com The gpt command was only implemented for mmc devices. There is no reason why this command should not be generalized and be applied all other storage device classes. This change both simplifies the implementation and eliminates a build failure for systems that don't

[U-Boot] [Patch v2] disk/part_dos: check harder for partition table

2013-04-09 Thread Egbert Eich
From: Egbert Eich e...@suse.com Devices that used to have a whole disk FAT filesystem but got then partitioned will most likely still have a FAT or FAT32 signature in the first sector as this sector does not get overwritten by a partitioning tool (otherwise the tool would risk to kill the mbr

[U-Boot] [Patch v2] disk/gpt: Fix GPT partition handling for blocksize != 512

2013-04-09 Thread Egbert Eich
From: Egbert Eich e...@suse.com Disks beyond 2T in size use blocksizes of 4096 bytes. However a lot of code in u-boot still assumes a 512 byte blocksize. This patch fixes the handling of GPTs. Signed-off-by: Egbert Eich e...@suse.com --- Changes for v2: - Coding style fixes. disk/part_efi.c

[U-Boot] [PATCH v2 2/4] fs/fat: Don't multiply fatsize with sector size

2013-04-10 Thread Egbert Eich
From: Egbert Eich e...@suse.com Bugfix: Here at this place we need the fat size in sectors not bytes. This was found during code review when adding support for storage devices with blocksizes != 512. Signed-off-by: Egbert Eich e...@suse.com --- Changes for v2

[U-Boot] [PATCH v2 1/4] disk/iso: Add Support for block sizes 512 byte to ISO partition support

2013-04-10 Thread Egbert Eich
From: Egbert Eich e...@suse.com For ISO we check the block size of the device if this is != the CD sector size we assume that the device has no ISO partition. Signed-off-by: Egbert Eich e...@suse.com --- Changes for v2: - Coding

[U-Boot] [PATCH v2 0/4] Add Support for Storage Devices with Blocksizes != 512

2013-04-10 Thread Egbert Eich
From: Egbert Eich e...@suse.de Storage devices with more than 2TB generally use blocksizes of 4096 bytes, So far u-boot was unable to boot from those devices as block sizes were hard coded to 512 bytes. This patchset adds support for blocksizes != 512 byte to: - the ISO partition table

[U-Boot] [PATCH v2 4/4] fs/ext4: Support device block sizes != 512 bytes

2013-04-10 Thread Egbert Eich
From: Egbert Eich e...@suse.com The 512 byte block size was hard coded in the ext4 file systems. Large harddisks today support bigger block sizes typically 4096 bytes. This patch removes this limitation. Signed-off-by: Egbert Eich e...@suse.com --- Changes for v2

[U-Boot] [PATCH v2 3/4] part/dev_desc: Add log2 of blocksize to block_dev_desc data struct

2013-04-10 Thread Egbert Eich
From: Egbert Eich e...@suse.com log2 of the device block size serves as the shift value used to calculate the block number to read in file systems when implementing avaiable block sizes. It is needed quite often in file systems thus it is pre-calculated and stored in the block device descriptor

[U-Boot] [Patch v3] cmd/gpt: Support gpt command for all devices

2013-10-04 Thread Egbert Eich
From: Egbert Eich e...@suse.com The gpt command was only implemented for mmc devices. There is no reason why this command should not be generalized and be applied all other storage device classes. This change both simplifies the implementation and eliminates a build failure for systems that don't

[U-Boot] [PATCH] config: Define HAVE_BLOCK_DEVICE when CONFIG_CMD_GPT is set

2013-10-04 Thread Egbert Eich
From: Egbert Eich e...@suse.com Signed-off-by: Egbert Eich e...@suse.com --- include/config_fallbacks.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index e59ee96..5c8acdb 100644 --- a/include/config_fallbacks.h +++ b/include

[U-Boot] [PATCH] config/sandbox: Add EFI and GPT support

2013-10-04 Thread Egbert Eich
From: Egbert Eich e...@suse.com Signed-off-by: Egbert Eich e...@suse.com --- include/configs/sandbox.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 4027030..b18cafb 100644 --- a/include/configs/sandbox.h +++ b/include/configs

Re: [U-Boot] [Patch v3] cmd/gpt: Support gpt command for all devices

2013-10-12 Thread Egbert Eich
On Fri, Oct 11, 2013 at 09:13:22AM +0200, Piotr Wilczek wrote: Dear Egbert Eich, -Original Message- From: Egbert Eich [mailto:egbert.e...@gmail.com] Sent: Friday, October 04, 2013 6:53 PM To: u-boot@lists.denx.de Cc: Piotr Wilczek; Tom Rini; Egbert Eich; Egbert Eich Subject