Active Topics

 


Reply
Thread Tools
Posts: 6 | Thanked: 0 times | Joined on Oct 2007
#1
For 15 pounds free delivery I can get a 4GB SDHC.
I am thinking of replacing the internal reader and solder a SD card. Does SDHC work with n770 (2006 or 2007HE) ?

I looked in archives and still confused ... Any help please


http://www.play.com/Electronics/Elec...archtype=genre
 
Posts: 19 | Thanked: 3 times | Joined on Mar 2007 @ UK
#2
Originally Posted by biophysics View Post
For 15 pounds free delivery I can get a 4GB SDHC.
I am thinking of replacing the internal reader and solder a SD card. Does SDHC work with n770 (2006 or 2007HE) ?
Yes, SDHC card works on N770 (2006 and 2007HE). It will require only modified kernel with backported from N800 SDHC support. Please see fanoush's post here.

Fanoush is the best "kernelware supplier" (please see here), but I do not know about SDHC kernel availability.
I did try to make such kernel myself, and even get 4G SanDisk SDHC microSD working, but break HiSpeed writing capability for MMC (and, possibly, something else...).

serge48
 

The Following User Says Thank You to serge48 For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#3
It won't work with normal kernel in 2006 (or 2007HE, they are same) but there should be no problem with custom kernel. I still had no opportunity to try it myself but I can make such kernel available if you wish to try it. SDHC feature itself is just few lines. I'll clean up my kernel sources a bit and post link to such kernel here.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post:
Posts: 19 | Thanked: 3 times | Joined on Mar 2007 @ UK
#4
Thank you, fanoush!
I'm ready to try such kernel at any time.

serge48
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#5
OK so here it is. I can only verify it still works with Kingston 2GB MMCmobile. Take it as highly experimental one. It did not crash for me so far (hour or so) when booted from card and swap enabled. I have not tested it with any SD or SDHC card.

Both MMC 4.1 and SD high speed mode is in, SDHC too. Basically it is merge of MMC layer from latest N800 2.6.18 kernel (osso55) so there are more generic MMC layer changes which may improve stability or break things. It may be worth of trying also for people who tried my high speed kernel before and it was not stable with their card. Also people who reported complete lockup at boot until card is removed may see some difference, card detection runs in its own thread in 2.6.18.

What is not in yet is the delayed card poweroff a.k.a. SDHC card corruption fix. I'm not sure it helps on N770 but maybe yes, I'll investigate.

Any report with SDHC cards in 770 and this kernel is welcomed :-)

Beware that high speed SD mode (48MHz) may not work with some less tolerant SD cards just like it is with high speed MMC mode. There may be reasons why Nokia limited MMC bus in 770 to 12MHz.

I'll post links to kernel source diffs tomorrow, going to bed now.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2007-12-07 at 21:54.
 

The Following User Says Thank You to fanoush For This Useful Post:
Posts: 19 | Thanked: 3 times | Joined on Mar 2007 @ UK
#6
Originally Posted by fanoush View Post
OK so here it is.
Already?!!!!!!!!!!!!! Great job!

Originally Posted by fanoush View Post
Any report with SDHC cards in 770 and this kernel is welcomed :-)
Here it is (SanDisk microSD 4G SDHC):

dmesg:
Code:
[    7.209625] mmci-omap mmci-omap.2: cover is now closed
[    7.490966] mmc0: Problem switching card into high-speed mode!
[    7.492248] mmcblk0: mmc0:d555 SU04G 3979776KiB
[    7.492919]  mmcblk0: p1 p2 p3
[    7.498931] mmci-omap mmci-omap.2: command timeout (CMD8)
[    7.499084] mmci-omap mmci-omap.2: command timeout (CMD8)
[    7.505523] mmci-omap mmci-omap.2: card status error (CMD13)
df : (3G FAT partition - p1 and two EXT2 600M p2 (OS2007HE) and 400M p3 (OS2006))
Code:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mmcblk0p1         3021200   1219172   1802028  40% /media/mmc1
Write :
Code:
Nokia-770-36:~# sync; time sh -c "dd if=/dev/zero of=/media/mmc1/testfile bs=1M count=100;sync"
100+0 records in
100+0 records out
real    0m 40.60s
user    0m 0.00s
sys     0m 4.92s
Read :
Code:
Nokia-770-36:~# time dd if=/media/mmc1/testfile of=/dev/null bs=1M
100+0 records in
100+0 records out
real    0m 38.41s
user    0m 0.00s
sys     0m 2.63s
Going to flash "permanently" for real-life testing.

serge48
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#7
Originally Posted by serge48 View Post
Here it is (SanDisk microSD 4G SDHC):

Code:
[    7.490966] mmc0: Problem switching card into high-speed mode!
..
..
[    7.498931] mmci-omap mmci-omap.2: command timeout (CMD8)
[    7.499084] mmci-omap mmci-omap.2: command timeout (CMD8)
[    7.505523] mmci-omap mmci-omap.2: card status error (CMD13)
This happens with some Sandisk cards even in N800 or other devices. Not sure if it is Sandisk's fault or what. Looks like the card tells first that is supports high speed mode and then returns error when it is tried. Maybe it simply does not support high-speed mode. If you get read speed over 12MB/s (25MHz with 4 bit bus) with usb reader and this card than it does support high speed mode and something else is wrong.

Originally Posted by serge48 View Post
Write :
Code:
Nokia-770-36:~# sync; time sh -c "dd if=/dev/zero of=/media/mmc1/testfile bs=1M count=100;sync"
100+0 records in
100+0 records out
real    0m 40.60s
user    0m 0.00s
sys     0m 4.92s
Read :
Code:
Nokia-770-36:~# time dd if=/media/mmc1/testfile of=/dev/null bs=1M
100+0 records in
100+0 records out
real    0m 38.41s
user    0m 0.00s
sys     0m 2.63s
Yes MMC bus speed is limit, 24MHz over 1 bit = max. 3MB/s in theory.

Thanks for testing. It is great it works. Could you read whole card (dd with if=/dev/mmcblk0 and no 'count') to verify that blocks over 2GB are read correctly? It will take long time. Or you could even try writing too, just filling your whole first partition with dd would be a good test too.

Or if you boot from ext2 partition located at the end of the card it should be OK too.

I hope I will test it soon too. I have Transcend 4gb mini SDHC class 4 card waiting for this. It does support high speed mode in N800.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#8
I have updated the kernel with the rest from latest N800 2.6.18 kernel including the SDHC corruption fix. Just redownload the kernel if you want.

Full source diff is here http://fanoush.wz.cz/maemo/n770-49-m...so55-sdhc.diff
I wanted to split it to some logical parts but it it just too much work and it wouldn't be much logical anyway :-)
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Posts: 19 | Thanked: 3 times | Joined on Mar 2007 @ UK
#9
Well, fanoush, let's stop for now
From my (quite limited) tests I see that last two 770 SDHC kernels are:
1. added SDHC support for beloved 770;
2. restored support for old slow RS-MMC cads (like original 64M Nokia that came with N770);
3. not break anything else;

Originally Posted by fanoush View Post
Could you read whole card
Yes, I can read whole card, write to the first (3000M) partition until it is full and boot from second and third partitions.

There is one "cosmetic" issue though. There a lot of kernel debug messages like that when card cover is opened:

Code:
[ 2047.351013] mmci-omap mmci-omap.2: cover is now open
[ 2047.389495] mmci-omap mmci-omap.2: command timeout (CMD8)
[ 2047.397369] mmci-omap mmci-omap.2: command timeout (CMD8)
[ 2047.851257] mmci-omap mmci-omap.2: command timeout (CMD8)
[ 2047.857482] mmci-omap mmci-omap.2: card status error (CMD13)
[ 2048.351715] mmci-omap mmci-omap.2: command timeout (CMD8)
...
...
However, I think, it is down to new threaded procedure for card discovery and nothing should be affected. (Anyway - nobody keeps card cover open).

Overall, fanoush, I think, this kernel deserves an addition on your "maemo" page together with MMC-high speed kernels.

serge48
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#10
Originally Posted by serge48 View Post
2. restored support for old slow RS-MMC cads (like original 64M Nokia that came with N770);
Wow, you have some card working that did not work with my previous kernels?
Originally Posted by serge48 View Post
Yes, I can read whole card, write to the first (3000M) partition until it is full and boot from second and third partitions.
Sounds great :-)
Originally Posted by serge48 View Post
There is one "cosmetic" issue though. There a lot of kernel debug messages like that when card cover is opened:
Yes, this is feature of N800 kernel too. This should be harmless, it happens after you remove the card (not just open door), correct? When cover is open kernel polls periodically for card presence, this fails once you remove it.

Originally Posted by serge48 View Post
Overall, fanoush, I think, this kernel deserves an addition on your "maemo" page together with MMC-high speed kernels.
OK, it is now here http://fanoush.wz.cz/maemo/#sdhc, thanks for testing.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following 3 Users Say Thank You to fanoush For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:55.