20240821给飞凌OK3588-C的核心板刷Rockchip原厂的Buildroot并挂载1TB的exFAT格式的TF卡

fdisk -l

df -h

df -t

df -T

mount

20240821给飞凌OK3588-C的核心板刷Rockchip原厂的Buildroot并挂载1TB的exFAT格式的TF卡

2024/8/21 18:06

【切记,对于Rockchip原厂的Buildroot,如果你没有针对性的适配DTS:修改其中的GPIO口供电,需要使用鼓风机强制散热!且不能长期使用。】

百度:buildroot exFAT fuse

libfuse3 exFAT

插1TB的TF卡之后的dmesg:

110.281840\] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10 \[ 111.345329\] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1 \[ 116.015028\] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0 \[ 116.015038\] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10 \[ 116.051118\] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22) \[ 116.051157\] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator \[ 116.221066\] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0) \[ 116.481137\] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 215 \[ 116.481189\] mmc1: new ultra high speed SDR104 SDXC card at address 0001 \[ 116.482269\] mmcblk1: mmc1:0001 FG8Y7 955 GiB \[ 116.486790\] dwmmc_rockchip fe2d0000.mmc: No normal pinctrl state \[ 116.486822\] dwmmc_rockchip fe2d0000.mmc: No idle pinctrl state \[ 116.486952\] dwmmc_rockchip fe2d0000.mmc: IDMAC supports 32-bit address mode. \[ 116.486978\] dwmmc_rockchip fe2d0000.mmc: Using internal DMA controller. \[ 116.486989\] dwmmc_rockchip fe2d0000.mmc: Version ID is 270a \[ 116.487016\] dwmmc_rockchip fe2d0000.mmc: DW MMC controller at irq 92,32 bit host data width,256 deep fifo \[ 117.078678\] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1 \[ 121.747481\] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0 \[ 121.747491\] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10 \[ 122.811987\] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1 root@rk3588-buildroot:/# ![](https://i-blog.csdnimg.cn/direct/e23cf50c01c04669942c40edc399e59c.png) ![](https://i-blog.csdnimg.cn/direct/cc6809a9bd4f450a820558ca415b604a.png) ![](https://i-blog.csdnimg.cn/direct/25e11381e65148bd9342768c69267d47.png) ![](https://i-blog.csdnimg.cn/direct/a40ddaf06a664dbe80af0b80c7074237.png) ![](https://i-blog.csdnimg.cn/direct/0097add2d8c8411ca5e11f980d233588.png) ![](https://i-blog.csdnimg.cn/direct/2c5a4c2fad864cffa0b477773bc1051c.png) ![](https://i-blog.csdnimg.cn/direct/ac629ef4d1dd4ff5beb509162939ef95.png) ![](https://i-blog.csdnimg.cn/direct/33d7af2b7218426aaf6cb83a05ce8f23.png) 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): 39470000-0000-4d03-8000-6ab500006d64

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
124180 cylinders, 256 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk1p1 ff 1023,255,63 1023,255,63 4294967295 4294967293 4294967295 2047G ff Unknown
/dev/mmcblk1p2 ff 1023,255,63 1023,255,63 4294967295 4294967293 4294967295 2047G ff Unknown
/dev/mmcblk1p3 ff 1023,255,63 1023,255,63 4294967295 4294967293 4294967295 2047G ff Unknown
/dev/mmcblk1p4 ff 1023,255,63 1023,255,63 4294967295 2559274237 2559274239 1220G ff Unknown
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/root 14G 814M 13G 7% /

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 192K 3.9G 1% /var/log

tmpfs 3.9G 0 3.9G 0% /dev/shm

/dev/mmcblk0p7 121M 12M 103M 11% /oem

/dev/mmcblk0p8 42G 299K 42G 1% /userdata
/dev/mmcblk1 955G 502G 454G 53% /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 832660 13009536 7% /

devtmpfs devtmpfs 3986812 8 3986804 1% /dev

tmpfs tmpfs 4055676 104 4055572 1% /tmp

tmpfs tmpfs 4055676 380 4055296 1% /run

tmpfs tmpfs 4055676 192 4055484 1% /var/log

tmpfs tmpfs 4055676 0 4055676 0% /dev/shm

/dev/mmcblk0p7 ext4 123509 11913 104929 11% /oem

/dev/mmcblk0p8 ext4 43839502 299 43220459 1% /userdata
/dev/mmcblk1 fuseblk 1001390080 526333184 475056896 53% /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,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

root@rk3588-buildroot:/#

root@rk3588-buildroot:/#

root@rk3588-buildroot:/#

root@rk3588-buildroot:/# ls -l

total 128618

-rw-r--r-- 1 root root 22604968 Jan 1 1970 8530-4K-NV16-180-3fps.mp4

-rw-r--r-- 1 root root 75779706 Jan 1 1970 8530-4K-NV16-900-3fps.mp4

drwxrwxrwx 2 root root 4096 Jan 1 00:02 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:01 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

-rw-r--r-- 1 root root 16588800 Jan 1 1970 nv12.yuv

-rw-r--r-- 1 root root 16588800 Jan 1 1970 nv16.yuv

drwxr-xr-x 3 root root 1024 Jan 1 00:00 oem

drwxr-xr-x 3 root root 4096 Jun 1 2024 opt

-rw-r--r-- 1 root root 0 Jan 1 00:00 output.yuv

dr-xr-xr-x 266 root root 0 Jan 1 00:00 proc

-rwxrwxrwx 1 root root 69720 Aug 21 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:01 root

drwxr-xr-x 11 root root 520 Jan 1 00:01 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# ls -l

total 6211584

drwxrwxrwx 1 root root 262144 Aug 16 2024 20240816的FriendlyELEC-RK3588

drwxrwxrwx 1 root root 262144 Aug 16 2024 20240816的cdrom-rd-rk3588s-ahd

drwxrwxrwx 1 root root 262144 Aug 21 2024 'System Volume Information'

-rwxrwxrwx 1 root root 24 Aug 21 2024 exFAT.txt

-rwxrwxrwx 1 root root 6359421848 Aug 15 2024 fpga110000-105-1440p30.mp4

root@rk3588-buildroot:/sdcard#

root@rk3588-buildroot:/sdcard#

root@rk3588-buildroot:/sdcard#

root@rk3588-buildroot:/sdcard# gs

gsettings gst-discoverer-1.0 gst-launch-1.0 gst-stats-1.0 gst-typefind-1.0

gst-device-monitor-1.0 gst-inspect-1.0 gst-play-1.0 gst-transcoder-1.0

root@rk3588-buildroot:/sdcard# gst-play-1.0 fpga110000-105-1440p30.mp4

后记:

看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_配置指南_v1.6.pdf

《T113_Linux_配置指南_v1.6.pdf》

【小知识/冷知识:】
对于TF卡/SD卡联盟【移动存储,包括U盘和移动硬盘】,微软贡献了文件系统的专利。
对于软盘大小的介质,使用FAT12文件系统。
对于100MB大小的介质,使用FAT16?
对于40GB大小的介质,使用FAT32。
对于更大容量的介质,微软导入了exFAT。

相关推荐
一点.点30 分钟前
针对Python开发的工具推荐及分析,涵盖集成开发环境(IDE)、轻量级工具、在线开发平台、代码管理工具等)
开发语言·ide·python·开发工具
老李不敲代码31 分钟前
JavaScript性能优化实战大纲
开发语言·javascript·性能优化
明月看潮生2 小时前
青少年编程与数学 02-020 C#程序设计基础 06课题、运算符和表达式
开发语言·青少年编程·c#·编程与数学
androidwork2 小时前
Kotlin全栈工程师转型路径
android·开发语言·kotlin
不二狗4 小时前
每日算法 -【Swift 算法】实现回文数判断!
开发语言·算法·swift
csdn_aspnet5 小时前
Java 程序求圆弧段的面积(Program to find area of a Circular Segment)
java·开发语言
进击的_鹏7 小时前
【C++】红黑树的实现
开发语言·c++
且撷相思红豆枝7 小时前
一种比较精简的协议
c语言·网络·嵌入式硬件·esp32
无心水7 小时前
【后端高阶面经:MongoDB篇】41、MongoDB 是怎么做到高可用的?
java·开发语言·mongodb·java面试·高可用·后端高阶面经·后端工程师的高阶面经
无心水7 小时前
【后端高阶面经:MongoDB篇】40、怎么优化MongoDB的查询性能?
java·开发语言·mongodb·java面试·后端高阶面经·后端工程师的高阶面经·java高阶面经