gst-launch-1.0 filesrc location=4kl.mp4 ! qtdemux ! queue ! h264parse ! mppvideodec ! waylandsink "render-rectangle=<0,0,1920,1080>"
root@rk3566-buildroot:/sdcard# touch rockchip.txt
root@rk3566-buildroot:/sdcard# vi rockchip.txt
root@rk3566-buildroot:/sdcard# sync
root@rk3566-buildroot:/sdcard# cat rockchip.txt
20250408在荣品的PRO-RK3566开发板使用Rockchip原厂的buildroot系统时读写TF卡
2025/4/8 18:21
缘起:本文只是测试目的。
荣品也没有需要/目的去修改原厂的TF卡设计了。
也有可能就是iomux,PIN脚复用不允许荣品来发挥了!
读:使用gstreamer播放1080p/4K分辨率的mp4视频。
写:在TF卡通过touch/vi生成文本文件。
4、TF卡 2024/7/25 18:21 需要更新检测引脚!
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): 6e0f0000-0000-4c5a-8000-6dcb000019d8
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: 29 GB, 31270109184 bytes, 61074432 sectors
3817152 cylinders, 1 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk1p1 0,0,0 0,0,0 32 61074431 61074400 29.1G c Win95 FAT32 (LBA)
root@ok3588:/#
root@ok3588:/#
root@ok3588:/#
root@ok3588:/# mount ^C
root@ok3588:/# mount /dev/mmcblk1p1 /mnt
root@ok3588:/# cd /mnt
gst-launch-1.0 filesrc location=1.mp4 ! qtdemux ! queue ! h264parse ! mppvideodec ! waylandsink "render-rectangle=<0,0,1920,1080>"
gst-launch-1.0 filesrc location=4kl.mp4 ! qtdemux ! queue ! h264parse ! mppvideodec ! waylandsink "render-rectangle=<0,0,1920,1080>"
写的完整LOG:
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ls -l
total 68
lrwxrwxrwx 1 root root 7 Apr 7 2025 bin -> usr/bin
-rw-r--r-- 1 root root 489 Apr 3 2024 busybox.fragment
lrwxrwxrwx 1 root root 8 Apr 7 2025 data -> userdata
drwxr-xr-x 14 root root 3660 Aug 4 16:10 dev
drwxr-xr-x 25 root root 4096 Aug 4 16:10 etc
drwxr-xr-x 2 root root 4096 Apr 7 2025 info
lrwxrwxrwx 1 root root 7 Apr 7 2025 lib -> usr/lib
lrwxrwxrwx 1 root root 3 Apr 7 2025 lib64 -> lib
lrwxrwxrwx 1 root root 11 Apr 7 2025 linuxrc -> bin/busybox
drwx------ 2 root root 16384 Apr 7 2025 lost+found
drwxr-xr-x 11 root root 4096 Apr 7 2025 media
drwxr-xr-x 5 root root 4096 Apr 7 2025 mnt
drwxr-xr-x 3 root root 4096 Aug 4 16:10 oem
drwxr-xr-x 3 root root 4096 Apr 7 2025 opt
dr-xr-xr-x 196 root root 0 Aug 4 16:10 proc
drwxr-xr-x 17 root root 4096 Apr 7 2025 rockchip-test
drwx------ 2 root root 4096 Apr 3 2024 root
drwxr-xr-x 11 root root 540 Aug 4 16:10 run
lrwxrwxrwx 1 root root 8 Apr 7 2025 sbin -> usr/sbin
lrwxrwxrwx 1 root root 10 Apr 7 2025 sdcard -> mnt/sdcard
dr-xr-xr-x 14 root root 0 Aug 4 16:10 sys
drwxr-xr-x 3 root root 4096 Apr 7 2025 system
drwxrwxrwt 6 root root 240 Aug 4 16:10 tmp
lrwxrwxrwx 1 root root 9 Apr 7 2025 udisk -> mnt/udisk
drwxr-xr-x 4 root root 4096 Aug 4 16:10 userdata
drwxr-xr-x 7 root root 4096 Apr 7 2025 usr
drwxr-xr-x 6 root root 4096 Apr 7 2025 var
lrwxrwxrwx 1 root root 6 Apr 7 2025 vendor -> system
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# cd /sdcard
root@rk3566-buildroot:/sdcard# ll
total 8
drwxr-xr-x 2 root root 4096 Apr 7 2025 ./
drwxr-xr-x 5 root root 4096 Apr 7 2025 ../
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard# cd /
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ll
total 76
drwxr-xr-x 20 root root 4096 Aug 4 16:10 ./
drwxr-xr-x 20 root root 4096 Aug 4 16:10 ../
-rw-r--r-- 1 root root 0 Aug 4 16:10 .resized
-rw-r--r-- 1 root root 0 Apr 3 2024 .skip_fsck
lrwxrwxrwx 1 root root 7 Apr 7 2025 bin -> usr/bin/
-rw-r--r-- 1 root root 489 Apr 3 2024 busybox.fragment
lrwxrwxrwx 1 root root 8 Apr 7 2025 data -> userdata/
drwxr-xr-x 14 root root 3660 Aug 4 16:10 dev/
drwxr-xr-x 25 root root 4096 Aug 4 16:10 etc/
drwxr-xr-x 2 root root 4096 Apr 7 2025 info/
lrwxrwxrwx 1 root root 7 Apr 7 2025 lib -> usr/lib/
lrwxrwxrwx 1 root root 3 Apr 7 2025 lib64 -> lib/
lrwxrwxrwx 1 root root 11 Apr 7 2025 linuxrc -> bin/busybox*
drwx------ 2 root root 16384 Apr 7 2025 lost+found/
drwxr-xr-x 11 root root 4096 Apr 7 2025 media/
drwxr-xr-x 5 root root 4096 Apr 7 2025 mnt/
drwxr-xr-x 3 root root 4096 Aug 4 16:10 oem/
drwxr-xr-x 3 root root 4096 Apr 7 2025 opt/
dr-xr-xr-x 197 root root 0 Aug 4 16:10 proc/
drwxr-xr-x 17 root root 4096 Apr 7 2025 rockchip-test/
drwx------ 2 root root 4096 Apr 3 2024 root/
drwxr-xr-x 11 root root 540 Aug 4 16:10 run/
lrwxrwxrwx 1 root root 8 Apr 7 2025 sbin -> usr/sbin/
lrwxrwxrwx 1 root root 10 Apr 7 2025 sdcard -> mnt/sdcard/
dr-xr-xr-x 14 root root 0 Aug 4 16:10 sys/
drwxr-xr-x 3 root root 4096 Apr 7 2025 system/
drwxrwxrwt 6 root root 240 Aug 4 16:10 tmp/
lrwxrwxrwx 1 root root 9 Apr 7 2025 udisk -> mnt/udisk/
drwxr-xr-x 4 root root 4096 Aug 4 16:10 userdata/
drwxr-xr-x 7 root root 4096 Apr 7 2025 usr/
drwxr-xr-x 6 root root 4096 Apr 7 2025 var/
lrwxrwxrwx 1 root root 6 Apr 7 2025 vendor -> system/
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# [ 1820.795382] mmc_host mmc1: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[ 1820.873925] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[ 1821.008768] dwmmc_rockchip fe2b0000.dwmmc: Successfully tuned phase to 360
[ 1821.008879] mmc1: new ultra high speed SDR104 SDHC card at address b368
[ 1821.013648] mmcblk1: mmc1:b368 SDABC 29.1 GiB
[ 1821.018330] mmcblk1: p1
[ 1821.180352] FAT-fs (mmcblk1p1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 1821.183248] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ll
total 76
drwxr-xr-x 20 root root 4096 Aug 4 16:10 ./
drwxr-xr-x 20 root root 4096 Aug 4 16:10 ../
-rw-r--r-- 1 root root 0 Aug 4 16:10 .resized
-rw-r--r-- 1 root root 0 Apr 3 2024 .skip_fsck
lrwxrwxrwx 1 root root 7 Apr 7 2025 bin -> usr/bin/
-rw-r--r-- 1 root root 489 Apr 3 2024 busybox.fragment
lrwxrwxrwx 1 root root 8 Apr 7 2025 data -> userdata/
drwxr-xr-x 14 root root 3700 Aug 4 16:40 dev/
drwxr-xr-x 25 root root 4096 Aug 4 16:10 etc/
drwxr-xr-x 2 root root 4096 Apr 7 2025 info/
lrwxrwxrwx 1 root root 7 Apr 7 2025 lib -> usr/lib/
lrwxrwxrwx 1 root root 3 Apr 7 2025 lib64 -> lib/
lrwxrwxrwx 1 root root 11 Apr 7 2025 linuxrc -> bin/busybox*
drwx------ 2 root root 16384 Apr 7 2025 lost+found/
drwxr-xr-x 11 root root 4096 Apr 7 2025 media/
drwxr-xr-x 5 root root 4096 Apr 7 2025 mnt/
drwxr-xr-x 3 root root 4096 Aug 4 16:10 oem/
drwxr-xr-x 3 root root 4096 Apr 7 2025 opt/
dr-xr-xr-x 201 root root 0 Aug 4 16:10 proc/
drwxr-xr-x 17 root root 4096 Apr 7 2025 rockchip-test/
drwx------ 2 root root 4096 Apr 3 2024 root/
drwxr-xr-x 12 root root 560 Aug 4 16:40 run/
lrwxrwxrwx 1 root root 8 Apr 7 2025 sbin -> usr/sbin/
lrwxrwxrwx 1 root root 10 Apr 7 2025 sdcard -> mnt/sdcard/
dr-xr-xr-x 14 root root 0 Aug 4 16:10 sys/
drwxr-xr-x 3 root root 4096 Apr 7 2025 system/
drwxrwxrwt 6 root root 240 Aug 4 16:10 tmp/
lrwxrwxrwx 1 root root 9 Apr 7 2025 udisk -> mnt/udisk/
drwxr-xr-x 4 root root 4096 Aug 4 16:10 userdata/
drwxr-xr-x 7 root root 4096 Apr 7 2025 usr/
drwxr-xr-x 6 root root 4096 Apr 7 2025 var/
lrwxrwxrwx 1 root root 6 Apr 7 2025 vendor -> system/
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# cd /sdcard
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard# ll
total 2456772
drwxr-xr-x 18 root root 32768 Jan 1 1970 ./
drwxr-xr-x 5 root root 4096 Apr 7 2025 ../
-rwxr-xr-x 1 root root 256579786 Jan 1 1980 101#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 253666012 Jan 1 1980 103#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 260507330 Jan 1 1980 107#7200-9520-1080p60.mp4*
-rwxr-xr-x 1 root root 245338809 Jan 1 1980 109#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 239238284 Jan 1 1980 111#7200-9520-1080p60.mp4*
-rwxr-xr-x 1 root root 250308760 Jan 1 1980 112#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 237717540 Jan 1 1980 118#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 236421999 Jan 1 1980 119#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 236858200 Jan 1 1980 119#7200-9520-1080p60.mp4*
-rwxr-xr-x 1 root root 242216177 Jan 1 1980 120#7200-9500-1080p60.mp4*
drwxr-xr-x 2 root root 32768 Jan 15 2025 Alarms/
drwxr-xr-x 4 root root 32768 Dec 10 2024 Android/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Audiobooks/
drwxr-xr-x 2 root root 32768 Aug 4 09:07 DCIM/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Documents/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Download/
drwxr-xr-x 2 root root 32768 Jan 7 2025 LOST.DIR/
drwxr-xr-x 3 root root 32768 Dec 10 2024 Movies/
drwxr-xr-x 3 root root 32768 Dec 10 2024 Music/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Notifications/
drwxr-xr-x 3 root root 32768 Dec 10 2024 Pictures/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Podcasts/
-rwxr-xr-x 1 root root 56008000 Jan 7 2025 'QGroundControl64 (1).apk'*
drwxr-xr-x 2 root root 32768 Jan 15 2025 Recordings/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Ringtones/
drwxr-xr-x 2 root root 32768 Dec 10 2024 'System Volume Information'/
-rwxr-xr-x 1 root root 17 Aug 4 09:04 rk3566_ai.txt*
-rwxr-xr-x 1 root root 27 Aug 4 09:03 rpdzkj.txt*
-rwxr-xr-x 1 root root 18608 Jun 11 2024 uart_test*
drwxr-xr-x 2 root root 32768 Mar 22 2025 新建文件夹/
root@rk3566-buildroot:/sdcard#
ngle=<0,0,1920,1080>"queue ! h264parse ! mppvideodec ! waylandsink "render-rectan
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Redistribute latency...
Pipeline is PREROLLED ...
Prerolled, waiting for async message to finish...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
[16:41:51.684] seeing the first app
Got EOS from element "pipeline0".
Execution ended after 0:02:00.021675560
Setting pipeline to NULL ...
Freeing pipeline ...
root@rk3566-buildroot:/sdcard#
ngle=<0,0,1920,1080>"queue ! h264parse ! mppvideodec ! waylandsink "render-rectan
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Redistribute latency...
Pipeline is PREROLLED ...
Prerolled, waiting for async message to finish...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:02:00.021744018
Setting pipeline to NULL ...
Freeing pipeline ...
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard# ll
total 2456772
drwxr-xr-x 18 root root 32768 Jan 1 1970 ./
drwxr-xr-x 5 root root 4096 Apr 7 2025 ../
-rwxr-xr-x 1 root root 256579786 Jan 1 1980 101#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 253666012 Jan 1 1980 103#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 260507330 Jan 1 1980 107#7200-9520-1080p60.mp4*
-rwxr-xr-x 1 root root 245338809 Jan 1 1980 109#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 239238284 Jan 1 1980 111#7200-9520-1080p60.mp4*
-rwxr-xr-x 1 root root 250308760 Jan 1 1980 112#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 237717540 Jan 1 1980 118#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 236421999 Jan 1 1980 119#7200-9500-1080p60.mp4*
-rwxr-xr-x 1 root root 236858200 Jan 1 1980 119#7200-9520-1080p60.mp4*
-rwxr-xr-x 1 root root 242216177 Jan 1 1980 120#7200-9500-1080p60.mp4*
drwxr-xr-x 2 root root 32768 Jan 15 2025 Alarms/
drwxr-xr-x 4 root root 32768 Dec 10 2024 Android/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Audiobooks/
drwxr-xr-x 2 root root 32768 Aug 4 09:07 DCIM/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Documents/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Download/
drwxr-xr-x 2 root root 32768 Jan 7 2025 LOST.DIR/
drwxr-xr-x 3 root root 32768 Dec 10 2024 Movies/
drwxr-xr-x 3 root root 32768 Dec 10 2024 Music/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Notifications/
drwxr-xr-x 3 root root 32768 Dec 10 2024 Pictures/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Podcasts/
-rwxr-xr-x 1 root root 56008000 Jan 7 2025 'QGroundControl64 (1).apk'*
drwxr-xr-x 2 root root 32768 Jan 15 2025 Recordings/
drwxr-xr-x 2 root root 32768 Jan 15 2025 Ringtones/
drwxr-xr-x 2 root root 32768 Dec 10 2024 'System Volume Information'/
-rwxr-xr-x 1 root root 17 Aug 4 09:04 rk3566_ai.txt*
-rwxr-xr-x 1 root root 27 Aug 4 09:03 rpdzkj.txt*
-rwxr-xr-x 1 root root 18608 Jun 11 2024 uart_test*
drwxr-xr-x 2 root root 32768 Mar 22 2025 新建文件夹/
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard# file 101#7200-9500-1080p60.mp4
sh: file: command not found
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard# touch rockchip.txt
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard# vi rockchip.txt
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard# sync
root@rk3566-buildroot:/sdcard# sync
root@rk3566-buildroot:/sdcard# cat rockchip.txt
2025-04-08
17:44
test
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard#
root@rk3566-buildroot:/sdcard#