查看: 2787|回复: 0

【Marvell ESPRESSObin】将系统移植到U盘

[复制链接]
  • TA的每日心情
    开心
    2016-7-19 10:35
  • 签到天数: 8 天

    连续签到: 1 天

    [LV.3]偶尔看看II

    发表于 2017-4-14 21:28:25 | 显示全部楼层 |阅读模式
    分享到:
    实际使用过程中,发现系统有时会死机,怀疑是不是SD卡的问题,准备将系统移植U盘上,看问题是否还会发生。

    将系统镜像文件写入到U盘中,系统镜像的大小为4G, U盘的容量为16G,空出来的部分考虑用来做文件共享空间。先写入系统镜像,如下

    2017-04-14_205054.png

    写入后上电,需要修改U-BOOT的参数,将原来的MMC替换为USB,如下
    1. setenv bootusb 'usb start;ext4load usb 0:1 $kernel_addr $image_name;ext4load usb 0:1 $fdt_addr $fdt_name;setenv bootargs $console root=/dev/sda1 rw rootwait; booti $kernel_addr - $fdt_addr'
    复制代码
    其实可以用下列的命令代替,效果相同
    1. setenv bootcmd 'usb start; ext4load usb 0:1 $kernel_addr $image_name;ext4load usb 0:1 $fdt_addr $fdt_name;setenv bootargs $console root=/dev/sda1 rw rootwait; booti $kernel_addr - $fdt_addr'  
    复制代码
    然后boot就可以了


    然后启动,效果也挺好,贴一段启动画面
    1. [  OK  ] Started LSB: start Samba NetBIOS nameserver (nmbd).
    2.          Starting LSB: start Samba SMB/CIFS daemon (smbd)...
    3. [  OK  ] Started LSB: start Samba SMB/CIFS daemon (smbd).
    4. [  OK  ] Started /etc/rc.local Compatibility.
    5.          Starting Serial Getty on ttyMV0...
    6. [  OK  ] Started Serial Getty on ttyMV0.
    7.          Starting Getty on tty1...
    8. [  OK  ] Started Getty on tty1.
    9. [  OK  ] Reached target Login Prompts.
    10. [  OK  ] Reached target Multi-User System.
    11. [  OK  ] Reached target Graphical Interface.
    12.          Starting Update UTMP about System Runlevel Changes...
    13. [  OK  ] Started Update UTMP about System Runlevel Changes.

    14. Debian GNU/Linux 8 espressobin ttyMV0

    15. espressobin login: espresso (automatic login)

    16. Last login: Fri Apr 14 21:14:35 CST 2017 from 192.168.88.233 on pts/0
    17. Linux espressobin 4.4.8-armada-17.02.1 #4 SMP PREEMPT Wed Apr 12 19:26:56 CST 2017 aarch64

    18. The programs included with the Debian GNU/Linux system are free software;
    19. the exact distribution terms for each program are described in the
    20. individual files in /usr/share/doc/*/copyright.

    21. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    22. permitted by applicable law.
    23. espresso@espressobin:~$
    复制代码
    不过使用过程中发现OMV不能使用SDA2分区来做为外部存储空间,大概是为了将系统和数据分开来保存的考虑吧。



    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    手机版|小黑屋|与非网

    GMT+8, 2024-5-8 21:25 , Processed in 0.113462 second(s), 16 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.