Skip to contentSkip to conversation

Is it possible to boot Syslinux com32 module from grub2 ?

DISCUSSION J. Bakshi 3 participants 6 messages Aug 12, 2009 – Aug 14, 2009

lore
Share & tools
lore

J. Bakshi

author
#0 lore raw

Hello list,

HDT (Hardware Detection Tool) is a Syslinux com32 module designed to display low-level information for any x86 compatible system.

HDT runs directly on the SYSLINUX bootloader. So it doesn't need to boot first into an operating system like DOS, linux or Windows.

Is it possible to load this module through grub2 ?

Thanks

#1 lore raw
Quoted 6 lines · J. Bakshi

Hello list,

HDT (Hardware Detection Tool) is a Syslinux com32 module designed to display low-level information for any x86 compatible system.

HDT runs directly on the SYSLINUX bootloader. So it doesn't need to boot first into an operating system like DOS, linux or Windows.

Which information exactly does it show? We have few different commands for different hw information

Quoted 2 lines

Is it possible to load this module through grub2 ?

It's not currently possible but quick look shows that it's under GPLv2+. Check that the files you need are under GPLv2+ (E.g. have a statement "or (at your option) any later version" and feel free to port it to grub2.

Quoted 8 lines

Thanks

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
author
#2 lore raw
Quoted 7 lines · Vladimir 'phcoder' Serbinenko
Quoted 6 lines · J. Bakshi

Hello list,

HDT (Hardware Detection Tool) is a Syslinux com32 module designed to display low-level information for any x86 compatible system.

HDT runs directly on the SYSLINUX bootloader. So it doesn't need to boot first into an operating system like DOS, linux or Windows.

Quoted 8 lines

Which information exactly does it show? We have few different commands for different hw information

Quoted 2 lines

Is it possible to load this module through grub2 ?

It's not currently possible but quick look shows that it's under GPLv2+. Check that the files you need are under GPLv2+ (E.g. have a statement "or (at your option) any later version" and feel free to port it to grub2.

Hello,

HDT is really a must to have collection in the tool collection. It does not need to load an OS to collect info of your H/W. you can know more from http://syslinux.zytor.com/wiki/index.php/Hdt_(Hardware_Detection_Tool)

Rather than porting, I like to boot it from grub but it is a syslinux module and I don't know if it works at all. Can I use the chainloader to boot syslinux and let it do the rest of the thing ?

#3 lore raw
Quoted 4 lines · J.Bakshi

Rather than porting, I like to boot it from grub but it is a syslinux module and I don't know if it works at all. Can I use the chainloader to boot syslinux and let it do the rest of the thing ?

Why don't you port it to Multiboot instead? Multiboot is very simple to generate, since it doesn't impose any object format (generally, ELF is used).

Check docs/kernel.c in GRUB Legacy for an example.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
author
#4 lore raw
Quoted 6 lines · Robert Millan
Quoted 4 lines · J.Bakshi

Rather than porting, I like to boot it from grub but it is a syslinux module and I don't know if it works at all. Can I use the chainloader to boot syslinux and let it do the rest of the thing ?

Quoted 6 lines

Why don't you port it to Multiboot instead?  Multiboot is very simple to generate, since it doesn't impose any object format (generally, ELF is used).

Check docs/kernel.c in GRUB Legacy for an example.

Hello Robert,

Today I got a response from hdt developers. They mentioned that hdt needs some syslinux internal hence it will not function without syslinux. If multiboot approach can solve this I'll look into it definately.

Thanks

#5 lore raw
Quoted 6 lines

Hello Robert,

Today I got a response from hdt developers. They mentioned that hdt needs some syslinux internal hence it will not function without syslinux.

Probably grub exposes to its modules a similar functionality as syslinux to com32. Of course function names differ but prbably by writing few include files it's possible to create source-level compatibility. The resulting module can then be put to grub-extras

Quoted 2 lines

If multiboot approach can solve this I'll look into it definately.

If you want to do it with multiboot have a look at libpayload and libOSDK. Probably they can provide an environment you need.

Quoted 9 lines

Thanks

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git