On 03.06.2012 21:00, Parul Aggarwal wrote: > Hi Vladimir, > > I understand what you are saying and grub modules seems the right way to > go. > > Other two apparoaches I can think of is: > > 1. Make our standalone appliaction totally independent of GRUB like > memtest application. This way we can go with independent application > .bin running. You can always do this but you can't use GRUB functions this way. > > 2. If we statically link the grub libraries to our standalone > application. We tried hello world program using grub_printf, and linked > few grup static libraries. When we run the program the application got > hanged. Seems its because of few undefined symbols used in > grub_printf(). Now we are trying to link glibc (as grub_printf uses this > library interally) static library which should resolve the hang issue. > Not going to work. GRUB is not intended to be statically linked in this sense. GRUB doesn't use any glibc on runtime. -- Regards Vladimir 'φ-coder/phcoder' Serbinenko