Skip to contentSkip to conversation

trats: Enable EXT4 and EFI partitions support on Samsung's Trats board

PATCH New Lukasz Majewski 2 participants 3 messages Oct 4, 2012 – Oct 12, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trats: Enable EXT4 and EFI partitions support on Samsung's Trats board

---
 include/configs/trats.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
include/configs/trats.h +5 -1
index b3b5a3d..aaf64eb 100644
@@ -104,6 +104,9 @@
 #define CONFIG_CMD_FAT
 #define CONFIG_FAT_WRITE
 
+/* EXT4 */
+#define CONFIG_CMD_EXT4
+
 /* USB Composite download gadget - g_dnl */
 #define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_DFU_FUNCTION
@@ -167,7 +170,7 @@
 	"meminfo=crashkernel=32M at 0x50000000\0" \
 	"nfsroot=/nfsroot/arm\0" \
 	"bootblock=" CONFIG_BOOTBLOCK "\0" \
-	"loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
+	"loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
 	"mmcdev=0\0" \
 	"mmcbootpart=2\0" \
 	"mmcrootpart=3\0" \
@@ -208,6 +211,7 @@
 #define CONFIG_ENV_OFFSET		((32 - 4) << 10) /* 32KiB - 4KiB */
 
 #define CONFIG_DOS_PARTITION
+#define CONFIG_EFI_PARTITION
 
 #define CONFIG_SYS_INIT_SP_ADDR	(CONFIG_SYS_LOAD_ADDR - GENERATED_GBL_DATA_SIZE)
 #define CONFIG_SYS_CACHELINE_SIZE       32
Signature · 1 line
1.7.2.3
#1 lore raw

PATCH 1/1 trats: Enable EXT4 and EFI partitions support on Samsung's Trats board

Dear Lukasz,

include/configs/trats.h line 105

Quoted 13 lines · Lukasz Majewski
---
 include/configs/trats.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
include/configs/trats.h +0 -0
index b3b5a3d..aaf64eb 100644
@@ -104,6 +104,9 @@
 #define CONFIG_CMD_FAT
 #define CONFIG_FAT_WRITE

So, do we need to keep FAT related features?

Quoted 17 lines
include/configs/trats.h +4 -1
+/* EXT4 */
+#define CONFIG_CMD_EXT4
+
 /* USB Composite download gadget - g_dnl */
 #define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_DFU_FUNCTION
@@ -167,7 +170,7 @@
        "meminfo=crashkernel=32M at 0x50000000\0" \
        "nfsroot=/nfsroot/arm\0" \
        "bootblock=" CONFIG_BOOTBLOCK "\0" \
-       "loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
+       "loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
        "mmcdev=0\0" \
        "mmcbootpart=2\0" \
        "mmcrootpart=3\0" \

include/configs/trats.h line 213

Quoted 3 lines
include/configs/trats.h +0 -0
@@ -208,6 +211,7 @@
 #define CONFIG_ENV_OFFSET              ((32 - 4) << 10) /* 32KiB - 4KiB */
 
 #define CONFIG_DOS_PARTITION

also dos partition.

include/configs/trats.h line 215

Quoted 2 lines
include/configs/trats.h +1 -0
+#define CONFIG_EFI_PARTITION
 

Thanks
Minkyu Kang.

Signature · 2 lines
from. prom.
www.promsoft.net
#2 lore raw

PATCH 1/1 trats: Enable EXT4 and EFI partitions support on Samsung's Trats board

Hi Minkyu,

Quoted 10 lines

Dear Lukasz,

Quoted 6 lines · Lukasz Majewski
---
 include/configs/trats.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
Quoted 9 lines

include/configs/trats.h line 105

Quoted 7 lines
include/configs/trats.h +0 -0
index b3b5a3d..aaf64eb 100644
@@ -104,6 +104,9 @@
 #define CONFIG_CMD_FAT
 #define CONFIG_FAT_WRITE

So, do we need to keep FAT related features?

Since the ext4 is not fully stabilized - I would opt for keeping the FAT support for default (mainline) trats configuration.

Quoted 22 lines
Quoted 22 lines
include/configs/trats.h +4 -1
+/* EXT4 */
+#define CONFIG_CMD_EXT4
+
 /* USB Composite download gadget - g_dnl */
 #define CONFIG_USBDOWNLOAD_GADGET
 #define CONFIG_DFU_FUNCTION
@@ -167,7 +170,7 @@
        "meminfo=crashkernel=32M at 0x50000000\0" \
        "nfsroot=/nfsroot/arm\0" \
        "bootblock=" CONFIG_BOOTBLOCK "\0" \
-       "loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x40007FC0
 uImage\0" \
+       "loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart}
 0x40007FC0 uImage\0" \ "mmcdev=0\0" \
        "mmcbootpart=2\0" \
        "mmcrootpart=3\0" \
include/configs/trats.h +0 -0
@@ -208,6 +211,7 @@
 #define CONFIG_ENV_OFFSET              ((32 - 4) << 10) /* 32KiB -

4KiB */

Quoted 3 lines
Quoted 1 line

#define CONFIG_DOS_PARTITION

also dos partition.

EFI patches are on the way to mainline, but aren't accepted. I would like to keep DOS partitions support at least until EFI support is done.

Quoted 6 lines
Quoted 3 lines

+#define CONFIG_EFI_PARTITION

Thanks
Minkyu Kang.

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung Poland R&D Center | Linux Platform Group