fdisk -l
df -h
df -t
df -T
mount
默认/自动挂载在/mnt/sdcard目录、/sdcard目录
20240822给飞凌OK3588-C的核心板刷Rockchip原厂的Buildroot并挂载1TB的ext4格式的TF卡
2024/8/22 19:45
【切记,对于Rockchip原厂的Buildroot,如果你没有针对性的适配DTS:修改其中的GPIO口供电,需要使用鼓风机强制散热!且不能长期使用。】
百度:buildroot ext4
libfuse3 ext4
插1TB的TF卡之后的dmesg:
[ 220.278488] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 224.948286] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 224.948297] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 226.011809] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 229.473754] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[ 229.473792] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[ 229.650154] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 229.781357] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 215
[ 229.781391] mmc1: new ultra high speed SDR104 SDXC card at address 0001
[ 229.781993] mmcblk1: mmc1:0001 FG8Y7 955 GiB
[ 229.786127] dwmmc_rockchip fe2d0000.mmc: No normal pinctrl state
[ 229.786159] dwmmc_rockchip fe2d0000.mmc: No idle pinctrl state
[ 229.786261] dwmmc_rockchip fe2d0000.mmc: IDMAC supports 32-bit address mode.
[ 229.786301] dwmmc_rockchip fe2d0000.mmc: Using internal DMA controller.
[ 229.786312] dwmmc_rockchip fe2d0000.mmc: Version ID is 270a
[ 229.786340] dwmmc_rockchip fe2d0000.mmc: DW MMC controller at irq 92,32 bit host data width,256 deep fifo
[ 229.913422] EXT4-fs (mmcblk1): mounted filesystem with ordered data mode. Opts: (null)
[ 230.681974] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 230.681988] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 231.745154] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
root@rk3588-buildroot:/#
串口终端的LOG:
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# [ 224.948286] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 224.948297] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 226.011809] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 229.473754] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[ 229.473792] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[ 229.650154] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 229.781357] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 215
[ 229.781391] mmc1: new ultra high speed SDR104 SDXC card at address 0001
[ 229.781993] mmcblk1: mmc1:0001 FG8Y7 955 GiB
[ 229.786127] dwmmc_rockchip fe2d0000.mmc: No normal pinctrl state
[ 229.786159] dwmmc_rockchip fe2d0000.mmc: No idle pinctrl state
[ 229.786261] dwmmc_rockchip fe2d0000.mmc: IDMAC supports 32-bit address mode.
[ 229.786301] dwmmc_rockchip fe2d0000.mmc: Using internal DMA controller.
[ 229.786312] dwmmc_rockchip fe2d0000.mmc: Version ID is 270a
[ 229.786340] dwmmc_rockchip fe2d0000.mmc: DW MMC controller at irq 92,32 bit host data width,256 deep fifo
[ 229.913422] EXT4-fs (mmcblk1): mounted filesystem with ordered data mode. Opts: (null)
[ 230.681974] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 230.681988] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 231.745154] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 236.413941] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
LOG:
Microsoft Windows [版本 10.0.22621.3296]
(c) Microsoft Corporation。保留所有权利。
C:\Users\QQ>adb shell
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# fdisk -l
Found valid GPT with protective MBR; using GPT
Disk /dev/mmcblk0: 120832000 sectors, 1656M
Logical sector size: 512
Disk identifier (GUID): 11260000-0000-4d6e-8000-7f9800006c8b
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 120831966
Number Start (sector) End (sector) Size Name
1 16384 24575 4096K uboot
2 24576 32767 4096K misc
3 32768 163839 64.0M boot
4 163840 425983 128M recovery
5 425984 491519 32.0M backup
6 491520 29851647 14.0G rootfs
7 29851648 30113791 128M oem
8 30113792 120831935 43.2G userdata
Disk /dev/mmcblk1: 955 GB, 1025423441920 bytes, 2002780160 sectors
31293440 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Disk /dev/mmcblk1 doesn't contain a valid partition table
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 14G 711M 13G 6% /
devtmpfs 3.9G 8.0K 3.9G 1% /dev
tmpfs 3.9G 104K 3.9G 1% /tmp
tmpfs 3.9G 380K 3.9G 1% /run
tmpfs 3.9G 204K 3.9G 1% /var/log
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/mmcblk0p7 121M 12M 103M 11% /oem
/dev/mmcblk0p8 42G 301K 42G 1% /userdata
/dev/mmcblk1 939G 90G 802G 11% /mnt/sdcard
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# df -t
df: option requires an argument -- 't'
Try 'df --help' for more information.
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/root ext4 14451000 727384 13114812 6% /
devtmpfs devtmpfs 3986812 8 3986804 1% /dev
tmpfs tmpfs 4055676 104 4055572 1% /tmp
tmpfs tmpfs 4055676 380 4055296 1% /run
tmpfs tmpfs 4055676 208 4055468 1% /var/log
tmpfs tmpfs 4055676 0 4055676 0% /dev/shm
/dev/mmcblk0p7 ext4 123509 11913 104929 11% /oem
/dev/mmcblk0p8 ext4 43839502 301 43220457 1% /userdata
/dev/mmcblk1 ext4 984546644 93836776 840623980 11% /mnt/sdcard
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# mount
/dev/mmcblk0p6 on / type ext4 (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=3986812k,nr_inodes=996703,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime,size=4055676k,nr_inodes=1013919)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,size=4055676k,nr_inodes=1013919,mode=755)
tmpfs on /var/log type tmpfs (rw,nosuid,nodev,relatime,size=4055676k,nr_inodes=1013919,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=4055676k,nr_inodes=1013919)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
/dev/mmcblk0p7 on /oem type ext4 (rw,relatime)
/dev/mmcblk0p8 on /userdata type ext4 (rw,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/mmcblk1 on /mnt/sdcard type ext4 (rw,nodev,noexec,noatime,nodiratime)
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# cd /sdcard
root@rk3588-buildroot:/sdcard# ls -l
total 93836764
-rwx------ 1 dbus dbus 36691949769 May 16 2024 3588Lv1.21repo230810.tar.gz
-rw-rw-r-- 1 dbus dbus 32583801475 Jul 19 2024 LV106_rk3588_20230310_1121finish编译完成了.tgz
-rwx------ 1 dbus dbus 562665887 Jul 9 2024 aarch64-buildroot-linux-gnu_sdk-buildroot.tar.gz
-rwx------ 1 dbus dbus 338 Aug 21 2024 cross.cmake
-rwx------ 1 dbus dbus 3160816173 Jul 22 2024 fpga91000-9500-1080p50.mp4
drwx------ 2 root root 16384 Aug 22 2024 lost+found
-rw-rw-r-- 1 dbus dbus 21151339873 Jun 1 2024 repo_RK3588_Buildroot20240508_1644finish.tgz
-rwx------ 1 dbus dbus 74704 Aug 21 2024 rk_mpi_vi_test
-rwx------ 1 dbus dbus 967377482 Aug 20 2024 update01原始EVB7.img
-rwx------ 1 dbus dbus 965286474 May 8 2024 update神州数码.img
-rwxrwxrwx 1 dbus dbus 26 Aug 2 2024 wenyuanbo.txt
-rwxrwxrwx 1 dbus dbus 0 Aug 2 2024 '新建 文本文档.txt'
-rwx------ 1 dbus dbus 572 Aug 12 2024 红外.txt
-rwx------ 1 dbus dbus 1233 Aug 10 2024 荣品的网盘资料下载.txt
-rwx------ 1 dbus dbus 5453073 Jun 24 2024 隐秘拍摄v1.3.0.8专业破解版ymps_24416.apk
root@rk3588-buildroot:/sdcard#
root@rk3588-buildroot:/sdcard# gst-play-1.0 fpga91000-9500-1080p50.mp4
Press 'k' to see a list of keyboard shortcuts.
Now playing /sdcard/fpga91000-9500-1080p50.mp4
Redistribute latency...
Redistribute latency...
Redistribute latency...
后记:
看Buildroot对exFAT/NTFS的支持,可以出现在内核/driver层,也可以在应用层/用户控件。
1、内核:
Z:\repo_RK3588_Buildroot20240508\kernel\.config
#
# DOS/FAT/EXFAT/NT Filesystems
#
CONFIG_FAT_FS=y
# CONFIG_MSDOS_FS is not set
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=936
CONFIG_FAT_DEFAULT_IOCHARSET="utf8"
# CONFIG_FAT_DEFAULT_UTF8 is not set
# CONFIG_EXFAT_FS is not set
CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
# CONFIG_NTFS_RW is not set
# end of DOS/FAT/EXFAT/NT Filesystems
2、应用层:(exFAT和NTFS都有支持!)
Z:\repo_RK3588_Buildroot20240508\buildroot\output\rockchip_rk3588\.config
#
# e2scrub needs bash, coreutils, lvm2, and util-linux
#
# BR2_PACKAGE_E2FSPROGS_E4DEFRAG is not set
BR2_PACKAGE_E2FSPROGS_FSCK=y
# BR2_PACKAGE_E2FSPROGS_FUSE2FS is not set
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
# BR2_PACKAGE_E2TOOLS is not set
# BR2_PACKAGE_ECRYPTFS_UTILS is not set
# BR2_PACKAGE_EROFS_UTILS is not set
BR2_PACKAGE_EXFAT=y
BR2_PACKAGE_EXFAT_UTILS=y
# BR2_PACKAGE_EXFATPROGS is not set
# BR2_PACKAGE_F2FS_TOOLS is not set
BR2_PACKAGE_FATRESIZE=y
# BR2_PACKAGE_FIRMWARE_UTILS is not set
# BR2_PACKAGE_FLASHBENCH is not set
# BR2_PACKAGE_FSCRYPTCTL is not set
# BR2_PACKAGE_FUSE_OVERLAYFS is not set
# BR2_PACKAGE_FWUP is not set
# BR2_PACKAGE_GENEXT2FS is not set
# BR2_PACKAGE_GENPART is not set
# BR2_PACKAGE_GENROMFS is not set
# BR2_PACKAGE_IMX_USB_LOADER is not set
# BR2_PACKAGE_MMC_UTILS is not set
# BR2_PACKAGE_MTD is not set
# BR2_PACKAGE_MTOOLS is not set
# BR2_PACKAGE_NFS_UTILS is not set
# BR2_PACKAGE_NILFS_UTILS is not set
BR2_PACKAGE_NTFS_3G=y
# BR2_PACKAGE_NTFS_3G_ENCRYPTED is not set
BR2_PACKAGE_NTFS_3G_NTFSPROGS=y
# BR2_PACKAGE_SP_OOPS_EXTRACT is not set
# BR2_PACKAGE_SQUASHFS is not set
# BR2_PACKAGE_SSHFS is not set
# BR2_PACKAGE_UDFTOOLS is not set
# BR2_PACKAGE_UNIONFS is not set
# BR2_PACKAGE_XFSPROGS is not set
参考资料:
https://blog.csdn.net/xiaosongshine/article/details/98846549
『开发技术』Ubuntu支持exfat格式方法
推荐u盘使用exfat格式,为什么呢?两个原因:
1、三大主流操作系统(Linux、Mac、Windows)都支持exfat格式。
2、exfat支持大于4G的文件。
在ubuntu下,由于版权的原因(据说),默认不支持exfat格式的u盘,不过可以很方便就能添加对exfat的支持:
对于ubuntu 14.04以上版本,直接运行下面的命令就可以了:
sudo apt-get install exfat-utils
http://file.whycan.com/files/202304/T113-I/T113_Linux_%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97_v1.6.pdf
《T113_Linux_配置指南_v1.6.pdf》
【小知识/冷知识:】
对于TF卡/SD卡联盟【移动存储,包括U盘和移动硬盘】,微软贡献了文件系统的专利。
对于软盘大小的介质,使用FAT12文件系统。
对于100MB大小的介质,使用FAT16?
对于40GB大小的介质,使用FAT32。
对于更大容量的介质,微软导入了exFAT。
https://item.jd.com/100128085704.html
三星(SAMSUNG)1TB TF(MicroSD)存储卡 高速PRO蓝卡 U3A2V30 兼容Steamdeck游戏机无人机运动相机 读速180MB/s