用户工具

站点工具


jaysnote:kernel_compile

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

jaysnote:kernel_compile [2019/12/11 21:37]
lijie
jaysnote:kernel_compile [2021/06/22 23:14]
行 1: 行 1:
-<markdown> 
  
-# xgac sdk usage 
- 
-## compile 
- 
-* 下载解压 [sdk](/home/lijie/my_project/gac-350) 
- 
-    ```bash 
-    $ tree -L 1 
-    ├── brandy                     #boot0、uboot 
-    ├── buildroot                  #编译相关工具 
-    ├── build.sh                   #编译、打包脚本 
-    ├── clean.sh                   #清除编译中间件 
-    ├── debian                     #debian rootfs 
-    ├── img_release.sh              
-    ├── lib                        #allwinner sysconfig 配置脚本 
-    ├── linux-3.10                 #内核 
-    ├── out                        #编译输出目录 
-    ├── readme.txt                 #简要的编译的说明 
-    └── tools                      #编译依赖工具集 
-    ``` 
- 
-     
- 
-* 解压缩 带上--numeirc-owner 保留数字用户/ 用户权限; 
- 
-* 解压缩后请确定debian rootfs 用户id/组id,/为0:0 /home/chen home/pi 用户目录为1000:1000; 
- 
-    ```bash 
-    sudo  chown -R 0:0 debian/ 
-    sudo  chown -R 1000:1000 debian/home/ 
-    ``` 
- 
-* ramdisk 通过软连接到cpio 目录 
- 
-  ```bash 
-  ln -s -f ../../cpio/release/rootfs.cpio.gz rootfs.cpio.gz 
-  ``` 
- 
-* 编译过程 
- 
-  暂时地,在root用户下完成操作。 
- 
-  ```bash 
-  #编译步骤 
-  1. 设置XY变量,配置屏幕类型 
-   
-  800X480分辨率屏幕配置 
-  $ export XY=800x480 
-   
-  2. 源码编译 
-  $ ./build.sh 
-   
-  3. 源码打包 
-  $ ./build.sh pack 
-   
-  #可选操作 
-  4.设置文件系统版本号 
-  ./debian/home/chen/update_buildtime.sh debian -w 
-   
-  5.按照日志版本号重命名镜像 do 表示支持操作,后面表示文件标签 
-  ./img_release.sh do -cv2_run_2.0.7 
-  ``` 
- 
-* 内核编译 
- 
-    参考[内核编译] (/jaysnote/kernel_compile)  
- 
-## download 
- 
-### windows 
- 
-* 安装 [PhoenixSuit_V1.10.zip](https://doc.mxj360.com/lib/exe/fetch.php?media=projects:gac:gac-350:phoenixsuit_v1.10.zip) 软件; 
- 
-* 下载已经编译好镜像[当前最新镜像直接下载](http://mdp-embedded.oss-cn-beijing.aliyuncs.com/gac-350/GAC350_2019-02-18_16-44-2.1.8-online_bug_fix-2.img); 
- 
-* 连接micro usb 接口,按住boot 按键(蜂鸣器位置,有丝印)启动系统(上电/或者reset),等待下载完成; 
- 
-    ![镜像下载](images/img_program_win.png) 
- 
-### linux  
- 
-* 下载 livesuit 源码包; 
- 
-    ```bash 
-    $git clone https://github.com/linux-sunxi/sunxi-livesuite.git  
-    ``` 
- 
-    > **提示**:详细说明参考根路径README  
- 
-* bianyi 安装awusb 驱动; 
- 
-    ```bash 
-    $sudo  apt-get install dkms 
-    $make 
-    $sudo  cp awusb.ko /lib/modules/`uname -r`/kernel/ 
-    $ modprobe awusb 
-    ``` 
- 
-* 运行LiveSuit.sh 工具。 
- 
-    ```bash 
-    $sudo ./LiveSuit.sh 
-    ``` 
- 
-* 连接micro usb 接口,按住boot 按键(蜂鸣器位置,有丝印)启动系统(上电/或者reset),等待下载完成; 
- 
-    ![linux 下载](images/img_program_linux.png) 
- 
-## troubleshooting 
- 
-* 编译错误`awk: line 2: function strtonum never defined` 
- 
-  ```bash 
-  sudo apt-get install gawk 
-  ``` 
- 
-* 编译错误 `-bash: ./mkbootimg: No such file or directory` 
- 
-  ```bash 
-  sudo apt-get install gcc-multilib g++-multilib 
-  ``` 
- 
-</markdown> 
jaysnote/kernel_compile.txt · 最后更改: 2021/06/22 23:14 (外部编辑)