maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [HOWTO] Compiling new kernels on Harmattan device (https://talk.maemo.org/showthread.php?t=89507)

coderus 2013-08-28 09:32

Re: [HOWTO] Compiling new kernels on Harmattan device
 
no, i need multi partitions export in mass storage mode :)

jackburton 2013-08-28 13:01

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by coderus (Post 1370008)
no, i need multi partitions export in mass storage mode :)

Did you just try putting the other partition in the /etc/usb-moded/usb-moded.ini?

This feature shows as experimental in the kernel config.

coderus 2013-08-28 13:06

Re: [HOWTO] Compiling new kernels on Harmattan device
 
no, i just checked lsmod, there is no g_ether_multi module.

nieldk 2013-08-28 13:25

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by coderus (Post 1370008)
no, i need multi partitions export in mass storage mode :)

Isnt that what you found here ?
http://talk.maemo.org/showthread.php?t=89420

jackburton 2013-08-28 13:54

Re: [HOWTO] Compiling new kernels on Harmattan device
 
It looks like you don't need g_ether_multi. This is for doing both networking and storage at the same time, and is experimental (at least in this kernel).

You don't need it anyway if you want multiple partitions. Just use a comma separated list of devices/files to export. I found that if you use a backing file, then it will be mounted loop.

I created two dd'd images and mkfs.vfat on them. Then added them to the /etc/usbmoded/usb-moded.ini file and it works.

http://farm4.staticflickr.com/3761/9...d17afd4f20.jpg
Nokia N9 multiple file storage USB by brander snaxe, on Flickr

Code:

[mountpoints]
mount = /home/user/MyDocs/fs.fat.img,/home/user/MyDocs/fs.fat2.img
#mount = /dev/mmcblk0p1

#you can add more filesystems to the mount option, by making it a comma-seperated list.

[sync]
nofua = 1

[altmount]
mount = /home/user/alt
#mount = /home/user/MyDocs

[cdrom]
path =
timeout =

I was perusing the source here: https://gitorious.org/meego-middlewa...oded-modules.c

I'm sure that this is newer than what's in Harmattan, but provided some hints, nonetheless.

coderus 2013-08-28 14:02

Re: [HOWTO] Compiling new kernels on Harmattan device
 
hmm, thanks, i'll check it :)

Ancelad 2013-08-28 18:04

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by jackburton (Post 1370091)
It looks like you don't need g_ether_multi.

http://talk.maemo.org/showthread.php?t=91158 - what about this?

My file looks like that. But Windows mounts only one partition.

Code:

[mountpoints]
mount = /dev/mmcblk0p1, /dev/mmcblk0p4

[sync]
nofua = 1

[altmount]
mount = /home/uset/MyDocs, /home/user/BackupMenu
#mount = /home/user/MyDocs

[cdrom]
path = /usr/share/aceso/aceso.iso
timeout = 1


jackburton 2013-08-28 18:16

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by Ancelad (Post 1370185)
http://talk.maemo.org/showthread.php?t=91158 - what about this?

My file looks like that. But Windows mounts only one partition.

  • What does diskmgmt.msc in Windows show?
  • What does fdisk -l show in Linux?

My hunch is that Windows is expecting to see a partition table, rather than raw partition information.

Ancelad 2013-08-28 18:19

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by jackburton (Post 1370189)
  • What does diskmgmt.msc in Windows show?
  • What does fdisk -l show in Linux?

My hunch is that Windows is expecting to see a partition table, rather than raw partition information.

My fault - I'm using default openmode-kernel without modules. I'll flash your kernel :)

BTW - Linux mounts both of them.

jackburton 2013-08-28 18:26

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by Ancelad (Post 1370190)
My fault - I'm using default openmode-kernel without modules. I'll flash your kernel :)

BTW - Linux mounts both of them.

Making the changes to /etc/usb-moded/usb-moded.ini should work on the stock kernel as well. I did not enable anything special for this in my config.


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

vBulletin® Version 3.8.8