<div dir="ltr"><div>My server runs stable so I ssh to it and start typing:</div>sudo aptitude install grub-efi-amd64-bin grub-efi-ia32-bin # this installs version 1.99-27+deb7u2<div><div>grub-mkimage -p /EFI64/grub -O x86_64-efi -o grub64.efi `ls /usr/lib/grub/x86_64-efi  | sed -n 's/\.mod//gp' `</div>
<div>grub-mkimage -p /EFI32/grub -O i386-efi -o grub32.efi `ls /usr/lib/grub/x86_64-efi  | sed -n 's/\.mod//gp' `</div></div><div># this is the problem image when served by tftp or started from the efi shell on my test machine it gives an error waits for a key press and exits.</div>
<div># head over to stack exchange copy Sukminder's code to the clip board</div><div><div>xclip -o >grub_lic_test.c</div></div><div><div>gcc -o grub_lic_test32 grub_lic_test.c </div><div>gcc -o grub_lic_test64 grub_lic_test.c -DELF64 </div>
</div><div><div>./grub_lic_test32 /usr/lib/grub/i386-efi/*.mod</div><div>./grub_lic_test64 /usr/lib/grub/x86_64-efi/*.mod</div></div><div># the previous two commands show errors with adler32.mod so I run the next two commands which give images that don't have that problem.</div>
<div><div>grub-mkimage -p /EFI64/grub -O x86_64-efi -o grub64.efi `ls /usr/lib/grub/x86_64-efi  | sed -n 's/\.mod//gp' |grep -v adler32`</div><div>grub-mkimage -p /EFI32/grub -O i386-efi -o grub32.efi `ls /usr/lib/grub/x86_64-efi  | sed -n 's/\.mod//gp' |grep -v adler32`</div>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 2:35 PM, Colin Watson <span dir="ltr"><<a href="mailto:cjwatson@debian.org" target="_blank">cjwatson@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon, Feb 10, 2014 at 01:06:48PM -0700, Ben Hildred wrote:<br>
>  I am attempting to network boot a early mac mini (core solo 32 bit/ 32bit efi)<br>
> with debian. My netboot server runs debian and other diskless boxes boot debian<br>
> and other operating systems from this server.<br>
>  One severe problem I have is finding a functional boot loader. One of the more<br>
> interesting failures was when I assembled a 32 bit efi grub image with all<br>
> modules from the stable binary. This errored out with incompatible license.<br>
> Using the tool by Sukminder (<a href="http://unix.stackexchange.com/questions/74087" target="_blank">http://unix.stackexchange.com/questions/74087</a><br>
> /grub-incompatible-license-error) I narrowed it down to the module adler23.mod<br>
> the problem whent away when this module was not included. I checked the source<br>
> from git and this module should be gpl3+.  It appears arch linux has a similar<br>
> problem with a different module, so I suspect something fragile in the build<br>
> system from upstream.<br>
<br>
</div>Are you sure that you've actually assembled modules that all come from<br>
the same version of GRUB?  There's no useful version information in your<br>
report; perhaps I could have a complete transcript of what you did, and<br>
versions of all the packages involved?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Colin Watson                                       [<a href="mailto:cjwatson@debian.org">cjwatson@debian.org</a>]<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>--</div><div><div>Ben Hildred</div><div>Automation Support Services</div></div><div>303 815 6721</div>
</div>