OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

9 Pages V  « < 4 5 6 7 8 > »   
Reply to this topicStart new topic
> I Mounted A 2 Gig Sd Card!, Surprise, it's possible! :)
pelrun
post Jul 15 2007, 06:35 AM
Post #76





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



And here's the 760/860 version.

EDIT: The same bug from the 6000 version is in this one too - hold off from using it until I get a new version out.
Go to the top of the page
 
+Quote Post
GoLinux
post Jul 15 2007, 04:20 PM
Post #77





Group: Members
Posts: 82
Joined: 24-January 04
From: Boston, USA
Member No.: 1,531



QUOTE(pelrun @ Jul 15 2007, 02:03 AM)
Ok, I've attached a test module for the 6000. No guarantees this thing will even insmod properly, let alone work. It's not like I actually have a 6000 to test it on... biggrin.gif

Remember, it's only for older-style 2G and 4G cards. SDHC cards will not work. Also, remember to rmmod the original sharp module before you try this out.

EDIT: I realised this morning there's a bug in this, it won't work (it'll probably identify 2G/4G cards as just 1G.) Will fix tonight.
*


Pelrun,

I'll settle for the old SD!!!!! If you really make this work on the SL-6000 with the stock ROM and kernel, you are going to become a celebrity among Tosa owners...... biggrin.gif

GO pelrun! And sincere thanks for attempting this. No matter the outcome, I really appreciate it.
Go to the top of the page
 
+Quote Post
pelrun
post Jul 16 2007, 05:12 AM
Post #78





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



Well, I fixed the silly bug from the previous modules (I got a bit too clever for my own good and omitted a bit of code which was vital... oops!) and created another couple, hopefully less buggy this time.

Still no warranty express or implied yada yada.

EDIT: There's enough independent testing below to show that these drivers work perfectly. smile.gif
Attached File(s)
Attached File  mmcsd_2g_760_pel.zip ( 15.9K ) Number of downloads: 221
Attached File  mmcsd_2g_6000_pel.zip ( 19.55K ) Number of downloads: 93
 
Go to the top of the page
 
+Quote Post
ceffyl
post Jul 16 2007, 06:35 AM
Post #79





Group: Members
Posts: 87
Joined: 17-September 04
Member No.: 4,621



QUOTE(pelrun @ Jul 16 2007, 01:12 PM)
Well, I fixed the silly bug from the previous modules (I got a bit too clever for my own good and omitted a bit of code which was vital... oops!) and created another couple, hopefully less buggy this time.

Still no warranty express or implied yada yada.
*


Thank you thank you thank you thank you! I will buy a 2 gig card on my way home tonight and give it a spin... I'll let you know what happens.

Ceffyl
Go to the top of the page
 
+Quote Post
speculatrix
post Jul 16 2007, 03:06 PM
Post #80





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



cool!
Go to the top of the page
 
+Quote Post
qx773
post Jul 16 2007, 04:22 PM
Post #81





Group: Members
Posts: 219
Joined: 10-February 04
Member No.: 1,807



I just received my 2GB Sandisk Ultra II SD card today. Amazon.com had the best price compared to eBay at the time that I made my order. This little SD card flips open to provide its own USB port connector. Preliminary testing seems to indicate that the card works with the modified driver. I have replaced the link to the original Sharp driver with the new driver renamed as the Sharp driver. Here is the result of running:

time nice -9 cp /mnt/card/rfc.cramfs /dev/null

real 0m39.138s
user 0m1.760s
sys 0m19.860s

rfc.cramfs is a compressed file of Internet RFC files. The size of the rfc.cramfs file is 63,242,240 bytes, making the transfer rate approximately 3MB per second in system time, 1.6MB per second in real time.
Go to the top of the page
 
+Quote Post
qx773
post Jul 16 2007, 04:35 PM
Post #82





Group: Members
Posts: 219
Joined: 10-February 04
Member No.: 1,807



I just did another test on my Zaurus SL-C760.

time nice -9 cp /mnt/card/rfc.cramfs /mnt/cf

real 1m6.517s
user 0m3.030s
sys 0m31.410s

My compact flash card is a 4GB Sandisk regular CF card. That's a real-time data transfer rate of about 928KB/s.

The md5sum of the original file and the destination file matches, so they are probably identical.

Thanks for the modified driver. Nice work.
Go to the top of the page
 
+Quote Post
pelrun
post Jul 16 2007, 05:09 PM
Post #83





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



1) does df show the true size of the card?
2) can you still read/write files successfully when there's more than 1G on the card?

If the answer is 'yes' to both of those, then I guess we have a winner. biggrin.gif
Go to the top of the page
 
+Quote Post
qx773
post Jul 16 2007, 05:18 PM
Post #84





Group: Members
Posts: 219
Joined: 10-February 04
Member No.: 1,807



Yes to both so far. I was listening to MP3 music just now from my 2GB SD card.

df reports about 1.98GB total on the card, 380MB used, 1.6GB available:

/dev/mmcda1 1983360 379680 1603680 19% /usr/mnt.rom/card
Go to the top of the page
 
+Quote Post
pelrun
post Jul 16 2007, 05:58 PM
Post #85





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



Sorry - I mean accessing data stored after the 1GB mark on the card; with only 380MB used on your card you're testing the area we already know the sharp driver can access.

Thanks for the testing help!
Go to the top of the page
 
+Quote Post
qx773
post Jul 16 2007, 09:47 PM
Post #86





Group: Members
Posts: 219
Joined: 10-February 04
Member No.: 1,807



I copied a couple of big files, a 419MB ATI SDK and a 398MB Beyond the Red Line BattleStar Galactica free game demo, onto the Sandisk Ultra II SD card. One thing that I accidentally learned by doing this is that Windows XP ignores the SD card's write protect tab. That pushed the SD card contents over 1GB in size. On the Zaurus SL-C760, I copied the files from the SD card to the CF card and am currently starting to compute their MD5SUMs. That will take a while. I would be more concerned about SD cards which are larger than 2GB in size in case the Sharp code uses signed 32 bit integer representations which would cause integer representations that are larger than 2,147,483,647 (2^31 - 1) to be interpreted as negative numbers.

I know that the Sharp voice recorder will falsely think that a mostly empty 4GB CF card is out of disk space, probably due to the use of signed 32 bit integer representations for checking the available space.

What technique did you use to disassemble and reassemble the object file? I might have to do that with the Sharp voice recorder to disable its disk space check.

The MD5SUMs of the corresponding files are identical. The computation finished as I was finishing this message.
Go to the top of the page
 
+Quote Post
pelrun
post Jul 16 2007, 10:29 PM
Post #87





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



QUOTE(qx773 @ Jul 17 2007, 05:47 AM)
398MB Beyond the Red Line BattleStar Galactica free game demo

I have memories of being caught in tight loops trying to get the last wretched cylon raider to just stay in my reticule in that game... aaargh! I believe my joystick is still in pieces after that (I'm partway through rewiring the cheap-ass thing to eliminate the dead zones, I didn't throw it at the wall!)

QUOTE(qx773 @ Jul 17 2007, 05:47 AM)
I would be more concerned about SD cards which are larger than 2GB in size in case the Sharp code uses signed 32 bit integer representations which would cause integer representations that are larger than 2,147,483,647 (2^31 - 1) to be interpreted as negative numbers.

With regards to the device driver I think this is probably quite unlikely (but testing is welcome!), your next point notwithstanding:

QUOTE(qx773 @ Jul 17 2007, 05:47 AM)
I know that the Sharp voice recorder will falsely think that a mostly empty 4GB CF card is out of disk space, probably due to the use of signed 32 bit integer representations for checking the available space.

What technique did you use to disassemble and reassemble the object file?  I might have to do that with the Sharp voice recorder to disable its disk space check.

objdump (part of GNU binutils) provided the disassembly; I used the version which came with the pdaXrom cross compiler. The assembly I did by hand, applying the changes with a hex editor.

I spent several hours exploring other options for larger edits, but it was not needed here.

QUOTE(qx773 @ Jul 17 2007, 05:47 AM)
The MD5SUMs of the corresponding files are identical.  The computation finished as I was finishing this message.

Fantastic! biggrin.gif
Go to the top of the page
 
+Quote Post
pelrun
post Jul 16 2007, 11:30 PM
Post #88





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



QUOTE(qx773 @ Jul 17 2007, 05:47 AM)
I might have to do that with the Sharp voice recorder to disable its disk space check.

Try this. cool.gif
Attached File(s)
Attached File  voicerec_pel.zip ( 41.27K ) Number of downloads: 33
 
Go to the top of the page
 
+Quote Post
speculatrix
post Jul 17 2007, 12:44 AM
Post #89





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(qx773 @ Jul 17 2007, 06:47 AM)
One thing that I accidentally learned by doing this is that Windows XP ignores the SD card's write protect tab.
*


I suspect that's more likely to be the card reader not being able to detect the thing on the card, I suspect it does nothing on the card and relies on a sensor in the card reader.
Go to the top of the page
 
+Quote Post
the_oak
post Jul 17 2007, 11:48 AM
Post #90





Group: Members
Posts: 426
Joined: 10-February 04
From: Virginia, USA
Member No.: 1,794



Just replaced /lib/modules/2.4.18-rmk7-pxa3-embedix/
kernel/drivers/block/sharp_mmcsd_m.o with this module (after saving old driver as sharp_mmcsd_m_old.o) and rebooted. Put in a 2 GB SD card formatted fat16, with 1.9 GB of movies. Movies play fine!!

df reports:

1960064 KB as size of SD card with
1932960 in use and
27104 available (99% in use)

Next would like to try re-formatting as ext2. biggrin.gif

Looks great!! Thanks!!!!!!!!!!!!!!!!!!!!!!!
Go to the top of the page
 
+Quote Post

9 Pages V  « < 4 5 6 7 8 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th December 2014 - 08:23 PM