Skip to content

Commit

Permalink
[BOARD] add flush option to main partition, mount root partition read…
Browse files Browse the repository at this point in the history
…-only
  • Loading branch information
tiopex committed Nov 30, 2023
1 parent 2f89873 commit e175cbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions board/miyoo/rootfs/etc/inittab
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@

# Startup the system
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,ro /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
::sysinit:/bin/mount /dev/mmcblk0p4 /mnt -t vfat -o rw,sync,utf8
::sysinit:/bin/mount /dev/mmcblk0p4 /mnt -t vfat -o rw,flush,utf8
::sysinit:/bin/mount /dev/mmcblk0p1 /boot -t vfat -o ro,exec,sync,utf8
::sysinit:/sbin/mkswap /dev/mmcblk0p3
::sysinit:/sbin/swapon /dev/mmcblk0p3
Expand Down
1 change: 1 addition & 0 deletions configs/miyoo_musl_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BR2_PACKAGE_HOST_GDB_SIM=y
BR2_TARGET_OPTIMIZATION="-fno-PIC -march=armv5te -mtune=arm926ej-s"
BR2_TARGET_GENERIC_HOSTNAME="miyoo"
BR2_TARGET_GENERIC_ISSUE="Welcome to Miyoo"
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_ROOTFS_OVERLAY="board/miyoo/rootfs"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/miyoo/scripts/genimage.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TOOLCHAIN_BUILDROOT_VENDOR} ${BR2_VERSION_FULL} ${BR2_TOOLCHAIN_BUILDROOT_LIBC}"
Expand Down
1 change: 1 addition & 0 deletions configs/miyoo_uclibc_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BR2_PACKAGE_HOST_GDB_SIM=y
BR2_TARGET_OPTIMIZATION="-march=armv5tej -mtune=arm926ej-s"
BR2_TARGET_GENERIC_HOSTNAME="miyoo"
BR2_TARGET_GENERIC_ISSUE="Welcome to Miyoo"
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_ROOTFS_OVERLAY="board/miyoo/rootfs"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/miyoo/scripts/genimage.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TOOLCHAIN_BUILDROOT_VENDOR} ${BR2_VERSION_FULL} ${BR2_TOOLCHAIN_BUILDROOT_LIBC}"
Expand Down

0 comments on commit e175cbd

Please sign in to comment.