WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Comparison of booting from CD-ROM with a problamatic device  (Read 2888 times)

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Comparison of booting from CD-ROM with a problamatic device
« on: September 12, 2011, 01:31:01 AM »
The unexpected early appearance of TC 4.0rc1 (as I had expected a longer alpha phase as seen during the TC 3.x cycle) has prompted me today to run a number of boot sequences using the same hardware setup which contained a know "troublemaker".

This problematic device is a Toshiba XM-1902B CD-ROM which was originally part of a Dell Latitude CPx notebook (from 2000-08, with a Pentium III, 500 MHz). Until a few weeks ago this was my test system for certain scenarios involving older hardware, and I have mentioned the (boot) problems with this CD-ROM on other posts. Unfortunately it appears that this notebook has now developed a "terminal" issue as it refuses to perform even a POST. Nevertheless I managed also a few weeks ago to get my hands on an almost as old Dell Precision M50 (from 2002-11, with a Pentium 4-M, 1.8 GHz). Luckily this is a so called three-spindle notebook (possibly one of the last ones produced), which features in addition to the (fixed) hard disk and DVD (i.e. a HL-DS GCC-4240N) an additional modular bay (usually used for a floppy drive or a second battery) into which the old "troublemaker" can be inserted.

For the following comparison I've chosen three generations of TC ISO images (i.e. 2.11.6, 3.8.4, and 4.0rc1). As I had recently created a null-modem cable (as mentioned here), I was able to capture all console output of booting each of the CD-ROMs on either of the two optical devices. The use of a serial interface was necessary as in at least one case a totally unresponsive system would not have allowed any other way of recording the evidence.

In the following table I'm trying to summarise the results combined with providing a link to the actual raw log:
TC 2.11.6 (kernel 2.6.29.1) [ A ]TC 3.8.4 (kernel 2.6.33.3) [ B ]TC 4.0rc1 (kernel 3.0.3) [ C ]
DVD drive [ 1 ]successful bootsuccessful bootsuccessful boot
CD-ROM drive [ 2 ]with DMA issues, but seems to succeedgetting fatally stuck with DMA failuressuccessful boot
CD-ROM drive, with ide-core.nodma [ 3 ]successful bootsuccessful boot(not tested)

I guess these results probably deserve a few comments:
  • The IMHO most important finding is in case [ C2 ] (i.e. TC 4.0rc1 booting from the known "troublemaker"), as this one ends up with a successfully running system.
  • The row [ 3 ] brings the addition of boot code 'ide-core.nodma=1.0' (as the CD-ROM is '/dev/hdc') into the comparison. This boot code had become since about January 2011 the "preferred option" in this forum here to attempt to address reported issues with certain storage devices. Apparently there are some earlier postings which refer to 'ide_core.nodma' (i.e. underscore instead of hyphen), which had typically (and somewhat not surprisingly) not resulted in users being able to overcome their reported problems.
  • For case [ A2 ] one had to be patient and wait IIRC ca. 2 minutes for the DMA issues to "clear up". I guess this is due to some timeouts. And after those occurred the processing would continue and the device would be usable (as tested by running a 'time md5sum /dev/hdc'). OTOH even waiting much longer in case [ B2 ] did not result for the system to come out of it's "frozen" state.
  • Due to diversion of all console output (plus the use of boot code 'debug') a certain element of "muddled lines" are appearing in the captured logs. This is due to the fact that kernel boot and TC startup messages are "mixed" together. This might make in some cases the reading a little bit more tricky as also the escape codes to change the colour have become part of the mix. But I wanted to capture enough detail so I reckon that is the price for that.

( ... I might add more thoughts tomorrow, but for now I'll have to press the 'Post' button ...)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11227
Re: Comparison of booting from CD-ROM with a problamatic device
« Reply #1 on: September 12, 2011, 06:55:31 AM »
Hi maro
Quote
Apparently there are some earlier postings which refer to 'ide_core.nodma' (i.e. underscore instead of hyphen), which had typically (and somewhat not surprisingly) not resulted in users being able to overcome their reported problems.
I'm afraid that I was one of the posters that used the underscore. According to  kernel-parameters.txt
Quote
Hyphens (dashes) and underscores are equivalent in parameter names, so
      log_buf_len=1M print-fatal-signals=1
   can also be entered as
      log-buf-len=1M print_fatal_signals=1
Was I the recipient of some bad information?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10963
Re: Comparison of booting from CD-ROM with a problamatic device
« Reply #2 on: September 12, 2011, 07:46:49 AM »
ide-core would be a module name instead of a param, I guess that's the distinction here.
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11227
Re: Comparison of booting from CD-ROM with a problamatic device
« Reply #3 on: September 12, 2011, 07:57:55 AM »
Hi curaga
I really should have paid much closer attention when I read that, thanks for setting me straight.
I'll try to track down and fix my incorrect posts.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10963
Re: Comparison of booting from CD-ROM with a problamatic device
« Reply #4 on: September 12, 2011, 09:54:48 AM »
Just to be clear here, the same rule applies to modules too, but only from userspace. Modprobe does a manual replacement before asking the kernel.
The only barriers that can stop you are the ones you create yourself.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Comparison of booting from CD-ROM with a problamatic device
« Reply #5 on: September 12, 2011, 10:11:45 PM »
lol  Didn't mean to post in this thread  ::)
« Last Edit: September 13, 2011, 09:15:23 PM by coreplayer2 »