Poll: Did you get the expected result?
Poll Options
Did you get the expected result?

Reply
Thread Tools
Posts: 1,213 | Thanked: 356 times | Joined on Jan 2008 @ California and Virginia
#11
N810 here...

Because the external card is MMC1 and internal card is MMC2, I assumed that mmcblk0 is external and mmcblk1 is internal.

So,
mmcblk1 = internal
mmcblk0 = external

This is what the commands showed me, so I got what I expected...
__________________
----------------------------------------------------

www.ezschool.com - The best online educational experience.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#12
Originally Posted by Thesandlord View Post
N810 here...

mmcblk1 = internal
mmcblk0 = external
Maybe the confusion lies in the fact that it is the opposite for N800s. mmcblk0 = internal on an N800, and external on N810.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#13
Originally Posted by qole View Post
Maybe the confusion lies in the fact that it is the opposite for N800s. mmcblk0 = internal on an N800, and external on N810.
I thought it was that way for N810s, too...
 

The Following User Says Thank You to Benson For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#14
yes, n810 has mmc interfaces swapped, also the related bug is still there, see "inconsistent mmc device naming at boot time when one card is missing" - https://bugs.maemo.org/show_bug.cgi?id=2747

kernel patch was quite trivial after all and there is workaroud for this in bootmenu for buggy (=all nokia released) kernels
__________________
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; 2009-01-09 at 08:33.
 

The Following 2 Users Say Thank You to fanoush For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#15
just to clarify, n810 has physical mmc interfaces swapped but this is swapped in kernel too and for both devices the idea was that internal slot has name "internal" and should be mmcblk0. Sadly there is this bug/feature that kernel always assigns mmcblk0 first if there is only one card and in case of both it scans and gives the names in different order for N810 and N800. This is 'corrected' by udev naming rules later at boot time so at least the device names in /dev/ are 'correct' (=what is expected, /dev/mmcblk0 is internal) but it sometimes differs from kernel view.

Feel free to vote for https://bugs.maemo.org/show_bug.cgi?id=2747 :-) This is not first time someone is confused with this behaviour here in the forum, see forum links in bug description.
__________________
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; 2009-01-09 at 11:12. Reason: "later at boot time" added, link to swapping slot names in kernel source
 

The Following 3 Users Say Thank You to fanoush For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#16
And the answer to "Does the kernel lie to us regarding MMC slot_name?" is:

No, kernel is always right :-) It is just userspace (udev) that confuses things by insisting on consistent naming and giving /dev/mmcblkX nodes different name from kernel.

Tha patch is about kernel complying with nokia/udev world view and giving external slot always mmcblk1 (i.e. device minor number starting at 8) no matter what cards are present or in what order slots are scanned at boot time.
__________________
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,102 | Thanked: 1,309 times | Joined on Sep 2006
#17
Not just my innate laziness, I was asleep as it was night time here (I know that is in itself pretty lazy when there's hacking to be done, my apologies )

Anyway, here we go:

Mount output:
/dev/mmcblk0p1 on /media/mmc2
/dev/mmcblk1p1 on /media/mmc1

Nokia-N810-23-14:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk0p1 1999206 1844264 154942 92% /media/mmc2
/dev/mmcblk1p1 3971584 3795424 176160 96% /media/mmc1

Nokia-N810-23-14:~# cat /sys/block/mmcblk0/device/../slot_name
external
Nokia-N810-23-14:~# cat /sys/block/mmcblk1/device/../slot_name
internal

So mmc1/mmcblk1p1 is my external card, but it's named internal.
and mmc2/mmcblk0p1 is my internal, and it's named external.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#18
Originally Posted by lardman View Post
So mmc1/mmcblk1p1 is my external card, but it's named internal.
and mmc2/mmcblk0p1 is my internal, and it's named external.
the kernel view about correct X in mmcblkX can be seen in /proc/partitions, if you ls -l your /dev/mmcblk0* you'll notice device minor >=8 which should belong to mmcblk1 (and is reported as such in /proc/partitions), that's what udev does, it gives wrong (from kernel POV) but expected name so that naming is consistent with user.
__________________
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.
 
Chelloveck's Avatar
Posts: 31 | Thanked: 6 times | Joined on Feb 2008
#19
First, to confirm which mmc# is which...

woozle:~$ df -h /media/mmc1 /media/mmc2
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk1p1 7.5G 5.0G 2.2G 70% /media/mmc1
/dev/mmcblk0p1 1.8G 988.0M 746.0M 57% /media/mmc2


Good, this confirms exactly what I thought...

/dev/mmcblk0p1 = /media/mmc2 = internal card
/dev/mmcblk1p1 = /media/mmc1 = external card


Now, to get the slot names...

woozle:~$ cat /sys/block/mmcblk0/device/../slot_name
external
woozle:~$ cat /sys/block/mmcblk1/device/../slot_name
internal


Whoops, backwards! So no, not what I expected. This is on an n810.

(Note: I voted 'yes' because I'm an idiot. I voted, then started posting and realized that I had initially mis-read the results. Move one n810 vote from the 'yes' column to the 'no' column.)

woozle:~$ uname -a
Linux woozle 2.6.21-omap1 #2 Tue Oct 14 11:25:25 EEST 2008 armv6l unknown


(And I'm constantly annoyed that mmc1 is the external card and mmc2 is the internal. I keep wanting it to be the other way around and get involved some serious doublethink trying keep them straight. This is purely a problem with the user, not the device. But still.)

Last edited by Chelloveck; 2009-01-09 at 15:10.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#20
I said No on an N810.

When I am booted into Flash.. mmcblk0 is NAMED external, but actually is internal; mmcblk1 is NAMED internal, but is actually external. When I am booted into SD (either).. mmcblk0 = external, mmcblk1 = internal. Confuses the hell out of me.

Since in Flash mmcblk0 is truly internal; that's what I expect it to be named and also what I expect it to be when I boot into SD (in either maemo OR any of the flavors of debian).

So yes.. my N810 is a big fat liar.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:02.