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:/#


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_%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。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值