ext4.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 6df5912f654a6025be5f509d9bcd428830311e9c Mon Sep 17 00:00:00 2001
  2. From: Ley Foon Tan <leyfoon.tan@starfivetech.com>
  3. Date: Thu, 26 Aug 2021 15:44:47 +0800
  4. Subject: [PATCH] riscv: starfive: Enable EXT4 rootfs support
  5. Enable EXT4 rootfs support. Ext4 partition is located at SD card's partition 2.
  6. Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
  7. ---
  8. arch/riscv/boot/dts/starfive/dubhe_fpga.dts | 2 +-
  9. arch/riscv/configs/starfive_dubhe_defconfig | 7 +++----
  10. 2 files changed, 4 insertions(+), 5 deletions(-)
  11. diff --git a/arch/riscv/boot/dts/starfive/dubhe_fpga.dts b/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
  12. index 73ac5029e3c8..ed0f1cc1e668 100644
  13. --- a/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
  14. +++ b/arch/riscv/boot/dts/starfive/dubhe_fpga.dts
  15. @@ -11,7 +11,7 @@
  16. };
  17. chosen {
  18. - bootargs = "console=ttySIF0,115200 earlycon=sbi";
  19. + bootargs = "console=ttySIF0,115200 earlycon=sbi root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
  20. };
  21. cpus {
  22. diff --git a/arch/riscv/configs/starfive_dubhe_defconfig b/arch/riscv/configs/starfive_dubhe_defconfig
  23. index 8f16be046a3a..b92979f53f73 100644
  24. --- a/arch/riscv/configs/starfive_dubhe_defconfig
  25. +++ b/arch/riscv/configs/starfive_dubhe_defconfig
  26. @@ -14,7 +14,6 @@ CONFIG_NAMESPACES=y
  27. CONFIG_USER_NS=y
  28. CONFIG_CHECKPOINT_RESTORE=y
  29. CONFIG_BLK_DEV_INITRD=y
  30. -CONFIG_INITRAMFS_SOURCE="rootfs.cpio"
  31. CONFIG_EXPERT=y
  32. CONFIG_SOC_STARFIVE_DUBHE=y
  33. CONFIG_SMP=y
  34. @@ -82,6 +81,9 @@ CONFIG_GOLDFISH=y
  35. CONFIG_RPMSG_CHAR=y
  36. CONFIG_RPMSG_VIRTIO=y
  37. CONFIG_RESET_CONTROLLER=y
  38. +CONFIG_EXT2_FS=y
  39. +CONFIG_EXT3_FS=y
  40. +CONFIG_EXT4_FS_POSIX_ACL=y
  41. CONFIG_AUTOFS4_FS=y
  42. CONFIG_MSDOS_FS=y
  43. CONFIG_VFAT_FS=y
  44. @@ -108,11 +110,8 @@ CONFIG_NLS_CODEPAGE_1251=y
  45. CONFIG_NLS_ASCII=y
  46. CONFIG_NLS_ISO8859_1=y
  47. CONFIG_NLS_UTF8=y
  48. -CONFIG_CRYPTO=y
  49. -CONFIG_CRYPTO_CRC32C=y
  50. CONFIG_CRYPTO_USER_API_HASH=y
  51. CONFIG_CRYPTO_DEV_VIRTIO=y
  52. -CONFIG_CRC16=y
  53. CONFIG_PRINTK_TIME=y
  54. CONFIG_DEBUG_FS=y
  55. CONFIG_SOFTLOCKUP_DETECTOR=y
  56. --
  57. GitLab