The ubuntu development environment to build BananaPi

The ubuntu development environment to build BananaPi

I. Introduction

    I have always wanted to embedded linux development, unfortunately there were no related jobs, our only random groping. Recently Xiangnong block board play it, I feel pretty good this banana pie M1, the hardware configuration is not low, the price was fair after repeated comparison, so he bought a piece of research. In the process of learning piecemeal find a lot of information, in order to facilitate their review and make novice like me can avoid detours, hereby record, we welcome comments Guest Book explore common progress, but also look Daniel wing !

Second, install ubuntu operating system

    The ubuntu installation is not installed on the physical computer, but running VMware virtual machine software installed on a laptop. ubuntu 18.04.2 desktop version is 64, the specific steps are as follows:

    1, a new virtual machine, according to the map click Next.

 

 

 

 

 

 

 

 

 

 

 

 

 

    After 2, select ubuntu mirror, add a virtual CD Mirror Click to open this virtual machine.

 

    3, install ubuntu.

 

 

 

 

 

    4, wait for the installation to complete

Third, the installation and configuration commonly used software tools

    1, the update source: Right-click the desktop to open the terminal, enter the following command.

sudo apt-get update

    2, mounted ssh: ssh after installation tool may be used to connect remotely operated.

sudo apt install openssh-server

    3, installation vim: notepad linux environment.

sudo apt install vim

    4, install and configure the samba service: linux can share a folder in the windows environment.

      1) Installation samba.

sudo apt install samba

      2) Configure samba, open /etc/samba/smb.conf file.

sudo vim /etc/samba/smb.conf

      In the file add the following:  

[bananapi]
   comment = bananapi
   browseable = yes
   path = /bananapi
   writeable = yes
   guest ok = yes

      3)创建samba用户。

sudo smbpasswd -a bananapi

      4)重启samba服务。

sudo /etc/init.d/smbd restart

    5、安装arm交叉编译工具。

sudo apt install gcc-arm-linux-gnueabihf

四、结束

    至此已完成了BananaPi所需的最核心的开发环境,如有其他更为方便的开发工具,请大家也告诉我一下,共同进步。在接下来的博客内容将记录u-boot,linux内核,根文件系统等的移植和制作,感兴趣的小伙伴可以进一步交流和学习。

Guess you like

Origin www.cnblogs.com/apolar/p/11100005.html