Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  harddrive upgrade causes long start time
« previous next »
  • Print
Pages: [1]

Author Topic: harddrive upgrade causes long start time  (Read 3290 times)

Offline wiggin0105

  • Member
  • *
  • Posts: 6
harddrive upgrade causes long start time
« on: February 11, 2009, 05:59:21 PM »
I went ahead and tossed a 30Gig HD into an iRiver H10 and while it works, the startup time is now close to a minute.  When I hold the play button and start it up, the bootloader displays the hard drive model number and then freezes for about 30 seconds.  Next line displays the partition and continues on so fast that I can't hope to read it and the boot process continues as normal.  With the stock HDD, the boot time was a matter of seconds.  Any idea what could be causing the hangup?
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: harddrive upgrade causes long start time
« Reply #1 on: February 11, 2009, 07:55:42 PM »
I think that's a hang in wait_for_bsy in ata.c.   You could try this patch from http://www.rockbox.org/tracker/task/9749.  (First hunk is for H10. Ignore hunks 2 and 3 which fail.)  You could also try making firmware/drivers/ata.c output stuff to the screen to see where the problem happens.
Logged

Offline wiggin0105

  • Member
  • *
  • Posts: 6
Re: harddrive upgrade causes long start time
« Reply #2 on: February 12, 2009, 05:37:03 PM »
I'm a complete idiot when it comes to compiling.  Is there a patched bootloader already out there somewhere?
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: harddrive upgrade causes long start time
« Reply #3 on: February 12, 2009, 07:32:57 PM »
I'm sorry, I was being an idiot when I responded.  I didn't fully understand the issue.  The patch I mentioned is irrelevant because the hang is in the bootloader, and the data already printed shows where the problem happens.  I think the first attempt to read the partition table is hanging.  I also think it would be best if someone who is more familiar with the H10 helped. 

Right now I can't build anything for you because I don't know if you have the 5 gig or 20 gig H10.
Logged

Offline wiggin0105

  • Member
  • *
  • Posts: 6
Re: harddrive upgrade causes long start time
« Reply #4 on: February 12, 2009, 08:40:43 PM »
Oh. Oops.  Yeah, I guess that would help.  It is the 20GB version.  The hard drive is a Hitachi from a 30GB Creative Zen (HTC426030G5CE00), if that makes any difference.  It was formatted first from Windows under drive defaults and then again when I installed the iRiver firmware. 
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: harddrive upgrade causes long start time
« Reply #5 on: February 14, 2009, 08:26:15 PM »
Okay, try this bootloader: http://drop.io/dreamlayers/asset/h10-20gc-wait4bsy-5s-mi4 .  I made the ata.c wait_for_bsy timeout 5 s and I made the bootloader code print a message and wait 1 s if the first partition table read fails.  Let me know if you see "First disk_init failed".
Logged

Offline wiggin0105

  • Member
  • *
  • Posts: 6
Re: harddrive upgrade causes long start time
« Reply #6 on: February 16, 2009, 12:17:16 AM »
WOW!  That was one hell of a fix.  Starts up almost instantly. 

Thanks an awful lot.  You coders are awesome.
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: harddrive upgrade causes long start time
« Reply #7 on: February 16, 2009, 01:18:40 AM »
That's nice to read.  Thanks!

So does this mean that there is no 5 second delay between the HD model number line and the partition line, and that you never see "First disk_init failed"?  If this isn't happening, I'm not sure that my changes were what fixed the problem.  It might just be that the newer version fixed the problem.  The bootloader at http://download.rockbox.org/bootloader/iriver/H10_20GC.mi4 contains the string r12862:12866-070320.   You could try the bootloader I built from unmodified SVN code:  http://drop.io/dreamlayers/asset/h10-20gc-r20014-mi4 .

Logged

Offline wiggin0105

  • Member
  • *
  • Posts: 6
Re: harddrive upgrade causes long start time
« Reply #8 on: February 16, 2009, 09:37:06 AM »
There is no delay at all.  It is less than a second once the Rockbox screen is displayed for the player to resume playback.  I haven't been able to read what it says cause it starts up so fast, but there is no 1 sec pause so I guess there is no "First disk_int failed" problem.  And there is no 5 sec pause so the "wait_for_bsy timeout" doesn't seam to be a problem either.  I used the rockbox installer to install the bootloader and everything when I first started this topic so it should be the newer version right?
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  harddrive upgrade causes long start time
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.065 seconds with 15 queries.