天天看点

Linux rootfs:移植Debian文件系统到IMX6ULL开发板

1、镜像下载

https://releases.linaro.org/debian/images/alip-armhf/

对于IMX6ULL来说,CPU是32位ARM架构,支持硬件浮点运算,所以选的是armhf版本。

2、构建文件系统步骤

Linaro官方已经构建好了的,我们只需要解压即可得到所有系统文件,几乎不需要我们干点什么,除非你想自己定制内容或补充点什么。:

[email protected]:~/work/imx6ull/system$ mkdir debian_rootfs
[email protected]:~/work/imx6ull/system$ sudo tar xzf packet/linaro-jessie-alip-20161117-32.tar.gz -C debian_rootfs/
[email protected]:~/work/imx6ull/system$ ls debian_rootfs/binary/
bin  boot  dev  etc  home  lib  md5sum.txt  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
[email protected]:~/work/imx6ull/system$ 
           

此时已经可以将文件系统进行NFS挂载使用了,或者把它们替换到原先系统的文件,又或者用来烧录到对应的存储设备。

至于屏幕显示什么的,等我有钱了买块屏幕再看看。

3、系统配置

参考【这篇文章】在开发板上进行基本的配置即可,比如修改软件源、安装基本的程序等等。当然,不配置其实也能使用了。

4、启动后进入系统

Debian GNU/Linux 8 linaro-alip ttymxc0

linaro-alip login: root (automatic login)

Last login: Sat May 21 22:33:18 UTC 2016 on ttymxc0
Linux linaro-alip 4.1.15-g49efdaa #1 SMP PREEMPT Mon Oct 14 12:41:57 CST 2019 armv7l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
[email protected]:~#
[email protected]:~# cd /
[email protected]:~# 
[email protected]:~# ls 
bin   dev  home  md5sum.txt  mnt  proc  run   srv  tmp  var
boot  etc  lib   media       opt  root  sbin  sys  usr
[email protected]:~# 
           

继续阅读