https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082009-04-09T21:54:55ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=63812009-04-09T21:54:55Ztuxillo
<ul></ul><p>It is a thinkpad X41.</p>
<p>Some more info about this laptop here:<br /><a class="external" href="http://www.notebookreview.com/default.asp?newsID=2362">http://www.notebookreview.com/default.asp?newsID=2362</a><br /><a class="external" href="http://www-307.ibm.com/pc/support/site.wss/MIGR-59145.html">http://www-307.ibm.com/pc/support/site.wss/MIGR-59145.html</a></p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=63822009-04-10T00:54:55Ztuxillo
<ul></ul><p>Claus reported on IRC that booting on a thinkpad t40 works</p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=66492009-05-22T01:20:59Zjgordeev
<ul></ul><p>I've adapted some fixes from FreeBSD for the booting issues that result <br />in "BTX halted".<br />My changes are available at <br />git://leaf.dragonflybsd.org/~smtms/dragonfly.git, branch "btxhalted".<br /><strong>Everybody</strong> should test that these changes don't break booting for them.<br />Additionally, people that have seen "BTX Halted" on some of their <br />computers should test to confirm that the issue is fixed.<br />What the changes do basically: make the BTX switch the processor to real <br />mode before making BIOS calls and then go back to protected mode. The <br />previous practice relied on BIOS code that is not exercised by common <br />operating systems, and thus not tested during BIOS development.<br />Some side effects of the changes: the BTX kernel size is now reduced to <br />690 bytes. It was 780 bytes previously.<br />boot2 is now 224 bytes smaller, leaving 296 bytes available; boot2_64 <br />(for 64-bit disklabels) is 228 bytes smaller, leaving 4904 bytes available.<br />If somebody decides to commit these changes, please squash the commits.</p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=66762009-05-23T22:42:18Zftigeot
<ul></ul><p>On Thu, May 21, 2009 at 09:18:25PM +0300, Jordan Gordeev wrote:</p>
<blockquote>
<p>I've adapted some fixes from FreeBSD for the booting issues that result <br />in "BTX halted".<br />My changes are available at <br />git://leaf.dragonflybsd.org/~smtms/dragonfly.git, branch "btxhalted".<br /><strong>Everybody</strong> should test that these changes don't break booting for them.<br />Additionally, people that have seen "BTX Halted" on some of their <br />computers should test to confirm that the issue is fixed.</p>
</blockquote>
<p>I think one of my machines may be affected by this issue.</p>
<p>I would like to try your changes, but I'm lost in git land.<br />I tried to generate a patch from your branch; it weights 100K and I believe<br />many of the differences are irrelevant (many files in rc.d/) :-(</p>
<p>Is there any way to just get the changes you made relative to HEAD and not<br />just every changes in HEAD since then ?</p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=66782009-05-24T02:20:18Zjgordeev
<ul></ul><p>Hi, Francois!<br />The easiest way to get my changes is to create your own branch ("git <br />branch mylocalbranch master; git checkout mylocalbranch"), then merge <br />the "btxhalted" branch into it ("git merge smtms-on-leaf/btxhalted").<br />To view what changes are in branch "btxhalted", but not in master, first <br />checkout master ("git checkout master"), then run "git log <br />..smtms-on-leaf/btxhalted"). Notice the two dots.</p>
<p>Testing the changes consists of two parts: testing new boot blocks <br />('boot1' and 'boot2') and testing new 'loader'.<br />To test new boot blocks you need to install them to disk using <br />"disklabel -B -b /path/to/boot1 -s /path/to/boot2 <somedisk>".<br />To test new 'loader', you just copy it to /boot/loader on the respective <br />medium.<br />To test new PXE loader, you replace 'pxeboot' (or 'pxeboot_tftp') in <br />your TFTP-exported directory with new versions.<br />I'm not sure what the instructions would be for building a new release <br />ISO containing the changed 'cdboot'.</p>
<p>I admit that it wasn't a good idea to post to users@ without including <br />instructions on how to obtain and how to test changes.</p>
<p>Regards,<br /> Jordan Gordeev</p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=66812009-05-24T14:59:10Zftigeot
<ul></ul><p>On Sat, May 23, 2009 at 10:18:02PM +0300, Jordan Gordeev wrote:</p>
<blockquote>
<p>Francois Tigeot wrote:</p>
<blockquote>
<p>On Thu, May 21, 2009 at 09:18:25PM +0300, Jordan Gordeev wrote:</p>
<blockquote>
<p>I've adapted some fixes from FreeBSD for the booting issues that result <br />in "BTX halted".<br />My changes are available at <br />git://leaf.dragonflybsd.org/~smtms/dragonfly.git, branch "btxhalted".</p>
</blockquote>
<p>Is there any way to just get the changes you made relative to HEAD and not<br />just every changes in HEAD since then ?</p>
</blockquote>
<p>The easiest way to get my changes is to create your own branch ("git</p>
</blockquote>
<p>Thanks. I managed to pick-up the changes in sys/boot the hard way.</p>
<blockquote>
<p>Testing the changes consists of two parts: testing new boot blocks <br />('boot1' and 'boot2') and testing new 'loader'.<br />To test new boot blocks you need to install them to disk using <br />"disklabel -B -b /path/to/boot1 -s /path/to/boot2 <somedisk>".<br />To test new 'loader', you just copy it to /boot/loader on the respective <br />medium.</p>
</blockquote>
<p>I did an installworld before seeing your mail, so I did not test boot1 boot2<br />and loader separately.</p>
<p>The good news is they really fix the issue I was having:</p>
<p>I tried to upgrade a machine to a hammer / with a spare 500GB drive, and for<br />some reason the PC kept rebooting just after displaying the first boot<br />messages "F1 DF/FBSD" and "F5 Drive 1" <br />I couldn't see if there was a "BTX halted" message, the screen blanked too<br />quickly for that.<br />The same machine had no trouble with a 400GB drive and an UFS root.</p>
<p>With your new boot blocks, the system boots as it should.<br />Thank you, I'm a happy bunny now :-)</p>
<blockquote>
<p>I admit that it wasn't a good idea to post to users@ without including <br />instructions on how to obtain and how to test changes.</p>
</blockquote>
<p>Well, it didn't occur to me I would have had to create my own branch. Beeing<br />only used to cvs and svn, git is really a strange animal.</p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=66832009-05-24T20:43:35Zftigeot
<ul></ul><p>On Sun, May 24, 2009 at 09:54:45AM +0200, Francois Tigeot wrote:</p>
<blockquote>
<p>With your new boot blocks, the system boots as it should.<br />Thank you, I'm a happy bunny now :-)</p>
</blockquote>
<p>I have spoken too soon.</p>
<p>I still have the instant reboot problem (and this time I could see a "BTX<br />halted" message, complete with register dump).</p>
<p>Steps to reproduce:</p>
<p>1. Install a Dragonfly system on an entire new disk, using a livecd snapshot<br /> /dev/ad4s1a is now a big Hammer partition, complete with many pfs.</p>
<p>2. Boot from another disk, delete all Hammer PFSes in ad4s1a:/pfs/ with<br /> hammer pfs-destroy.</p>
<p>3. Reboot on the first disk.<br /> /boot/loader now fails with the dreaded "BTX halted" register dump and<br /> instantly reboots the machine.</p>
<p>The first step bootloaders are still usable. It is possible to interrupt the<br />boot sequence during the rotating \ | display and boot directly a kernel on<br />0:ad(0,a)/kernel</p>
<p>Replacing step 2) above by a newfs on the root partition, followed by a restore<br />from backup of /boot gives the same result.</p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=124612015-01-15T15:38:10Ztuxillo
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/12461/diff?detail_id=2141">diff</a>)</li><li><strong>Category</strong> set to <i>Other</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>Assignee</strong> deleted (<del><i>0</i></del>)</li><li><strong>Target version</strong> set to <i>4.2</i></li></ul><p>Hi,</p>
<p>There was commit 9f163f397ee13c569d290e7d020b84cd17db4868 but I don't know if this addresses the problem or not.</p>
<p>I think the processors with this thinkpad can run in 64-bit mode so remember we only support 64-bits now:<br />Intel Core 2 Duo P8700,<br />Intel Core 2 Duo P8800,<br />Intel Core 2 Duo P9700</p>
<p>Can you please try it again?</p>
<p>Cheers,<br />Antonio Huete</p> DragonFlyBSD - Bug #1332: DFBSD 2.2 - Booting usbcdrom/usbsticks on thinkpad hangs on "BTX Halted"https://bugs.dragonflybsd.org/issues/1332?journal_id=140212021-05-11T11:00:32Ztuxillo
<ul><li><strong>Target version</strong> changed from <i>4.2</i> to <i>6.0</i></li></ul>