oe-chipsec.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* CHIPSEC error when building LUV image
@ 2015-10-14 17:08 Dey, Megha
  2015-10-16 20:00 ` Blibbet
  0 siblings, 1 reply; 3+ messages in thread
From: Dey, Megha @ 2015-10-14 17:08 UTC (permalink / raw)
  To: chipsec

[-- Attachment #1: Type: text/plain, Size: 3194 bytes --]

Hi,



I was trying to build the Linux UEFI Validation (LUV) image for 32 bit systems. The LUV image incorporates the CHIPSEC test suite as well.



I get the following warnings and errors during build time:

------------------------------------------------------------------------------------------------------------

CC

[M]  /home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.o

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c: In function 'patch_apply_ucode':

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:573:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

  ucode_start=(unsigned long long) ucode_buf;

              ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c: In function 'd_ioctl':

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:946:3: warning: right shift count >= width of type

   ptr[1] = (uint32_t)(dtr.base >> 32);

   ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:1365:17: warning: left shift count >= width of type

                 ptr[0] = first | (second << 32);

                 ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:1405:17: warning: right shift count >= width of type

                 iowrite32( ( value >> 32 ) & 0xFFFFFFFF, ioaddr );

                 ^

/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec_km.c:951:10: warning: 'dt_pa.u.high' may be used uninitialized in this function [-Wmaybe-uninitialized]

   ptr[3] = dt_pa.u.high;

          ^

  LD

[M]  /home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec.o

i586-oe-linux-ld.bfd: i386:x86-64 architecture of input file `/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/amd64/cpu.o' is incompatible with i386 output

make[3]: ***

[/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux/chipsec.o] Error 1

make[2]: ***

[_module_/home/megha/luv_new/build/tmp/work/qemux86-oe-linux/chipsec/git-r0/git/source/drivers/linux] Error 2

make[2]: Leaving directory

`/home/megha/luv_new/build/tmp/work-shared/qemux86/kernel-build-artifacts'

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory

`/home/megha/luv_new/build/tmp/work-shared/qemux86/kernel-source'

make: *** [chipsec] Error 2

------------------------------------------------------------------------------------------------------------------------



I wanted to know if the CHIPSEC test suite builds and runs on 32 bit platforms? (in which case there is a problem with the CHIPSEC recipe in LUV).

Else, any pointers as to why I see these warnings and errors?

Any help would be appreciated!!



Thanks,

Megha


[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 7339 bytes --]

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

* Re: CHIPSEC error when building LUV image
  2015-10-14 17:08 CHIPSEC error when building LUV image Dey, Megha
@ 2015-10-16 20:00 ` Blibbet
  2015-10-22 17:13   ` Blibbet
  0 siblings, 1 reply; 3+ messages in thread
From: Blibbet @ 2015-10-16 20:00 UTC (permalink / raw)
  To: chipsec

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

On 10/14/2015 10:08 AM, Dey, Megha wrote:
> I wanted to know if the CHIPSEC test suite builds and runs on 32 bit
platforms?

I don't know the cause of your problems, but the CHIPSEC PDF says
Windows x86/x64, and says that on Linux, Debian is the only one
explicitly listed with 32-bit, Fedora and Ubuntu say 64-bit, LUV entry
does not specify.

If possible to build LUV with LLVM clang, you might try that, it gives
much better warnings than GCC.

I've only built CHIPSEC on Linux, and only for 64-bit targets. And I'm
afraid I can't help building a local LUV at the moment, sorry.

Lee



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

* Re: CHIPSEC error when building LUV image
  2015-10-16 20:00 ` Blibbet
@ 2015-10-22 17:13   ` Blibbet
  0 siblings, 0 replies; 3+ messages in thread
From: Blibbet @ 2015-10-22 17:13 UTC (permalink / raw)
  To: chipsec

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

You might also want to ask on the LUV list about this build error. This
might be a LUV-centric issue. The LUV team ported CHIPSEC to their
system. The CHIPSEC team -- AFAIK -- has/have been using an alternative
Linux live-boot solution until recently, so the LUV team may be better
to answer a LUV-centric build question than the CHIPSEC team.

I wonder:
Does a 32- and 64-bit LUV behave differently, w/r/t firmware tests, on
different architectures?
Does CHIPSEC behave differently on when built 32- or 64-bit -- on Linux
or Windows or UEFI?
Perhaps we need LUV64-live and LUV32-live to solve??
Gettting more confused as I type, so I'll stop typing. :-)

On 10/16/2015 01:00 PM, Blibbet wrote:
> On 10/14/2015 10:08 AM, Dey, Megha wrote:
>> I wanted to know if the CHIPSEC test suite builds and runs on 32 bit
> platforms?
>
> I don't know the cause of your problems, but the CHIPSEC PDF says
> Windows x86/x64, and says that on Linux, Debian is the only one
> explicitly listed with 32-bit, Fedora and Ubuntu say 64-bit, LUV entry
> does not specify.
>
> If possible to build LUV with LLVM clang, you might try that, it gives
> much better warnings than GCC.
>
> I've only built CHIPSEC on Linux, and only for 64-bit targets. And I'm
> afraid I can't help building a local LUV at the moment, sorry.
>
> Lee
>
>


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

end of thread, other threads:[~2015-10-22 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-14 17:08 CHIPSEC error when building LUV image Dey, Megha
2015-10-16 20:00 ` Blibbet
2015-10-22 17:13   ` Blibbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).