* [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions
@ 2011-11-14 15:19 Sanjeev Premi
2011-11-14 15:19 ` [U-Boot] [PATCH 1/2] part_efi: Fix compile errors Sanjeev Premi
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Sanjeev Premi @ 2011-11-14 15:19 UTC (permalink / raw)
To: u-boot
After enabling CONFIG_EFI_PARTITION, following errors were
noticed.
part_efi.c: In function 'print_part_efi':
part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'get_partition_info_efi':
part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
' from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'alloc_read_gpt_entries':
part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclar
ed (first use in this function)
part_efi.c:384:18: note: each undeclared identifier is reporte
d only once for each function it appears in
make[1]: *** [part_efi.o] Error 1
make[1]: Leaving directory `/db/psp_git/users/a0756819/u-boot/
disk'
make: *** [disk/libdisk.o] Error 2
Fixes for these errors are contained in PATCH 1/2.
Tested working via command "mmc part" on OMAP3EVM on MMC card
with EFI partitions.
Sanjeev Premi (2):
part_efi: Fix compile errors
omap3evm: Add support for EFI partitions
disk/part_efi.c | 4 ++--
include/configs/omap3_evm.h | 1 +
include/configs/omap3_evm_common.h | 3 +++
3 files changed, 6 insertions(+), 2 deletions(-)
Cc: Sandeep Paulraj <s-paulraj@ti.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] part_efi: Fix compile errors
2011-11-14 15:19 [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions Sanjeev Premi
@ 2011-11-14 15:19 ` Sanjeev Premi
2011-11-14 21:23 ` Anton Staaf
2011-11-14 15:19 ` [U-Boot] [PATCH 2/2] omap3evm: Add support for EFI partitions Sanjeev Premi
2011-11-14 15:34 ` [U-Boot] [PATCH 0/2] " Tom Rini
2 siblings, 1 reply; 7+ messages in thread
From: Sanjeev Premi @ 2011-11-14 15:19 UTC (permalink / raw)
To: u-boot
Fix errors noticed after enabling CONFIG_EFI_PARTITION
for the OMAP3 EVM board:
part_efi.c: In function 'print_part_efi':
part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'get_partition_info_efi':
part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
' from incompatible pointer type
part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
ument is of type 'struct gpt_header **'
part_efi.c: In function 'alloc_read_gpt_entries':
Signed-off-by: Sanjeev Premi <premi@ti.com>
---
disk/part_efi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/disk/part_efi.c b/disk/part_efi.c
index e7f2714..ddf80a7 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -130,7 +130,7 @@ void print_part_efi(block_dev_desc_t * dev_desc)
}
/* This function validates AND fills in the GPT header and PTE */
if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
- &(gpt_head), &gpt_pte) != 1) {
+ gpt_head, &gpt_pte) != 1) {
printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
return;
}
@@ -169,7 +169,7 @@ int get_partition_info_efi(block_dev_desc_t * dev_desc, int part,
/* This function validates AND fills in the GPT header and PTE */
if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
- &(gpt_head), &gpt_pte) != 1) {
+ gpt_head, &gpt_pte) != 1) {
printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
return -1;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 2/2] omap3evm: Add support for EFI partitions
2011-11-14 15:19 [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions Sanjeev Premi
2011-11-14 15:19 ` [U-Boot] [PATCH 1/2] part_efi: Fix compile errors Sanjeev Premi
@ 2011-11-14 15:19 ` Sanjeev Premi
2011-11-14 15:34 ` [U-Boot] [PATCH 0/2] " Tom Rini
2 siblings, 0 replies; 7+ messages in thread
From: Sanjeev Premi @ 2011-11-14 15:19 UTC (permalink / raw)
To: u-boot
Defines CONFIG_EFI_PARTITION for OMAP3 EVM.
Also, fix this board specific error noticed after
enabling this config option:
part_efi.c: In function 'alloc_read_gpt_entries':
part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclare
d (first use in this function)
Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
---
Cache line length for ARM Cortex-A8 can be referenced here:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344f/Chdebced.html
I wasn't sure if these changes should be treated separate,
so keeping them in same file - but can be split if needed.
include/configs/omap3_evm.h | 1 +
include/configs/omap3_evm_common.h | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h
index 47ec39f..9228ef1 100644
--- a/include/configs/omap3_evm.h
+++ b/include/configs/omap3_evm.h
@@ -84,6 +84,7 @@
#define CONFIG_GENERIC_MMC
#define CONFIG_OMAP_HSMMC
#define CONFIG_DOS_PARTITION
+#define CONFIG_EFI_PARTITION
/* USB
*
diff --git a/include/configs/omap3_evm_common.h b/include/configs/omap3_evm_common.h
index 54aa7a7..905a7b0 100644
--- a/include/configs/omap3_evm_common.h
+++ b/include/configs/omap3_evm_common.h
@@ -53,6 +53,9 @@
/* Size of malloc pool */
#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (128 << 10))
+/* Size of cache line */
+#define CONFIG_SYS_CACHELINE_SIZE 64
+
/*
* Stack sizes
* These values are used in start.S
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions
2011-11-14 15:19 [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions Sanjeev Premi
2011-11-14 15:19 ` [U-Boot] [PATCH 1/2] part_efi: Fix compile errors Sanjeev Premi
2011-11-14 15:19 ` [U-Boot] [PATCH 2/2] omap3evm: Add support for EFI partitions Sanjeev Premi
@ 2011-11-14 15:34 ` Tom Rini
2011-11-15 6:44 ` Premi, Sanjeev
2 siblings, 1 reply; 7+ messages in thread
From: Tom Rini @ 2011-11-14 15:34 UTC (permalink / raw)
To: u-boot
On Mon, Nov 14, 2011 at 8:19 AM, Sanjeev Premi <premi@ti.com> wrote:
> After enabling CONFIG_EFI_PARTITION, following errors were
> noticed.
>
> part_efi.c: In function 'print_part_efi':
> part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
> ?from incompatible pointer type
> part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> ument is of type 'struct gpt_header **'
> part_efi.c: In function 'get_partition_info_efi':
> part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
> ' from incompatible pointer type
> part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> ument is of type 'struct gpt_header **'
> part_efi.c: In function 'alloc_read_gpt_entries':
> part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclar
> ed (first use in this function)
> part_efi.c:384:18: note: each undeclared identifier is reporte
> d only once for each function it appears in
> make[1]: *** [part_efi.o] Error 1
> make[1]: Leaving directory `/db/psp_git/users/a0756819/u-boot/
> disk'
> make: *** [disk/libdisk.o] Error 2
Is there a reason EFI doesn't use ARCH_DMA_MINALIGN ?
--
Tom
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] part_efi: Fix compile errors
2011-11-14 15:19 ` [U-Boot] [PATCH 1/2] part_efi: Fix compile errors Sanjeev Premi
@ 2011-11-14 21:23 ` Anton Staaf
0 siblings, 0 replies; 7+ messages in thread
From: Anton Staaf @ 2011-11-14 21:23 UTC (permalink / raw)
To: u-boot
On Mon, Nov 14, 2011 at 7:19 AM, Sanjeev Premi <premi@ti.com> wrote:
> Fix errors noticed after enabling CONFIG_EFI_PARTITION
> for the OMAP3 EVM board:
There is already a patch for this waiting to be committed.
Thanks,
Anton
> part_efi.c: In function 'print_part_efi':
> part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
> ?from incompatible pointer type
> part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> ument is of type 'struct gpt_header **'
> part_efi.c: In function 'get_partition_info_efi':
> part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
> ' from incompatible pointer type
> part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> ument is of type 'struct gpt_header **'
> part_efi.c: In function 'alloc_read_gpt_entries':
>
> Signed-off-by: Sanjeev Premi <premi@ti.com>
> ---
> ?disk/part_efi.c | ? ?4 ++--
> ?1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/disk/part_efi.c b/disk/part_efi.c
> index e7f2714..ddf80a7 100644
> --- a/disk/part_efi.c
> +++ b/disk/part_efi.c
> @@ -130,7 +130,7 @@ void print_part_efi(block_dev_desc_t * dev_desc)
> ? ? ? ?}
> ? ? ? ?/* This function validates AND fills in the GPT header and PTE */
> ? ? ? ?if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
> - ? ? ? ? ? ? ? ? ? ? ? ?&(gpt_head), &gpt_pte) != 1) {
> + ? ? ? ? ? ? ? ? ? ? ? ?gpt_head, &gpt_pte) != 1) {
> ? ? ? ? ? ? ? ?printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
> ? ? ? ? ? ? ? ?return;
> ? ? ? ?}
> @@ -169,7 +169,7 @@ int get_partition_info_efi(block_dev_desc_t * dev_desc, int part,
>
> ? ? ? ?/* This function validates AND fills in the GPT header and PTE */
> ? ? ? ?if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
> - ? ? ? ? ? ? ? ? ? ? ? &(gpt_head), &gpt_pte) != 1) {
> + ? ? ? ? ? ? ? ? ? ? ? gpt_head, &gpt_pte) != 1) {
> ? ? ? ? ? ? ? ?printf("%s: *** ERROR: Invalid GPT ***\n", __func__);
> ? ? ? ? ? ? ? ?return -1;
> ? ? ? ?}
> --
> 1.7.0.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions
2011-11-14 15:34 ` [U-Boot] [PATCH 0/2] " Tom Rini
@ 2011-11-15 6:44 ` Premi, Sanjeev
2011-11-15 13:15 ` Premi, Sanjeev
0 siblings, 1 reply; 7+ messages in thread
From: Premi, Sanjeev @ 2011-11-15 6:44 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Tom Rini [mailto:tom.rini at gmail.com]
> Sent: Monday, November 14, 2011 9:05 PM
> To: Premi, Sanjeev
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] [PATCH 0/2] omap3evm: Add support for
> EFI partitions
>
> On Mon, Nov 14, 2011 at 8:19 AM, Sanjeev Premi <premi@ti.com> wrote:
> > After enabling CONFIG_EFI_PARTITION, following errors were
> > noticed.
> >
> > part_efi.c: In function 'print_part_efi':
> > part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
> > ?from incompatible pointer type
> > part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> > ument is of type 'struct gpt_header **'
> > part_efi.c: In function 'get_partition_info_efi':
> > part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
> > ' from incompatible pointer type
> > part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> > ument is of type 'struct gpt_header **'
> > part_efi.c: In function 'alloc_read_gpt_entries':
> > part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclar
> > ed (first use in this function)
> > part_efi.c:384:18: note: each undeclared identifier is reporte
> > d only once for each function it appears in
> > make[1]: *** [part_efi.o] Error 1
> > make[1]: Leaving directory `/db/psp_git/users/a0756819/u-boot/
> > disk'
> > make: *** [disk/libdisk.o] Error 2
>
> Is there a reason EFI doesn't use ARCH_DMA_MINALIGN ?
I have no idea, but use of CONFIG_SYS_CACHELINE_SIZE in part_efi.c
was introduced in:
commit f75dd584cdfe29dfdcfd424bb237b9238cfb8fe4
Author: Anton staaf <robotboy@chromium.org>
Date: Wed Oct 12 13:56:04 2011 +0000
~sanjeev
>
> --
> Tom
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions
2011-11-15 6:44 ` Premi, Sanjeev
@ 2011-11-15 13:15 ` Premi, Sanjeev
0 siblings, 0 replies; 7+ messages in thread
From: Premi, Sanjeev @ 2011-11-15 13:15 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: u-boot-bounces at lists.denx.de
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Premi, Sanjeev
> Sent: Tuesday, November 15, 2011 12:15 PM
> To: Tom Rini
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] [PATCH 0/2] omap3evm: Add support for
> EFI partitions
> > -----Original Message-----
> > From: Tom Rini [mailto:tom.rini at gmail.com]
> > Sent: Monday, November 14, 2011 9:05 PM
> > To: Premi, Sanjeev
> > Cc: u-boot at lists.denx.de
> > Subject: Re: [U-Boot] [PATCH 0/2] omap3evm: Add support for
> > EFI partitions
> >
> > On Mon, Nov 14, 2011 at 8:19 AM, Sanjeev Premi <premi@ti.com> wrote:
> > > After enabling CONFIG_EFI_PARTITION, following errors were
> > > noticed.
> > >
> > > part_efi.c: In function 'print_part_efi':
> > > part_efi.c:133:5: warning: passing argument 3 of 'is_gpt_valid'
> > > ?from incompatible pointer type
> > > part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> > > ument is of type 'struct gpt_header **'
> > > part_efi.c: In function 'get_partition_info_efi':
> > > part_efi.c:173:4: warning: passing argument 3 of 'is_gpt_valid
> > > ' from incompatible pointer type
> > > part_efi.c:95:12: note: expected 'struct gpt_header *' but arg
> > > ument is of type 'struct gpt_header **'
> > > part_efi.c: In function 'alloc_read_gpt_entries':
> > > part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclar
> > > ed (first use in this function)
> > > part_efi.c:384:18: note: each undeclared identifier is reporte
> > > d only once for each function it appears in
> > > make[1]: *** [part_efi.o] Error 1
> > > make[1]: Leaving directory `/db/psp_git/users/a0756819/u-boot/
> > > disk'
> > > make: *** [disk/libdisk.o] Error 2
> >
> > Is there a reason EFI doesn't use ARCH_DMA_MINALIGN ?
>
> I have no idea, but use of CONFIG_SYS_CACHELINE_SIZE in part_efi.c
> was introduced in:
>
> commit f75dd584cdfe29dfdcfd424bb237b9238cfb8fe4
> Author: Anton staaf <robotboy@chromium.org>
> Date: Wed Oct 12 13:56:04 2011 +0000
>
> ~sanjeev
After a bit more digging, I see that "ARCH_DMA_MINALIGN" is set
to 64 OR CONFIG_SYS_CACHELINE_SIZE (if defined) - in this commit:
commit 3b75eeef620c018c312e8149246cd330cc27d16d
Author: Anton Staaf <robotboy@chromium.org>
Date: Mon Oct 17 16:46:03 2011 -0700
arm: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
So, CONFIG_SYS_CACHELINE_SIZE shouldn't really be used in the
file.
I will submit fresh set soon.
~sanjeev
>
> >
> > --
> > Tom
> >
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-11-15 13:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14 15:19 [U-Boot] [PATCH 0/2] omap3evm: Add support for EFI partitions Sanjeev Premi
2011-11-14 15:19 ` [U-Boot] [PATCH 1/2] part_efi: Fix compile errors Sanjeev Premi
2011-11-14 21:23 ` Anton Staaf
2011-11-14 15:19 ` [U-Boot] [PATCH 2/2] omap3evm: Add support for EFI partitions Sanjeev Premi
2011-11-14 15:34 ` [U-Boot] [PATCH 0/2] " Tom Rini
2011-11-15 6:44 ` Premi, Sanjeev
2011-11-15 13:15 ` Premi, Sanjeev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox