当前位置:网站首页>Ti am335x industrial control module uses the Debian system of beaglebone (BBB)
Ti am335x industrial control module uses the Debian system of beaglebone (BBB)
2022-07-26 02:02:00 【szembed】
The verification of this content uses yingpengfei embedded CoM-335x Core module and Evaluation Board EAC-335X,CoM-335X The core module is
Beaglebone black The smallest system of , The product introduction is as follows :



One 、 download BBB Of Debian System image
Download address :http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Releases

according to EMMC perhaps TF The size of the card , Choose the right image to download . It should be noted that ,2G The mirror image of burning writes TF There is only one behind the card EXT4 Format root file system partition , but 4G The image of has a FAT32 Format boot partition and a EXT4 Format root file system partition .
Download the Debian File system mirroring , It may not conform to the actual operating environment , Here refers to the middle Linux Kernel driver module (modules) It may be different from what we expect (Linux The kernel version is inconsistent with that in the image , The function of the drive module does not conform to ). therefore ,
You need to add the current kernel module . The compilation environment is buildroot And Linux Two cases , Here are the introduction .
1、buildroot Compile environment
buildroot Full compilation or recompile Linux after , The default installation path of the driver module is :output/target/lib/modules/ , Just copy the directory under this directory to Debian In the mirror image . Download the Debian rootfs It's a mirror file , First mount , Then copy the driver module .
① Decompression mirror image
host$ unxz bone-debian-9.1-lxqt-armhf-2017-08-31-4gb.img.xz
② Mount the image
If you mount directly, you will be prompted that the file system type does not match , Failed to mount :

Use file View image information , Whether there is starting block information :

The starting sector in the above figure is 8192, The size of each sector is 512 byte, The starting address is : 8192 * 512 = 4194304 byte . Specify the starting address when mounting :
# sudo mount -o loop,offset=4194304 bone-debian-9.1-lxqt-armhf-2017-08-31-4gb.img /media/
③ Copy the driver module
host$ sudo cp -r output/target/lib/modules/4.14.67/ /media/lib/modules/
host$ ls /media/lib/modules/4.14.67/
④ pack rootfs
host$ cd /media/
host$ sudo tar -cf ~/com335x-debian-9.1-rootfs.tar *
host$ sudo umount /media
2、Linux Compile environment
① Install the drive module
Use Linux BSP After compilation , The driver module needs to be installed , To install to debian_rootfs For example :
host$ export INSTALL_MOD_PATH=debian_rootfs
host$ make ARCH=arm modules_install
Delete the linked file in the generation module , Then copy it to Debian Mirror image /lib/modules/ Catalog ,Debian Image decompression reference buildroot Compile environment .
host$ rm -rf debian_rootfs/lib/modules/4.14.67-g7795948/build
host$ rm -rf debian_rootfs/lib/modules/4.14.67-g7795948/source
notes : It is best to specify the installation path , The default path is /, If you do not specify the installation path and use permission root perform , Then install to the host .
② Unzip and mount the image
Reference resources buildroot An example of a compilation environment .
③ Copy the driver module
host$ cp -r debian_rootfs/lib/modules/4.14.67-g7795948/ /media/lib/modules/
host$ ls /media/lib/modules/4.14.67-g7795948/
④ pack rootfs
Reference resources buildroot An example of a compilation environment .
Last , One point in particular . Use git Managed Linux BSP, The compiled image distribution is shipped with git commit ID And change . if Linux Kernel image upgrade , It also needs to be modified or replaced Debian Driver module of . Upgrade frequently Linux to Debian Inconvenience , To solve this problem, you can modify scripts/setlocalversion file :
take 47 That's ok :if test -z "$(git rev-parse --show-cdup 2>/dev/null)" &&
Change it to :if test -n "$(git rev-parse --show-cdup 2>/dev/null)" &&

Two 、 Write the mirror image to TF card
After downloading the image , Can be in Ubuntu perhaps Windos Burn the image to TF card , But here's the thing , The downloaded image is compressed xz Compressed package of format , therefore , In both systems, you need to install the decompression tool first .
Ubuntu The next burning
a、 install xz Tools
$sudo apt-get install xz-utils
b、 Unzip the image package
$xz -d XX.img.xz
c、 Burning part , Please refer to https://help.ubuntu.com/community/Installation/FromImgFiles#Ubuntu
Windos The next burning
Please refer to http://beagleboard.org/getting-started#update, It should be noted that ,7-zip Tools can be installed according to the actual situation , If you have installed decompressable xz Format tools ( If good pressure ), There is no need to install .
After burning and writing , No matter what kind of mirror , Will be in TF Cary generates a ext4 Format rootfs Partition , What's in it is Debian System .
3、 ... and 、EMMC burning
According to the foregoing , You need to burn the previous step first TF Cary's rootfs Copy the files in the partition , Make it into a compressed package , Then according to the CD provided EMMC Write relevant manuals , Burn the system to EMMC. because Windos I can't recognize ext4 grid
Type partition , And in Windos Operating on the root file system file will result in some file properties ( Such as link and permission attributes ) The loss of , therefore , The following steps are required in Ubuntu Lower operation , And in root User permissions Next operation :
1、 Insert TF card , Generally, it is automatically mounted to /media Under the table of contents
2、 take TF Cary rootfs Copy all files in the partition , And make it into a compressed package
#cp /media/rootfs/ ./ -a
#cd rootfs
#tar -zcvf rootfs.tar.gz ./*
After execution , Generate rootfs.tar.gz file , You can also use tar -cvf rootfs.tar ./* command , Generate tar Compressed package of format . thus , It can be provided according to the CD EMMC Write relevant manuals , Burn the system to EMMC.
边栏推荐
- 1. Mx6ul core module use serial -rs485 test (x)
- Worthington核酸酶、微球菌相关研究及测定方案
- I.MX6UL核心模块使用连载-Iot-6ULX核心模块简要介绍 (一)
- How to use the pagoda panel to deploy the full stack project of node to the server
- Move bricks (greedy perturbation + 01 backpack)
- [C language brush leetcode] 814. Binary tree pruning (m)
- BGP知识点总结
- vite 本地运行首次进入页面加载慢问题
- BGP knowledge points summary
- What are the functions of cloud notes, and how do browsers add cloud note plug-ins
猜你喜欢

Zhinai buys melons (DP backpack)

E. Split into two sets

Characteristics and determination of neuraminidase from Clostridium perfringens in Worthington
![Niuke - bm39 serialized binary tree [hard]](/img/c4/f14fe8488bbf28689fa3f02cdf4dae.png)
Niuke - bm39 serialized binary tree [hard]

vite 本地运行首次进入页面加载慢问题

SQL手工盲注、报错注入

(CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud

Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022

Worthington产气荚膜梭菌神经氨酸酶的特征及测定

Ti AM335X工控模块矩阵键盘电路的设计与驱动移植
随机推荐
一种MCU事件型驱动C框架
MPLS knowledge points
[leetcode] 32. Longest valid bracket
转:高效做正确的事
[C language brush leetcode] 1604. Warn people who use the same employee card more than or equal to three times within an hour (m)
Jupiter notebook reported an error: notebook validation failed: non unique cell ID '2a4xx6' detected
I.MX6UL核心模块使用连载-eMMC读写测试 (四)
保护系统日志服务器和设备
I.MX6UL核心模块使用连载-CAN、蜂鸣器测试 (十一)
怎么使用宝塔面板把node全栈项目部署到服务器上
E. OpenStreetMap (2D monotone queue)
Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022
重发布基础与配置
PHP Alipay transfer to Alipay account
Redis集群搭建(基于6.x)
How does Flink SQL configure to print the insert parameter log
Pt onnx ncnn conversion problem record (followed by yolov5 training)
A MCU event driven C framework
How to choose cloud note tool? What can I do with cloud notes?
(CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud