public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07  8:03                   ` Jens Axboe
@ 2005-07-07  8:41                     ` Lenz Grimmer
  2005-07-07  8:48                       ` Jens Axboe
  2005-07-07  9:07                       ` Pekka Enberg
  0 siblings, 2 replies; 28+ messages in thread
From: Lenz Grimmer @ 2005-07-07  8:41 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Arjan van de Ven, Alejandro Bonilla, Jesper Juhl, Dave Hansen,
	hdaps-devel, LKML List

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Jens Axboe wrote:

> ATA7 defines a park maneuvre, I don't know how well supported it is 
> yet though. You can test with this little app, if it says 'head 
> parked' it works. If not, it has just idled the drive.

Great! Thanks for digging this up - it works on my T42, using a Fujitsu
MHT2080AH drive:

  lenz@metis:~/work/ibm_hdaps> sudo ./headpark /dev/hda
  head parked

Judging from the sound the drive makes, this is the same operation that
the windows tool performs.

However, the head does not remain parked for a very long time,
especially if there is a lot of disk activity going on (I tested it by
running a "find /" in parallel). The head parks, but leaves the park
position immediately afterwards again. I guess now we need to find a way
to "nail" the head into the parking position for some time - otherwise
it may already be on its way back to the platter before the laptop hits
the ground...

Thanks again - this is another helpful bit in getting all the pieces
together.

Bye,
	LenZ
- --
- ------------------------------------------------------------------
 Lenz Grimmer <lenz@grimmer.com>                             -o)
 [ICQ: 160767607 | Jabber: LenZGr@jabber.org]                /\\
 http://www.lenzg.org/                                       V_V
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCzOqlSVDhKrJykfIRAlm0AJ9WvadtsxAdLdTCe40N/KDbvSLf5wCdEWWA
OsiXzwFjziNuKvK5HKSMjb4=
=qXXH
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07  8:41                     ` Head parking (was: IBM HDAPS things are looking up) Lenz Grimmer
@ 2005-07-07  8:48                       ` Jens Axboe
  2005-07-07  9:07                       ` Pekka Enberg
  1 sibling, 0 replies; 28+ messages in thread
From: Jens Axboe @ 2005-07-07  8:48 UTC (permalink / raw)
  To: Lenz Grimmer
  Cc: Arjan van de Ven, Alejandro Bonilla, Jesper Juhl, Dave Hansen,
	hdaps-devel, LKML List

On Thu, Jul 07 2005, Lenz Grimmer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> Jens Axboe wrote:
> 
> > ATA7 defines a park maneuvre, I don't know how well supported it is 
> > yet though. You can test with this little app, if it says 'head 
> > parked' it works. If not, it has just idled the drive.
> 
> Great! Thanks for digging this up - it works on my T42, using a Fujitsu
> MHT2080AH drive:
> 
>   lenz@metis:~/work/ibm_hdaps> sudo ./headpark /dev/hda
>   head parked
>
> Judging from the sound the drive makes, this is the same operation that
> the windows tool performs.

Very cool, I wasn't sure if this was a 'new' feature waiting to be
implemented in drives or if ata7 just documented existing use in some
drives.

How long did the park take? Spec states it can take up to 500ms.

> However, the head does not remain parked for a very long time,
> especially if there is a lot of disk activity going on (I tested it by
> running a "find /" in parallel). The head parks, but leaves the park
> position immediately afterwards again. I guess now we need to find a way
> to "nail" the head into the parking position for some time - otherwise
> it may already be on its way back to the platter before the laptop hits
> the ground...

The head just remains parked until the next command is issued. This
needs to be combined with some ide help, to freeze the queue. Perhaps
some sysfs file so you could do

# echo park > /sys/block/hda/device/head_state

Or whatever, at least just exposing this possibility so that the drive
internally can block future io until a 'resume' command is issued.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07  8:41                     ` Head parking (was: IBM HDAPS things are looking up) Lenz Grimmer
  2005-07-07  8:48                       ` Jens Axboe
@ 2005-07-07  9:07                       ` Pekka Enberg
  2005-07-07 11:44                         ` Jens Axboe
  1 sibling, 1 reply; 28+ messages in thread
From: Pekka Enberg @ 2005-07-07  9:07 UTC (permalink / raw)
  To: Lenz Grimmer
  Cc: Jens Axboe, Arjan van de Ven, Alejandro Bonilla, Jesper Juhl,
	Dave Hansen, hdaps-devel, LKML List

Jens Axboe wrote:
> > ATA7 defines a park maneuvre, I don't know how well supported it is
> > yet though. You can test with this little app, if it says 'head
> > parked' it works. If not, it has just idled the drive.

On 7/7/05, Lenz Grimmer <lenz@grimmer.com> wrote:
> Great! Thanks for digging this up - it works on my T42, using a Fujitsu
> MHT2080AH drive:

Works on my T42p which uses a Hitachi HTS726060M9AT00 drive. I don't
hear any sound, though.

                              Pekka

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07  9:07                       ` Pekka Enberg
@ 2005-07-07 11:44                         ` Jens Axboe
  2005-07-07 13:28                           ` Pekka Enberg
  0 siblings, 1 reply; 28+ messages in thread
From: Jens Axboe @ 2005-07-07 11:44 UTC (permalink / raw)
  To: Pekka Enberg
  Cc: Lenz Grimmer, Arjan van de Ven, Alejandro Bonilla, Jesper Juhl,
	Dave Hansen, hdaps-devel, LKML List

On Thu, Jul 07 2005, Pekka Enberg wrote:
> Jens Axboe wrote:
> > > ATA7 defines a park maneuvre, I don't know how well supported it is
> > > yet though. You can test with this little app, if it says 'head
> > > parked' it works. If not, it has just idled the drive.
> 
> On 7/7/05, Lenz Grimmer <lenz@grimmer.com> wrote:
> > Great! Thanks for digging this up - it works on my T42, using a Fujitsu
> > MHT2080AH drive:
> 
> Works on my T42p which uses a Hitachi HTS726060M9AT00 drive. I don't
> hear any sound, though.

Did it say 'head parked'? If the drive is idle, you wont hear anything.
Laptop drives auto-park really quickly themselves. A time ./park
/dev/hda should tell you whether it needed to park or not, if it
executes faster than a few hundred ms it was already parked.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Head parking (was: IBM HDAPS things are looking up)
@ 2005-07-07 13:13 Martin Knoblauch
  2005-07-07 13:38 ` Pekka Enberg
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Knoblauch @ 2005-07-07 13:13 UTC (permalink / raw)
  To: linux-kernel

On Thu, Jul 07 2005, Pekka Enberg wrote:
> Jens Axboe wrote:
> > > ATA7 defines a park maneuvre, I don't know how well supported it
is
> > > yet though. You can test with this little app, if it says 'head
> > > parked' it works. If not, it has just idled the drive.
>
> On 7/7/05, Lenz Grimmer <lenz@xxxxxxxxxxx> wrote:
> > Great! Thanks for digging this up - it works on my T42, using a
Fujitsu
> > MHT2080AH drive:
>
> Works on my T42p which uses a Hitachi HTS726060M9AT00 drive. I don't
> hear any sound, though.

 Interesting. Same Notebook, same drive. The program say "not parked"
:-( This is on FC2 with a pretty much vanilla 2.6.9 kernel.

[root@l15833 tmp]# uname -a
Linux l15833 2.6.9-noagp #1 Wed May 4 16:09:14 CEST 2005 i686 i686 i386
GNU/Linux
[root@l15833 tmp]# hdparm -i /dev/hda

/dev/hda:

 Model=HTS726060M9AT00, FwRev=MH4OA6BA, SerialNo=MRH403M4GS88XB
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=7877kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:

 * signifies the current active mode

[root@l15833 tmp]# ./park /dev/hda
head not parked 4c
[root@l15833 tmp]#

Cheers
Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 11:44                         ` Jens Axboe
@ 2005-07-07 13:28                           ` Pekka Enberg
  0 siblings, 0 replies; 28+ messages in thread
From: Pekka Enberg @ 2005-07-07 13:28 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Lenz Grimmer, Arjan van de Ven, Alejandro Bonilla, Jesper Juhl,
	Dave Hansen, hdaps-devel, LKML List

On 7/7/05, Jens Axboe <axboe@suse.de> wrote:
> Did it say 'head parked'? If the drive is idle, you wont hear anything.
> Laptop drives auto-park really quickly themselves. A time ./park
> /dev/hda should tell you whether it needed to park or not, if it
> executes faster than a few hundred ms it was already parked.

Aah, you're right.

haji tmp # time ./a.out /dev/hda
head parked

real    0m0.421s
user    0m0.000s
sys     0m0.001s

Immediately after that:

haji tmp # time ./a.out /dev/hda
head parked

real    0m0.001s
user    0m0.000s
sys     0m0.001s

And then I do bit of disk reads and I get this again:

haji tmp # time ./a.out /dev/hda
head parked

real    0m0.429s
user    0m0.001s
sys     0m0.001s

So looks like it works for me too.

                                Pekka

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 13:13 Head parking (was: IBM HDAPS things are looking up) Martin Knoblauch
@ 2005-07-07 13:38 ` Pekka Enberg
  2005-07-07 13:47   ` Martin Knoblauch
                     ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Pekka Enberg @ 2005-07-07 13:38 UTC (permalink / raw)
  To: knobi; +Cc: linux-kernel, axboe, Pekka Enberg

On 7/7/05, Martin Knoblauch <knobi@knobisoft.de> wrote:
>  Interesting. Same Notebook, same drive. The program say "not parked"
> :-( This is on FC2 with a pretty much vanilla 2.6.9 kernel.
> 
> [root@l15833 tmp]# uname -a
> Linux l15833 2.6.9-noagp #1 Wed May 4 16:09:14 CEST 2005 i686 i686 i386
> GNU/Linux
> [root@l15833 tmp]# hdparm -i /dev/hda
> 
> /dev/hda:
> 
>  Model=HTS726060M9AT00, FwRev=MH4OA6BA, SerialNo=MRH403M4GS88XB
>  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
>  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
>  BuffType=DualPortCache, BuffSize=7877kB, MaxMultSect=16, MultSect=16
>  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
>  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
>  PIO modes:  pio0 pio1 pio2 pio3 pio4
>  DMA modes:  mdma0 mdma1 mdma2
>  UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
>  AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
>  Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:
> 
>  * signifies the current active mode
> 
> [root@l15833 tmp]# ./park /dev/hda
> head not parked 4c
> [root@l15833 tmp]#

Martin, don't trim the cc!

haji ~ # uname -a
Linux haji 2.6.12 #12 Mon Jun 20 09:39:37 EEST 2005 i686 Intel(R)
Pentium(R) M processor 2.00GHz GenuineIntel GNU/Linux

haji ~ # hdparm -i /dev/hda

/dev/hda:

 Model=HTS726060M9AT00, FwRev=MH4OA6DA, SerialNo=MRH453M4H2A6PB
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=7877kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:

 * signifies the current active mode

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 13:38 ` Pekka Enberg
@ 2005-07-07 13:47   ` Martin Knoblauch
  2005-07-07 14:45   ` Dan Christensen
  2005-07-07 16:39   ` Martin Knoblauch
  2 siblings, 0 replies; 28+ messages in thread
From: Martin Knoblauch @ 2005-07-07 13:47 UTC (permalink / raw)
  To: Pekka Enberg, knobi; +Cc: linux-kernel, axboe, Pekka Enberg



--- Pekka Enberg <penberg@gmail.com> wrote:

> 
> Martin, don't trim the cc!
> 

 sorry about that, but I did not have the CC at time of reply. I read
LKLM from the archives and respond by cut and paste.

Martin


------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 13:38 ` Pekka Enberg
  2005-07-07 13:47   ` Martin Knoblauch
@ 2005-07-07 14:45   ` Dan Christensen
  2005-07-07 16:39   ` Martin Knoblauch
  2 siblings, 0 replies; 28+ messages in thread
From: Dan Christensen @ 2005-07-07 14:45 UTC (permalink / raw)
  To: linux-kernel

# ./park /dev/hda
head not parked 4c

# hdparm -i /dev/hda

/dev/hda:

 Model=HTS548040M9AT00, FwRev=MG2OA53A, SerialNo=MRL252L2JU2JYB
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=7877kB, MaxMultSect=16, MultSect=off
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78140160
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a: 

 * signifies the current active mode

Dan


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 13:38 ` Pekka Enberg
  2005-07-07 13:47   ` Martin Knoblauch
  2005-07-07 14:45   ` Dan Christensen
@ 2005-07-07 16:39   ` Martin Knoblauch
  2005-07-07 16:54     ` Alejandro Bonilla
  2 siblings, 1 reply; 28+ messages in thread
From: Martin Knoblauch @ 2005-07-07 16:39 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: linux-kernel, axboe, Pekka Enberg

--- Pekka Enberg <penberg@gmail.com> wrote:

> On 7/7/05, Martin Knoblauch <knobi@knobisoft.de> wrote:
> >  Interesting. Same Notebook, same drive. The program say "not
> parked"
> > :-( This is on FC2 with a pretty much vanilla 2.6.9 kernel.
> > 
> > [root@l15833 tmp]# hdparm -i /dev/hda
> > 
> > /dev/hda:
> > 
> >  Model=HTS726060M9AT00, FwRev=MH4OA6BA, SerialNo=MRH403M4GS88XB
> 
> haji ~ # hdparm -i /dev/hda
> 
> /dev/hda:
> 
>  Model=HTS726060M9AT00, FwRev=MH4OA6DA, SerialNo=MRH453M4H2A6PB

 OK, different FW levels. After upgrading my disk to MH40A6GA my head
parks :-) Minimum required level for this disk seems to be A6DA. Hope
this info is useful. 

[root@l15833 tmp]# hdparm -i /dev/hda

/dev/hda:

 Model=HTS726060M9AT00, FwRev=MH4OA6GA, SerialNo=MRH403M4GS88XB
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=7877kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a:

 * signifies the current active mode

[root@l15833 tmp]# ./park /dev/hda
head parked
[root@l15833 tmp]#


Cheers
Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 28+ messages in thread

* RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 16:39   ` Martin Knoblauch
@ 2005-07-07 16:54     ` Alejandro Bonilla
  2005-07-07 17:14       ` Martin Knoblauch
  0 siblings, 1 reply; 28+ messages in thread
From: Alejandro Bonilla @ 2005-07-07 16:54 UTC (permalink / raw)
  To: knobi, 'Pekka Enberg'
  Cc: linux-kernel, axboe, 'Pekka Enberg', hdaps-devel


> --- Pekka Enberg <penberg@gmail.com> wrote:
>
> > On 7/7/05, Martin Knoblauch <knobi@knobisoft.de> wrote:
> > >  Interesting. Same Notebook, same drive. The program say "not
> > parked"
> > > :-( This is on FC2 with a pretty much vanilla 2.6.9 kernel.
> > >
> > > [root@l15833 tmp]# hdparm -i /dev/hda
> > >
> > > /dev/hda:
> > >
> > >  Model=HTS726060M9AT00, FwRev=MH4OA6BA, SerialNo=MRH403M4GS88XB
> >
> > haji ~ # hdparm -i /dev/hda
> >
> > /dev/hda:
> >
> >  Model=HTS726060M9AT00, FwRev=MH4OA6DA, SerialNo=MRH453M4H2A6PB
>
>  OK, different FW levels. After upgrading my disk to MH40A6GA my head
> parks :-) Minimum required level for this disk seems to be A6DA. Hope
> this info is useful.

Martin,

	Simply upgrading your firmware fixed your problem for being to park the
head?

.Alejandro


^ permalink raw reply	[flat|nested] 28+ messages in thread

* RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 16:54     ` Alejandro Bonilla
@ 2005-07-07 17:14       ` Martin Knoblauch
  2005-07-07 17:34         ` [Hdaps-devel] " Dave Hansen
  2005-07-07 19:10         ` Updating hard disk firmware (Was: Re: Head parking) Frank Sorenson
  0 siblings, 2 replies; 28+ messages in thread
From: Martin Knoblauch @ 2005-07-07 17:14 UTC (permalink / raw)
  To: abonilla, 'Pekka Enberg'
  Cc: linux-kernel, axboe, 'Pekka Enberg', hdaps-devel

--- Alejandro Bonilla <abonilla@linuxwireless.org> wrote:

> 
> > --- Pekka Enberg <penberg@gmail.com> wrote:
> >
> > > On 7/7/05, Martin Knoblauch <knobi@knobisoft.de> wrote:
> > > >  Interesting. Same Notebook, same drive. The program say "not
> > > parked"
> > > > :-( This is on FC2 with a pretty much vanilla 2.6.9 kernel.
> > > >
> > > > [root@l15833 tmp]# hdparm -i /dev/hda
> > > >
> > > > /dev/hda:
> > > >
> > > >  Model=HTS726060M9AT00, FwRev=MH4OA6BA, SerialNo=MRH403M4GS88XB
> > >
> > > haji ~ # hdparm -i /dev/hda
> > >
> > > /dev/hda:
> > >
> > >  Model=HTS726060M9AT00, FwRev=MH4OA6DA, SerialNo=MRH453M4H2A6PB
> >
> >  OK, different FW levels. After upgrading my disk to MH40A6GA my
> head
> > parks :-) Minimum required level for this disk seems to be A6DA.
> Hope
> > this info is useful.
> 
> Martin,
> 
> 	Simply upgrading your firmware fixed your problem for being to park
> the
> head?
> 

 Yup. Do not forget that FW is very powerful. Likely the parking
feature was added after A6BA.

 Basically I saw that the only difference between me and Pekka was the
FW (discounting the different CPU speed and Kernel version). I googled
around and found the IBM FW page at:

http://www-306.ibm.com/pc/support/site.wss/document.do?sitestyle=ibm&lndocid=MIGR-41008

 Download is simple, just don't use the "IBM Download Manager". Main
problem is that one needs a bootable floopy drive and "the other OS" to
create a bootable floppy. It would be great if IBM could provide floppy
images for use with "dd" for the poor Linux users.

 Then I pondered over the risk involved with the update. Curiosity won
:-) And now the head parks. BUT - I definitely do not encourage anybody
to perform the procedure. Do at your own risk after thinking about the
possible consequences ...

 Anyway someone reported a non working  HTS548040M9AT00 with FW
revision MG2OA53A. The newest revision, from the same floppy image, is
A5HA.

Cheers
Martin 

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 17:14       ` Martin Knoblauch
@ 2005-07-07 17:34         ` Dave Hansen
  2005-07-07 18:45           ` Martin Knoblauch
  2005-07-07 19:00           ` Martin Knoblauch
  2005-07-07 19:10         ` Updating hard disk firmware (Was: Re: Head parking) Frank Sorenson
  1 sibling, 2 replies; 28+ messages in thread
From: Dave Hansen @ 2005-07-07 17:34 UTC (permalink / raw)
  To: knobi
  Cc: abonilla, 'Pekka Enberg', Linux Kernel Mailing List,
	axboe, 'Pekka Enberg', hdaps devel

On Thu, 2005-07-07 at 10:14 -0700, Martin Knoblauch wrote:
>  Basically I saw that the only difference between me and Pekka was the
> FW (discounting the different CPU speed and Kernel version). I googled
> around and found the IBM FW page at:
> 
> http://www-306.ibm.com/pc/support/site.wss/document.do?sitestyle=ibm&lndocid=MIGR-41008
> 
>  Download is simple, just don't use the "IBM Download Manager". Main
> problem is that one needs a bootable floopy drive and "the other OS" to
> create a bootable floppy. It would be great if IBM could provide floppy
> images for use with "dd" for the poor Linux users.

Did you really need to make 18 diskettes?

I have the feeling that this will work for many T4[012]p? users:

http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-HDFIRM

-- Dave


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 17:34         ` [Hdaps-devel] " Dave Hansen
@ 2005-07-07 18:45           ` Martin Knoblauch
  2005-07-07 18:51             ` Erik Mouw
  2005-07-07 19:00           ` Martin Knoblauch
  1 sibling, 1 reply; 28+ messages in thread
From: Martin Knoblauch @ 2005-07-07 18:45 UTC (permalink / raw)
  To: Dave Hansen
  Cc: abonilla, 'Pekka Enberg', Linux Kernel Mailing List,
	axboe, 'Pekka Enberg', hdaps devel

--- Dave Hansen <dave@sr71.net> wrote:

> On Thu, 2005-07-07 at 10:14 -0700, Martin Knoblauch wrote:
> >  Basically I saw that the only difference between me and Pekka was
> the
> > FW (discounting the different CPU speed and Kernel version). I
> googled
> > around and found the IBM FW page at:
> > 
> >
>
http://www-306.ibm.com/pc/support/site.wss/document.do?sitestyle=ibm&lndocid=MIGR-41008
> > 
> >  Download is simple, just don't use the "IBM Download Manager".
> Main
> > problem is that one needs a bootable floopy drive and "the other
> OS" to
> > create a bootable floppy. It would be great if IBM could provide
> floppy
> > images for use with "dd" for the poor Linux users.
> 
> Did you really need to make 18 diskettes?
>

 yikes - no !! :-) Somewhere on that page there is a table that tells
you which of the 18 floppies is for your disk. In my case it was #13.
 
> I have the feeling that this will work for many T4[012]p? users:
> 
>
http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-HDFIRM
> 

 Yeah, I think that is the "DA" version. You still need "the other OS",
although you don't need the floppy.

 If IBM would provide a CD image (bootable ISO) containing FW for all
supported drives - that would be great. No need for the "other OS" any
more.

Cheers
Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 18:45           ` Martin Knoblauch
@ 2005-07-07 18:51             ` Erik Mouw
  2005-07-07 18:58               ` Martin Knoblauch
  2005-07-07 18:59               ` Shawn Starr
  0 siblings, 2 replies; 28+ messages in thread
From: Erik Mouw @ 2005-07-07 18:51 UTC (permalink / raw)
  To: Martin Knoblauch
  Cc: Dave Hansen, abonilla, 'Pekka Enberg',
	Linux Kernel Mailing List, axboe, 'Pekka Enberg',
	hdaps devel

On Thu, Jul 07, 2005 at 11:45:38AM -0700, Martin Knoblauch wrote:
>  If IBM would provide a CD image (bootable ISO) containing FW for all
> supported drives - that would be great. No need for the "other OS" any
> more.

I can imagine IBM doesn't do that because in that way you can't update
the firmware of the CD/DVD drive. Bootable FreeDOS floppy images would
be a nice idea, though.


Erik (not a ThinkPad owner)

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 18:51             ` Erik Mouw
@ 2005-07-07 18:58               ` Martin Knoblauch
  2005-07-07 18:59               ` Shawn Starr
  1 sibling, 0 replies; 28+ messages in thread
From: Martin Knoblauch @ 2005-07-07 18:58 UTC (permalink / raw)
  To: Erik Mouw, Martin Knoblauch
  Cc: Dave Hansen, abonilla, 'Pekka Enberg',
	Linux Kernel Mailing List, axboe, 'Pekka Enberg',
	hdaps devel

--- Erik Mouw <erik@harddisk-recovery.com> wrote:

> On Thu, Jul 07, 2005 at 11:45:38AM -0700, Martin Knoblauch wrote:
> >  If IBM would provide a CD image (bootable ISO) containing FW for
> all
> > supported drives - that would be great. No need for the "other OS"
> any
> > more.
> 
> I can imagine IBM doesn't do that because in that way you can't
> update
> the firmware of the CD/DVD drive. Bootable FreeDOS floppy images
> would
> be a nice idea, though.
> 
> 

 now, this is getting off-topic. The CD image I proposed would be only
for the hard disks.

 Bootable XXXX-Dos floppy images that one could just "dd" of the floppy
would be great, because they eliminate the need for "the other OS", but
you still need a floppy drive. I am not sure how many Notebook owners
actually have one. The hardest part in my FW upgrade was actually
finding a drive in our company.

Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 18:51             ` Erik Mouw
  2005-07-07 18:58               ` Martin Knoblauch
@ 2005-07-07 18:59               ` Shawn Starr
  1 sibling, 0 replies; 28+ messages in thread
From: Shawn Starr @ 2005-07-07 18:59 UTC (permalink / raw)
  To: hdaps-devel
  Cc: Erik Mouw, Martin Knoblauch, Dave Hansen, abonilla,
	'Pekka Enberg', Linux Kernel Mailing List, axboe,
	'Pekka Enberg'

You can take the .exe file and turn this into a bootable CD (using a RW CD) I 
forgot how I did it, but if I remember correctly, I took a floppy dos image 
and made that into the boot 'stub' and threw the exe into the CD (a la 
El-Torito).

I flashed the disk firmware once since I got the laptop.

Shawn.


On July 7, 2005 14:51, Erik Mouw wrote:
> On Thu, Jul 07, 2005 at 11:45:38AM -0700, Martin Knoblauch wrote:
> >  If IBM would provide a CD image (bootable ISO) containing FW for all
> > supported drives - that would be great. No need for the "other OS" any
> > more.
>
> I can imagine IBM doesn't do that because in that way you can't update
> the firmware of the CD/DVD drive. Bootable FreeDOS floppy images would
> be a nice idea, though.
>
>
> Erik (not a ThinkPad owner)

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] RE: Head parking (was: IBM HDAPS things are looking up)
  2005-07-07 17:34         ` [Hdaps-devel] " Dave Hansen
  2005-07-07 18:45           ` Martin Knoblauch
@ 2005-07-07 19:00           ` Martin Knoblauch
  1 sibling, 0 replies; 28+ messages in thread
From: Martin Knoblauch @ 2005-07-07 19:00 UTC (permalink / raw)
  To: Dave Hansen, knobi
  Cc: abonilla, 'Pekka Enberg', Linux Kernel Mailing List,
	axboe, 'Pekka Enberg', hdaps devel

--- Dave Hansen <dave@sr71.net> wrote:

> 
> I have the feeling that this will work for many T4[012]p? users:
> 
>
http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-HDFIRM
> 

 Actually, I think your feeling is wrong. Looking at the readme.txt it
seems version 7.1 of the upgrade floppy has the "BA" firmware that I
had on my disk in the beginning (not parking the heads).

Cheers
Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Updating hard disk firmware (Was: Re: Head parking)
  2005-07-07 17:14       ` Martin Knoblauch
  2005-07-07 17:34         ` [Hdaps-devel] " Dave Hansen
@ 2005-07-07 19:10         ` Frank Sorenson
  2005-07-13  8:58           ` Updating hard disk firmware & parking hard disk Gijs Hillenius
  1 sibling, 1 reply; 28+ messages in thread
From: Frank Sorenson @ 2005-07-07 19:10 UTC (permalink / raw)
  To: knobi
  Cc: abonilla, 'Pekka Enberg', linux-kernel, axboe,
	'Pekka Enberg', hdaps-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Knoblauch wrote:
>  Download is simple, just don't use the "IBM Download Manager". Main
> problem is that one needs a bootable floopy drive and "the other OS" to
> create a bootable floppy. It would be great if IBM could provide floppy
> images for use with "dd" for the poor Linux users.

You may be able to use this process to avoid using either a floppy drive
or "the other OS":

1) Download the appropriate firmware exe from
http://www-306.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-41008
(in my case, this looks like fwhd3313.exe)

2) Find a freedos disk image (I used one that came with biosdisk -
http://linux.dell.com/biosdisk/)

3) Create a disk image for the firmware executable:
cp /usr/share/biosdisk/dosdisk.img /tmp/fwdisk1.img
mount -oloop /tmp/fwtemp.img /mnt/tmp
cp fwhd3313.exe /mnt/tmp
umount /mnt/tmp

4) Create a blank disk image for the extracted contents:
dd if=/dev/zero of=/boot/fwdisk.img bs=1474560 count=1

5) Run qemu to extract files and write the disk image:
qemu -fda /tmp/fwtemp.img -fdb /boot/fwdisk.img
A:\>fwhd3313
...
exit qemu

6) Set up grub to boot the new disk image (requires memdisk from
syslinux - http://syslinux.zytor.com/):
$EDITOR /boot/grub/grub.conf
title IBM Hard Drive Firmware update
        kernel /memdisk
        initrd=/fwdisk.img floppy

7) Reboot and select the "IBM Hard Drive Firmware update" option


It allowed me to run the firmware update program, however it didn't
believe my drive needed updating, so I haven't even successfully tried
the entire process.  Please let me know if it works for you.

DISCLAIMER: I also provide no guarantees.   Hopefully your hard disk
won't fly off the spindle or anything else bad.  If it does, blame
someone else.

Frank
- --
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCzX4MaI0dwg4A47wRAnXUAKCEsQQSj4aHkwMr8vZLei23+DhUuwCfb1Mb
NTmyLHJDa602Iex/QAr/N2I=
=fexM
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Updating hard disk firmware & parking hard disk
  2005-07-07 19:10         ` Updating hard disk firmware (Was: Re: Head parking) Frank Sorenson
@ 2005-07-13  8:58           ` Gijs Hillenius
  2005-07-13 10:10             ` Jan Engelhardt
  2005-07-13 23:32             ` [Hdaps-devel] " Shawn Starr
  0 siblings, 2 replies; 28+ messages in thread
From: Gijs Hillenius @ 2005-07-13  8:58 UTC (permalink / raw)
  To: Frank Sorenson; +Cc: hdaps-devel, linux-kernel

>>>>> Frank Sorenson writes:

     > Martin Knoblauch wrote:
    >> Download is simple, just don't use the "IBM Download
    >> Manager". Main problem is that one needs a bootable floopy
    >> drive and "the other OS" to create a bootable floppy. It would
    >> be great if IBM could provide floppy images for use with "dd"
    >> for the poor Linux users.

     > You may be able to use this process to avoid using either a
     > floppy drive or "the other OS":

     > 1) Download the appropriate firmware exe from
     > http://www-306.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-41008
     > (in my case, this looks like fwhd3313.exe)

     > 2) Find a freedos disk image (I used one that came with
     > biosdisk - http://linux.dell.com/biosdisk/)

     > 3) Create a disk image for the firmware executable: cp
     > /usr/share/biosdisk/dosdisk.img /tmp/fwdisk1.img mount -oloop
     > /tmp/fwtemp.img /mnt/tmp cp fwhd3313.exe /mnt/tmp umount
     > /mnt/tmp

     > 4) Create a blank disk image for the extracted contents: dd
     > if=/dev/zero of=/boot/fwdisk.img bs=1474560 count=1

     > 5) Run qemu to extract files and write the disk image: qemu
     > -fda /tmp/fwtemp.img -fdb /boot/fwdisk.img A:\>fwhd3313 ...
     > exit qemu

     > 6) Set up grub to boot the new disk image (requires memdisk
     > from syslinux - http://syslinux.zytor.com/): $EDITOR
     > /boot/grub/grub.conf title IBM Hard Drive Firmware update
     > kernel /memdisk initrd=/fwdisk.img floppy

     > 7) Reboot and select the "IBM Hard Drive Firmware update"
     > option


     > It allowed me to run the firmware update program, however it
     > didn't believe my drive needed updating, so I haven't even
     > successfully tried the entire process.  Please let me know if
     > it works for you.

     > DISCLAIMER: I also provide no guarantees.  Hopefully your hard
     > disk won't fly off the spindle or anything else bad.  If it
     > does, blame someone else.

Hi Frank,

FYI I succesfully used your above method to update the firmware
for the IC25N040ATMR04-0 hard disk that came with my Thinkpad R51. 

Before the update hdparm -i /dev/hda
Model=IC25N040ATMR04-0, FwRev=MO2OAD4A

and after the update
Model=IC25N040ATMR04-0, FwRev=MO2OADEA

So, thanks!

however, the firmware update did not solve the 'head not park'
issue. :-(

sudo ./park /dev/hda
head not parked 4c


Regards

Gijs

-- 
Is it weird in here, or is it just me?
		-- Steven Wright

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: Updating hard disk firmware & parking hard disk
  2005-07-13  8:58           ` Updating hard disk firmware & parking hard disk Gijs Hillenius
@ 2005-07-13 10:10             ` Jan Engelhardt
  2005-07-13 10:21               ` [Hdaps-devel] " Lenz Grimmer
  2005-07-13 23:32             ` [Hdaps-devel] " Shawn Starr
  1 sibling, 1 reply; 28+ messages in thread
From: Jan Engelhardt @ 2005-07-13 10:10 UTC (permalink / raw)
  To: Gijs Hillenius; +Cc: Frank Sorenson, hdaps-devel, linux-kernel


>however, the firmware update did not solve the 'head not park'
>issue. :-(
>
>sudo ./park /dev/hda
>head not parked 4c

Head parking while the system running is almost useless, since sooner or 
later, someone's going to write/read something.
If you want head parking at shutdown, I suggest using hdparm -y. This puts the 
drive to sleep, which includes spindle spindown and, included, appropriate 
head parking.


Jan Engelhardt
-- 


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] Re: Updating hard disk firmware & parking hard disk
  2005-07-13 10:10             ` Jan Engelhardt
@ 2005-07-13 10:21               ` Lenz Grimmer
  2005-07-13 11:02                 ` Jan Engelhardt
  0 siblings, 1 reply; 28+ messages in thread
From: Lenz Grimmer @ 2005-07-13 10:21 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Gijs Hillenius, Frank Sorenson, hdaps-devel, linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jan Engelhardt wrote:

> Head parking while the system running is almost useless, since sooner or 
> later, someone's going to write/read something.

Correct, that's why we're discussing to freeze the request queue as well.

> If you want head parking at shutdown, I suggest using hdparm -y. This puts the 
> drive to sleep, which includes spindle spindown and, included, appropriate 
> head parking.

But it suffers from the same fate - as soon as the disk receives a new
request, it will spin up again. So there is no gain, except that just
parking the head without spinning down the spindle can be performed much
faster.

Bye,
	LenZ
- --
- ------------------------------------------------------------------
 Lenz Grimmer <lenz@grimmer.com>                             -o)
 [ICQ: 160767607 | Jabber: LenZGr@jabber.org]                /\\
 http://www.lenzg.org/                                       V_V
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC1OseSVDhKrJykfIRAnk3AJ9EqLIBprtaYikZCQaRdIpPOrOWiACeMXOC
pwjn2afI737DDzqOKDaEUCA=
=JtxS
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] Re: Updating hard disk firmware & parking hard disk
  2005-07-13 10:21               ` [Hdaps-devel] " Lenz Grimmer
@ 2005-07-13 11:02                 ` Jan Engelhardt
  2005-07-13 13:11                   ` Paul Slootman
  0 siblings, 1 reply; 28+ messages in thread
From: Jan Engelhardt @ 2005-07-13 11:02 UTC (permalink / raw)
  To: Lenz Grimmer; +Cc: Gijs Hillenius, Frank Sorenson, hdaps-devel, linux-kernel


>> Head parking while the system running is almost useless, since sooner or 
>> later, someone's going to write/read something.
>
>Correct, that's why we're discussing to freeze the request queue as well.

Sounds good (esp. for laptops/notebooks, which should preferably run "on RAM" 
as long as possible)

>But it suffers from the same fate - as soon as the disk receives a new
>request, it will spin up again.

In case of the SUSE bootscripts (and possibly others), some flush barriers are 
engaged, then the disk is spun down and immediately after the poweroff 
happens.

>So there is no gain, except that just
>parking the head without spinning down the spindle can be performed much
>faster.

What's the gain in parking the head manually if it's done anyway when the disk 
spins down (for whatever reason)?



Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] Re: Updating hard disk firmware & parking hard disk
  2005-07-13 11:02                 ` Jan Engelhardt
@ 2005-07-13 13:11                   ` Paul Slootman
  2005-07-13 19:11                     ` Bill Davidsen
  0 siblings, 1 reply; 28+ messages in thread
From: Paul Slootman @ 2005-07-13 13:11 UTC (permalink / raw)
  To: linux-kernel

Jan Engelhardt  <jengelh@linux01.gwdg.de> wrote:
>
>What's the gain in parking the head manually if it's done anyway when the disk 
>spins down (for whatever reason)?

It seems you're completely missing the whole point of this discussion,
which was how to implement the hard disk active protection system that
IBM offers under windows for its laptops, that will park the disk when
it detects that e.g. the laptop is falling off a table.


Paul Slootman


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] Re: Updating hard disk firmware & parking hard disk
  2005-07-13 19:11                     ` Bill Davidsen
@ 2005-07-13 19:10                       ` Paul Slootman
  2005-07-13 19:18                       ` Lee Revell
  1 sibling, 0 replies; 28+ messages in thread
From: Paul Slootman @ 2005-07-13 19:10 UTC (permalink / raw)
  To: Bill Davidsen; +Cc: Linux Kernel Mailing List

On Wed 13 Jul 2005, Bill Davidsen wrote:
> Paul Slootman wrote:
> >Jan Engelhardt  <jengelh@linux01.gwdg.de> wrote:
> >
> >>What's the gain in parking the head manually if it's done anyway when the 
> >>disk spins down (for whatever reason)?
> >
> >
> >It seems you're completely missing the whole point of this discussion,
> >which was how to implement the hard disk active protection system that
> >IBM offers under windows for its laptops, that will park the disk when
> >it detects that e.g. the laptop is falling off a table.
> 
> Does that imply that we have software to detect falling off a table?

Progress is indeed being made, according to what I've been reading on
l-k.


Paul Slootman

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] Re: Updating hard disk firmware & parking hard disk
  2005-07-13 13:11                   ` Paul Slootman
@ 2005-07-13 19:11                     ` Bill Davidsen
  2005-07-13 19:10                       ` Paul Slootman
  2005-07-13 19:18                       ` Lee Revell
  0 siblings, 2 replies; 28+ messages in thread
From: Bill Davidsen @ 2005-07-13 19:11 UTC (permalink / raw)
  To: Paul Slootman, Linux Kernel Mailing List

Paul Slootman wrote:
> Jan Engelhardt  <jengelh@linux01.gwdg.de> wrote:
> 
>>What's the gain in parking the head manually if it's done anyway when the disk 
>>spins down (for whatever reason)?
> 
> 
> It seems you're completely missing the whole point of this discussion,
> which was how to implement the hard disk active protection system that
> IBM offers under windows for its laptops, that will park the disk when
> it detects that e.g. the laptop is falling off a table.

Does that imply that we have software to detect falling off a table?

-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] Re: Updating hard disk firmware & parking hard disk
  2005-07-13 19:11                     ` Bill Davidsen
  2005-07-13 19:10                       ` Paul Slootman
@ 2005-07-13 19:18                       ` Lee Revell
  1 sibling, 0 replies; 28+ messages in thread
From: Lee Revell @ 2005-07-13 19:18 UTC (permalink / raw)
  To: Bill Davidsen; +Cc: Paul Slootman, Linux Kernel Mailing List

On Wed, 2005-07-13 at 15:11 -0400, Bill Davidsen wrote:
> Paul Slootman wrote:
> > Jan Engelhardt  <jengelh@linux01.gwdg.de> wrote:
> > 
> >>What's the gain in parking the head manually if it's done anyway when the disk 
> >>spins down (for whatever reason)?
> > 
> > 
> > It seems you're completely missing the whole point of this discussion,
> > which was how to implement the hard disk active protection system that
> > IBM offers under windows for its laptops, that will park the disk when
> > it detects that e.g. the laptop is falling off a table.
> 
> Does that imply that we have software to detect falling off a table?
> 

IBM does, in their Windows driver.

This was all covered in the HDAPS threads of the past few weeks, check
the archives.

Lee


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [Hdaps-devel] Updating hard disk firmware & parking hard disk
  2005-07-13  8:58           ` Updating hard disk firmware & parking hard disk Gijs Hillenius
  2005-07-13 10:10             ` Jan Engelhardt
@ 2005-07-13 23:32             ` Shawn Starr
  1 sibling, 0 replies; 28+ messages in thread
From: Shawn Starr @ 2005-07-13 23:32 UTC (permalink / raw)
  To: hdaps-devel; +Cc: Gijs Hillenius, Frank Sorenson, linux-kernel


Perhaps you also need to flash the BIOS and or Embedded Controller firmware?

Shawn.

On July 13, 2005 04:58, Gijs Hillenius wrote:
> >>>>> Frank Sorenson writes:
>      > Martin Knoblauch wrote:
>      >
>     >> Download is simple, just don't use the "IBM Download
>     >> Manager". Main problem is that one needs a bootable floopy
>     >> drive and "the other OS" to create a bootable floppy. It would
>     >> be great if IBM could provide floppy images for use with "dd"
>     >> for the poor Linux users.
>     >>
>      > You may be able to use this process to avoid using either a
>      > floppy drive or "the other OS":
>      >
>      > 1) Download the appropriate firmware exe from
>      > http://www-306.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-
>      >41008 (in my case, this looks like fwhd3313.exe)
>      >
>      > 2) Find a freedos disk image (I used one that came with
>      > biosdisk - http://linux.dell.com/biosdisk/)
>      >
>      > 3) Create a disk image for the firmware executable: cp
>      > /usr/share/biosdisk/dosdisk.img /tmp/fwdisk1.img mount -oloop
>      > /tmp/fwtemp.img /mnt/tmp cp fwhd3313.exe /mnt/tmp umount
>      > /mnt/tmp
>      >
>      > 4) Create a blank disk image for the extracted contents: dd
>      > if=/dev/zero of=/boot/fwdisk.img bs=1474560 count=1
>      >
>      > 5) Run qemu to extract files and write the disk image: qemu
>      > -fda /tmp/fwtemp.img -fdb /boot/fwdisk.img A:\>fwhd3313 ...
>      > exit qemu
>      >
>      > 6) Set up grub to boot the new disk image (requires memdisk
>      > from syslinux - http://syslinux.zytor.com/): $EDITOR
>      > /boot/grub/grub.conf title IBM Hard Drive Firmware update
>      > kernel /memdisk initrd=/fwdisk.img floppy
>      >
>      > 7) Reboot and select the "IBM Hard Drive Firmware update"
>      > option
>      >
>      >
>      > It allowed me to run the firmware update program, however it
>      > didn't believe my drive needed updating, so I haven't even
>      > successfully tried the entire process.  Please let me know if
>      > it works for you.
>      >
>      > DISCLAIMER: I also provide no guarantees.  Hopefully your hard
>      > disk won't fly off the spindle or anything else bad.  If it
>      > does, blame someone else.
>
> Hi Frank,
>
> FYI I succesfully used your above method to update the firmware
> for the IC25N040ATMR04-0 hard disk that came with my Thinkpad R51.
>
> Before the update hdparm -i /dev/hda
> Model=IC25N040ATMR04-0, FwRev=MO2OAD4A
>
> and after the update
> Model=IC25N040ATMR04-0, FwRev=MO2OADEA
>
> So, thanks!
>
> however, the firmware update did not solve the 'head not park'
> issue. :-(
>
> sudo ./park /dev/hda
> head not parked 4c
>
>
> Regards
>
> Gijs

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2005-07-13 23:35 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-07 13:13 Head parking (was: IBM HDAPS things are looking up) Martin Knoblauch
2005-07-07 13:38 ` Pekka Enberg
2005-07-07 13:47   ` Martin Knoblauch
2005-07-07 14:45   ` Dan Christensen
2005-07-07 16:39   ` Martin Knoblauch
2005-07-07 16:54     ` Alejandro Bonilla
2005-07-07 17:14       ` Martin Knoblauch
2005-07-07 17:34         ` [Hdaps-devel] " Dave Hansen
2005-07-07 18:45           ` Martin Knoblauch
2005-07-07 18:51             ` Erik Mouw
2005-07-07 18:58               ` Martin Knoblauch
2005-07-07 18:59               ` Shawn Starr
2005-07-07 19:00           ` Martin Knoblauch
2005-07-07 19:10         ` Updating hard disk firmware (Was: Re: Head parking) Frank Sorenson
2005-07-13  8:58           ` Updating hard disk firmware & parking hard disk Gijs Hillenius
2005-07-13 10:10             ` Jan Engelhardt
2005-07-13 10:21               ` [Hdaps-devel] " Lenz Grimmer
2005-07-13 11:02                 ` Jan Engelhardt
2005-07-13 13:11                   ` Paul Slootman
2005-07-13 19:11                     ` Bill Davidsen
2005-07-13 19:10                       ` Paul Slootman
2005-07-13 19:18                       ` Lee Revell
2005-07-13 23:32             ` [Hdaps-devel] " Shawn Starr
  -- strict thread matches above, loose matches on Subject: below --
2005-07-04  6:00 IBM HDAPS things are looking up (was: Re: [Hdaps-devel] Re: [ltp] IBM HDAPS Someone interested? (Accelerometer)) Lenz Grimmer
2005-07-04  6:17 ` Jens Axboe
2005-07-04  5:30   ` Alejandro Bonilla
2005-07-04  6:37     ` Jens Axboe
2005-07-04  7:16       ` Arjan van de Ven
2005-07-04  7:22         ` Jens Axboe
2005-07-04  7:27           ` Arjan van de Ven
2005-07-04  7:30             ` Jens Axboe
2005-07-04 10:33               ` Lenz Grimmer
2005-07-04 11:06                 ` Jens Axboe
2005-07-07  8:03                   ` Jens Axboe
2005-07-07  8:41                     ` Head parking (was: IBM HDAPS things are looking up) Lenz Grimmer
2005-07-07  8:48                       ` Jens Axboe
2005-07-07  9:07                       ` Pekka Enberg
2005-07-07 11:44                         ` Jens Axboe
2005-07-07 13:28                           ` Pekka Enberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox