fdisk -l
df -h
df -t
df -T
mount
默认/自动挂载在/mnt/sdcard目录、/sdcard目录
20240822给飞凌OK3588-C的核心板刷Rockchip原厂的Buildroot并挂载1TB的NTFS格式的TF卡
2024/8/22 17:38
【切记,对于Rockchip原厂的Buildroot,如果你没有针对性的适配DTS:修改其中的GPIO口供电,需要使用鼓风机强制散热!且不能长期使用。】
百度:buildroot NTFS fuse
NTFS_3G NTFS
插1TB的TF卡之后的dmesg:
[ 277.612604] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 282.281386] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 282.281397] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 283.144877] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[ 283.144916] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[ 283.313355] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 283.345429] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 283.442086] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 218
[ 283.442123] mmc1: new ultra high speed SDR104 SDXC card at address 0001
[ 283.442713] mmcblk1: mmc1:0001 FG8Y7 955 GiB
[ 283.446851] dwmmc_rockchip fe2d0000.mmc: No normal pinctrl state
[ 283.446882] dwmmc_rockchip fe2d0000.mmc: No idle pinctrl state
[ 283.446980] dwmmc_rockchip fe2d0000.mmc: IDMAC supports 32-bit address mode.
[ 283.447004] dwmmc_rockchip fe2d0000.mmc: Using internal DMA controller.
[ 283.447015] dwmmc_rockchip fe2d0000.mmc: Version ID is 270a
[ 283.447042] dwmmc_rockchip fe2d0000.mmc: DW MMC controller at irq 92,32 bit host data width,256 deep fifo
[ 288.015427] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 288.015441] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 289.079271] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
串口打印:
[ 277.612604] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 282.281386] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 282.281397] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 283.144877] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[ 283.144916] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[ 283.313355] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 283.345429] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 283.442086] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 218
[ 283.442123] mmc1: new ultra high speed SDR104 SDXC card at address 0001
[ 283.442713] mmcblk1: mmc1:0001 FG8Y7 955 GiB
[ 283.446851] dwmmc_rockchip fe2d0000.mmc: No normal pinctrl state
[ 283.446882] dwmmc_rockchip fe2d0000.mmc: No idle pinctrl state
[ 283.446980] dwmmc_rockchip fe2d0000.mmc: IDMAC supports 32-bit address mode.
[ 283.447004] dwmmc_rockchip fe2d0000.mmc: Using internal DMA controller.
[ 283.447015] dwmmc_rockchip fe2d0000.mmc: Version ID is 270a
[ 283.447042] dwmmc_rockchip fe2d0000.mmc: DW MMC controller at irq 92,32 bit host data width,256 deep fifo
[ 288.015427] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 288.015441] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 289.079271] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 293.749145] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 293.749156] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 294.812604] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
通过ADB SHELL检测1TB的TF卡的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
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk1p1 80,13,10 371,101,51 1920221984 3736432267 1816210284 866G 72 Unknown
/dev/mmcblk1p2 74 357,43,4 367,32,52 1936028192 3889681299 1953653108 931G 6c Unknown
/dev/mmcblk1p3 0d 0,10,0 0,0,0 0 0 0 0 0 Empty
/dev/mmcblk1p4 0,0,0 0,0,0 27722122 27722568 447 223K 0 Empty
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 108K 3.9G 1% /tmp
tmpfs 3.9G 380K 3.9G 1% /run
tmpfs 3.9G 216K 3.9G 1% /var/log
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/mmcblk0p7 121M 12M 103M 11% /oem
/dev/mmcblk0p8 42G 297K 42G 1% /userdata
/dev/mmcblk1 955G 948G 7.9G 100% /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 727112 13115084 6% /
devtmpfs devtmpfs 3986812 8 3986804 1% /dev
tmpfs tmpfs 4055676 108 4055568 1% /tmp
tmpfs tmpfs 4055676 380 4055296 1% /run
tmpfs tmpfs 4055676 216 4055460 1% /var/log
tmpfs tmpfs 4055676 0 4055676 0% /dev/shm
/dev/mmcblk0p7 ext4 123509 11913 104929 11% /oem
/dev/mmcblk0p8 ext4 43839502 297 43220461 1% /userdata
/dev/mmcblk1 fuseblk 1001390076 993196560 8193516 100% /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 fuseblk (rw,nodev,noexec,noatime,user_id=0,group_id=0,allow_other,blksize=4096)
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# ls -l
total 86
drwxrwxrwx 2 root root 4096 Jan 1 00:05 app
lrwxrwxrwx 1 root root 7 Jun 1 2024 bin -> usr/bin
-rw-r--r-- 1 root root 489 May 20 2024 busybox.fragment
lrwxrwxrwx 1 root root 8 Jun 1 2024 data -> userdata
drwxr-xr-x 14 root root 4000 Jan 1 00:04 dev
drwxr-xr-x 23 root root 4096 Jan 1 00:00 etc
drwxr-xr-x 2 root root 4096 Jun 1 2024 info
lrwxrwxrwx 1 root root 7 Jun 1 2024 lib -> usr/lib
lrwxrwxrwx 1 root root 3 Jun 1 2024 lib64 -> lib
lrwxrwxrwx 1 root root 11 Jun 1 2024 linuxrc -> bin/busybox
drwx------ 2 root root 16384 Jun 1 2024 lost+found
drwxr-xr-x 11 root root 4096 Jun 1 2024 media
drwxr-xr-x 5 root root 4096 Jun 1 2024 mnt
drwxr-xr-x 3 root root 1024 Jan 1 00:00 oem
drwxr-xr-x 3 root root 4096 Jun 1 2024 opt
dr-xr-xr-x 268 root root 0 Jan 1 00:00 proc
-rwxrwxrwx 1 root root 19024 Aug 22 2024 rk_mpi_vi_test
drwxr-xr-x 15 root root 4096 Jun 1 2024 rockchip-test
drwx------ 2 root root 4096 Jan 1 00:02 root
drwxr-xr-x 11 root root 520 Jan 1 00:04 run
lrwxrwxrwx 1 root root 8 Jun 1 2024 sbin -> usr/sbin
lrwxrwxrwx 1 root root 10 Jun 1 2024 sdcard -> mnt/sdcard
dr-xr-xr-x 14 root root 0 Jan 1 00:00 sys
drwxr-xr-x 3 root root 4096 Jun 1 2024 system
drwxrwxrwt 6 root root 180 Jan 1 00:00 tmp
lrwxrwxrwx 1 root root 9 Jun 1 2024 udisk -> mnt/udisk
drwxr-xr-x 4 root root 1024 Jan 1 00:00 userdata
drwxr-xr-x 7 root root 4096 Jun 1 2024 usr
drwxr-xr-x 6 root root 4096 Jun 1 2024 var
lrwxrwxrwx 1 root root 6 Jun 1 2024 vendor -> system
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# cd sdcard
root@rk3588-buildroot:/sdcard#
root@rk3588-buildroot:/sdcard# ls -l
total 61600784
drwxrwxrwx 1 root root 0 Aug 22 2024 0000等待删除2中断了
-rwxrwxrwx 1 root root 18906585152 Aug 20 2024 1Rockchip_RK3588_Linux5.10_SDK_repo240508.tar.gz
drwxrwxrwx 1 root root 0 Aug 22 2024 20230517-coolpi
drwxrwxrwx 1 root root 0 Aug 22 2024 20240417荣品cdrom-rd-rk3588
drwxrwxrwx 1 root root 0 Aug 22 2024 20240417荣品cdrom-rd-rk3588b
-rwxrwxrwx 1 root root 18906585152 Aug 20 2024 2Rockchip_RK3588_Linux5.10_SDK_repo240508二号原厂.tar.gz
-rwxrwxrwx 1 root root 18906585152 Aug 20 2024 3Rockchip_RK3588_Linux5.10_SDK_repo240508原厂.tar.gz
drwxrwxrwx 1 root root 0 Aug 22 2024 '51单片机小系统板 STC89C52 STC51 STC89C52RC核心开发学习板'
drwxrwxrwx 1 root root 0 Aug 22 2024 BaiduNetdiskDownload
drwxrwxrwx 1 root root 0 Aug 21 2024 'System Volume Information'
-rwxrwxrwx 1 root root 6359421848 Aug 15 2024 fpga110000-105-1440p30.mp4
drwxrwxrwx 1 root root 4096 Aug 22 2024 '【20231031】Adobe 全家桶 2024版'
drwxrwxrwx 1 root root 4096 Aug 22 2024 嵌入式物联网单片机项目实战开发例程
drwxrwxrwx 1 root root 4096 Aug 22 2024 嵌入式物联网学习资料持续更新中
drwxrwxrwx 1 root root 4096 Aug 22 2024 移远模块资料
root@rk3588-buildroot:/sdcard#
root@rk3588-buildroot:/sdcard# g
gapplication generate_logs glmark2-es2-drm gst-device-monitor-1.0 gst-transcoder-1.0
gatttool getopt glmark2-es2-wayland gst-discoverer-1.0 gst-typefind-1.0
gdbus getopts grep gst-inspect-1.0 gunzip
gdk-pixbuf-csource getty gresource gst-launch-1.0 gzip
gdk-pixbuf-pixdata gio groups gst-play-1.0
gdk-pixbuf-query-loaders gio-querymodules gsettings gst-stats-1.0
root@rk3588-buildroot:/sdcard# gst-play-1.0 fpga110000-105-1440p30.mp4
Press 'k' to see a list of keyboard shortcuts.
Now playing /sdcard/fpga110000-105-1440p30.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。
【不过对于移动硬盘,使用NTFS文件系统的兼容性更好?^_更加通用!】