天天看點

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]:~# 
           

繼續閱讀