官术网_书友最值得收藏!

Getting ready

In this book, I will use an Ubuntu 18.04 LTS based system but you can decide to try to replicate some settings and installation commands that we will use during the course of this book into another major Linux distribution, with little effort for a Debian derivative, or in a bit more of a complicated manner in the case of non-Debian derivative distributions.

I'm not going to show how to install a fresh Ubuntu system on a PC nor on a virtualized machine since it's a really easy task for a real programmer; however, as the last step of this chapter (the Doing native compiling on foreign hardware recipe), I will introduce, with detailed steps about how to install it, an interesting cross-platform environment that proved useful to compile foreign target code on the host machine as we were on the target. This procedure is very useful when we need several different OSes running on your development PC.

So, at this point, the reader should have their own PC running (natively or virtualized) a fresh installed Ubuntu 18.04 LTS OS.

The main usage of a host PC is to edit and then cross-compile our new device drivers and to manage our target device via the serial console, to create its root filesystem, and so on.

In order to do it properly, we need some basic tools; some of them are general while others depend on the specific platform onto which we are going to write our drivers.

General tools are surely an editor, a version control system, and a compiler and its related components, while specific platform tools are essentially the cross-compiler and its related components (on some platforms we may need additional tools but our mileage may vary and, in any case, each manufacturer will give us all of the needed requirements for a comfortable compilation environment).

About the editor: I'm not going to spend any words on it because the reader can use whatever they want (regarding myself, for example, I'm still programming with vi editor) but regarding others tools, I'll have to be more specific.

主站蜘蛛池模板: 大石桥市| 板桥市| 庆安县| 开化县| 塔城市| 贞丰县| 紫金县| 信丰县| 万源市| 巴彦淖尔市| 乌拉特前旗| 新化县| 西贡区| 全南县| 汉川市| 博白县| 榆林市| 灵石县| 西乌珠穆沁旗| 江北区| 二手房| 万宁市| 定日县| 雅江县| 衡山县| 当阳市| 山东省| 和顺县| 宝坻区| 昭苏县| 蓬溪县| 九龙县| 茶陵县| 太湖县| 新巴尔虎左旗| 禹州市| 稻城县| 日照市| 页游| 德阳市| 西乌珠穆沁旗|