[KERNEL][Z1] [5.0-5.1][F2FS]Advanced-Kernel v19.0[03/26/2017]

olokos

Recognized Developer
Oct 16, 2011
2,939
2,477
0
Warsaw
@sharonliu just changed all partitions on the phone to F2FS including /system and it won't go past the kernel bootlogo :/ Went back to ext4 for /system
PS Are you going to include MultiROM TWRP at last?
 
Last edited:

sharonliu

Senior Member
Dec 15, 2012
188
680
0
Taipei
@sharonliu just changed all partitions on the phone to F2FS including /system and it won't go past the kernel bootlogo :/ Went back to ext4 for /system
PS Are you going to include MultiROM TWRP at last?
Z2's MultiROM TWRP at last or venkat kamesh's are not working. When reboot into Second ROM, cause of the bootloop.
I modified stock fstab(data and cache) to f2fs using cm12.1 fstab. Does anybody know how to edit fstab System File?
Below is v14 fstab mount flag.
Code:
#<src>                                                <mnt_point>  <type>  <mnt_flags and options>                     <fs_mgr_flags>
/dev/block/platform/msm_sdcc.1/by-name/system         /system      ext4    ro,barrier=1,discard                                wait
/dev/block/platform/msm_sdcc.1/by-name/userdata    /data      f2fs  noatime,nosuid,nodev,rw,inline_xattr                                      wait,check,formattable,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/userdata    /data      ext4  noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic  wait,check,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/cache       /cache     f2fs  noatime,nosuid,nodev,rw,inline_xattr                                      wait,check
/dev/block/platform/msm_sdcc.1/by-name/cache       /cache     ext4  noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic  wait,check
/dev/block/platform/msm_sdcc.1/by-name/apps_log       /mnt/idd     ext4    nosuid,nodev,noatime,noexec,barrier=0,discard       wait,check
/devices/msm_sdcc.2/mmc_host                          auto         auto    nosuid,nodev voldmanaged=sdcard1:auto,noemulatedsd
/dev/block/platform/msm_sdcc.1/by-name/modemst1       /boot/modem_fs1        emmc    n/a             n/a
/dev/block/platform/msm_sdcc.1/by-name/modemst2       /boot/modem_fs2        emmc    n/a             n/a
/devices/platform/xhci-hcd                            auto   auto    nosuid,nodev         voldmanaged=usbdisk:auto
/dev/block/zram0                                      none   swap    defaults             zramsize=268435456
How can i enable lz4 algorithm
V14's zram is lzo as default. If zram works fine and stable, v15 will set lz4 as default.
 
  • Like
Reactions: hxq88

SuperLamic

Senior Member
Oct 24, 2011
937
1,080
0
Prague
Z2's MultiROM TWRP at last or venkat kamesh's are not working. When reboot into Second ROM, cause of the bootloop.
I modified stock fstab(data and cache) to f2fs using cm12.1 fstab. Does anybody know how to edit fstab System File?
Below is v14 fstab mount flag.
Code:
#<src>                                                <mnt_point>  <type>  <mnt_flags and options>                     <fs_mgr_flags>
/dev/block/platform/msm_sdcc.1/by-name/system         /system      ext4    ro,barrier=1,discard                                wait
/dev/block/platform/msm_sdcc.1/by-name/userdata    /data      f2fs  noatime,nosuid,nodev,rw,inline_xattr                                      wait,check,formattable,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/userdata    /data      ext4  noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic  wait,check,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/cache       /cache     f2fs  noatime,nosuid,nodev,rw,inline_xattr                                      wait,check
/dev/block/platform/msm_sdcc.1/by-name/cache       /cache     ext4  noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic  wait,check
/dev/block/platform/msm_sdcc.1/by-name/apps_log       /mnt/idd     ext4    nosuid,nodev,noatime,noexec,barrier=0,discard       wait,check
/devices/msm_sdcc.2/mmc_host                          auto         auto    nosuid,nodev voldmanaged=sdcard1:auto,noemulatedsd
/dev/block/platform/msm_sdcc.1/by-name/modemst1       /boot/modem_fs1        emmc    n/a             n/a
/dev/block/platform/msm_sdcc.1/by-name/modemst2       /boot/modem_fs2        emmc    n/a             n/a
/devices/platform/xhci-hcd                            auto   auto    nosuid,nodev         voldmanaged=usbdisk:auto
/dev/block/zram0                                      none   swap    defaults             zramsize=268435456
V14's zram is lzo as default. If zram works fine and stable, v15 will set lz4 as default.
I don't know it too, but I would try this:
Code:
#<src>                                                <mnt_point>  <type>  <mnt_flags and options>                     <fs_mgr_flags>
/dev/block/platform/msm_sdcc.1/by-name/system         /system      ext4    ro,barrier=1,discard                                wait
/dev/block/platform/msm_sdcc.1/by-name/system         /system      f2fs    ro,discard                                wait
/dev/block/platform/msm_sdcc.1/by-name/userdata    /data      f2fs  noatime,nosuid,nodev,rw,inline_xattr                                      wait,check,formattable,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/userdata    /data      ext4  noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic  wait,check,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/cache       /cache     f2fs  noatime,nosuid,nodev,rw,inline_xattr                                      wait,check
/dev/block/platform/msm_sdcc.1/by-name/cache       /cache     ext4  noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic  wait,check
/dev/block/platform/msm_sdcc.1/by-name/apps_log       /mnt/idd     ext4    nosuid,nodev,noatime,noexec,barrier=0,discard       wait,check
/devices/msm_sdcc.2/mmc_host                          auto         auto    nosuid,nodev voldmanaged=sdcard1:auto,noemulatedsd
/dev/block/platform/msm_sdcc.1/by-name/modemst1       /boot/modem_fs1        emmc    n/a             n/a
/dev/block/platform/msm_sdcc.1/by-name/modemst2       /boot/modem_fs2        emmc    n/a             n/a
/devices/platform/xhci-hcd                            auto   auto    nosuid,nodev         voldmanaged=usbdisk:auto
/dev/block/zram0                                      none   swap    defaults             zramsize=268435456
Anyway I read that it's useless to use f2fs for system (it's faster only when files are changing, reading the same files is a bit faster on ext4).
 
  • Like
Reactions: sharonliu

sharonliu

Senior Member
Dec 15, 2012
188
680
0
Taipei
I have some random reboot with v14. No problems with v13
Everything seems to be fine with me. Has anyone here had the same issue ? If the kernel crashed (freeze and rebooted),
please fetch last_kmsg file after the crash reboot and post in the thread.
Code:
su -c cat /proc/last_kmsg > /sdcard/last_kmsg
 
  • Like
Reactions: olokos

olokos

Recognized Developer
Oct 16, 2011
2,939
2,477
0
Warsaw
@sharonliu just sent you a PM with last_klog after one of reboots and I had about 5 of them just today, no idea why.
TWRP doesn't have anything to do with booting roms AFAIK, so could you please release or PM me v14 kernel with MultiROM TWRP? I tried to build it myself, but failed terribly and wasted tons of time.
Thanks. :)
 

sharonliu

Senior Member
Dec 15, 2012
188
680
0
Taipei
to be included in v15.0 changeLog:

it will be released soon

v15.0 changeLog:
  • fix the random reboot issues
  • f2fs: getting the latest code from upstream
  • f2fs: system partition support
  • zram: fix merge errors & bring up to date with Cl3Kener's branch
  • zram: set lz4 algorithm as default
  • lz4: update some codes from upstream
  • zsmalloc: fix merge errors
  • removed intelli thermal
  • thermal: add 3-phase msm_thermal(thanks to @showp1984)
  • memory.c: fix show_mem_removable() to handle missing sections
 

sharonliu

Senior Member
Dec 15, 2012
188
680
0
Taipei
cannot find v15.0 in the mega folder of z1! :(
Waitting u upload file. Excited
@sharonliu didn't you forget to upload v15 for Z1 (not compact, compact is there)?
I guess the upload may have failed and he did'nt notice that and after that went to sleep! :p..dude wake up we need the update! :p..
I think you're right - I found that in Taipei is now 2:17 am :D
I didn't notice that v15 upload have failed for Z1:eek:. already been uploaded