Re: What are lkrn images? How to use gpxe-devel/src/utils/gensdsk ?
sobtwmxt <[email protected]> Thu, 15 Oct 2009 07:36:47 +0000
| Newsgroups | gmane.network.etherboot.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Oct 14, 2009 at 08:00:53AM +0100, Stefan Hajnoczi wrote:
>
> The gpxe.lkrn image is a bzImage - the format of an x86 Linux kernel.
> That means GRUB/SYSLINUX/lilo can load gpxe.lkrn because they know how
> to load Linux kernels.
>
> make bin/gpxe.sdsk
>
> I just noticed on that on my system the Mtools version detection is
> currently broken. I will send a fix today. If you get an error about
> your Mtools version, you may want to remove the detection code from
> util/gensdsk.
>
--- util/gensdsk.orig 2009-10-15 08:52:38.000000000 +0200
+++ util/gensdsk 2009-10-15 09:24:30.000000000 +0200
@@ -3,10 +3,10 @@
# Generate a syslinux floppy that loads a gPXE image
#
# gensdsk foo.sdsk foo.lkrn
+# Where floppy image is the first argument
+# followed by list of .lkrn images
#
-# the floppy image is the first argument
-# followed by list of .lkrn images
-#
+# Can be autumated with make bin/gensdsk
case $# in
0|1)
@@ -14,8 +14,8 @@
exit 1
;;
esac
-case "`mtools -V`" in
-Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[0-9]*|Mtools\ version\
4.*)
+case "`mtools -V | sed -n '1s/.* //p'`" in
+3.9.9*|3.9.1[0-9]*|4.*)
;;
*)
echo Mtools version 3.9.9 or later is required
> > ?As an aside, www.etherboot.org/wiki/staging, doesn't fit
> > .git/logs/refs/remotes/. ?For example, the wiki shows a staging/sdsk.
>
> The staging process is evolving. It's about agreeing on a
> review/merge workflow that is effective. Not all branches conform to
> the guidelines on the wiki page.
>
I think this comment should be stated in the web page, just after
the example.
--
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference