GRUB 2 and eltorito boot (no emul)

2006-05-12 Thread Gerardo Richarte
Hi, I asked something in the past but got no answer, I'm going to try a different approach. Suppose I wanted to implement eltorito boot (as for mkiso -b iso/boot/eltorito -no-emul-boot -boot-load-size 4 -boot-info-table) for GRUB 2. What do you think would be the best approach? I took a

Debugging GRUB2 with GDB and QEMU

2006-05-12 Thread Lubomir Kundrak
I wrote some GDB macros that might be helpful for people that want to debug GRUB 2 modules with QEMU. [1] [1] http://NetBSD.sk/~lkundrak/misc/grub2-gdb/ The file genmk.rb.diff is a patch to makefile-generator script, that makes the build system leave output files with debugging information. Of co

Re: GRUB 2 and eltorito boot (no emul)

2006-05-12 Thread Yoshinori K. Okuji
On Friday 12 May 2006 14:52, Gerardo Richarte wrote: > Suppose I wanted to implement eltorito boot (as for mkiso -b > iso/boot/eltorito -no-emul-boot -boot-load-size 4 -boot-info-table) for > GRUB 2. What do you think would be the best approach? I took a look at > GRUB Legacy's eltorito_start a

yet another scripting bug

2006-05-12 Thread Yoshinori K. Okuji
Multiple commands in one line do not work. I get a segfault on grub-emu. grub> ls ; ls Program received signal SIGSEGV, Segmentation fault. grub_script_execute_argument_to_string (arg=0x8458b51) at ../normal/execute.c:50 50if (argi->type == 1) (gdb) bt #0 grub_script_execute_argume

Re: Debugging GRUB2 with GDB and QEMU

2006-05-12 Thread Yoshinori K. Okuji
On Friday 12 May 2006 15:20, Lubomir Kundrak wrote: > I wrote some GDB macros that might be helpful for people > that want to debug GRUB 2 modules with QEMU. [1] Great! I guess it is necessary to compile the binary with -O0 or -O1 to get a reasonable backtrace... I'd appreciate if you can write

PATCH: checkkey returns boolean

2006-05-12 Thread Andrew Apted
Hello, This patch makes the grub_checkkey() function return a boolean value (1 = a key is available, 0 = none). I have tested it with play.mod, and it works OK. Note that the grub_console_checkkey() function in term/efi/console.c already (erroneously) assumed a boolean value, so this patch autom

RE : Debugging GRUB2 with GDB and QEMU

2006-05-12 Thread Eric Salomé
Hi Lubomir, Thanks for the scripts. It is just what I was looking for. Meanwhile, since my last email, I have done something foolish. I've coded in grub's sources just the same algorithm you provide but I've clumbered the sources with new functions those purpose is only for debugging while you ar