I partitioned eMMC as follows. But Linux can't mount "user" partition and it mount the android "userdata" partition on Unbuntu. mmcblk0p15 device is android "userdata" partition. Please let me know what problem is.
1) uboot parameters
FIRMWARE_VER:4.4.2
MACHINE_MODEL:rk30sdk
MACHINE_ID:007
MANUFACTURER:RK30SDK
MAGIC: 0x5041524B
ATAG: 0x60000800
MACHINE: 3066
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
#KERNEL_IMG: 0x62008000
#FDT_NAME: rk-kernel.dtb
#RECOVER_KEY: 1,1,0,20,0
CMDLINE:console=ttyFIQ0 androidboot.hardware=rk30board androidboot.console=ttyFIQ0 board.ap_has_alsa=0 root=/dev/block/mtd/by-name/linuxroot rw rootfstype=ext4 init=/sbin/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00010000@0x00016000(boot),0x00010000@0x00026000(recovery),0x0001a000@0x00036000(backup),0x00040000@0x00050000(cache),0x00002000@0x00090000(kpanic),0x00980000@0x00092000(system),0x00002000@0x00A12000(metadata),0x00400000@0x00A14000(userdata),0x00620000@0x00E14000(linuxroot),-@0x01434000(user)
2) Booting logs
[ 2.193563] execute tuning: candidates_degree = SDMMC_SHIFT_DEGREE_0 SDMMC_SHIFT_DEGREE_90 SDMMC_SHIFT_DEGREE_180 SDMMC_SHIFT_DEGREE_INVALID[mmc0]
[ 2.193665] mmc0: new HS200 MMC card at address 0001[ 2.221350] leds-gpio leds.31: pins are not configured from the driver
3) df results
Filesystem 1kblocks Used Avaulable Use% Mounted on
/dev.mmcblk0p14 3148232 1348096 1783752 44% /
udev 1022892 4 1022888 1% /dev
tmpfs 413412 352 413060 1% /run
none 4 0 0 0% /sys/fs/cgroup
none 5120 4 5116 1% /run/lock
none 1033524 72 1033452 1% /run/shm
none 102400 20 102380 1% /run/user
/dev/mmcblk0p15 4662364 3264204 1398160 71% /media/firefly/851C-D06E
userdata partition is Android's data partition, which is not mounted under Linux by default.
You can edit "/lib/udev/rules.d/80-udisks2.rules", and remove the following line:
# automount only user partition of Android
KERNEL=="mmcblk0p[0-9]*", SUBSYSTEMS=="mmc", ENV{PARTNAME}!="user", ENV{UDISKS_IGNORE}="1"
I removed that you said. After removing line in 80-udisks2.rules, linux mount many partitions. I think initrd is something wrong.
firefly@firefly:/media/firefly$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mmcblk0p14 3148232 1348004 1783844 44% /
udev 1022892 4 1022888 1% /dev
tmpfs 413412 356 413056 1% /run
none 4 0 4 0% /sys/fs/cgroup
none 5120 0 5120 0% /run/lock
none 1033524 72 1033452 1% /run/shm
none 102400 20 102380 1% /run/user
/dev/mmcblk0p9 122835 1599 112062 2% /media/firefly/1fe6fd53-7380-4cc7-9e55-30b08c2ec58a
/dev/mmcblk0p15 4662364 3264204 1398160 71% /media/firefly/851C-D06E
/dev/mmcblk0p13 1998672 802996 1074436 43% /media/firefly/2a856443-354f-447d-bc91-118b44e69dfe
/dev/mmcblk0p12 2939 29 2625 2% /media/firefly/e7107927-e2df-473a-bb70-a9b97fd96508
/dev/mmcblk0p11 4909164 517764 4375016 11% /media/firefly/system
It is not wrong. It is the expected behaviour, mounting all the recongizable partition automactically.
Use something like this:
# automount only user/data partition of Android
KERNEL=="mmcblk0p[0-9]*", SUBSYSTEMS=="mmc", ENV{PARTNAME}=="cache|metadata|system", ENV{UDISKS_IGNORE}="1"
It still doesn't mount user partition, mmcblk0p15 and mmcblk0p13 are android partition.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mmcblk0p14 3148232 1348704 1783144 44% /
udev 1022892 4 1022888 1% /dev
tmpfs 413412 356 413056 1% /run
none 4 0 4 0% /sys/fs/cgroup
none 5120 0 5120 0% /run/lock
none 1033524 72 1033452 1% /run/shm
none 102400 20 102380 1% /run/user
/dev/mmcblk0p15 4662364 3264204 1398160 71% /media/firefly/851C-D06E
/dev/mmcblk0p13 1998672 802996 1074436 43% /media/firefly/2a856443-354f-447d-bc91-118b44e69dfe
fi
I'm frustrated. From your kernel log, this is your partition now:
[ 2.193665] mmc0: new HS200 MMC card at address 0001
[ 2.193930] mmcblk0: mmc0:0001 AWMB3R 14.5 GiB
[ 2.194255] parameter: 0x000000000 -- 0x000400000 (4 MB)
[ 2.194268] uboot: 0x000400000 -- 0x000800000 (4 MB)
[ 2.194277] misc: 0x000800000 -- 0x000c00000 (4 MB)
[ 2.194287] resource: 0x000c00000 -- 0x001c00000 (16 MB)
[ 2.194296] kernel: 0x001c00000 -- 0x002c00000 (16 MB)
[ 2.194305] boot: 0x002c00000 -- 0x004c00000 (32 MB)
[ 2.194313] recovery: 0x004c00000 -- 0x006c00000 (32 MB)
[ 2.194322] backup: 0x006c00000 -- 0x00a000000 (52 MB)
[ 2.194331] cache: 0x00a000000 -- 0x012000000 (128 MB)
[ 2.194340] kpanic: 0x012000000 -- 0x012400000 (4 MB)
[ 2.194348] system: 0x012400000 -- 0x142400000 (4864 MB)
[ 2.194357] metadata: 0x142400000 -- 0x142800000 (4 MB)
[ 2.194366] userdata: 0x142800000 -- 0x1c2800000 (2048 MB)
[ 2.194375] linuxroot: 0x1c2800000 -- 0x286800000 (3136 MB)
[ 2.194383] user: 0x286800000 -- 0x3a3a00000 (4562 MB)
userdata and user partitiions are both used by Android. userdata is mounted on /data,
and user partition is mounted as internal storage.
Now that both userdata (/dev/mmcblk0p13) and user (/dev/mmcblk0p15) parittions are mounted.
What would you like to archieve?
I thought the user partition is used for linux, but you said user and userdata partitions are used for Andorid. I'd like to know user partition purpose.
firefly@firefly:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mmcblk0p14 3148232 1350380 1781468 44% /
udev 1022892 4 1022888 1% /dev
tmpfs 413412 352 413060 1% /run
none 4 0 4 0% /sys/fs/cgroup
none 5120 4 5116 1% /run/lock
none 1033524 72 1033452 1% /run/shm
none 102400 20 102380 1% /run/user
/dev/mmcblk0p15 4662364 3264204 1398160 71% /media/firefly/851C-D06E
/dev/mmcblk0p13 1998672 802996 1074436 43% /media/firefly/2a856443-354f-447d-bc91-118b44e69dfe
firefly@firefly:~$ cd /media/firefly
firefly@firefly:/media/firefly$ ls 851C-D06E/
Alarms LOST.DIR Notifications backups ??? ????????? ??????
Android Linux Pictures dmesg.txt
DCIM Movies Podcasts eHomeMediaCenter
Download Music Ringtones gameloft
firefly@firefly:/media/firefly$
firefly@firefly:/media/firefly$ ls 2a856443-354f-447d-bc91-118b44e69dfe/
app bugreports es8323_mic_state misc tombstones
app-asec dalvik-cache gps property user
app-lib data local resource-cache vpumem_observer
app-private dontpanic lost+found security
backup drm media ssh
bluetooth dtv mediadrm system
firefly@firefly:/media/firefly$
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) | Powered by Discuz! X3.1 |