13、zedboard 7020 移植debain 9 系統

 

基本問題描述:手中有一個zedboard 7020 的開發板,SD一個,官方提供了三個硬件驅動文件BOOT.bin devicetree.dtb uImage 同時提供文件系統inaro-o-ubuntu-desktop-tar-20111219-0.tar.gz &linaro-precise-ubuntu-desktop-20120626-247.tar.gz 

不得不提 這文件系統太老了,我安裝最新的opencv3.4 總是無法成功,各種問題,最後自己使用debain 9 搭建了文件系統 運行良好

本人系統是ubutnu 16.04  開發板是 microPhase zynq7020

 

1、在本地下創建文件及拉取debain stretch ( 使用 stretch 主要原因是 源比較豐富 相對buster而言 )

mkdir arm_debain
sudo apt-get install qemu-user-static debootstrap 
sudo debootstrap --arch=armhf --foreign stretch arm_debain https://mirrors.tuna.tsinghua.edu.cn/debian/
sudo cp /usr/bin/qemu-arm-static arm_debain/usr/bin
sudo cp /etc/resolv.conf arm_debain/etc

2、編譯一下代碼

sudo DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot arm_debain debootstrap/debootstrap --second-stage

3、掛在系統,進入debain 9 系統

sudo chroot arm_debain

4、爲debain 9添加源

cat <<EOT > /etc/apt/sources.list
deb http://ftp.cn.debian.org/debian/ stretch main contrib non-free

deb http://ftp.cn.debian.org/debian/ stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
deb http://ftp.cn.debian.org/debian/ stretch-backports main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free 

EOT

5、進行對應的包安裝

apt-get update
apt-get install locales dialog 
dpkg-reconfigure locales
apt-get install openssh-server ntpdate resolvconf sudo less hwinfo ntp tcsh zsh vim net-tools passwd gcc g++ python xorg xdm xfce4 slim

#lightdm

6、修改遠程訪問選項

vim /etc/ssh/sshd_config
“PasswordAuthentication yes”

7、增加權限

editor=vim visudo  (ctrl+shift+x/enter)


# User privilege specification
root ALL=(ALL:ALL) ALL
debain ALL=(ALL:ALL) ALL

8、進行網絡設置

cat <<EOT > /etc/network/interfaces
auto eth0
iface eth0 inet dhcp                                         
EOT

cat <<EOT > /etc/resolv.conf
nameserver 127.0.1.1                                        
EOT

9、修改hostname

echo debian > /etc/hostname

echo 127.0.0.1 debian >> /etc/hosts

10、插入優盤 進行文件複製

cd arm_debain

sudo rsync -av ./*  /優盤目錄(ext4分區)

 ok 系統有界面了,命令行可以使用 ~

附上幾張照片和壓縮的系統:鏈接:https://pan.baidu.com/s/1IjHd_pkjZMY1JIboNvAkQw 密碼:1he7

賬戶 debain

密碼 debain

 

 

 

-------------------------------------------------------------------------------------------------------------------

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章