Re: [chipsec] [Luv] Results and a few questions
by Ricardo Neri
Actually including the CHIPSEC mailing list this time.
On Mon, 2015-10-26 at 19:51 +0000, Neri, Ricardo wrote:
> +CHIPSEC mailing list
>
> Hi Jason,
>
> Thanks for your report.
>
> On Mon, 2015-10-26 at 12:04 -0700, Jason Barbier wrote:
> > Hey all,
> > I ran LUV-Live and my results are attached as a zip, I sort of was
> > wondering about the errors in the chipsec log though,
> > These were similar errors that I got last week that caused some issues
> > with my clock being reset using version 1.2, the latest RC seems to not
> > do that but It still can not seem to run all the tests.
> >
> > --
> > WARNING: 'SPIBAR' MMIO BAR definition not found/correct in XML config
> > [pci] reading B/D/F: 0/31/0, offset: 0xF0, value: 0xFED1C001
> > [spi] SPI MMIO base: 0x00000000FED1F800 (assuming below 4GB)
> > [spi] SPI MMIO base: 0x00000000FED1F800 (assuming below 4GB)
> > [-] Traceback (most recent call last):
> > File "/usr/lib/python2.7/site-packages/chipsec_main.py", line 291, in
> > run_module
> > result = modx.run( module_argv )
> > File "/usr/lib/python2.7/site-packages/chipsec/module.py", line 69, in
> > run
> > result = self.get_module_object()
> > File "/usr/lib/python2.7/site-packages/chipsec/module.py", line 101,
> > in get_module_object
> > self.mod_obj = iref()
> > File
> > "/usr/lib/python2.7/site-packages/chipsec/modules/common/bios_wp.py",
> > line 51, in __init__
> > self.spi = SPI( self.cs )
> > File "/usr/lib/python2.7/site-packages/chipsec/hal/spi.py", line 176,
> > in __init__
> > self.hsfs_off = int(chipsec.chipset.get_register_def( self.cs,
> > "HSFS" )['offset'],16)
> > File "/usr/lib/python2.7/site-packages/chipsec/chipset.py", line 467,
> > in get_register_def
> > return _cs.Cfg.REGISTERS[ reg_name ]
> > KeyError: 'HSFS'
> > --
> > [-] Traceback (most recent call last):
> > File "/usr/lib/python2.7/site-packages/chipsec_main.py", line 291, in
> > run_module
> > result = modx.run( module_argv )
> > File "/usr/lib/python2.7/site-packages/chipsec/module.py", line 80, in
> > run
> > result = self.mod_obj.run(module_argv)
> > File
> > "/usr/lib/python2.7/site-packages/chipsec/modules/common/spi_desc.py",
> > line 68, in run
> > return self.check_flash_access_permissions()
> > File
> > "/usr/lib/python2.7/site-packages/chipsec/modules/common/spi_desc.py",
> > line 48, in check_flash_access_permissions
> > frap = chipsec.chipset.read_register( self.cs, 'FRAP' )
> > File "/usr/lib/python2.7/site-packages/chipsec/chipset.py", line 470,
> > in read_register
> > reg = _cs.Cfg.REGISTERS[ reg_name ]
> > KeyError: 'FRAP'
> >
> > ERROR: Exception occurred during chipsec.modules.common.spi_desc.run():
> > ''FRAP''
> > --
> > [-] Traceback (most recent call last):
> > File "/usr/lib/python2.7/site-packages/chipsec_main.py", line 291, in
> > run_module
> > result = modx.run( module_argv )
> > File "/usr/lib/python2.7/site-packages/chipsec/module.py", line 80, in
> > run
> > result = self.mod_obj.run(module_argv)
> > File
> > "/usr/lib/python2.7/site-packages/chipsec/modules/common/spi_lock.py",
> > line 59, in run
> > return self.check_spi_lock()
> > File
> > "/usr/lib/python2.7/site-packages/chipsec/modules/common/spi_lock.py",
> > line 46, in check_spi_lock
> > hsfs_reg = chipsec.chipset.read_register( self.cs, 'HSFS' )
> > File "/usr/lib/python2.7/site-packages/chipsec/chipset.py", line 470,
> > in read_register
> > reg = _cs.Cfg.REGISTERS[ reg_name ]
> > KeyError: 'HSFS'
> >
> > ERROR: Exception occurred during chipsec.modules.common.spi_lock.run():
> > ''HSFS''
> > --
> >
> I added the CHIPSEC mailing list. Perhaps they can give further insight
> on what the problem might be.
>
> As per LUV, it seems that this exception somehow caused a crash in the
> LUV test manager and it prevented it from running the tests of the
> tests. It seems we need to add some safeguards so that LUV can handle
> these errors more gracefully.
>
> Thanks and BR,
> Ricardo
>
> >
> > _______________________________________________
> > Luv mailing list
> > Luv(a)lists.01.org
> > https://lists.01.org/mailman/listinfo/luv
>
> _______________________________________________
> Luv mailing list
> Luv(a)lists.01.org
> https://lists.01.org/mailman/listinfo/luv
5 years, 1 month
CHIPSEC error when building LUV image
by Dey, Megha
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
5 years, 3 months