Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: scharkalvin on November 17, 2007, 10:49:50 PM

Title: Gigabeat flash conversion project
Post by: scharkalvin on November 17, 2007, 10:49:50 PM
Well I just bought a second Gigabeat player on ebay.
This one is an F10, and I intend to replace the hard disk
with a 16gb CF card.  I also ordered one of those CF flash
to Toshiba 1.8" disk drive converter adapters.  The only
problem may be figuring out which way to plug in the adapter
as those 50 pin connectors aren't keyed and you can end up
with the thing plugged in upside down.  The fact that the pinout
for the 50pin socket doesn't use 6 of the connections at one end
(it's really a 44 wire connection and a 50pin socket) might be
a clue if I can see how the ribbon cable on the player is setup.

I'll be back with more news on how this works out.  I'm sure I'll
have to modify the ata.c (or was that ide.c) file the same way that
was done for the ipod mini flash conversion.
Title: Re: Gigabeat flash conversion project
Post by: Phalangees on November 22, 2007, 04:17:11 PM
I suggest looking here: http://forums.rockbox.org/index.php?topic=13408.0

You may find some things that can help you out.
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on November 22, 2007, 08:38:06 PM
Thanks, I've seen that thread.  I got the F10 in the mail yesterday.  Although I've seen the web page on how to open the player up to get at the hard disk, I can't figure out how the top and bottom covers are removed.  I guess you just have to wedge a thin screwdriver or knife edge in there someplace and pop it off.  Anybody done this and can give me a hint?
Thanks!

As soon as I get the CF adapter I ordered I want to get to work on this.  Hopefully it will show up early next week (coming air mail from Hong Kong).  I hope it will fit in place of the hard disk, the F10 is thinner than I thought, but it's thicker than an iPod mini, and the type II flash drive in the mini looks like it's a bit thinner than the F10 hard disk should be.  I might have to shave the CF socket on the adapter card down a bit (if it's made to fit a type II card, I'm putting a type I sized CF card in).  

From everything I've read on the web this conversion should work, a 16GB flash based player the size of the Gigabeat F10 with a color screen running Rockbox should be a real iPod killer!
Title: Re: Gigabeat flash conversion project
Post by: Mad Cow on November 22, 2007, 09:31:43 PM
To get the top and bottom covers off, just stick something sharp into the crack at each side, then just pull up while going along the front to the other side.
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on November 23, 2007, 03:26:26 PM
I'm wondering.  Starting from scratch with the brand new Gigabeat player I could NOT get the player to appear as a USB disk (using Debian Linux) until I booted into the OF and changed the USB setting from MS Media player to Gigabeat room.  I'm assuming this enabled the USB storage mode.  It seems that the USB driver is NOT in the flash memory on the player but in the firmware, so if I start with a blank hard disk I might not be able to format it by plugging the player into the computer.

I might have to put the files on the CF card via an external reader/writer before I put the card into the adapter and the adapter into the player instead of the hard disk.
That's assuming that the file layout on the CF card is the same when the card is used in a USB/CF reader as it is as an ATA interfaced 'disk drive'.

Is the actual Gigabeat F boot loader sequence in the OF documented anywhere?
Does the original boot flash on the player even have a USB boot loader mode or is this in the OF and rockbox?
Title: Re: Gigabeat flash conversion project
Post by: markun on November 24, 2007, 03:29:30 AM
If you insert a blank disk, the OF bootloader will give you an error and enter USB mode.
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on November 24, 2007, 05:21:09 PM
Quote
If you insert a blank disk, the OF bootloader will give you an error and enter USB mode.
That's encouraging to know.  Still waiting for the adapter.  Damn slow airmail from Hong Kong! (at least the guy had perfect feedback on ebay).

If this works out I might want to add the info to the Gigabeat wiki page.

12/1/07  The adapter *finally* showed up from Hong Kong!  Later today I will attempt to open up the F10 and install the thing.  I found some drawings showing how to orient the connectors.  Will chime in later with the story.  I will have to make a custom build for the Gigabeat along the lines of the iPod mini with flash to remove the power down call to the ATA interface.

12/2/07 I replaced the HD with the CF adapter.  After power up and getting the "no system" error message I plugged in the USB and the device showed up under Linux as /dev/sdc1.  I ran fdisk on /dev/sdc and saw only one vfat partition but it was sized at 8gb not 16gb.  I created the correct sub directories and installed the bootstrap files and unzipped my custom build rockbox system onto the root directory (modified ata.c with the flash memory fix).
The CF adapter module is smaller than the HD so I folded a few business cards around it to keep it from bouncing around inside the player.

Well it worked for a while.  system info shows the disk as 15gb (correct value).  The problem is that after a while I started to get disk errors (checksum, bad directory sector, etc).  At one point it crashed and would not reboot.  I got either a checksum error from the bootloader or a file not found error.  

I tried to unzip rockbox.zip into the root directory but I got 'readonly file system' errors.  I finally ran mkfs.vfat to re-create the file system, and re-installed everything.  Now it is working again, with an occasional checksum error on powerup
(shutdown, restart and it works the second time).  I sometimes have to turn off the battery switch to recover after a failed start.

Maybe the CF disk is a tad too slow for the system?  Is there a way in software to add wait states?  The CF conversion shows some promise, the player is a bit lighter now (CF module not as heavy as the HD).  
Title: gigabeat flash conversion photo
Post by: scharkalvin on December 02, 2007, 02:02:22 PM
Picture of conversion.
Title: Re: Gigabeat flash conversion project
Post by: flinchbot on December 03, 2007, 09:27:38 AM
Thanks for posting the update.
Title: Re: Gigabeat flash conversion project
Post by: Chronon on December 03, 2007, 12:06:33 PM
It does sound a bit like some timing issues.  You might try the IRC channel for some advice on this.  You'll stand a better chance of getting some info from the developers.
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on December 03, 2007, 12:10:45 PM
I'm going to open the thing back up and make sure that there isn't any contact between the adapter circuit board and the gigabeat circuit board.  I might have had an intermittent short causing the read errors.  I doubt it, but from the photo I see that the business card might not have covered the full width of the adapter card.  I'm thinking of using double sided tape to stick the business card to the GB pc and the adapter to the card.  Should also keep things from bouncing around.

The CF card I used is slow (40x whatever that means).  There are faster CF cards available, New Egg also sells a Transcend brand for about $25 bucks more than the A-data I used with a 133x speed.  Maybe the faster CF card would work better?

Quote
It does sound a bit like some timing issues.  You might try the IRC channel for some advice on this.  You'll stand a better chance of getting some info from the developers.
Well I tried setting the disk spin down time up to 255 seconds and this seems to have helped.  (but why, since I commented out the disk reset/powerdown in ata.c as was suggested for the ipod mini with a CF flash?)


If anybody else has the guts to try this, let me know how it works!  BTW the adapter card was purchased on ebay from 'linuxbeginner',  and I found that 'TRY2B BEST' also sells them (both in Hong Kong so shipping is a bit slow in transit).
Title: Re: Gigabeat flash conversion project
Post by: psycho_maniac on December 03, 2007, 12:51:48 PM
How much did this all cost you?
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on December 04, 2007, 07:34:49 AM
Quote
How much did this all cost you?
The CF flash card was $105 at Newegg.com.  The adapter was
about $13 including shipping on ebay.  I got the F10 player for $65
on ebay.
Title: Re: Gigabeat flash conversion project
Post by: Davide-NYC on December 05, 2007, 11:22:53 PM
@ scharkalvin: How's it going? Any problems? Please report back your experiances.
Thanks!  :)
Title: Re: Gigabeat flash conversion project
Post by: johnson4 on December 13, 2007, 10:54:58 AM
really cool idea!!
is the CF card thin enough that you could modify the F10 case and have a thinner overall player?
keep it up !
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on December 17, 2007, 07:49:11 AM
Quote
is the CF card thin enough that you could modify the F10 case and have a thinner overall player?
Maybe.  The adapter card has a case jumper that could be removed and shorted with a wire connected between the lands on the pc card which would reduce the height a bit.  But you'd have to custom stamp your own back to make it thinner.  OTHO, if you started with an F40 and you'd end up with a thiner player, but to make it worth the candle you'd want to use the new 32gb cf cards.  (though if you started with an F40 with a dead hd you'd still be better off than when you started.)

I hope to play with mine more over the xmas break, and I'll chime in on IRC to discuss progress and ask sw questions of the developers.

Sorry about double posting but this thread was quite for a while and I have some new iinfo on adapters.

There are now at least three sellers on ebay with the CF to 1.8" hd adapters.
One of the sellers on ebay in the past has reported "working" on an adapter for the new 44in 1.8" drives.

http://cgi.ebay.com/CF-TO-1-8-IDE-FEMALE-ADAPTER-HARD-DRIVE-AND-IPOD_W0QQitemZ110208358125QQihZ001QQcategoryZ41994QQssPageNameZWDVWQQrdZ1QQcmdZViewItem
http://cgi.ebay.com/1-8-toshiba-Hard-Drive-SSD-CF-to-ipod-IDE-A05-Adaptor_W0QQitemZ230205607057QQihZ013QQcategoryZ41993QQssPageNameZWDVWQQrdZ1QQcmdZViewItem
http://cgi.ebay.com/SSD-CF-to-ipod-IDE-Adaptor-as-1-8-toshiba-Hard-Drive_W0QQitemZ140193019986QQihZ004QQcategoryZ41993QQssPageNameZWDVWQQrdZ1QQcmdZViewItem
Title: Transcend vs. A-Data
Post by: help.me.spam.me@gmail.com on December 28, 2007, 07:04:25 PM
In case other folks are considering this conversion, I would recommend sticking with the A-Data 40x for now. I've converted my iPod video. The A-Data worked fine without compiling a custom firmware and bootloader. The Transcend 133x pitches an error upon boot:

rockbox boot loader
version: 2.0
ipod version: 0xffffffff
ata: -80
no partition found

The iPod firmware works fine. I've also tried to compile a custom firmware and bootloader for the iPod, but no dice - same error.
Stick with the A-Data! It's for sale on newegg.com for about $80,-. If you wait a couple of months, you will probably get it for $60,-. Speed is no issue. The player is very responsive. Data transfers are slow to and from the player, but 'Hey' big deal.

Cheers.
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on December 29, 2007, 02:10:16 PM
Quote
I would recommend sticking with the A-Data 40x for now.
I assume you are talking about this one:

http://www.newegg.com/Product/Product.aspx?Item=N82E16820211170
and the price has dropped to $70!

also look at this:
http://www.newegg.com/Product/Product.aspx?Item=N82E16820211244
the price on the 32gb card has dropped AGAIN and is now (only!) $180

I think when the price drops below $150 I will get very tempted to try it!


Also, as far as the transcend goes, you might try running fdisk and mkfs (if you are running linux) or disk manager if you are running windows and try to reformat the card before putting the ipod and rockbox software on the card and then see if the boot loader still fails.  But the problem may be in which of the ATA modes the boot loader is using vs which ones the card supports.  I bet the Transcend and the A-data are NOT fully supporting all of the official ATA modes.
Title: Re: Gigabeat flash conversion project
Post by: help.me.spam.me@gmail.com on December 31, 2007, 12:05:10 AM
Yes, that's the A-Data I am talking about.
I doubt my issue is related to formatting. The official manual recommends iTunes to restore the iPod, which should take care of it, but I've also tried to reformat it under Linux and Windows- no dice. I agree it's probably related to ATA modes.
Funny though both cards work with the original Apple firmware/bootloader without a hitch.
Bottom line ...

This CF did not work for me with Rockbox:
http://www.newegg.com/Product/Product.aspx?Item=N82E16820208337

This one did:
http://www.newegg.com/Pro...aspx?Item=N82E16820211170

Cheers

PS
Please check the topic "Rockbox and Compact Flash" in "Hardware".
Title: Re: Gigabeat flash conversion project
Post by: scharkalvin on January 02, 2008, 08:03:18 AM
It looks like setting the spindown time to 254 seconds has helped alot.
I still have a problem with "CRC error" in the rockbox boot loader from time to time
(recovers by itself on next attempt).

I do have a problem with getting stuck in the USB disk mode.  The only way to get the player out of USB disk mode is to toggle the battery switch.  If I hold the power button long enough the player does power down, but then won't power back up again, unless I toggle the battery switch.  Sometimes while it is stuck with the USB icon on the screen I see the status line, with the disk icon.  It doesn't matter that I have unmounted the player from the computer file system (under Linux using "umount /dev/sdc1" or "eject /dev/sdc1")

Maybe commenting out the reset function in ata.c causes this?  Any ideas?