zynq启动时自动mount加载sd卡

修改buildroot/package/initscripts/init.d/rcS,
增加mount命令:

#!/bin/sh


# Start all init scripts in /etc/init.d
# executing them in numerical order.
#
for i in /etc/init.d/S??* ;do

     # Ignore dangling symlinks (if any).
     [ ! -f "$i" ] && continue

     case "$i" in
	*.sh)
	    # Source shell script for speed.
	    (
		trap - INT QUIT TSTP
		set start
		. $i
	    )
	    ;;
	*)
	    # No sh extension, so fork subprocess.
	    $i start
	    ;;
    esac
done

echo mount sdcard...
mount /dev/mmcblk0p1 /mnt/msd

最后两行就是增加的。

make clean
make 
make sdimg

软件环境:antsdr-E310-V0.35
参考:https://blog.csdn.net/wejoncy/article/details/47685171

posted @ 2023-08-24 15:33  清哥他弟  阅读(62)  评论(0编辑  收藏  举报