fdisk -l
df -h
df -t
df -T
mount
20240821让飞凌的OK3588-C的核心板在Linux R4下挂载1TB的exFAT格式的TF卡
2024/8/21 19:47
百度:rk3588 buildroot exFAT
mount: mounting /dev/mmcblk1p1 on /mnt failed: Invalid argument
Disk /dev/mmcblk1: 955 GB, 1025423441920 bytes, 2002780160 sectors
Rockchip RK3588 SD卡 升级
RK3588 tf卡 刷机 步骤
RK3588 TF卡 刷机STEP-BY-STEP
Z:\OK3588_Linux_fs\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
Z:\OK3588_Linux_fs\kernel\arch\arm64\configs\OK3588-Linux_defconfig
CONFIG_ANDROID=y
CONFIG_ROCKCHIP_EFUSE=y
CONFIG_ROCKCHIP_OTP=y
CONFIG_TEE=y
CONFIG_OPTEE=y
CONFIG_RK_HEADSET=y
CONFIG_ROCKCHIP_RKNPU=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_XFS_FS=y
# CONFIG_DNOTIFY is not set
CONFIG_FUSE_FS=y
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=936
CONFIG_FAT_DEFAULT_IOCHARSET="utf8"
【打开这里】
CONFIG_EXFAT_FS=y
CONFIG_NTFS_FS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_EFIVAR_FS=y
CONFIG_JFFS2_FS=y
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_ADVANCED_COMPR=y
CONFIG_SQUASHFS=y
CONFIG_SQUASHFS_XZ=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_XATTR=y
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
CONFIG_SQUASHFS_ZSTD=y
CONFIG_SQUASHFS_EMBEDDED=y
CONFIG_PSTORE=y
增加之后了:
Z:\OK3588_Linux_fs\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=y
CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"
CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
# CONFIG_NTFS_RW is not set
# end of DOS/FAT/EXFAT/NT Filesystems
插卡后的dmesg2:
[ 84.263723] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 84.263729] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 85.320074] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 89.996930] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 89.996935] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 91.053485] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 91.487405] vccio_sd_s0: ramp_delay not set
[ 91.507157] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 91.764185] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 221
[ 91.764197] mmc1: new ultra high speed SDR104 SDXC card at address 0001
[ 91.765510] mmcblk1: mmc1:0001 FG8Y7 955 GiB
[ 91.783217] typec_fusb302 2-0022: Looking up vbus-supply from device tree
[ 91.821882] FAT-fs (mmcblk1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 91.822359] exFAT-fs (mmcblk1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 95.731443] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 95.731449] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
[ 96.786952] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_audio_interrupts_setup: 1
[ 99.850832] adbd (1570): /proc/1570/oom_adj is deprecated, please use /proc/1570/oom_score_adj instead.
[ 101.463607] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing signal not lock, tmds_clk_ratio:0
[ 101.463612] fdee0000.hdmirx-controller: hdmirx_wait_lock_and_get_timing mu_st:0x0, scdc_st:0x0, dma_st10:0x10
root@ok3588:/#
插1TB的TF卡后比对查找:
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# fdisk -l
Found valid GPT with protective MBR; using GPT
Disk /dev/mmcblk0: 120832000 sectors, 1656M
Logical sector size: 512
Disk identifier (GUID): b3600000-0000-4574-8000-09f400005d98
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@ok3588:/#
root@ok3588:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 14G 1.3G 12G 10% /
devtmpfs 3.7G 8.0K 3.7G 1% /dev
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 3.8G 468K 3.8G 1% /tmp
tmpfs 3.8G 324K 3.8G 1% /run
/dev/mmcblk0p8 291M 289M 0 100% /userdata
/dev/mmcblk0p7 128M 12M 110M 10% /oem
/dev/mmcblk1 955G 502G 454G 53% /run/media/mmcblk1
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# df -t
df: option requires an argument -- 't'
Try 'df --help' for more information.
root@ok3588:/#
root@ok3588:/# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/root ext4 14425456 1271264 12536856 10% /
devtmpfs devtmpfs 3826732 8 3826724 1% /dev
tmpfs tmpfs 3895660 0 3895660 0% /dev/shm
tmpfs tmpfs 3895660 468 3895192 1% /tmp
tmpfs tmpfs 3895660 324 3895336 1% /run
/dev/mmcblk0p8 ext2 297632 295908 0 100% /userdata
/dev/mmcblk0p7 ext2 130520 12000 111972 10% /oem
/dev/mmcblk1 exfat 1001373696 526316800 475056896 53% /run/media/mmcblk1
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# mount
/dev/root on / type ext4 (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=3826732k,nr_inodes=956683,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=3895660k,nr_inodes=973915,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime,size=3895660k,nr_inodes=973915)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,size=3895660k,nr_inodes=973915,mode=755)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
pstore on /sys/fs/pstore type pstore (rw,relatime)
/dev/mmcblk0p8 on /run/media/mmcblk0p8 type ext2 (rw,relatime)
/dev/mmcblk0p7 on /run/media/mmcblk0p7 type ext2 (rw,relatime)
/dev/mmcblk0p7 on /oem type ext2 (rw,relatime)
/dev/mmcblk0p8 on /userdata type ext2 (rw,relatime)
none on /sys/kernel/config type configfs (rw,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/mmcblk1 on /run/media/mmcblk1 type exfat (rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# ls -l
total 72
drwxr-xr-x 2 root root 4096 Mar 9 2023 bin
-rw-r--r-- 1 root root 351 Mar 9 2023 busybox.fragment
lrwxrwxrwx 1 root root 8 Mar 9 2023 data -> userdata
drwxr-xr-x 14 root root 3860 Jan 1 08:01 dev
drwxr-xr-x 23 root root 4096 Jan 1 08:00 etc
drwxr-xr-x 4 root root 4096 Jan 1 08:00 home
drwxr-xr-x 6 root root 4096 Aug 17 2023 lib
lrwxrwxrwx 1 root root 3 Mar 9 2023 lib64 -> lib
lrwxrwxrwx 1 root root 11 Mar 9 2023 linuxrc -> bin/busybox
drwx------ 2 root root 16384 Mar 9 2023 lost+found
drwxr-xr-x 14 root root 4096 Mar 9 2023 media
lrwxrwxrwx 1 root root 23 Mar 9 2023 misc -> /dev/block/by-name/misc
drwxr-xr-x 4 root root 4096 Mar 9 2023 mnt
drwxr-xr-x 3 root root 4096 Aug 21 2024 oem
drwxr-xr-x 2 root root 4096 Mar 9 2023 opt
dr-xr-xr-x 257 root root 0 Jan 1 08:00 proc
drwx------ 2 root root 4096 Mar 9 2023 root
drwxr-xr-x 7 root root 340 Jan 1 08:00 run
drwxr-xr-x 2 root root 4096 Sep 14 2023 sbin
lrwxrwxrwx 1 root root 10 Mar 9 2023 sdcard -> mnt/sdcard
dr-xr-xr-x 14 root root 0 Jan 1 08:00 sys
drwxrwxrwt 8 root root 440 Jan 1 08:01 tmp
lrwxrwxrwx 1 root root 9 Mar 9 2023 udisk -> mnt/udisk
drwxr-xr-x 5 root root 4096 Jan 1 08:00 userdata
drwxr-xr-x 11 root root 4096 Sep 14 2023 usr
drwxr-xr-x 5 root root 4096 Mar 9 2023 var
root@ok3588:/#
root@ok3588:/# cd run/me
media/ messagebus.pid
root@ok3588:/# cd run/media/mmcblk1/
root@ok3588:/run/media/mmcblk1#
root@ok3588:/run/media/mmcblk1# ls -l
total 2017280
drwxr-xr-x 12 root root 262144 Aug 16 2024 '20240816'$'\347\232\204''FriendlyELEC-RK3588'
drwxr-xr-x 7 root root 262144 Aug 16 2024 '20240816'$'\347\232\204''cdrom-rd-rk3588s-ahd'
drwxr-xr-x 2 root root 262144 Aug 21 2024 'System Volume Information'
-rwxr-xr-x 1 root root 24 Aug 21 2024 exFAT.txt
-rwxr-xr-x 1 root root 6359421848 Aug 15 2024 fpga110000-105-1440p30.mp4
root@ok3588:/run/media/mmcblk1#
root@ok3588:/run/media/mmcblk1#
root@ok3588:/run/media/mmcblk1# gst-play-1.0 fpga110000-105-1440p30.mp4
Press 'k' to see a list of keyboard shortcuts.
Now playing /run/media/mmcblk1/fpga110000-105-1440p30.mp4
Redistribute latency...
参考资料:
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》
https://blog.csdn.net/weixin_44498318/article/details/132083833?spm=1001.2101.3001.6650.6&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-132083833-blog-125624910.235%5Ev43%5Epc_blog_bottom_relevance_base7&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6-132083833-blog-125624910.235%5Ev43%5Epc_blog_bottom_relevance_base7&utm_relevant_index=10
https://blog.csdn.net/weixin_44498318/article/details/132083833
Linux mkfs、fsck等文件系统相关工具移植:dosfstools(FAT32)、exfatprogs(exFAT)、e2fsprogs(ext2、ext3、ext4)
????
https://blog.csdn.net/weixin_43245753/article/details/125647338
Rockchip RK3588 SD卡启动
BOOTROM 探测外设存储器的顺序不同,具体顺序如下,从左到右:【顺序有问题?】
https://blog.csdn.net/zzsddre/article/details/127554669
linux sd卡挂载失败
【小知识/冷知识:】
对于TF卡/SD卡联盟【移动存储,包括U盘和移动硬盘】,微软贡献了文件系统的专利。
对于软盘大小的介质,使用FAT12文件系统。
对于100MB大小的介质,使用FAT16?
对于40GB大小的介质,使用FAT32。
对于更大容量的介质,微软导入了exFAT。