Jump to content











Photo
- - - - -

Grub4Dos - Silent build


  • Please log in to reply
3 replies to this topic

#1 c0rt3x

c0rt3x

    Newbie

  • Deactivated
  • 25 posts
  •  
    Germany

Posted 29 May 2012 - 03:21 PM

I'm working on a proof of concept project that needs a special grub.exe version which produces absolutely no visible output. "grub.exe >NUL" does not work. Nor does "color black/black". Terminal redirection neither.

Therefore I modified char_io.c and removed all code from grub_printf(). This indeed supressed all text output but for some reason it could not boot and seemingly dropped to a invisible commandline prompt.

Has anyone an idea about how to fix this problem?

Thanks.

#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 6629 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 29 May 2012 - 10:41 PM

grub4dos has a built in default embedded menu which can be edited using a hex editor. Maybe try adding debug off to beginning of it and then hiddenmenu --silent and maybe clear too??
I think BootIce and grubmenu.exe can also replace this embedded menu...

Just tried this with BootIce to edit the menu (just get it to load grldr - edit and save). You still get a few messages
Try (hd,0,0) : FAT32
then screen clears and you get
Initialize variable space...
starting cmain() ....


so if you recompiled and removed those messages it should work.

Edited by steve6375, 29 May 2012 - 11:15 PM.


#3 c0rt3x

c0rt3x

    Newbie

  • Deactivated
  • 25 posts
  •  
    Germany

Posted 29 June 2012 - 12:05 PM

thx. I'll try it.

#4 c0rt3x

c0rt3x

    Newbie

  • Deactivated
  • 25 posts
  •  
    Germany

Posted 03 July 2012 - 10:19 PM

Finally I've successfully patched grub.exe so that it generates no visible text output at all anymore.

(The only thing still visible is the text cursor moving from left to right for a few miliseconds very fast.)

Enjoy!

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users