Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify f2fs features #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions fs/install-to-emmc-begin
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ partx -a ${MMCDEV} 2>/dev/null || true

sleep 1

f2fsoptions="-O extra_attr,compression,inode_checksum,sb_checksum"
L-as marked this conversation as resolved.
Show resolved Hide resolved

echo "Installing to $ROOTPART"
# Seems like only kukui supports discard on f2fs
if [ "$BASEBOARD" = "kukui" ]; then
case "$FILESYSTEM" in
f2fs)
mkfs.f2fs -f $ROOTPART
mkfs.f2fs -f $ROOTPART $f2fsoptions
;;
ext4)
mkfs.ext4 -F $ROOTPART
Expand All @@ -100,7 +102,7 @@ if [ "$BASEBOARD" = "kukui" ]; then
else
case "$FILESYSTEM" in
f2fs)
mkfs.f2fs -f $ROOTPART -t 0
mkfs.f2fs -f $ROOTPART -t 0 $f2fsoptions
;;
ext4)
mkfs.ext4 -F $ROOTPART
Expand Down
2 changes: 1 addition & 1 deletion kernel/cmdline
Original file line number Diff line number Diff line change
@@ -1 +1 @@
console=ttyMSM0,115200 console=ttyS0,115200 console=tty1 root=PARTUUID=%U/PARTNROFF=2 rootwait rw fbcon=logo-pos:center,logo-count:1
console=ttyMSM0,115200 console=ttyS0,115200 console=tty1 root=PARTUUID=%U/PARTNROFF=2 rootwait rw fbcon=logo-pos:center,logo-count:1 rootflags=compress_algorithm=zstd:4
2 changes: 1 addition & 1 deletion kernel/cmdline.oxide
Original file line number Diff line number Diff line change
@@ -1 +1 @@
console=ttyS0,115200 console=tty1 console=ttyMSM0,115200 root=PARTLABEL=ROOT-C rootwait rw quiet fbcon=logo-pos:center,logo-count:1
console=ttyS0,115200 console=tty1 console=ttyMSM0,115200 root=PARTLABEL=ROOT-C rootwait rw quiet fbcon=logo-pos:center,logo-count:1 rootflags=compress_algorithm=zstd:4
2 changes: 1 addition & 1 deletion kernel/cmdline.p2
Original file line number Diff line number Diff line change
@@ -1 +1 @@
console=ttyS0,115200 console=tty1 console=ttyMSM0,115200 root=PARTUUID=%U/PARTNROFF=1 rootwait rw quiet fbcon=logo-pos:center,logo-count:1
console=ttyS0,115200 console=tty1 console=ttyMSM0,115200 root=PARTUUID=%U/PARTNROFF=1 rootwait rw quiet fbcon=logo-pos:center,logo-count:1 rootflags=compress_algorithm=zstd:4