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

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).