Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-15 Thread Johannes Dieterich
Hello everybody,

on a Thinkpad X220 (Sandy Bridge/Cougar Point based) the installation
medium loads but halts during boot. I tested the following versions of
FreeBSD

* 8.2-RELEASE
* 9-CURRENT (latest official snapshot from 02/2011)
* 9-CURRENT (latest snapshot from Nathan Whitehorn as of 20/04/2011 [1])
* 9-CURRENT (own release medium as of today prepared with the
generate-release script)

With 8.2, I see the same error messages as [2] with PCBSD-8 (not
surprising, of course, but please note that there is no Firewire in this
notebook). I do not see what the error message is with 9.0 before it
halts. Anyway, according to Kris Moore this is a "known issue with
FreeBSD". I have not found anything about such problem in the mailing
list archives (apologies if I am wrong).

Therefore my question simply is, whether this problem is known and (if
yes) there is a fix or workaround available for CURRENT.

If needed, I can post a dmesg of a successful boot of the
openSUSE-11.4-LiveCD as reference (not doing so now because I assume the
list will anyway eat the attachment). Also, I can provide whatever can
be obtained using said Linux.

Thanks a lot or any replies! :-)

Johannes Dieterich

[1] http://people.freebsd.org/~nwhitehorn/
[2] http://forums.pcbsd.org/showthread.php?p=87366
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-16 Thread John Baldwin
On Sunday, May 15, 2011 8:09:21 pm Johannes Dieterich wrote:
> Hello everybody,
> 
> on a Thinkpad X220 (Sandy Bridge/Cougar Point based) the installation
> medium loads but halts during boot. I tested the following versions of
> FreeBSD
> 
> * 8.2-RELEASE
> * 9-CURRENT (latest official snapshot from 02/2011)
> * 9-CURRENT (latest snapshot from Nathan Whitehorn as of 20/04/2011 [1])
> * 9-CURRENT (own release medium as of today prepared with the
> generate-release script)
> 
> With 8.2, I see the same error messages as [2] with PCBSD-8 (not
> surprising, of course, but please note that there is no Firewire in this
> notebook). I do not see what the error message is with 9.0 before it
> halts. Anyway, according to Kris Moore this is a "known issue with
> FreeBSD". I have not found anything about such problem in the mailing
> list archives (apologies if I am wrong).
> 
> Therefore my question simply is, whether this problem is known and (if
> yes) there is a fix or workaround available for CURRENT.
> 
> If needed, I can post a dmesg of a successful boot of the
> openSUSE-11.4-LiveCD as reference (not doing so now because I assume the
> list will anyway eat the attachment). Also, I can provide whatever can
> be obtained using said Linux.
> 
> Thanks a lot or any replies! :-)

Hmm, is this booting amd64 or i386?  Can you try i386 if you haven't?  If i386 
doesn't work at first, you might need to try disabling APIC via 'set 
hint.apic.0.disabled=1' at the loader prompt.

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-16 Thread Johannes Dieterich
On Mon, May 16, 2011 at 3:40 PM, John Baldwin  wrote:

> On Sunday, May 15, 2011 8:09:21 pm Johannes Dieterich wrote:
> > Hello everybody,
> >
> > on a Thinkpad X220 (Sandy Bridge/Cougar Point based) the installation
> > medium loads but halts during boot. I tested the following versions of
> > FreeBSD
> >
> > * 8.2-RELEASE
> > * 9-CURRENT (latest official snapshot from 02/2011)
> > * 9-CURRENT (latest snapshot from Nathan Whitehorn as of 20/04/2011 [1])
> > * 9-CURRENT (own release medium as of today prepared with the
> > generate-release script)
> >
> > With 8.2, I see the same error messages as [2] with PCBSD-8 (not
> > surprising, of course, but please note that there is no Firewire in this
> > notebook). I do not see what the error message is with 9.0 before it
> > halts. Anyway, according to Kris Moore this is a "known issue with
> > FreeBSD". I have not found anything about such problem in the mailing
> > list archives (apologies if I am wrong).
> >
> > Therefore my question simply is, whether this problem is known and (if
> > yes) there is a fix or workaround available for CURRENT.
> >
> > If needed, I can post a dmesg of a successful boot of the
> > openSUSE-11.4-LiveCD as reference (not doing so now because I assume the
> > list will anyway eat the attachment). Also, I can provide whatever can
> > be obtained using said Linux.
> >
> > Thanks a lot or any replies! :-)
>
> Hmm, is this booting amd64 or i386?  Can you try i386 if you haven't?  If
> i386
> doesn't work at first, you might need to try disabling APIC via 'set
> hint.apic.0.disabled=1' at the loader prompt.
>
Sorry, forgot to mention it. Machine has 8 GB of RAM so I have been using
amd64 images for all tests. I will try tonight with an i386 snapshot. Would
the one provided by Nathan Whitehorn be recent enough? Anything in
particular that you would be interested in if it should work (verbose dmesg,
...)?

Thanks a lot for the reply!

Johannes Dieterich
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-16 Thread John Baldwin
On Monday, May 16, 2011 10:05:12 am Johannes Dieterich wrote:
> On Mon, May 16, 2011 at 3:40 PM, John Baldwin  wrote:
> 
> > On Sunday, May 15, 2011 8:09:21 pm Johannes Dieterich wrote:
> > > Hello everybody,
> > >
> > > on a Thinkpad X220 (Sandy Bridge/Cougar Point based) the installation
> > > medium loads but halts during boot. I tested the following versions of
> > > FreeBSD
> > >
> > > * 8.2-RELEASE
> > > * 9-CURRENT (latest official snapshot from 02/2011)
> > > * 9-CURRENT (latest snapshot from Nathan Whitehorn as of 20/04/2011 [1])
> > > * 9-CURRENT (own release medium as of today prepared with the
> > > generate-release script)
> > >
> > > With 8.2, I see the same error messages as [2] with PCBSD-8 (not
> > > surprising, of course, but please note that there is no Firewire in this
> > > notebook). I do not see what the error message is with 9.0 before it
> > > halts. Anyway, according to Kris Moore this is a "known issue with
> > > FreeBSD". I have not found anything about such problem in the mailing
> > > list archives (apologies if I am wrong).
> > >
> > > Therefore my question simply is, whether this problem is known and (if
> > > yes) there is a fix or workaround available for CURRENT.
> > >
> > > If needed, I can post a dmesg of a successful boot of the
> > > openSUSE-11.4-LiveCD as reference (not doing so now because I assume the
> > > list will anyway eat the attachment). Also, I can provide whatever can
> > > be obtained using said Linux.
> > >
> > > Thanks a lot or any replies! :-)
> >
> > Hmm, is this booting amd64 or i386?  Can you try i386 if you haven't?  If
> > i386
> > doesn't work at first, you might need to try disabling APIC via 'set
> > hint.apic.0.disabled=1' at the loader prompt.
> >
> Sorry, forgot to mention it. Machine has 8 GB of RAM so I have been using
> amd64 images for all tests. I will try tonight with an i386 snapshot. Would
> the one provided by Nathan Whitehorn be recent enough? Anything in
> particular that you would be interested in if it should work (verbose dmesg,
> ...)?

Yes, a verbose dmesg would be ideal, I just figured it would be hard to get 
that on a laptop for the non-booting case. :)

A verbose dmesg from a working boot would probably be helpful if you can get 
it though.

> Thanks a lot for the reply!
> 
> Johannes Dieterich
> 

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-16 Thread Johannes Dieterich
On 05/16/2011 03:40 PM, John Baldwin wrote:
> On Sunday, May 15, 2011 8:09:21 pm Johannes Dieterich wrote:
>> Hello everybody,
>>
>> on a Thinkpad X220 (Sandy Bridge/Cougar Point based) the installation
>> medium loads but halts during boot. I tested the following versions of
>> FreeBSD
>>
>> * 8.2-RELEASE
>> * 9-CURRENT (latest official snapshot from 02/2011)
>> * 9-CURRENT (latest snapshot from Nathan Whitehorn as of 20/04/2011 [1])
>> * 9-CURRENT (own release medium as of today prepared with the
>> generate-release script)
>>
>> With 8.2, I see the same error messages as [2] with PCBSD-8 (not
>> surprising, of course, but please note that there is no Firewire in this
>> notebook). I do not see what the error message is with 9.0 before it
>> halts. Anyway, according to Kris Moore this is a "known issue with
>> FreeBSD". I have not found anything about such problem in the mailing
>> list archives (apologies if I am wrong).
>>
>> Therefore my question simply is, whether this problem is known and (if
>> yes) there is a fix or workaround available for CURRENT.
>>
>> If needed, I can post a dmesg of a successful boot of the
>> openSUSE-11.4-LiveCD as reference (not doing so now because I assume the
>> list will anyway eat the attachment). Also, I can provide whatever can
>> be obtained using said Linux.
>>
>> Thanks a lot or any replies! :-)
> 
> Hmm, is this booting amd64 or i386?  Can you try i386 if you haven't?  If 
> i386 
> doesn't work at first, you might need to try disabling APIC via 'set 
> hint.apic.0.disabled=1' at the loader prompt.
The i386 image as of 11/04/2011 of Nathan Whitehorn booted into the live
system without problems. The hint was not needed.

Please find a verbose dmesg at http://pastebin.com/4UTHsg7F

Does this tell you anything?

If you (or anybody else) should need anything more, just let me know how
to obtain it! :-)

Best regards

Johannes Dieterich
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-16 Thread tiredash...@gmail.com
On May 16, 2:57 pm, dieterich.johan...@googlemail.com (Johannes
Dieterich) wrote:
>
> The i386 image as of 11/04/2011 of Nathan Whitehorn booted into the live
> system without problems. The hint was not needed.

Yep, my T420 boots the i386 version just fine, so it definitely looks
like an amd64 issue.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-17 Thread Sevan / Venture37
Hiya
If it's any help, I tried booting OpenBSD-Current on a ThinkPad X220
yesterday & it worked just fine (I forget to take my copy of 8-STABLE
snapshot which I downloaded from the allbsd site, otherwise I would've
post that too)

dmesg:
http://www.nycbug.org/?NAV=dmesgd;f_dmesg=;f_bsd=;f_nick=;f_descr=;dmesgid=2068#2068

Pcidump -vxx output:
http://pastebin.com/KqVMcqza

acpidump & Xorg.log:
http://www.sendspace.com/file/qtmkte

Sevan / Venture37
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-17 Thread Daniel Staal


(Sorry I can't reply to anyone, I just joined the list.  I saw this 
discussion in the archives and thought I should join in.)


I've managed to boot a X220i using -CURRENT as of last night.  I got some 
help on -questions to get it done though.  From a blank machine, you'll 
need either a non-USB boot device with FreeBSD media (untested) or a USB 
keyboard.  If you are using a USB keyboard


set hint.atkbd.0.disabled=1

to install, and use the USB keyboard during installation.  Then on the 
first reboot in the BIOS set 'USB UEFI BIOS' to disabled.  (This means you 
can't boot from a USB device.)


At that point, the machine will boot fine.  I've tried 8.2-RELEASE, the 
last amd64 -CURRENT I could find on the FreeBSD website, and -CURRENT as of 
2011-05-16.


I'm building a couple of ports at the moment, and want to reboot with a 
couple of config changes in the loader to see if I can get the WiFi 
recognized.  As soon as I do that I can post my dmesg someplace.


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-17 Thread Daniel Staal



I'm building a couple of ports at the moment, and want to reboot with a
couple of config changes in the loader to see if I can get the WiFi
recognized.  As soon as I do that I can post my dmesg someplace.


And my promised dmesg:


Note that this is with 'USB UEFI BIOS' _off._

Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-17 Thread Johannes Dieterich
On 05/17/2011 06:31 PM, Daniel Staal wrote:
> 
> (Sorry I can't reply to anyone, I just joined the list.  I saw this
> discussion in the archives and thought I should join in.)
> 
> I've managed to boot a X220i using -CURRENT as of last night.  I got
> some help on -questions to get it done though.  From a blank machine,
> you'll need either a non-USB boot device with FreeBSD media (untested)
> or a USB keyboard.  If you are using a USB keyboard
> 
> set hint.atkbd.0.disabled=1
> 
> to install, and use the USB keyboard during installation.  Then on the
> first reboot in the BIOS set 'USB UEFI BIOS' to disabled.  (This means
> you can't boot from a USB device.)
> 
> At that point, the machine will boot fine.  I've tried 8.2-RELEASE, the
> last amd64 -CURRENT I could find on the FreeBSD website, and -CURRENT as
> of 2011-05-16.
> 
> I'm building a couple of ports at the moment, and want to reboot with a
> couple of config changes in the loader to see if I can get the WiFi
> recognized.  As soon as I do that I can post my dmesg someplace.
Thanks a lot for the very valuable hint! :-) Booting the amd64
installation medium works now, I will report after the install whether
the second part also works for me (but I am pretty sure of it).

Thanks a lot again! :-)

Johannes Dieterich
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-17 Thread Matt

On 05/17/11 16:50, Johannes Dieterich wrote:

On 05/17/2011 06:31 PM, Daniel Staal wrote:

(Sorry I can't reply to anyone, I just joined the list.  I saw this
discussion in the archives and thought I should join in.)

I've managed to boot a X220i using -CURRENT as of last night.  I got
some help on -questions to get it done though.  From a blank machine,
you'll need either a non-USB boot device with FreeBSD media (untested)
or a USB keyboard.  If you are using a USB keyboard

set hint.atkbd.0.disabled=1

to install, and use the USB keyboard during installation.  Then on the
first reboot in the BIOS set 'USB UEFI BIOS' to disabled.  (This means
you can't boot from a USB device.)

At that point, the machine will boot fine.  I've tried 8.2-RELEASE, the
last amd64 -CURRENT I could find on the FreeBSD website, and -CURRENT as
of 2011-05-16.

I'm building a couple of ports at the moment, and want to reboot with a
couple of config changes in the loader to see if I can get the WiFi
recognized.  As soon as I do that I can post my dmesg someplace.

Thanks a lot for the very valuable hint! :-) Booting the amd64
installation medium works now, I will report after the install whether
the second part also works for me (but I am pretty sure of it).

Thanks a lot again! :-)

Johannes Dieterich
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

I'm not on a sandy bridge, but a core2 based lenovo thinkpad (SL410, I 
seem to have this thing fully supported finally...f-keys, sd card etc!). 
I've noticed that BTX halts about 60% of the time for me via DVD. My 
keyboard also does not work at login prompt or elsewhere (during 
fsck...faster!) until after about 2-3 keypresses, after which it's fine. 
BTX via CD/DVD actually seems to work better if i start impatiently 
hitting the keyboard when "-" appears.


I'm not sure if this is a related issue. I also had amd64 btx problems 
on a Dell desktop, so it might be a SATA/scsi/cam timeout thing. Never 
had a problem on server hardware, although most of those boxes were 
Opterons (and thus associated chipsets).


I've come to view FreeBSD dvd boots as a form of gambling.

Matt
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-18 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Try this patch?

(I'm still opted to disable the typematic rate detection by default at
least for amd64, as we don't do it in the past for amd64)

Cheers,
- -- 
Xin LI http://www.delphij.net/
FreeBSD - The Power to Serve!  Live free or die
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (FreeBSD)

iQEcBAEBCAAGBQJN1ASPAAoJEATO+BI/yjfBmsMH/0/VmxTyIAK2maoihg+/BhGR
5hwWnlCrW7i8a5If77o9e6apishlIgUMuf71WBAIVG+BF71I2QyEWNz+NsR9A+DM
N2YPok+oUVASyUIMHvvPC5gNEctcEnaFDOQ1fUWjPeQBoIZajxm0LYeRF7PDKA6R
n3HfstrQRwfzzRms96gkwCXdmffOuokqPK0EMwub+Dd+1NkLcnv/VaaJFR9OwlBd
cxayhNbTMSbW92x9GBz4O9HrQ1UBhYdi+jru2GBTbeNegh8bZGppoV8rfZQXvq5x
MU37Wgt0DolJY05BB58TTVW8weKRPiqUkHBc1aCK9X0AojXo76aXSUwdk40xSfs=
=+die
-END PGP SIGNATURE-
Index: sys/dev/atkbdc/atkbd.c
===
--- sys/dev/atkbdc/atkbd.c  (revision 221536)
+++ sys/dev/atkbdc/atkbd.c  (working copy)
@@ -1097,6 +1097,9 @@
x86regs_t regs;
uint8_t *p;
 
+   if (!(kbd->kb_config & KB_CONF_PROBE_TYPEMATIC))
+   return (ENODEV);
+
if (x86bios_get_intr(0x15) == 0 || x86bios_get_intr(0x16) == 0)
return (ENODEV);
 
Index: sys/dev/atkbdc/atkbdreg.h
===
--- sys/dev/atkbdc/atkbdreg.h   (revision 221536)
+++ sys/dev/atkbdc/atkbdreg.h   (working copy)
@@ -36,6 +36,7 @@
 #define KB_CONF_NO_RESET   (1 << 1) /* don't reset the keyboard */
 #define KB_CONF_ALT_SCANCODESET(1 << 2) /* assume the XT type keyboard 
*/
 #defineKB_CONF_NO_PROBE_TEST   (1 << 3) /* don't test keyboard during 
probe */
+#defineKB_CONF_PROBE_TYPEMATIC (1 << 4) /* probe keyboard typematic */
 
 #ifdef _KERNEL
 
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-19 Thread Johannes Dieterich
On Wed, May 18, 2011 at 7:40 PM, Xin LI  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Try this patch?
>
The attached patch makes 9-CURRENT-amd64 boot on the X220 w/o any hints or
BIOS fixes needed. Thanks a lot! :-)



>
> (I'm still opted to disable the typematic rate detection by default at
> least for amd64, as we don't do it in the past for amd64)
>
What does this mean concerning getting the fix into CURRENT?

Best regards

Johannes Dieterich




>
> Cheers,
> - --
> Xin LI http://www.delphij.net/
> FreeBSD - The Power to Serve!  Live free or die
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.17 (FreeBSD)
>
> iQEcBAEBCAAGBQJN1ASPAAoJEATO+BI/yjfBmsMH/0/VmxTyIAK2maoihg+/BhGR
> 5hwWnlCrW7i8a5If77o9e6apishlIgUMuf71WBAIVG+BF71I2QyEWNz+NsR9A+DM
> N2YPok+oUVASyUIMHvvPC5gNEctcEnaFDOQ1fUWjPeQBoIZajxm0LYeRF7PDKA6R
> n3HfstrQRwfzzRms96gkwCXdmffOuokqPK0EMwub+Dd+1NkLcnv/VaaJFR9OwlBd
> cxayhNbTMSbW92x9GBz4O9HrQ1UBhYdi+jru2GBTbeNegh8bZGppoV8rfZQXvq5x
> MU37Wgt0DolJY05BB58TTVW8weKRPiqUkHBc1aCK9X0AojXo76aXSUwdk40xSfs=
> =+die
> -END PGP SIGNATURE-
>
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-27 Thread tiredash...@gmail.com
I finally got around to trying is out, and although the installation
completed successfully, the installation isn't recognized upon boot. I
am getting a PXE-E61 error: media test failure, please check cable. I
tried reinstalling three or four times, with the same results.

I do not believe the issue is a BIOS setting or HD failure, because i
can still successfully install windows 7 without any problems.

On Tuesday, May 17, 2011, Daniel Staal  wrote:
>
> (Sorry I can't reply to anyone, I just joined the list.  I saw this 
> discussion in the archives and thought I should join in.)
>
> I've managed to boot a X220i using -CURRENT as of last night.  I got some 
> help on -questions to get it done though.  From a blank machine, you'll need 
> either a non-USB boot device with FreeBSD media (untested) or a USB keyboard. 
>  If you are using a USB keyboard
>
> set hint.atkbd.0.disabled=1
>
> to install, and use the USB keyboard during installation.  Then on the first 
> reboot in the BIOS set 'USB UEFI BIOS' to disabled.  (This means you can't 
> boot from a USB device.)
>
> At that point, the machine will boot fine.  I've tried 8.2-RELEASE, the last 
> amd64 -CURRENT I could find on the FreeBSD website, and -CURRENT as of 
> 2011-05-16.
>
> I'm building a couple of ports at the moment, and want to reboot with a 
> couple of config changes in the loader to see if I can get the WiFi 
> recognized.  As soon as I do that I can post my dmesg someplace.
>
> Daniel T. Staal
>
> ---
> This email copyright the author.  Unless otherwise noted, you
> are expressly allowed to retransmit, quote, or otherwise use
> the contents for non-commercial purposes.  This copyright will
> expire 5 years after the author's death, or in 30 years,
> whichever is longer, unless such a period is in excess of
> local copyright law.
> ---
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-27 Thread tiredash...@gmail.com
It appears this was just a boot loader problem. Using BTX loader
appears to fix the issue.

On Friday, May 27, 2011, tiredash...@gmail.com  wrote:
> I finally got around to trying is out, and although the installation
> completed successfully, the installation isn't recognized upon boot. I
> am getting a PXE-E61 error: media test failure, please check cable. I
> tried reinstalling three or four times, with the same results.
>
> I do not believe the issue is a BIOS setting or HD failure, because i
> can still successfully install windows 7 without any problems.
>
> On Tuesday, May 17, 2011, Daniel Staal  wrote:
>>
>> (Sorry I can't reply to anyone, I just joined the list.  I saw this 
>> discussion in the archives and thought I should join in.)
>>
>> I've managed to boot a X220i using -CURRENT as of last night.  I got some 
>> help on -questions to get it done though.  From a blank machine, you'll need 
>> either a non-USB boot device with FreeBSD media (untested) or a USB 
>> keyboard.  If you are using a USB keyboard
>>
>> set hint.atkbd.0.disabled=1
>>
>> to install, and use the USB keyboard during installation.  Then on the first 
>> reboot in the BIOS set 'USB UEFI BIOS' to disabled.  (This means you can't 
>> boot from a USB device.)
>>
>> At that point, the machine will boot fine.  I've tried 8.2-RELEASE, the last 
>> amd64 -CURRENT I could find on the FreeBSD website, and -CURRENT as of 
>> 2011-05-16.
>>
>> I'm building a couple of ports at the moment, and want to reboot with a 
>> couple of config changes in the loader to see if I can get the WiFi 
>> recognized.  As soon as I do that I can post my dmesg someplace.
>>
>> Daniel T. Staal
>>
>> ---
>> This email copyright the author.  Unless otherwise noted, you
>> are expressly allowed to retransmit, quote, or otherwise use
>> the contents for non-commercial purposes.  This copyright will
>> expire 5 years after the author's death, or in 30 years,
>> whichever is longer, unless such a period is in excess of
>> local copyright law.
>> ---
>> ___
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>>
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-27 Thread Xin LI
On Thu, May 19, 2011 at 5:18 AM, Johannes Dieterich
 wrote:
> On Wed, May 18, 2011 at 7:40 PM, Xin LI  wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>>
>> Try this patch?
>>
> The attached patch makes 9-CURRENT-amd64 boot on the X220 w/o any hints or
> BIOS fixes needed. Thanks a lot! :-)
>
>
>
>>
>> (I'm still opted to disable the typematic rate detection by default at
>> least for amd64, as we don't do it in the past for amd64)
>>
> What does this mean concerning getting the fix into CURRENT?

Well, that's not a perfect fix and we do lose the ability of detecting
typematic rate (by default), so technically it's a workaround
(sufficient to make the kernel boot and work, though) and doesn't fix
anything.

I have committed it anyway since we do not have better fix (yet), and
have updated atkbd(4) manual page so one can enable it again when
wanted.

The problem we had was that it seems that running the BIOS in the
x86emu emulator on amd64 would cause problem.  This doesn't seem to be
fixable without hands-on experiments on a system in question, it's
either a BIOS bug or an emulator bug.  The strange part of the problem
is that the functionality is quite common in the Good Old Days (TM).

Cheers,
-- 
Xin LI  http://www.delphij.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-27 Thread Daniel Staal

--As of May 27, 2011 10:14:20 AM -0700, Xin LI is alleged to have said:


The problem we had was that it seems that running the BIOS in the
x86emu emulator on amd64 would cause problem.  This doesn't seem to be
fixable without hands-on experiments on a system in question, it's
either a BIOS bug or an emulator bug.  The strange part of the problem
is that the functionality is quite common in the Good Old Days (TM).


--As for the rest, it is mine.

Lenovo has posted an updated BIOS for the box.  Would you like me to try 
booting an older install with it?


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-31 Thread Jung-uk Kim
On Friday 27 May 2011 01:14 pm, Xin LI wrote:
> On Thu, May 19, 2011 at 5:18 AM, Johannes Dieterich
>
>  wrote:
> > On Wed, May 18, 2011 at 7:40 PM, Xin LI  
wrote:
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA256
> >>
> >> Try this patch?
> >
> > The attached patch makes 9-CURRENT-amd64 boot on the X220 w/o any
> > hints or BIOS fixes needed. Thanks a lot! :-)
> >
> >> (I'm still opted to disable the typematic rate detection by
> >> default at least for amd64, as we don't do it in the past for
> >> amd64)
> >
> > What does this mean concerning getting the fix into CURRENT?
>
> Well, that's not a perfect fix and we do lose the ability of
> detecting typematic rate (by default), so technically it's a
> workaround (sufficient to make the kernel boot and work, though)
> and doesn't fix anything.
>
> I have committed it anyway since we do not have better fix (yet),
> and have updated atkbd(4) manual page so one can enable it again
> when wanted.
>
> The problem we had was that it seems that running the BIOS in the
> x86emu emulator on amd64 would cause problem.  This doesn't seem to
> be fixable without hands-on experiments on a system in question,
> it's either a BIOS bug or an emulator bug.  The strange part of the
> problem is that the functionality is quite common in the Good Old
> Days (TM).

I got BIOS dump from gnn last week.  I've been scratching my head 
cause it should just fail and exit gracefully unless I am totally 
missing something. :-(

Are you guys sure that INT 15h is causing hangs?  Maybe INT 16h is the 
real culprit (which is more probable, BTW)?

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-31 Thread Jung-uk Kim
On Tuesday 31 May 2011 04:50 pm, Jung-uk Kim wrote:
> I got BIOS dump from gnn last week.  I've been scratching my head
> cause it should just fail and exit gracefully unless I am totally
> missing something. :-(
>
> Are you guys sure that INT 15h is causing hangs?  Maybe INT 16h is
> the real culprit (which is more probable, BTW)?

BTW, it shouldn't call INT 16h at all unless INT 15h succeeded 
somehow.  So, I am totally lost. :-(

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-05-31 Thread Jung-uk Kim
On Tuesday 31 May 2011 04:50 pm, Jung-uk Kim wrote:
> On Friday 27 May 2011 01:14 pm, Xin LI wrote:
> > On Thu, May 19, 2011 at 5:18 AM, Johannes Dieterich
> >
> >  wrote:
> > > On Wed, May 18, 2011 at 7:40 PM, Xin LI 
>
> wrote:
> > >> -BEGIN PGP SIGNED MESSAGE-
> > >> Hash: SHA256
> > >>
> > >> Try this patch?
> > >
> > > The attached patch makes 9-CURRENT-amd64 boot on the X220 w/o
> > > any hints or BIOS fixes needed. Thanks a lot! :-)
> > >
> > >> (I'm still opted to disable the typematic rate detection by
> > >> default at least for amd64, as we don't do it in the past for
> > >> amd64)
> > >
> > > What does this mean concerning getting the fix into CURRENT?
> >
> > Well, that's not a perfect fix and we do lose the ability of
> > detecting typematic rate (by default), so technically it's a
> > workaround (sufficient to make the kernel boot and work, though)
> > and doesn't fix anything.
> >
> > I have committed it anyway since we do not have better fix (yet),
> > and have updated atkbd(4) manual page so one can enable it again
> > when wanted.
> >
> > The problem we had was that it seems that running the BIOS in the
> > x86emu emulator on amd64 would cause problem.  This doesn't seem
> > to be fixable without hands-on experiments on a system in
> > question, it's either a BIOS bug or an emulator bug.  The strange
> > part of the problem is that the functionality is quite common in
> > the Good Old Days (TM).
>
> I got BIOS dump from gnn last week.  I've been scratching my head
> cause it should just fail and exit gracefully unless I am totally
> missing something. :-(
>
> Are you guys sure that INT 15h is causing hangs?  Maybe INT 16h is
> the real culprit (which is more probable, BTW)?

I found something strange about this BIOS (well, if we can call it 
that).  Please try this:

Index: sys/dev/atkbdc/atkbd.c
===
--- sys/dev/atkbdc/atkbd.c  (revision 222550)
+++ sys/dev/atkbdc/atkbd.c  (working copy)
@@ -1100,7 +1100,8 @@ get_typematic(keyboard_t *kbd)
if (!(kbd->kb_config & KB_CONF_PROBE_TYPEMATIC))
return (ENODEV);
 
-   if (x86bios_get_intr(0x15) == 0 || x86bios_get_intr(0x16) == 0)
+   if (x86bios_get_intr(0x15) != 0xf000f859 ||
+   x86bios_get_intr(0x16) != 0xf000e82e)
return (ENODEV);
 
/* Is BIOS system configuration table supported? */

You must re-enable typematic probing from loader to test it, of 
course.  I think the following line should do:

hint.atkbd.0.flags="0x10"

Note: You may add printf() before and after the check to make sure it 
is being called (and it fails immediately).

A long answer goes like this.  INT 0x15 and 0x16 vectors have fixed 
entry points in *real* BIOS, i.e., 0xf000:0xf859 and 0xf000:0xe82e.  
For this BIOS (or CSM), INT 0x16 vector is correct but INT 0x15 
vector is not (0xf000:0xb4f1).  Funny thing is 0xf000:0xf859 actually 
points to a working INT 15h handler, it seems, which confused me 
totally.  Probably it was done like this because (U)EFI CSM spec. 
mandated it to be located @ 0xf000:0xf859.  If we follow the 
interrupt vector (0xf000:0xb4f1), it gets nowhere (or jumps to an 
unknown external interrupt handler).  If we follow the fixed address, 
it will exit gracefully.  So, actually there are two possible 
solutions, i.e., 1) check whether the interrupt vector is modified 
(the above patch), or 2) jump directly to the fixed interrupt entry 
point.  I chose Option #1 because it is very hard to find BIOS 
typematic support these days (as you pointed out).

Cheers,

Jung-uk Kim
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-06-06 Thread Xin LI
On Tue, May 31, 2011 at 5:03 PM, Jung-uk Kim  wrote:
[...]
> I found something strange about this BIOS (well, if we can call it
> that).  Please try this:
>
> Index: sys/dev/atkbdc/atkbd.c
> ===
> --- sys/dev/atkbdc/atkbd.c      (revision 222550)
> +++ sys/dev/atkbdc/atkbd.c      (working copy)
> @@ -1100,7 +1100,8 @@ get_typematic(keyboard_t *kbd)
>        if (!(kbd->kb_config & KB_CONF_PROBE_TYPEMATIC))
>                return (ENODEV);
>
> -       if (x86bios_get_intr(0x15) == 0 || x86bios_get_intr(0x16) == 0)
> +       if (x86bios_get_intr(0x15) != 0xf000f859 ||
> +           x86bios_get_intr(0x16) != 0xf000e82e)
>                return (ENODEV);
>
>        /* Is BIOS system configuration table supported? */
>
> You must re-enable typematic probing from loader to test it, of
> course.  I think the following line should do:
>
> hint.atkbd.0.flags="0x10"
>
> Note: You may add printf() before and after the check to make sure it
> is being called (and it fails immediately).
>
> A long answer goes like this.  INT 0x15 and 0x16 vectors have fixed
> entry points in *real* BIOS, i.e., 0xf000:0xf859 and 0xf000:0xe82e.
> For this BIOS (or CSM), INT 0x16 vector is correct but INT 0x15
> vector is not (0xf000:0xb4f1).  Funny thing is 0xf000:0xf859 actually
> points to a working INT 15h handler, it seems, which confused me
> totally.  Probably it was done like this because (U)EFI CSM spec.
> mandated it to be located @ 0xf000:0xf859.  If we follow the
> interrupt vector (0xf000:0xb4f1), it gets nowhere (or jumps to an
> unknown external interrupt handler).  If we follow the fixed address,
> it will exit gracefully.  So, actually there are two possible
> solutions, i.e., 1) check whether the interrupt vector is modified
> (the above patch), or 2) jump directly to the fixed interrupt entry
> point.  I chose Option #1 because it is very hard to find BIOS
> typematic support these days (as you pointed out).

Sorry for the delay.  I finally got a copy of (U)EFI spec and found
the requirement of fixed entry there.

Option #1 sounds like a good idea to me too (if the "BIOS" can break
one rule, it can also break more).  Could you please commit the change
(maybe revert mine before that?) and merge it back to -STABLE?

Thanks for your time on investigating this!

Cheers,
-- 
Xin LI  http://www.delphij.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-06-08 Thread John Baldwin
On Monday, May 16, 2011 2:57:21 pm Johannes Dieterich wrote:
> On 05/16/2011 03:40 PM, John Baldwin wrote:
> > On Sunday, May 15, 2011 8:09:21 pm Johannes Dieterich wrote:
> >> Hello everybody,
> >>
> >> on a Thinkpad X220 (Sandy Bridge/Cougar Point based) the installation
> >> medium loads but halts during boot. I tested the following versions of
> >> FreeBSD
> >>
> >> * 8.2-RELEASE
> >> * 9-CURRENT (latest official snapshot from 02/2011)
> >> * 9-CURRENT (latest snapshot from Nathan Whitehorn as of 20/04/2011 [1])
> >> * 9-CURRENT (own release medium as of today prepared with the
> >> generate-release script)
> >>
> >> With 8.2, I see the same error messages as [2] with PCBSD-8 (not
> >> surprising, of course, but please note that there is no Firewire in this
> >> notebook). I do not see what the error message is with 9.0 before it
> >> halts. Anyway, according to Kris Moore this is a "known issue with
> >> FreeBSD". I have not found anything about such problem in the mailing
> >> list archives (apologies if I am wrong).
> >>
> >> Therefore my question simply is, whether this problem is known and (if
> >> yes) there is a fix or workaround available for CURRENT.
> >>
> >> If needed, I can post a dmesg of a successful boot of the
> >> openSUSE-11.4-LiveCD as reference (not doing so now because I assume the
> >> list will anyway eat the attachment). Also, I can provide whatever can
> >> be obtained using said Linux.
> >>
> >> Thanks a lot or any replies! :-)
> > 
> > Hmm, is this booting amd64 or i386?  Can you try i386 if you haven't?  If 
i386 
> > doesn't work at first, you might need to try disabling APIC via 'set 
> > hint.apic.0.disabled=1' at the loader prompt.
> The i386 image as of 11/04/2011 of Nathan Whitehorn booted into the live
> system without problems. The hint was not needed.
> 
> Please find a verbose dmesg at http://pastebin.com/4UTHsg7F
> 
> Does this tell you anything?
> 
> If you (or anybody else) should need anything more, just let me know how
> to obtain it! :-)

I think this should be fixed by recent changes to the atkbd driver in HEAD
by Jung-uk Kim.  I'm not sure if there is a newer snapshot built yet, but
perhaps you can try booting a HEAD kernel into single user mode (will probably
blow up due to not liking /sbin/init) on your i386 world (would need to
use a cross-build (so 'make TARGET=amd64 kernel-toolchain; make TARGET=amd64 
buildkernel', etc.) as a test?

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Boot halts on Thinkpad X220 (Sandy Bridge)

2011-06-08 Thread John Baldwin
On Wednesday, June 08, 2011 2:04:36 pm John Baldwin wrote:
> On Monday, May 16, 2011 2:57:21 pm Johannes Dieterich wrote:
> > On 05/16/2011 03:40 PM, John Baldwin wrote:
> > > On Sunday, May 15, 2011 8:09:21 pm Johannes Dieterich wrote:
> > >> Hello everybody,
> > >>
> > >> on a Thinkpad X220 (Sandy Bridge/Cougar Point based) the installation
> > >> medium loads but halts during boot. I tested the following versions of
> > >> FreeBSD
> > >>
> > >> * 8.2-RELEASE
> > >> * 9-CURRENT (latest official snapshot from 02/2011)
> > >> * 9-CURRENT (latest snapshot from Nathan Whitehorn as of 20/04/2011 [1])
> > >> * 9-CURRENT (own release medium as of today prepared with the
> > >> generate-release script)
> > >>
> > >> With 8.2, I see the same error messages as [2] with PCBSD-8 (not
> > >> surprising, of course, but please note that there is no Firewire in this
> > >> notebook). I do not see what the error message is with 9.0 before it
> > >> halts. Anyway, according to Kris Moore this is a "known issue with
> > >> FreeBSD". I have not found anything about such problem in the mailing
> > >> list archives (apologies if I am wrong).
> > >>
> > >> Therefore my question simply is, whether this problem is known and (if
> > >> yes) there is a fix or workaround available for CURRENT.
> > >>
> > >> If needed, I can post a dmesg of a successful boot of the
> > >> openSUSE-11.4-LiveCD as reference (not doing so now because I assume the
> > >> list will anyway eat the attachment). Also, I can provide whatever can
> > >> be obtained using said Linux.
> > >>
> > >> Thanks a lot or any replies! :-)
> > > 
> > > Hmm, is this booting amd64 or i386?  Can you try i386 if you haven't?  If 
> > > i386 
> > > doesn't work at first, you might need to try disabling APIC via 'set 
> > > hint.apic.0.disabled=1' at the loader prompt.
> > The i386 image as of 11/04/2011 of Nathan Whitehorn booted into the live
> > system without problems. The hint was not needed.
> > 
> > Please find a verbose dmesg at http://pastebin.com/4UTHsg7F
> > 
> > Does this tell you anything?
> > 
> > If you (or anybody else) should need anything more, just let me know how
> > to obtain it! :-)
> 
> I think this should be fixed by recent changes to the atkbd driver in HEAD
> by Jung-uk Kim.  I'm not sure if there is a newer snapshot built yet, but
> perhaps you can try booting a HEAD kernel into single user mode (will probably
> blow up due to not liking /sbin/init) on your i386 world (would need to
> use a cross-build (so 'make TARGET=amd64 kernel-toolchain; make TARGET=amd64 
> buildkernel', etc.) as a test?

Oh, disregard me, I missed the other replies to this thread by accident.

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"