Hi Olivier, Thanks for your mail.
I have a SerialPortLib which tries to configure Serial controller specific to my board (so *no* 'SerialPortLib' pointing to 'MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf' in my DSC). I am getting the UEFI firmware .. banner at the very start. I will now try to add some SerialPortWrite() before calling GetSectionFromAnyFv(). Regards, Bhupesh > -----Original Message----- > From: Olivier Martin [mailto:olivier.mar...@arm.com] > Sent: Tuesday, November 26, 2013 4:27 PM > To: Sharma Bhupesh-B45370; 'Andrew Fish'; edk2- > de...@lists.sourceforge.net > Cc: Kushwaha Prabhakar-B32579 > Subject: RE: SerialPrint not working in DxeServicesLib.c > > Sorry to not reply earlier, I was on holiday in the last two weeks. > > If you do not see any output from the serial, ensure your are using the > appropriate 'SerialPortLib'. > Check in your DSC file, there is no 'SerialPortLib' pointing to > 'MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf'. > Example: > > [LibraryClasses.common] > (...) > > SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull > SerialPortLib|.inf > (...) > > SerialPortLib should use the implementation for your Serial controller. > > Try also to add some SerialPortWrite() before calling > GetSectionFromAnyFv(). > I would not be surprised if the crash happens much earlier than the DXE > phase. > > > > -----Original Message----- > > From: Bhupesh Sharma [mailto:bhupesh.sha...@freescale.com] > > Sent: 20 November 2013 11:50 > > To: 'Andrew Fish'; 'edk2-devel@lists.sourceforge.net'; Olivier Martin > > Cc: Prabhakar Kushwaha > > Subject: RE: SerialPrint not working in DxeServicesLib.c > > > > I don't know why but I didn't get any mail from the mail list server > > for my original mail below, though I can see same in the mail list > > archives. > > > > Adding Andrew.. > > > > Can you guys please help me with the issue mentioned below. > > > > Regards, > > Bhupesh > > > > > -----Original Message----- > > > From: Sharma Bhupesh-B45370 > > > Sent: Tuesday, November 19, 2013 4:25 PM > > > To: 'edk2-devel@lists.sourceforge.net'; 'Olivier Martin' > > > Cc: 'boot-architect...@lists.linaro.org'; Kushwaha Prabhakar-B32579 > > > Subject: SerialPrint not working in DxeServicesLib.c > > > > > > Hi List, > > > > > > I am experiencing a Data Abort inside function 'GetSectionFromAnyFv' > > in > > > file 'DxeServicesLib.c' > > > on my ARMv7 UEFI platform. > > > > > > To debug the same I added some print messages like: > > > > > > /* Added for debugging */ > > > CHAR8 Buffer1[100]; > > > UINTN CharCount; > > > CharCount = AsciiSPrint (Buffer1,sizeof (Buffer1),"Inside > > Func\n\r"); > > > SerialPortWrite ((UINT8 *) Buffer1, CharCount); > > > > > > > > > And also something like: > > > SerialPrint ("Inside Func\n\r"); > > > > > > I have included: > > > #include <Library/PrintLib.h> > > > #include <Library/SerialPortLib.h> > > > > > > and defined: > > > > > > #define SerialPrint(txt) SerialPortWrite ((UINT8*)(txt), > > > AsciiStrLen(txt)+1); > > > > > > I still cannot see any debug prints on the UART (placed right after > > the > > > entry point of 'GetSectionFromAnyFv' function). > > > Debugger (DS-5) suggests that the crash is inside > > 'GetSectionFromAnyFv' > > > itself. > > > > > > I get the UEFI firmware <version xx built at xx on xx) and Data > > > Abort Exception PC at xx prints on the console, but no prints from > > > 'DxeServicesLib.c' > > > > > > Any pointers to what I may be missing here. > > > > > > Regards, > > > Bhupesh > > > > > > > > ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel