Active Topics

 


Reply
Thread Tools
Posts: 284 | Thanked: 320 times | Joined on May 2010 @ Peterborough, UK
#31
I finally got my N900 back on Wednesday - and the compiled module didn't work for me either on stock PR 1.3, to such an extent that BackupMenu couldn't even read mmcblk0 or 1. I was almost stuffed as I'd overwritten the module in /lib/modules on my rootfs backup, but thankfully I still had an old bfs-kernel uImage with the modules matching so was able to boot BackupMenu successfully. I then patched kernel-power46 myself with the diff posted earlier in the thread and booted from that - all was fine, although installing the kernel-modules flagged up the copied module in 2.6.28-omap1 as missing symtab and strtab. The one I've compiled for kernel-power is fine, though, so there's definitely something amiss with the hosted files?
 
Posts: 701 | Thanked: 585 times | Joined on Sep 2010 @ London, England
#32
Originally Posted by Estel View Post
Maybe it is possible to modify the driver to never unmount on cove-off? Of course attaching magnet isn't bad idea, but puristic way of things would be do change this behavior on code side

Anyway, can someone explain me rationale of unmounting/cutting microSD card on removing cover? There is one at all, or designers just thought that users are idiots and will remove card hard-way when in use?
I queried this in another thread (I think the one on moving swap to the SD), because forcing an unmount can't be good for the filesystem on the card since it may take several seconds or more to flush cached data to the card and if the filesystem driver is not given time to do this the filesystem won't be left in a clean state. Anyway I got a response from joerg_rw who was of the opinion that it could physically damage the micro SD card if you removed it while the slot was still powered.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#33
@retsaw

Yea, i remember that discussion. But, we consider that users of modified driver want it on purpose, and are not idiots pulling out microSD card without unmounting it, especially when we have swap there

I hope someone skilled enough (unfortunately, I'm definitely not) to "fix" driver will come to that conclusion also...
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#34
IMHO, anybody inclined enough to be running swap on the external microsd, has the ability to swapoff before yanking the back cover.

Can anybody confirm this is actually controlled by the driver? It makes no sense that it would be.
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#35
I don't think it has anything to do with the driver in question at all. It is N900-specific behavior.
 
Posts: 139 | Thanked: 97 times | Joined on Nov 2010 @ United States
#36
Originally Posted by Tigerite View Post
I finally got my N900 back on Wednesday - and the compiled module didn't work for me either on stock PR 1.3, to such an extent that BackupMenu couldn't even read mmcblk0 or 1. I was almost stuffed as I'd overwritten the module in /lib/modules on my rootfs backup, but thankfully I still had an old bfs-kernel uImage with the modules matching so was able to boot BackupMenu successfully. I then patched kernel-power46 myself with the diff posted earlier in the thread and booted from that - all was fine, although installing the kernel-modules flagged up the copied module in 2.6.28-omap1 as missing symtab and strtab. The one I've compiled for kernel-power is fine, though, so there's definitely something amiss with the hosted files?
From my N900...

Code:
~ $ sha1sum /lib/modules/2.6.28-omap1/omap_hsmmc.ko 
c76bfc876dfb43964c9b98848d629d9e4878c5ea  /lib/modules/2.6.28-omap1/omap_hsmmc.ko
~ $
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#37
That doesn't match the sha1sum of the file linked in the first post. Also, that file contains the magic "2.6.28.10power-omap1" which is not right.

I've attached my module that I am running on my N900 for stock kernel PR1.3.
Attached Files
File Type: zip omap_hsmmc_stock_pr13.zip (9.0 KB, 99 views)

Last edited by stlpaul; 2011-05-13 at 15:43.
 

The Following User Says Thank You to stlpaul For This Useful Post:
Posts: 139 | Thanked: 97 times | Joined on Nov 2010 @ United States
#38
Originally Posted by stlpaul View Post
That doesn't match the sha1sum of the file linked in the first post. Also, that file contains the magic "2.6.28.10power-omap1" which is not right.

I've attached my module that I am running on my N900 for stock kernel PR1.3.
Well here's what I am using for kernel-power

Code:
~ $ sha1sum /lib/modules/2.6.28.10power46/omap_hsmmc.ko  
8cfe3fc99efb2e23e5bd2bf67a8ae924aa49a66a  /lib/modules/2.6.28.10power46/omap_hsmmc.ko
~ $
 
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#39
Originally Posted by AndrewX192 View Post
Well here's what I am using for kernel-power

Code:
~ $ sha1sum /lib/modules/2.6.28.10power46/omap_hsmmc.ko  
8cfe3fc99efb2e23e5bd2bf67a8ae924aa49a66a  /lib/modules/2.6.28.10power46/omap_hsmmc.ko
~ $
That one does match the one in the first post.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#40
Originally Posted by hawaii View Post
IMHO, anybody inclined enough to be running swap on the external microsd, has the ability to swapoff before yanking the back cover.
True, but still, there is no reason to Force unmount. It just add additional, unnecessary work to do.

Anyway, sorry then for mentioning the driver - my fault, i followed statement in few post earlier, that "maybe joerg would be able to "fix" the driver". Anyway, if it is specific behavior, it is controlled (sensor) purely by hardware, without any software, propertiary or not, support? I don't think so, but I may be wrong. If that's the case, hardware mod with magnet would be best thing to do.
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:09.