WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: modify grub 0.97-splash source code w/ tce?  (Read 2943 times)

Offline ezee

  • Newbie
  • *
  • Posts: 17
modify grub 0.97-splash source code w/ tce?
« on: June 30, 2010, 04:48:53 PM »
im using microcore, w/ grub-0.97-splash installed using tce-load, no probs.

I'd like to modify the grub source code and then re-install it.  Can I do that easily with tce?

I can always download the original grub 0.97 source, modify it, and ./configure /make install, but I'd like to stay within tce if I can, it works really great.

Can I like use tce to get the source, modify it, and then have tce point to that source on my local box?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: modify grub 0.97-splash source code w/ tce?
« Reply #1 on: June 30, 2010, 04:53:15 PM »
There's no automatic facility for source -> binaries -> tcz extension. The source for the grub extension is at
ftp://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/2.x/tcz/src/grub-0.97-patched.tbz2
The only barriers that can stop you are the ones you create yourself.

Offline ezee

  • Newbie
  • *
  • Posts: 17
Re: modify grub 0.97-splash source code w/ tce?
« Reply #2 on: June 30, 2010, 05:21:14 PM »
any idea how to change the size of the box on the grub screen?  pretty sure its in grub-0.97-fixes-1.patch, but no idea what params to change.  I'm going to try to change  box_size = 12 to something smaller and see what that does.

Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
Date: 2006-07-04
Initial Package Version: 0.97

<SNIP>

+  col_start = 0;
+  col_end = 80;
+  row_start = 0;
+  box_size = 12;
+  /* if we're using viewport we need to make sure to setup
+     coordinates correctly.  */
+#ifdef SUPPORT_GRAPHICS
+  if (grub_memcmp (current_term->name, "graphics", sizeof ("graphics") - 1) == 0)
+    {
+      col_start = view_x0;
+      col_end = view_x1;
+      row_start = view_y0;
+      box_size = (view_y1 - view_y0) - 13;
+    }
+#endif
+