软件获取
1 开发环境
请最好使用Ubuntu,Deepin 64位系统。
注意:
(1)推荐在 X86_64 Ubuntu 16.04 或者X86_64 Ubuntu 20.04系统环境下进行开发,不要使用X86_64 Ubuntu 20.04以上的版本,若使用其它系统版本,可能需要对编译环境做相应调整。(2)同步代码Python版本号的要求:电脑系统安装的 python 的版本要使用 Python 2.7,不然会导致同步代码报错。
(3)使用普通用户进行编译,不要使用 root 用户权限进行编译。
danger
以下操作不要使用root账户,避免在编译时出现问题。
2 授权开通
下载我们的开发资料需要我们开通授权以后才能下载,开通步骤:
2.1 生成SSH KEY
chenwy@ubuntu:~$ ssh-keygen
输入ssh-keygen后,使用默认配置,一路回车直到完成即可
Generating public/private rsa key pair.
Enter file in which to save the key (/home/chenwy/.ssh/id_rsa):
Created directory '/home/chenwy/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/chenwy/.ssh/id_rsa.
Your public key has been saved in /home/chenwy/.ssh/id_rsa.pub.
The key fingerprint is:
0a:be:c9:55:e9:ec:59:57:ce:d8:14:e7:83:b4:a9:33 chenwy@ubuntu
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| .. .|
| . . ++ |
| . S +o..|
| . . = .B .|
| . o o .Eo + |
| . + . o .o |
| + o |
+-----------------+
2.2 授权开通
将生成好的id_rsa.pub发送给我们,其所在位置:
chenwy@ubuntu:~$ cd ~/.ssh
chenwy@ubuntu:~/.ssh$ ls -l
total 8
-rw------- 1 chenwy chenwy 1675 Jan 15 18:16 id_rsa
-rw-r--r-- 1 chenwy chenwy 395 Jan 15 18:16 id_rsa.pub
3 SSH本地配置
3.1 配置用户config
chenwy@ubuntu:~$ cd ~/.ssh
chenwy@ubuntu:~$ vim config
在config中加入以下信息:(如果当前目录下没有config,则新建一个)
Host *
KexAlgorithms +diffie-hellman-group1-sha1
3.2 配置sshd_config
chenwy@ubuntu:~$ sudo vim /etc/ssh/sshd_config
找到如下一行,将注释去掉:
#Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
4 Git安装
4.1 检查是否已经安装Git
chenwy@ubuntu:~/ilock$ git version
显示:git version 1.9.1,则表明本机已经安装,可跳过第2步。
显示:bash: /usr/bin/git: No such file or directory,则表明本机没有安装。
4.2 安装Git
chenwy@ubuntu:~$ sudo apt-get install git
按提示完成git安装
4.3 配置Git
请将双引号里的内容替换成你自己。
chenwy@ubuntu:~$ git config --global user.email "you@example.com"
chenwy@ubuntu:~$ git config --global user.name "Your Name"
tip
请等待我们开通权限后再进行下面的操作
5 代码下载
5.1 repo工具下载
chenwy@ubuntu:~$ mkdir ingenic
chenwy@ubuntu:~$ cd ingenic
chenwy@ubuntu:~$ wget http://git.ingenic.com.cn:8082/bj/repo
chenwy@ubuntu:~$ chmod +x repo
5.2 代码同步
chenwy@ubuntu:~$ ./repo init -u ssh://sz_halley2@119.136.25.25:29418/mirror/linux/manifest
chenwy@ubuntu:~$./repo sync
tip
请直接复制代码,不要修改sz_halley2的用户名