[Android Q&A, Help & Troubleshooting] peter73:
Hi,

I'm trying to port CWM to my stylistic m532 / pegatron chagall.

There is aleady a recovery in the general thread but i think the mountpoints are not correct and i'm trying to fix it.

I was follwing the tutorials from koush, xda-university and some others but i'm stuck on a bootloop. Maybe someone of the clever guys here at xda can help me and point me to the error.

Here is what i did:

i extracted the different partitions, set up a vm running ubuntu and checked out cyanogenmod from git.

I used mkvendor.sh with the extracted recovery partition (tried boot partition also) to create the folders and files for my device.

Here is the information i have from the device:

shell@android:/ $ cat /proc/partitions
major minor #blocks name

7 0 4190 loop0
7 1 36414 loop1
7 2 16664 loop2
7 3 4190 loop3
7 4 10427 loop4
7 5 36414 loop5
179 0 30535680 mmcblk0
179 1 6144 mmcblk0p1
179 2 8192 mmcblk0p2
179 3 524288 mmcblk0p3
179 4 1048576 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 143360 mmcblk0p6
179 7 2048 mmcblk0p7
179 8 524288 mmcblk0p8
179 9 28262400 mmcblk0p9
179 32 2048 mmcblk0boot1
179 16 2048 mmcblk0boot0
254 0 4189 dm-0
254 1 36414 dm-1
254 3 4189 dm-3
254 4 10426 dm-4
254 2 16663 dm-2
254 5 36414 dm-5

ls -al /dev/block/platform/sdhci-tegra.3/by-name/

lrwxrwxrwx root root 2013-12-14 17:44 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2013-12-14 17:44 CAC -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2013-12-14 17:44 CUS -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2013-12-14 17:44 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2013-12-14 17:44 MSC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2013-12-14 17:44 ROM -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2013-12-14 17:44 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2013-12-14 17:44 UDA -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2013-12-14 17:44 USP -> /dev/block/mmcblk0p6

df
Filesystem Size Used Free Blksize
/dev 487M 32K 487M 4096
/mnt/asec 487M 0K 487M 4096
/mnt/obb 487M 0K 487M 4096
/system 503M 480M 23M 4096
/cache 1007M 16M 991M 4096
/custom 503M 194M 309M 4096
/data 26G 2G 23G 4096
/persdata 503M 194M 309M 4096
/storage/sdcard0 26G 2G 23G 4096

I changed BoardConfig.mk to the following values:

USE_CAMERA_STUB := true

# inherit from the proprietary version
-include vendor/pegatron/chagall/BoardConfigVendor.mk

TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_SMP := true
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a9
ARCH_ARM_HAVE_TLS_REGISTER := true
ARCH_ARM_HAVE_32_BYTE_CACHE_LINES := true
ARCH_ARM_USE_NON_NEON_MEMCPY := true

NEED_WORKAROUND_CORTEX_A9_745320 := true

TARGET_BOOTLOADER_BOARD_NAME := chagall

TARGET_BOARD_PLATFORM := tegra

BOARD_KERNEL_CMDLINE :=
BOARD_KERNEL_BASE := 0x
BOARD_KERNEL_PAGESIZE := 2048

# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 25165824
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
BOARD_USERDATAIMAGE_PARTITION_SIZE := 115762790400
BOARD_FLASH_BLOCK_SIZE := 4096

TARGET_PREBUILT_KERNEL := device/pegatron/chagall/kernel

BOARD_HAS_NO_SELECT_BUTTON := true

and recovery.fstab

# mount point fstype device

/system	ext4	/dev/block/mmcblk0p3
/cache	ext4	/dev/block/mmcblk0p4
/misc	emmc	/dev/block/mmcblk0p5
/staging	ext3	/dev/block/mmcblk0p6
/boot	emmc	/dev/block/mmcblk0p2
/recovery	emmc	/dev/block/mmcblk0p1
/data	ext4	/dev/block/mmcblk0p9
/emmc	datamedia	/dev/null

Compiling creates a recovery.img but if i flash it to my device it ends in a bootloop.

What do i miss?:confused: