Skip to content

Commit f5ce83f

Browse files
committed
.
1 parent 225506d commit f5ce83f

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ make_image() {
5050
if [[ "${ROOTFS_TYPE}" == "btrfs" ]]; then
5151
mkfs.btrfs -f -L ${ROOT_LABEL} -m single ${LOOP_DEV}p2 >/dev/null 2>&1
5252
else
53-
mkfs.ext4 -F -q -L ${ROOT_LABEL} -m 0 ${LOOP_DEV}p2 >/dev/null 2>&1
53+
mkfs.ext4 -O ^metadata_csum,^64bit -F -q -L ${ROOT_LABEL} -m 0 ${LOOP_DEV}p2 >/dev/null 2>&1
5454
fi
5555

5656
# TODO: Write device bootloader

src/boot-files/extlinux/extlinux.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ LABEL Arch Linux ARM
22
LINUX /Image
33
INITRD /initramfs-linux.img
44
FDT /dtbs/amlogic/meson-gxl-s905x-p212.dtb
5-
APPEND root=LABEL=ROOT rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
5+
APPEND root=LABEL=ROOT rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 loglevel=4 audit=0 nowatchdog
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ACTION=="add|change", KERNEL=="sd[a-z]*|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"

src/patch/usr/bin/install-to-emmc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ sync
8686
pprint "[+] Formatting EMMC partition"
8787
mkfs.vfat -F32 -n "BOOT_EMMC" "$EMMC_BOOT" > /dev/null 2>&1
8888
mkfs.ext4 -O ^metadata_csum,^64bit -F -L "ROOT_EMMC" "$EMMC_ROOT" > /dev/null 2>&1
89+
tune2fs -O fast_commit $EMMC_ROOT > /dev/null 2>&1
8990
status_text $?
9091
sync
9192

@@ -107,8 +108,8 @@ sync
107108

108109
pprint "[+] Updating configs"
109110
cat >${EMMC_MNT}/etc/fstab <<EOF
110-
LABEL=ROOT_EMMC / ext4 defaults,noatime,errors=remount-ro 0 1
111-
LABEL=BOOT_EMMC /boot vfat defaults,noatime,errors=remount-ro 0 2
111+
LABEL=ROOT_EMMC / ext4 defaults,noatime,errors=remount-ro,commit=60 0 1
112+
LABEL=BOOT_EMMC /boot vfat defaults,noatime,errors=remount-ro,commit=60 0 2
112113
EOF
113114

114115
sed -i "s|${CURRENT_HOSTNAME}|${DEFINED_HOSTNAME}|g" "${EMMC_MNT}/etc/hosts"

0 commit comments

Comments
 (0)