RK3288开发环境搭建

1、下载Ubuntu 16.04.2 LTS 系统镜像

  下载地址:http://old-releases.ubuntu.com/releases/16.04.2/ubuntu-16.04.2-desktop-amd64.iso

2、在虚拟机VMware® Workstation 12 Pro上安装Ubuntu 16.04.2 LTS 系统

3、Ubuntu基本环境设置

 3.1 设置root密码    

sudo passwd root

 3.2 安装 ssh服务

sudo apt install openssh-server

  好了,现在就可以用SecureCRT远程登陆系统了。

 3.3.为了安装软件时下载速度更快,有必要把软件源变为国内服务器,详情请看教程

  https://www.cnblogs.com/fred2018/p/9651053.html

 3.4 安装文本编辑器 vim(自带的vi不习惯,就装这个了)

sudo apt install vim  

 3.5 安装并配置samba服务

  Samba是用于Unix和Linux的免费开源SMB/CIFS协议实现,允许在局域网中的Unix/Linux和Windows机器之间进行文件和打印共享。

  3.5 .1 安装samba服务

sudo apt-get install samba samfs

  3.5 .2 配置服务文件、修改/etc/samba/smb.conf 文件,添加 smb用户

sudo vim /etc/samba/smb.conf

    在smb.conf后面添加下面内容:

[work]
path = /home/work
available = yes
browseable = yes
publie = yes
writable = yes
valid users = ubuntu

  3.5 .3、添加 smb 用户(ubuntu)和密码

smbpasswd -a ubuntu

 

  3.5 4、重新启动 smb服务

    sudo /etc/init.d/smbd restart

4.安装 Kernel U-Boot 编译需要依赖的软件包

sudo apt-get install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml 2-utils xsltproc unzip device-tree-compiler liblz4-tool

5.安装 Buildroot 编译需要依赖的软件包

sudo apt-get install -y libfile-which-perl sed make binutils gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync file bc libmpc3 git repo texinfo pkg-config cmake tree texinfo

 6.安装完上述软件包后编译出错,安装以下软件包

sudo apt-get install -y git gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler mtools parted libudev-dev libusb-1.0-0-dev python-linaro-image-tools linaro-image-tools libssl-dev autotools-dev libsigsegv2 m4 libdrm-dev curl sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync file bc wget libncurses5 libglib2.0-dev openssh-client 

 a.安装软件时出错,提示

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.32.4-0ubuntu1) but 2.48.2-0ubuntu1 is to be installed
                  Depends: libglib2.0-bin (= 2.32.4-0ubuntu1)
                  Depends: libpcre3-dev (>= 8.11) but it is not going to be installed
 libssl-dev : Depends: libssl1.0.0 (= 1.0.1-4ubuntu5.39) but 1.0.2g-1ubuntu4.6 is to be installed
              Recommends: libssl-doc but it is not going to be installed
 libusb-1.0-0-dev : Depends: libusb-1.0-0 (= 2:1.0.9~rc3-2ubuntu1) but 2:1.0.20-1 is to be installed
 linaro-image-tools : Depends: python-parted but it is not going to be installed
                      Recommends: udisks

b.出现上述错误是因为目前使用的源的版本比较低,而要安装的软件的依赖的版本的较高,

  因此方法只能是更换源

sudo gedit /etc/apt/sources.list

将打开文件的源替换为

deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

更新完成后且不报错就可以解决上述的问题了

sudo apt-get update

 重新安装软件包后就可以了,经笔者测试 rk3288_linux_sdk_v2.1_20181010版本的uboot和kernel编译没问题。

posted @ 2019-06-21 18:15  fred2018  阅读(159)  评论(0)    收藏  举报