Settings | Sign in | Sign up

The author has 2 posts.

瑞芯微RV1106从SD卡启动自己的busybox1.36.1根文件系统

Floor 11 巨大八爪鱼 6/20/25 20:00
板子开启2GB swap交换空间:
dd if=/dev/zero of=/root/swapfile bs=1024 count=2097152
mkswap /root/swapfile
swapon /root/swapfile
查看剩余内存:free -h

开机自动挂载fstab分区:/etc/init.d/rcS末尾添加swapon /root/swapfile。
(修改/etc/fstab文件的方法试了,不行。可能busybox不支持。)
巨大八爪鱼 7/11/25 9:41

把dd if=/dev/zero of=/root/swapfile bs=1024 count=2097152

改成fallocate -l 2G /root/swapfile

这样速度快得多。

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.