当前位置:网站首页>[Beijing Xunwei] i.mx6ull development board porting Debian file system
[Beijing Xunwei] i.mx6ull development board porting Debian file system
2022-07-04 20:17:00 【XunWei Electronics】
【 Beijing Xunwei 】i.MX6ULL transplant Debian file system
This tutorial will lead you to electronic transplantation in Xunwei Debian File system to i.MX6ULL On the terminator development board .

1 install Qemu and Debootstrap
Because we are Ubuntu Built on debian File system , So install these two tools and we use them directly apt-get The command is can . The order is as follows :
apt-get install binfmt-support qemu qemu-user-static debootstrap
As shown in the figure below :

2 extract Debain file system
To extract the file system, we use debootstrap command , We can execute the following order from debian Get the file system from the download source :
debootstrap --arch=armhf --foreign buster root https://mirrors.tuna.tsinghua.edu.cn/debian/
Command parameter parsing :
arch It specifies CPU framework
buster yes debian Version number . The latest is 10
foreign: This parameter needs to be specified when it is different from the host Architecture , Only do initialization unpacking
root: The folder to hold the file system
https://mirrors.tuna.tsinghua.edu.cn/debian/ It's a download source
As shown in the figure below :

The extraction time is long , Probably 10 About minutes , Everybody wait patiently , Successful extraction shows that linux Directory tree for , As shown in the figure below , If you fail to extract , You can extract a few more times , Or change the network :

3 Perfect the file system
Perfect the file system. Here we're going to use qemu, Why use qemu Well , Because we're in X86 Virtual machine operation , Not perfect arm File system , So we're going to use qemu To simulate the arm Environment .
(1)
Copy qemu-arm-static Just arrived at the basic building system , Use command
cp /usr/bin/qemu-arm-static root/usr/bin
As shown in the figure below :

(2)
Initialize file system
Carry out orders :
DEBIAN_FRONTEND=noninteractive
DEBCONF_NONINTERACTIVE_SEEN=true
LC_ALL=C
LANGUAGE=C
LANG=C chroot root debootstrap/debootstrap --second-stage
This command initializes the file system , As shown in the figure below :

Probably need 20 About minutes , Just wait patiently .
The initialization is successful, as shown in the following figure :

(3) Use command chroot root, Go to our initialized file system , As shown in the figure below :

(4) Use the command to create the following ,
echo "proc /proc proc defaults 0 0" >> etc/fstab
mkdir -p usr/share/man/man1/
mknod dev/console c 5 1
As shown in the figure below :

(5) Update download source , Use command vi /etc/apt/sources.list open source.list file , Then replace it with the following ,
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
Then save to exit , Use command apt-get update Lower source , As shown in the figure below :

(6) Use command apt-get install vim install vim Software , As shown in the figure below :

(7)
Create a new user , Use command adduser user, It's a password , The password for topeet, As shown in the figure below :

(8) Set up root password , Use command passwd root, The password for topeet, As shown in the figure below :

(9) Set up Ethernet , Enter the following command :
echo "auto eth0" > /etc/network/interfaces.d/eth0
echo "iface eth0 inet dhcp" >> /etc/network/interfaces.d/eth0
As shown in the figure below :

(10) because ull The performance of is relatively weak , So we won't install the desktop , Use it directly exit sign out qemu Just the environment , As shown in the figure below :

4 Package file system
Enter debian File system directory . Direct use command tar -cjf rootfs.tar.bz2 ./* that will do , As shown in the figure below :

5 Burning verification
Put the file system we packed into the burners , Other images can use the original one , Just replace the file system , And then burn the test , Start successfully as shown in the figure below ( No interface ) Shown :

边栏推荐
- Introduction to ACM combination counting
- Educational codeforces round 22 E. Army Creation
- Huawei Nova 10 series supports the application security detection function to build a strong mobile security firewall
- 软件客户端数字签名一定要申请代码签名证书吗?
- TCP两次挥手,你见过吗?那四次握手呢?
- 凌云出海记 | 沐融科技&华为云:打造非洲金融SaaS解决方案样板
- kotlin 类和对象
- [QNX Hypervisor 2.2用户手册]6.3.1 工厂页和控制页
- 复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
- 凌云出海记 | 一零跃动&华为云:共助非洲普惠金融服务
猜你喜欢

How is the entered query SQL statement executed?

多表操作-内连接查询

abc229 总结(区间最长连续字符 图的联通分量计数)

Detailed explanation of Audi EDI invoice message

TCP两次挥手,你见过吗?那四次握手呢?

YOLOv5s-ShuffleNetV2

什么叫内卷?

What are the consequences of closing the read / write channel?

Pointnet / pointnet++ point cloud data set processing and training

Neural network IOT platform construction (IOT platform construction practical tutorial)
随机推荐
紫光展锐完成全球首个 5G R17 IoT NTN 卫星物联网上星实测
Educational codeforces round 22 E. Army Creation
What does the neural network Internet of things mean? Popular explanation
Pointnet / pointnet++ point cloud data set processing and training
为什么最大速度是光速
Educational Codeforces Round 22 E. Army Creation
Chrome development tool: what the hell is vmxxx file
How is the entered query SQL statement executed?
C语言-入门-基础-语法-流程控制(七)
TCP两次挥手,你见过吗?那四次握手呢?
Educational Codeforces Round 22 E. Army Creation
Detailed explanation of Audi EDI invoice message
HMM hidden Markov model and code implementation
同事的接口文档我每次看着就头大,毛病多多。。。
[QNX hypervisor 2.2 user manual]6.3.1 factory page and control page
凌云出海记 | 一零跃动&华为云:共助非洲普惠金融服务
Dark horse programmer - software testing - 09 stage 2-linux and database -31-43 instructions issued by modifying the file permission letter, - find the link to modify the file, find the file command,
Delete the characters with the least number of occurrences in the string [JS, map sorting, regular]
【历史上的今天】7 月 4 日:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生
JVM系列之对象的创建