Jump to content











Photo
- - - - -

kexec-loader v2.0


  • This topic is locked This topic is locked
45 replies to this topic

#1 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 17 February 2009 - 12:58 AM

Floppy image:

kexec-loader-2.0-floppy.img.gz

(Prepare for jaclaz to necromance old kexec-loader threads in 3.... 2.... 1....)

#2 Bicephale

Bicephale

    Member

  • Members
  • 50 posts
  • Location:Qc/Canada
  •  
    Canada

Posted 17 February 2009 - 04:19 AM

Hi SolemnWarning,

You're my idol, i downloaded 'kexec-loader-2.0-floppy.img' right away!

Is this a suitable location to share related comments and suggestions?...

#3 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 17 February 2009 - 08:45 AM

(Prepare for jaclaz to necromance old kexec-loader threads in 3.... 2.... 1....)


0!

:poke:
http://www.boot-land...?...ic=4636&hl=
http://www.boot-land...?...ic=5395&hl=
http://www.boot-land...?...ic=6709&hl=
http://www.boot-land...?...ic=6989&hl=


Is this a suitable location to share related comments and suggestions?...

Sure it is. :poke:

jaclaz

#4 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1062 posts
  •  
    Belgium

Posted 17 February 2009 - 04:52 PM

The documentation is missing info about the LABEL and UUID command.

#5 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 17 February 2009 - 05:00 PM

The documentation is missing info about the LABEL and UUID command.


No it isn't

#6 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1062 posts
  •  
    Belgium

Posted 17 February 2009 - 05:11 PM

OK, you are right, but it is easy to overlook.

Can you make it bold?

There are three ways of specifying devices, you can specify the device name which may change without warning, this is only recommended on systems that have a single drive, for example a single USB drive being booted by kexec-loader on an internal floppy drive. You may also use 'LABEL=foobar' and 'UUID=xxxx' to specify the volume label and UUID, respectively.

If a device name contains a colon it is assumed you are manually specifying the filesystem type, for example 'ext3:hda1' will overrule filesystem detection and attempt to mount the filesystem as ext3, this may be used if the detection is not working correctly.

You may specify a device in a path as well as a file, for example '(hda1)/boot/vmlinuz' will point to the /boot/vmlinuz file on hda1, instead of /boot/vmlinuz on the root device.



And a short mentioning about the possibilities for device at (in the documentation and in the program itself):

root <device>
Set the root device, you must specify a root device, even if all paths specify their own device.
e.g.: root (hda), root LABEL=foobar, root UUID=xxxx



#7 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 17 February 2009 - 05:17 PM

@Icecube

2. Usage
2.1. Device/Path syntax

There are three ways of specifying devices, you can specify the device name which may change without warning, this is only recommended on systems that have a single drive, for example a single USB drive being booted by kexec-loader on an internal floppy drive. You may also use 'LABEL=foobar' and 'UUID=xxxx' to specify the volume label and UUID, respectively.


@solemnwarning

Two points, if I may :poke::
  • like many "linux originated" docs, the readme.html is nice and well organized, but completely misses the idea of "teaching by examples", though the info is actually there, the documentation assumes that one ALREADY knows what a LABEL or UUID is (besides a lot of other things), which is not always the case. :poke:
  • the kexec-loader configuration file "kexec-loader.conf" is NOT complying with 8.3 standard, as always I cannot say if and when it will be useful, but people using DOS or "strict" ISO9660 won't like it :poke:. Isn't it possible to rename the file to kxloader.cfg or kxloader.ini or kxloader.lst or something like it? Same applies to Readme.html, it should really be Readme.htm, though of course renaming it is trivial.

Good work!
:)

:poke:

jaclaz

#8 Bicephale

Bicephale

    Member

  • Members
  • 50 posts
  • Location:Qc/Canada
  •  
    Canada

Posted 18 February 2009 - 10:20 AM

Hi SolemnWarning,

I'm trying to combine your diskette with this one:

http://www.moriy.com/dr-dos/downloads/
'DR70570B.IMG' ('DR-DOS v7.05.70b', 2008-Oct-20)

This is my result, it's unfinished and there's a glitch:

http://www.easy-shar...KExec-DRDOS.IMG
(1.41 MB)

How would you suggest it can be fixed?

#9 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 18 February 2009 - 04:28 PM

What will be the future of kexec-loader?

#10 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 18 February 2009 - 04:48 PM

Hi SolemnWarning,

I'm trying to combine your diskette with this one:

http://www.moriy.com/dr-dos/downloads/
'DR70570B.IMG' ('DR-DOS v7.05.70b', 2008-Oct-20)

This is my result, it's unfinished and there's a glitch:

http://www.easy-shar...KExec-DRDOS.IMG
(1.41 MB)

How would you suggest it can be fixed?


What exactly are you trying to accomplish?


What will be the future of kexec-loader?


Only small changes are planned now, shell autocompletion, some more commands, etc

#11 Bicephale

Bicephale

    Member

  • Members
  • 50 posts
  • Location:Qc/Canada
  •  
    Canada

Posted 18 February 2009 - 06:08 PM

Just what i wrote, SolemnWarning: put 'KExec-Loader' & 'DOS' together!

It's almost working but 'KExec-Loader' enters en enless searching loop...

#12 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 18 February 2009 - 06:52 PM

Just what i wrote, SolemnWarning: put 'KExec-Loader' & 'DOS' together!

It's almost working but 'KExec-Loader' enters en enless searching loop...


Set the volume label to 'kexecloader'

#13 Bicephale

Bicephale

    Member

  • Members
  • 50 posts
  • Location:Qc/Canada
  •  
    Canada

Posted 18 February 2009 - 07:13 PM

Will do!

#14 Bicephale

Bicephale

    Member

  • Members
  • 50 posts
  • Location:Qc/Canada
  •  
    Canada

Posted 19 February 2009 - 01:37 AM

Hi SolemnWarning,

Done. The label had to be set right and it works now:
i have a hybrid "kicker" boot diskette both with DOS
and Linux solutions. Unfortunately, Jaclaz had a point
when he commented that 'kexec-loader.conf' - not
'KExec-Loader.CONF' or other stylish filenames by the
way, doesn't conform to DOS 8.3 filenaming. It turns
out i wanted DOS on your diskette for the purpose of
configuration editing in case nothing else works, and
speaking of that i suddenly remember that i wanted
to ask if there's no undocummented command that
will let me load an alternative configuration file, from
outside the floppy image when on a CD, for example.

In any case, thanks for your assistance. 'KExec-Loader'
is most likely on the right path as a future boot-loader
replacement judging from what we can see presently!

:poke:

#15 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 22 February 2009 - 01:31 PM

There is still a little glitch in 2.0 preventing from a grub drop in replacement.
http://img22.imagesh...90222142359.png

This is Ubuntu 8.04's default menu.lst (completely auto generated):

The grub-path directive is now working and waiting until the USB device is ready, good.

#16 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 22 February 2009 - 01:37 PM

Do I see it right that if I want to create a working iso I need to build everything from source as everything is linked into linux.upx?

Can I drop in easy some generic kernel like the kernel image on Ubuntu Live CD?

#17 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 22 February 2009 - 02:11 PM

Do I see it right that if I want to create a working iso I need to build everything from source as everything is linked into linux.upx?

Can I drop in easy some generic kernel like the kernel image on Ubuntu Live CD?


There's an initramfs on the download page you can use instead of building kexec-loader from source

#18 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 23 February 2009 - 10:17 PM

What do you say about my post 3 before this one?
http://www.boot-land...?...ost&p=60190

#19 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 23 February 2009 - 11:59 PM

What do you say about my post 3 before this one?
http://www.boot-land...?...ost&p=60190


Is the problem with the dividor entry? I'll look into how GRUB deals with it later, but I'm working on other projects currently.

#20 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 24 February 2009 - 04:00 PM

It seams the auto generated entry
title Other operating systems&#58;

root
and as well the auto generated entry
title FreeDOS

root &#40;hd0,0&#41;

savedefault

chainloader +1
makes trouble. Probable any entry in menu.lst for a non-linux operating system.

#21 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 27 February 2009 - 03:47 PM

It seams the auto generated entry

title Other operating systems&#58;

root
and as well the auto generated entry
title FreeDOS

root &#40;hd0,0&#41;

savedefault

chainloader +1
makes trouble. Probable any entry in menu.lst for a non-linux operating system.


Sorry it took me so long to get round to it, I've fixed it in trunk, tonights SVN build should work fine

#22 Bicephale

Bicephale

    Member

  • Members
  • 50 posts
  • Location:Qc/Canada
  •  
    Canada

Posted 01 March 2009 - 03:17 PM

Will there be a configuration editor in future releases?

#23 solemnwarning

solemnwarning

    Member

  • Members
  • 73 posts
  •  
    United Kingdom

Posted 01 March 2009 - 03:19 PM

Will there be a configuration editor in future releases?


What do you mean by "configuration editor"?

#24 Bicephale

Bicephale

    Member

  • Members
  • 50 posts
  • Location:Qc/Canada
  •  
    Canada

Posted 01 March 2009 - 07:03 PM

Hi SolemnWarning,

If we consider that the configuration file which a user
is most likely to edit when using the diskette may very
well be 'kexec-loader.conf' - which isn't DOS-friendly
because of it's non-8.3 filename - then it seems to me
that the function of a "configuration editor" would be to
do what DOS isn't meant to do: edit 'kexec-loader.conf'
with the benefit of complementing the shell with some
user-friendly feature by allowing any parameter being
tested to be written permanently onto the diskette so
that written notes, etc., are no longer needed anymore.

Even better: changes to the configuration file done via
the shell's eventual editor could be temporary if one
prefers not to write to the diskette. In other words, i'm
thinking of a feature to make 'KExec-Loader' even more
convenient with the addition of an interface much like
that of 'SysLinux' or 'GrUB' where the command lines
are pre-loaded and i can edit only parts of them instead
of having to remember/enter everything manually when
it wasn't already inserted in 'kexec-loader.conf' using
'NotePad' from 'Windows' or 'KWrite' under Linux KDE
before re-booting with the diskette... Put shortly, is it
possible to avoid the edit/re-boot seequences when
experimenting with commands to be tested/added to
the 'kexec-loader.conf' configuration file?... Hummm...

But that's still not clearly expressing what i meant! Euh...

When i write about edit/re-boot seequence i think: edit
via 'Windows'/'NotePad', quit 'Windows', insert diskette
and reboot to try the new changes in 'KExec-Loader' in
case it works this times, then remove the diskette and
reboot from 'Windows', launch 'NotePad', put back the
diskette again and open it with the editor to add a few
changes and save before the cycle enters another loop.

You see, Windows isn't exactly what i'd call quick to boot
and DOS can only handle 8.3 filenames unless i add a 2nd
diskette so it seems to me the logical approach would be
to add an editor to the shell or maybe just rename the
configuration file as 'KExecLdr.Cfg', whatever.

#25 mr_

mr_

    Frequent Member

  • Members
  • 355 posts
  •  
    Germany

Posted 06 March 2009 - 04:39 PM

Did you try doslfn and freeedit? Does it support long filenames then?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users