WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: adding hdt.c32 in Core* ISOs  (Read 2993 times)

Offline genec

  • Full Member
  • ***
  • Posts: 240
adding hdt.c32 in Core* ISOs
« on: September 16, 2012, 06:53:43 PM »
I'm posting this in part on behalf of Erwan Velu, author of hdt.c32 (Hardware Detection Tool), a COM32 module for Syslinux.  He'd like to see if there's interest in adding hdt.c32 to some/all of the Core* ISOs.

To this, I'd add that if included, it could also be beneficial to take advantage of the pci.ids, module.alias, and modules.pcimap behavior, all of which can be GZIP compressed in the ISOs.  I'd see inclusion of these three as more likely for CorePlus.iso due to size.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: adding hdt.c32 in Core* ISOs
« Reply #1 on: September 17, 2012, 12:09:08 PM »
You didn't list the sizes of all those components ;)
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: adding hdt.c32 in Core* ISOs
« Reply #2 on: September 17, 2012, 12:22:10 PM »
Quote
Since the 3.74 release, the Syslinux project hosts the Hardware Detection Tool (HDT) project. This tool is a Syslinux com32 module that displays low-level information for any x86 compatible system. It provides both a command-line interface and a semi-graphical menu mode for browsing. HDT is available as a com32 file, a bootable ISO and a 2.88MB floppy disk.

Quote
Syslinux supports simple standalone programs, using a file format
similar to DOS ".com" files.  A 32-bit version, called COM32, is also
provided.  A simple API provides access to a limited set of filesystem
and console functions.

While it is interesting, I do not see any practical benefits to add.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: adding hdt.c32 in Core* ISOs
« Reply #3 on: September 17, 2012, 04:32:08 PM »
The way I understand it, such modules are discarded from memory together with the basic bootloader once latter hands over to the kernel.
If so, the only impact of size I can see would be on iso files.
Someone correct me if I overlooked or misunderstood anything...
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: adding hdt.c32 in Core* ISOs
« Reply #4 on: September 17, 2012, 09:22:48 PM »
The way I understand it, such modules are discarded from memory together with the basic bootloader once latter hands over to the kernel.
If so, the only impact of size I can see would be on iso files.
Someone correct me if I overlooked or misunderstood anything...

You are 100% correct.  It only occupies RAM while running.

You didn't list the sizes of all those components ;)

hdt.c32 from Syslinux-4.05 is 342452 B.  advdef -4 of current pci.ids is 187761 B.  advdev -4 of modules.alias is 14943 B.
« Last Edit: September 17, 2012, 09:35:15 PM by genec »

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: adding hdt.c32 in Core* ISOs
« Reply #5 on: September 17, 2012, 09:43:40 PM »
While it is interesting, I do not see any practical benefits to add.

I could certainly see a few. 
  • Identifying problematic wireless is one.  Last I checked, I actually have to blacklist a Broadcom wireless driver from loading for some hardware if two of them are present.
  • Identifying NICs requiring a firmware package.  Broadcom NetXtreme cards come to mind.
  • Finding your forgotten/remapped TC partitions
  • Identifying problematic graphics cards.  Perhaps special options are needed or you need to prevent XVesa from loading.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: adding hdt.c32 in Core* ISOs
« Reply #6 on: September 17, 2012, 10:02:21 PM »
All those can be done with the existing DVD.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: adding hdt.c32 in Core* ISOs
« Reply #7 on: September 17, 2012, 10:27:55 PM »
Can be done at current by loading extensions lspci, lsusb and friends.
The advantage would be that unlike extensions (or whatever is included in initramfs) this would have a zero memory cost when running in cloud mode.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: adding hdt.c32 in Core* ISOs
« Reply #8 on: September 24, 2012, 10:30:05 PM »
Can be done at current by loading extensions lspci, lsusb and friends.
The advantage would be that unlike extensions (or whatever is included in initramfs) this would have a zero memory cost when running in cloud mode.

Add to that the fact that you don't need to boot, find the offending hardware then reboot.  Load the boot loader, peek at hdt.c32, then boot once with the needed options.