Skip to content

Commit

Permalink
rtl8730e: Define mount point for userfs according to internal/externa…
Browse files Browse the repository at this point in the history
…l flash

In case of board with second(external) flash, userfs is located in second flash.
Most of codes using userfs are implemented with mount point, "/mnt".
So we need to set mount point as "/mnt" for userfs in second flash for compatibility.
  • Loading branch information
jeongarmy authored and Taejun-Kwon committed Sep 3, 2024
1 parent 173e98a commit 9615bd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/configs/rtl8730e/loadable_ext/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ CONFIG_FLASH_VSTART_LOADABLE=0xe000000
CONFIG_BOARD_FLASH_32M=y
CONFIG_SECOND_FLASH_START_ADDR=0x0A000000
CONFIG_RTL8730E_BOARD_REVISION=7
CONFIG_USERFS_MNTPT="/mnt0"
CONFIG_USERFS_EXT_MNTPT="/mnt"

#
# SPI Flash driver
Expand Down
13 changes: 13 additions & 0 deletions os/board/rtl8730e/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ config FLASH_SIZE
A size of flash (in bytes).
This is fixed value, so user doesn't need to change it.

config USERFS_MNTPT
string
default "/mnt" if AUTOMOUNT_USERFS && !SECOND_FLASH_PARTITION
default "/mnt0" if AUTOMOUNT_USERFS && SECOND_FLASH_PARTITION
help
A mount point name of first flash partition.

config USERFS_EXT_MNTPT
string
default "/mnt" if AUTOMOUNT_USERFS && SECOND_FLASH_PARTITION
help
A mount point name of second flash partition.

config FLASH_STATUS_BITS
hex
default 0x28
Expand Down

0 comments on commit 9615bd9

Please sign in to comment.