ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #05218
[Porting] Need help with porting problems - initrd / mount
Greetings,
I need help related to UT porting to new device. I am not kernel dev and I struggling for 2nd week.
I followed the porting guide, I am able to build and boot the kernel.
Stuck with some mount/partition problems...
My goal is Inforce Computing IFC6410 MSM8960 dev.board.
I have working Android 4.1 kernel from IFC and also Nexus4 (mako) device and build to compare to.
I see mounting errors during boot.
[ 6.175919] initrd: mounting /dev/mmcblk0p13
[ 6.185106] EXT3-fs (mmcblk0p13): error: couldn't mount because of unsupported optional features (40)
[ 6.252159] EXT2-fs (mmcblk0p13): error: couldn't mount because of unsupported optional features (44)
[ 6.343262] EXT4-fs (mmcblk0p13): recovery complete
[ 6.348084] EXT4-fs (mmcblk0p13): mounted filesystem with ordered data mode. Opts: (null)
[ 6.356233] initrd: Couldn't find a system partition.
Couldn't find a system partition. Spawning adbd ...
Luckily I can do adb shell - and I see only initrd barebone system.
p13 is userdata.img. For some reason the image smaller than I'd expect.
Initially I used same partitions as Android but noticed system and usr are too small so I tried to bump them.
Here is related part of BoardConfig:
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=msm8960
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01600000
# from mako
#BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672 # 22M
#BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672 # 22M
#BOARD_SYSTEMIMAGE_PARTITION_SIZE := 880803840 # 840M
#BOARD_USERDATAIMAGE_PARTITION_SIZE := 6189744128 # 5.9G
#BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00A00000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00A00000
#BOARD_USERDATAIMAGE_PARTITION_SIZE:= 10 737 418 240 # 10G?
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1547436032 # 6189744128
TARGET_USERIMAGES_USE_EXT4 := true
#BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 880803840 # 840M
BOARD_CACHEIMAGE_PARTITION_SIZE := 33554432
BOARD_PERSISTIMAGE_PARTITION_SIZE := 5242880
BOARD_TOMBSTONESIMAGE_PARTITION_SIZE := 268435456
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
BOARD_USES_SECURE_SERVICES := true
Any help is appreciated.
Thanks
-Ivo
Follow ups