20240509给飞凌的RK3588开发板在linux系统下挂载TF卡

20240509给飞凌的RK3588开发板在linux系统下挂载TF卡
2024/5/9 9:56


飞凌的开发板。linux/Buildroot
上电之前 TF卡插槽装入了32GB的TF卡。FAT32格式。

fdisk可以看到 TF卡。但是mount的时候 busy。请问是啥问题?


为了在核心板 播放MP4视频。

现在要将视频 弄到 核心板上。
1、开发板上 adb正常,TYPE-C连接。
现在 刷机只用了3条线(MICRO-USB连接)。找不到ADB,请问需要修改配置吗?比如DTS的?该如何修改呢?

2、RK3588最大支持多大容量的TF卡/SD卡?NTFS格式的128GB的TF卡可以支持吗?如何挂载?

ntfs格式LInux默认都不支持 可以百度一下 方法很多
TF卡可以支持128G
传输文件U盘或者ftp都可以

TF卡的供电使能部分

真正的挂载点:


挂载的LOG:
[    8.768956] read descriptors
[    8.768968] read strings
[    9.970344] dwc3 fc000000.usb: device reset
[   10.068123] android_work: sent uevent USB_STATE=CONNECTED
[   10.142728] android_work: sent uevent USB_STATE=CONFIGURED
[   36.442467] vbus5v0_typec0: disabling
[   36.442491] vbus5v0_typec1: disabling
[  104.537292] vccio_sd_s0: ramp_delay not set

[  104.567239] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[  104.587811] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 216
[  104.587845] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[  104.589297] mmcblk1: mmc1:aaaa SM32G 29.7 GiB 
[  104.595051]  mmcblk1: p1
[  104.632036] FAT-fs (mmcblk1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[  104.741135] FAT-fs (mmcblk1p1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[  104.744189] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# 
root@ok3588:/# ls -l
total 76
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  5200 May  8 16:59 dev
drwxr-xr-x  23 root root  4096 May  8 15:58 etc
drwxr-xr-x   4 root root  4096 May  8 15:58 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 Dec 21 10:31 oem
drwxr-xr-x   2 root root  4096 Mar  9  2023 opt
dr-xr-xr-x 269 root root     0 May  8 16:57 proc
drwx------   4 root root  4096 May  8 16:01 root
drwxr-xr-x   7 root root   340 May  8 16:57 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 May  8 16:57 sys
drwxrwxrwt   7 root root   420 May  8 16:59 tmp
lrwxrwxrwx   1 root root     9 Mar  9  2023 udisk -> mnt/udisk
drwxr-xr-x   5 root root  4096 May  8 15:58 userdata
drwxr-xr-x  11 root root  4096 Sep 14  2023 usr
drwxr-xr-x   5 root root  4096 Mar  9  2023 var
drwxr-xr-x   2 root root  4096 May  8 16:25 wyb
root@ok3588:/# 
root@ok3588:/# pwd
/
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): 38270000-0000-4d48-8000-4851000039ff
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: 30 GB, 31914983424 bytes, 62333952 sectors
3880 cylinders, 255 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk1p1    0,130,3     1023,254,63       8192   62333951   62325760 29.7G  c Win95 FAT32 (LBA)
root@ok3588:/# 

root@ok3588:/# 
root@ok3588:/# ls -l
total 76
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  5200 May  8 16:59 dev
drwxr-xr-x  23 root root  4096 May  8 15:58 etc
drwxr-xr-x   4 root root  4096 May  8 15:58 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 Dec 21 10:31 oem
drwxr-xr-x   2 root root  4096 Mar  9  2023 opt
dr-xr-xr-x 269 root root     0 May  8 16:57 proc
drwx------   4 root root  4096 May  8 16:01 root
drwxr-xr-x   7 root root   340 May  8 16:57 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 May  8 16:57 sys
drwxrwxrwt   7 root root   420 May  8 16:59 tmp
lrwxrwxrwx   1 root root     9 Mar  9  2023 udisk -> mnt/udisk
drwxr-xr-x   5 root root  4096 May  8 15:58 userdata
drwxr-xr-x  11 root root  4096 Sep 14  2023 usr
drwxr-xr-x   5 root root  4096 Mar  9  2023 var
drwxr-xr-x   2 root root  4096 May  8 16:25 wyb
root@ok3588:/# mount /dev/mmcblk1p1 /wyb/
root@ok3588:/# cd wyb/
root@ok3588:/wyb# ls -l
total 1335328
-rwxr-xr-x 1 root root 1131762455 Mar 10  2022  1K.MP4
-rwxr-xr-x 1 root root  235026155 Oct 17  2023  4kl.mp4
drwxr-xr-x 2 root root      32768 May  8  2024  Alarms
drwxr-xr-x 2 root root      32768 May  8  2024  Audiobooks
drwxr-xr-x 5 root root      32768 Mar 10  2022  DCIM
drwxr-xr-x 2 root root      32768 May  8  2024  Documents
drwxr-xr-x 2 root root      32768 May  8  2024  Download
drwxr-xr-x 2 root root      32768 Jan  1  1980  LOST.DIR
drwxr-xr-x 5 root root      32768 Mar  4  2022  MISC
drwxr-xr-x 3 root root      32768 May  8  2024  Movies
drwxr-xr-x 3 root root      32768 May  8  2024  Music
drwxr-xr-x 2 root root      32768 May  8  2024  Notifications
drwxr-xr-x 3 root root      32768 May  8  2024  Pictures
drwxr-xr-x 2 root root      32768 May  8  2024  Podcasts
drwxr-xr-x 2 root root      32768 May  8  2024  Recordings
drwxr-xr-x 2 root root      32768 May  8  2024  Ringtones
drwxr-xr-x 2 root root      32768 Mar 10  2022 'System Volume Information'
-rwxr-xr-x 1 root root      18040 Apr  3 01:03  alsa_demo
drwxr-xr-x 3 root root      32768 Mar  4  2022  dump
parse ! mppvideodec ! waylandsink "render-rectangle=<0,0,1024,600>" queue ! h264p
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Resource not found.
Additional debug info:
../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
No such file "1.mp4"
ERROR: pipeline doesn't want to preroll.
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
Failed to start
ERROR: pipeline doesn't want to preroll.
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Resource not found.
Additional debug info:
../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
No such file "1.mp4"
ERROR: pipeline doesn't want to preroll.
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
Failed to start
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
root@ok3588:/wyb# 
Display all 939 possibilities? (y or n)^C
root@ok3588:/wyb# 
Display all 939 possibilities? (y or n)^C
root@ok3588:/wyb# ls -l
total 1335328
-rwxr-xr-x 1 root root 1131762455 Mar 10  2022  1K.MP4
-rwxr-xr-x 1 root root  235026155 Oct 17  2023  4kl.mp4
drwxr-xr-x 2 root root      32768 May  8  2024  Alarms
drwxr-xr-x 2 root root      32768 May  8  2024  Audiobooks
drwxr-xr-x 5 root root      32768 Mar 10  2022  DCIM
drwxr-xr-x 2 root root      32768 May  8  2024  Documents
drwxr-xr-x 2 root root      32768 May  8  2024  Download
drwxr-xr-x 2 root root      32768 Jan  1  1980  LOST.DIR
drwxr-xr-x 5 root root      32768 Mar  4  2022  MISC
drwxr-xr-x 3 root root      32768 May  8  2024  Movies
drwxr-xr-x 3 root root      32768 May  8  2024  Music
drwxr-xr-x 2 root root      32768 May  8  2024  Notifications
drwxr-xr-x 3 root root      32768 May  8  2024  Pictures
drwxr-xr-x 2 root root      32768 May  8  2024  Podcasts
drwxr-xr-x 2 root root      32768 May  8  2024  Recordings
drwxr-xr-x 2 root root      32768 May  8  2024  Ringtones
drwxr-xr-x 2 root root      32768 Mar 10  2022 'System Volume Information'
-rwxr-xr-x 1 root root      18040 Apr  3 01:03  alsa_demo
drwxr-xr-x 3 root root      32768 Mar  4  2022  dump
root@ok3588:/wyb# cp 1K.MP4 ^C
root@ok3588:/wyb# mv 1K.MP4 1.mp4
root@ok3588:/wyb# 
root@ok3588:/wyb# 
parse ! mppvideodec ! waylandsink "render-rectangle=<0,0,1024,600>" queue ! h264 
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:04:51.959214083
Setting pipeline to NULL ...
Freeing pipeline ...
root@ok3588:/wyb# 


参考资料:
飞凌的官方技术支持电话:
0312-3119192  2软件 4瑞芯微平台  2 RK3588


 

对于飞凌的核心板,先插TF卡,等linux/Buildroot再启动之后,等你通过/sys/class/gpio先关闭,再使能TF卡部分的供电,找不到TF卡,好神奇呀!

不过先不要插TF卡,等Buildroot启动完成,供电使能之后,再插TF卡是OK的!

Rockchip平台的RK3588是支持热插拔的!^_

比较神奇了,原因待查!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值