From 78140a28f042cc4d6d93e14cdbdb3595d36fa019 Mon Sep 17 00:00:00 2001 From: Florian Leeber Date: Fri, 28 Aug 2020 20:57:43 +0200 Subject: [PATCH] Trying to get installer/system-image-cli to work --- BoardConfig.mk | 2 ++ fstab.angler | 3 ++- init.recovery.angler.rc | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 140f009d9..217638257 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -47,6 +47,8 @@ BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 BOARD_RAMDISK_OFFSET := 0x02000000 BOARD_KERNEL_CMDLINE := androidboot.hardware=angler console=tty0 androidboot.console=ttyHSL0 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 no_console_suspend +BOARD_KERNEL_CMDLINE += systempart=/dev/mmcblk0p43 +BOARD_KERNEL_CMDLINE += datapart=/dev/mmcblk0p44 BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) BOARD_USES_ALSA_AUDIO := true diff --git a/fstab.angler b/fstab.angler index 23a6623cb..6a64b9d52 100644 --- a/fstab.angler +++ b/fstab.angler @@ -6,7 +6,8 @@ /dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1,inode_readahead_blks=8 wait /dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1,inode_readahead_blks=8 wait /dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,discard,errors=panic,inode_readahead_blks=8 wait,check,forcefdeorfbe=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata -/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check +#disabled, too small for UT updates +#/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check /dev/block/platform/soc.0/f9824900.sdhci/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc,nomblk_io_submit,errors=panic wait,notrim /dev/block/platform/soc.0/f9824900.sdhci/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337 wait /dev/block/platform/soc.0/f9824900.sdhci/by-name/boot /boot emmc defaults defaults diff --git a/init.recovery.angler.rc b/init.recovery.angler.rc index 74ba632b1..cb718b41a 100644 --- a/init.recovery.angler.rc +++ b/init.recovery.angler.rc @@ -5,3 +5,11 @@ on boot write /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq 960000 write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq 960000 write /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq 960000 + +on post-fs-data + mkdir /data + mount ext4 /dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data + mkdir /data/cache + mount none /data/cache /cache bind + mkdir /data/cache/recovery +