Hello,
On a pcengines apu1 when I tried to leave coreinfo (press ESC) I get a "General Protection Fault Exception".
I attached my .config file of coreinfo (it's the default configuration) and the console output when coreinfo crash.
Le dimanche 06 septembre 2015 à 16:20 +0200, Maxime de Roucy a écrit :
Hello,
On a pcengines apu1 when I tried to leave coreinfo (press ESC) I get a "General Protection Fault Exception".
I forget to mention I build coreinfo on a x86_64 Archlinux with :
cd …/coreboot/payloads/coreinfo make LIBPAYLOAD_DIR=../libpayload/install CC=…/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
It looks like coreinfo is the only payload, so there is nothing to exit back to. What were you expecting to happen?
You can try using seabios with multiple payloads or work with bayou as a multiple payload loader.
Marc
On Thu, Sep 10, 2015 at 12:54 AM Maxime de Roucy maxime.deroucy@gmail.com wrote:
Hello,
On a pcengines apu1 when I tried to leave coreinfo (press ESC) I get a "General Protection Fault Exception".
I attached my .config file of coreinfo (it's the default configuration) and the console output when coreinfo crash. -- Regards Maxime de Roucy-- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Dear Maxime,
Am Sonntag, den 06.09.2015, 16:20 +0200 schrieb Maxime de Roucy:
On a pcengines apu1 when I tried to leave coreinfo (press ESC) I get a "General Protection Fault Exception".
I attached my .config file of coreinfo (it's the default configuration) and the console output when coreinfo crash.
does that also happen, when using the same payloads files with QEMU?
If yes, maybe it can be better debugged there.
Thanks,
Paul
Le vendredi 11 septembre 2015 à 22:20 +0200, Paul Menzel a écrit :
does that also happen, when using the same payloads files with QEMU? If yes, maybe it can be better debugged there.
I rebuild coreboot with a qemu target and debug enabled. I also rebuild coreinfo with "-g" added to the CFLAGS.
The problème appear 3~4 seconds after coreinfo is launched. Before I even do anything… (I didn't press ESC).
I rebuild coreinfo and sgabios in a full 32 bits environnement but that doesn't change anything.
I tried to debug the problem on gdb. It appear on the second launch of getch but I didn't figured where exactly.
I upload the rom and elf.debug (and sources) of coreinfo on my server if someone want to take a look : http://ftp.craoc.fr/coreboot-debug/
To launch it : 1$ qemu-system-i386 -M q35 -bios coreboot.rom -hda /dev/zero -nographic -s -S
2$ gdb --tui (gdb) target remote localhost:1234 (gdb) file ../payloads/coreinfo/build/coreinfo.elf.debug (gdb) b main (gdb) c [gdb will stop here but it's wrong, you have to continu] (gdb) c
in qemu press "ESC" and select "4 payload[coreinfo]". gdb should stop at the begining of the main function of coreinfo.