diff --git a/board/miyoo/boot/firstboot b/board/miyoo/boot/firstboot index 7c175c2b..c5962274 100755 --- a/board/miyoo/boot/firstboot +++ b/board/miyoo/boot/firstboot @@ -497,6 +497,11 @@ if (dialog --clear --ok-label NO --cancel-label YES --stdout --title " License console_unknown_func safe_poweroff_func fi + +# Format swap parition +/sbin/mkswap /dev/mmcblk0p3 +/sbin/swapon /dev/mmcblk0p3 + mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG} #grep all partitions current size @@ -569,9 +574,6 @@ elif $MIYOO_CONFIG; then fi mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG} -echo "fix permsissions" | tee -a ${LOG} -chmod -R +x /mnt/ | tee -a ${LOG} - sync echo "firstboot script finished." | tee -a ${LOG} touch ${HOME}/firstboot.completed diff --git a/board/miyoo/main/emus/retroarch/retroarch_history.sh b/board/miyoo/main/emus/retroarch/retroarch_history.sh old mode 100644 new mode 100755 diff --git a/board/miyoo/rootfs/etc/inittab b/board/miyoo/rootfs/etc/inittab index 22c29c15..5bb97730 100644 --- a/board/miyoo/rootfs/etc/inittab +++ b/board/miyoo/rootfs/etc/inittab @@ -15,14 +15,12 @@ # 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 -o discard=async,noatime,nodiratime,exec +::sysinit:/bin/mount /dev/mmcblk0p4 /mnt -o commit=5,flushoncommit,noatime,nodiratime,exec ::sysinit:/bin/mount /dev/mmcblk0p1 /boot -t vfat -o ro,exec,sync,utf8 -::sysinit:/sbin/mkswap /dev/mmcblk0p3 ::sysinit:/sbin/swapon /dev/mmcblk0p3 # now run any rc scripts diff --git a/board/miyoo/scripts/genimage.sh b/board/miyoo/scripts/genimage.sh index 61c7ec81..e3dcee83 100755 --- a/board/miyoo/scripts/genimage.sh +++ b/board/miyoo/scripts/genimage.sh @@ -28,6 +28,7 @@ if test -d "${BINARIES_DIR}/retroarch";then CORE_SCRIPT="${CORE_NAME}.sh" touch $RA_WDIR/"${CORE_SCRIPT}" echo -e "#!/bin/sh\n/mnt/emus/retroarch/retroarch -L ${CORE_FILE} \"\$1\"" > $RA_WDIR/"${CORE_SCRIPT}" + chmod +x $RA_WDIR/"${CORE_SCRIPT}" # RA_LDIR="${BINARIES_DIR}/main/gmenu2x/sections/cores" # CORE_LINK="zblank.${CORE_NAME}.ra" # touch $RA_LDIR/"${CORE_LINK}" diff --git a/configs/miyoo_musl_defconfig b/configs/miyoo_musl_defconfig index 7c05e3b3..0f1e1e5b 100644 --- a/configs/miyoo_musl_defconfig +++ b/configs/miyoo_musl_defconfig @@ -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}" diff --git a/configs/miyoo_uclibc_defconfig b/configs/miyoo_uclibc_defconfig index dbafc179..27a0ad44 100644 --- a/configs/miyoo_uclibc_defconfig +++ b/configs/miyoo_uclibc_defconfig @@ -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}"