de336bc4e7c3397b2ed24a3fb168b4b144e60422
Chip-cn-dat/allwinner-dat/allwinner-dat.md
| ... | ... | @@ -1,13 +1,22 @@ |
| 1 | 1 | |
| 2 | 2 | # allwinner-dat |
| 3 | 3 | |
| 4 | + |
|
| 4 | 5 | - [[Thermal-imaging-camera-dat]] |
| 5 | 6 | |
| 6 | 7 | - [[T113-dat]] |
| 7 | 8 | - [[F133-dat]] |
| 8 | 9 | |
| 9 | 10 | |
| 10 | -- [[D1-H-dat]] |
|
| 11 | +- [[D1-H-dat]] == C906 |
|
| 12 | +- [[D1S-dat]] |
|
| 13 | + |
|
| 14 | +- [[R128-dat]] - [[R329-dat]] |
|
| 15 | + |
|
| 16 | +- [[V821-dat]] - [[V853-dat]] |
|
| 17 | + |
|
| 18 | +- [[XR806-dat]] |
|
| 19 | + |
|
| 11 | 20 | |
| 12 | 21 | - [[V3S-dat]] |
| 13 | 22 | |
| ... | ... | @@ -27,11 +36,12 @@ |
| 27 | 36 | |
| 28 | 37 | ## SDK |
| 29 | 38 | |
| 30 | -- [[TINA-dat]] - [[SDK-dat]] |
|
| 39 | +- [[allwinner-SDK-dat]] - [[TINA-dat]] - [[SDK-dat]] |
|
| 31 | 40 | |
| 32 | 41 | - https://github.com/xboot/xfel == Tiny FEL tools for allwinner SOC. |
| 33 | 42 | |
| 34 | 43 | |
| 44 | + |
|
| 35 | 45 | ## repo |
| 36 | 46 | |
| 37 | 47 | |
| ... | ... | @@ -48,4 +58,6 @@ |
| 48 | 58 | |
| 49 | 59 | ## ref |
| 50 | 60 | |
| 61 | +- [[allwinner]] |
|
| 62 | + |
|
| 51 | 63 | - [[chip-cn-dat]] |
| ... | ... | \ No newline at end of file |
SDK-dat/TINA-dat/2025-07-15-01-42-53.png
| ... | ... | Binary files /dev/null and b/SDK-dat/TINA-dat/2025-07-15-01-42-53.png differ |
SDK-dat/TINA-dat/TINA-dat.md
| ... | ... | @@ -1,6 +1,55 @@ |
| 1 | 1 | |
| 2 | 2 | # TINA-dat |
| 3 | 3 | |
| 4 | + |
|
| 5 | +https://d1s.docs.aw-ol.com/study/study_1tina/ |
|
| 6 | + |
|
| 7 | + |
|
| 8 | + |
|
| 9 | +- [[virtualbox-dat]] - [[repo-dat]] - [[ubuntu-dat]] |
|
| 10 | + |
|
| 11 | +虚拟机下载地址如下(较大 有1.6G): |
|
| 12 | +[可编译Tina的Oraclr VM VirtualBox Ubuntu14.04虚拟机](http://netstorage.allwinnertech.com:5000/sharing/ugXcWLYz5) == pass == 123456 |
|
| 13 | + |
|
| 14 | + apt-get install gcc binutils bzip2 flex python perl make ia32-libs find grep diff unzip gawk getopt subversion libz-dev libc headers |
|
| 15 | + |
|
| 16 | + sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 -y |
|
| 17 | + |
|
| 18 | + |
|
| 19 | + |
|
| 20 | +## TINA D1-H |
|
| 21 | + |
|
| 22 | + $ mkdir tina-d1-h |
|
| 23 | + $ cd tina-d1-h |
|
| 24 | + |
|
| 25 | +使用 repo init 命令初始化仓库,tina-d1-h 的仓库地址是 https://sdk.aw-ol.com/git_repo/D1_Tina_Open/manifest.git 需要执行命令: |
|
| 26 | + |
|
| 27 | + $ repo init -u https://sdk.aw-ol.com/git_repo/D1_Tina_Open/manifest.git -b master -m tina-d1-h.xml |
|
| 28 | + |
|
| 29 | +如果提示 Username for 'https://sdk.aw-ol.com': 请输入 全志在线开发者论坛 的用户名和密码。(注:需要全志在线开发者论坛LV2等级以上用户才有权限拉取 SDK) |
|
| 30 | + |
|
| 31 | + root@ubuntu14:/home/vb/tina-d1-h# repo init -u https://sdk.aw-ol.com/git_repo/D1_Tina_Open/manifest.git -b master -m tina-d1-h.xml |
|
| 32 | + Get https://sdk.aw-ol.com/git_repo/D1_Tina_Open/manifest.git |
|
| 33 | + % Total % Received % Xferd Average Speed Time Time Time Current |
|
| 34 | + Dload Upload Total Spent Left Speed |
|
| 35 | + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 |
|
| 36 | + curl: (22) The requested URL returned error: 401 Unauthorized |
|
| 37 | + Server does not provide clone.bundle; ignoring. |
|
| 38 | + Username for 'https://sdk.aw-ol.com': |
|
| 39 | + |
|
| 40 | + |
|
| 41 | + |
|
| 42 | + |
|
| 43 | +## note |
|
| 44 | + |
|
| 45 | +V1.0 版本硬件安装 D1s Nezha 补丁包 |
|
| 46 | + |
|
| 47 | +下载下来的 SDK 默认是不支持 D1s Nezha v1.0 开发板的,需要额外安装补丁包以支持 D1s Nezha v1.0 开发板。 |
|
| 48 | + |
|
| 49 | + |
|
| 50 | + |
|
| 4 | 51 | ## ref |
| 5 | 52 | |
| 53 | +- [[allwinner-dat]] |
|
| 54 | + |
|
| 6 | 55 | - [[SDK]] - [[TINA]] |
| ... | ... | \ No newline at end of file |
SDK-dat/allwinner-SDK-dat/2025-07-15-01-47-37.png
| ... | ... | Binary files /dev/null and b/SDK-dat/allwinner-SDK-dat/2025-07-15-01-47-37.png differ |
SDK-dat/allwinner-SDK-dat/Makefile
| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | + |
|
| 2 | +#设置编译链路径及工具 |
|
| 3 | +CTOOL := riscv64-unknown-linux-gnu- |
|
| 4 | +CCL := /home/kunyao/workspace/d_tina_d1_open_v1.0/prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702 |
|
| 5 | +CC := ${CCL}/bin/${CTOOL}gcc |
|
| 6 | + |
|
| 7 | +#设置编译规则 |
|
| 8 | +hello_word:hello_word.c |
|
| 9 | + ${CC} -o hello_word hello_word.c |
|
| 10 | + |
|
| 11 | +#清理规则 |
|
| 12 | +clean: |
|
| 13 | + rm hello_word |
|
| ... | ... | \ No newline at end of file |
SDK-dat/allwinner-SDK-dat/allwinner-SDK-dat.md
| ... | ... | @@ -0,0 +1,40 @@ |
| 1 | + |
|
| 2 | +# allwinner-SDK-dat.md |
|
| 3 | + |
|
| 4 | +## compile |
|
| 5 | + |
|
| 6 | + |
|
| 7 | + |
|
| 8 | + |
|
| 9 | + |
|
| 10 | +## complier |
|
| 11 | + |
|
| 12 | +下载 Hello Word 文件 |
|
| 13 | + |
|
| 14 | +编译完成后需要将编译好的hello_word文件下载到开发板上运行。 |
|
| 15 | + |
|
| 16 | +传入文件可使用的方法多种多样,仁者见仁智者见智。可用的方法简传单列举: |
|
| 17 | + |
|
| 18 | +- ADB工具 |
|
| 19 | +- nfs挂载文件系统 |
|
| 20 | +- 使用SD卡挂载 |
|
| 21 | + |
|
| 22 | +在这里推荐使用我们的ADB工具来进行传输,不需要增加多余的连接,仅仅只需要一根USB线即可。 |
|
| 23 | + |
|
| 24 | + |
|
| 25 | +## flash tools |
|
| 26 | + |
|
| 27 | +(1) PhoenixSuit:基于Windows的系统的烧写工具,是最常用的烧写工具,通过数据线将PC和开发板连接,把固件烧到开发板上,支持分区烧写,适用于开发和小规模生产使用。建议开发者开发时使用该工具进行固件升级。 |
|
| 28 | + |
|
| 29 | +(2)LiveSuit:基于Ubuntu的系统的烧写工具,通过数据线将PC和开发板连接,把固件烧到开发板上,即Ubuntu版的PhoenixSuit,适用于Ubuntu系统开发者进行开发烧写。 |
|
| 30 | + |
|
| 31 | +(3)PhoenixUSBpro:基于Windows的系统的烧写工具,通过数据线将PC和开发板连接,把固件烧到开发板上,一台PC可同时连接8台设备,分别控制其进行烧写,适用于产线批量生产。(如下图) |
|
| 32 | + |
|
| 33 | + |
|
| 34 | + |
|
| 35 | + |
|
| 36 | + |
|
| 37 | + |
|
| 38 | +## ref |
|
| 39 | + |
|
| 40 | +- [[allwinner-dat]] - [[TINA-dat]] - [[SDK-dat]] |
|
| ... | ... | \ No newline at end of file |
SDK-dat/allwinner-SDK-dat/hello_word.c
| ... | ... | @@ -0,0 +1,7 @@ |
| 1 | + |
|
| 2 | +#include <stdio.h> |
|
| 3 | +int main(int argc, char const *argv[]) |
|
| 4 | +{ |
|
| 5 | + printf("Hello NeZha\n"); |
|
| 6 | + return 0; |
|
| 7 | +} |
|
| ... | ... | \ No newline at end of file |
SDK-dat/repo-dat/repo-dat.md
| ... | ... | @@ -0,0 +1,63 @@ |
| 1 | + |
|
| 2 | +# repo-dat |
|
| 3 | + |
|
| 4 | +apt-get install git |
|
| 5 | + |
|
| 6 | + |
|
| 7 | + mkdir -p ~/bin |
|
| 8 | + curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo |
|
| 9 | + chmod a+x ~/bin/repo |
|
| 10 | + export PATH=~/bin:$PATH |
|
| 11 | + source ~/.bashrc |
|
| 12 | + |
|
| 13 | + # Debian/Ubuntu. |
|
| 14 | + $ sudo apt-get install repo |
|
| 15 | + |
|
| 16 | + # Gentoo. |
|
| 17 | + $ sudo emerge dev-vcs/repo |
|
| 18 | + |
|
| 19 | +国内镜像源安装: |
|
| 20 | + |
|
| 21 | + $ mkdir -p ~/.bin |
|
| 22 | + $ PATH="${HOME}/.bin:${PATH}" |
|
| 23 | + $ curl https://mirrors.bfsu.edu.cn/git/git-repo > ~/.bin/repo |
|
| 24 | + $ chmod a+rx ~/.bin/repo |
|
| 25 | + |
|
| 26 | +更换镜像源 |
|
| 27 | + |
|
| 28 | +Repo 的运行过程中会尝试访问官方的 git 源更新自己,更换镜像源可以提高下载速度。将如下内容复制到你的~/.bashrc 里 |
|
| 29 | + |
|
| 30 | + |
|
| 31 | + $ echo export REPO_URL='https://mirrors.bfsu.edu.cn/git/git-repo' >> ~/.bashrc |
|
| 32 | + $ source ~/.bashrc |
|
| 33 | + |
|
| 34 | +## error |
|
| 35 | + |
|
| 36 | + root@ubuntu14:/home/vb# repo --version |
|
| 37 | + File "/root/bin/repo", line 94 |
|
| 38 | + reexec(f"python{min_major}.{min_minor + inc}") |
|
| 39 | + ^ |
|
| 40 | + SyntaxError: invalid syntax |
|
| 41 | + |
|
| 42 | +because the repo script you downloaded uses Python 3.6+ syntax (f-strings), but Ubuntu 14.04 comes with Python 2.7 and maybe Python 3.4, which are too old to support f-strings. |
|
| 43 | + |
|
| 44 | + rm ~/bin/repo |
|
| 45 | + |
|
| 46 | +install legacy version: |
|
| 47 | + |
|
| 48 | + curl -o ~/bin/repo https://storage.googleapis.com/git-repo-downloads/repo-1 |
|
| 49 | + chmod a+x ~/bin/repo |
|
| 50 | + |
|
| 51 | + |
|
| 52 | +root@ubuntu14:/home/vb# repo --version |
|
| 53 | + |
|
| 54 | + repo version v1.13.11 |
|
| 55 | + (from https://gerrit.googlesource.com/git-repo) |
|
| 56 | + repo launcher version 1.27 |
|
| 57 | + (from /root/bin/repo) |
|
| 58 | + (currently at 1.13.11) |
|
| 59 | + repo User-Agent git-repo/1.13.11 (Linux) git/1.9.1 Python/2.7.6 |
|
| 60 | + git 1.9.1 |
|
| 61 | + git User-Agent git/1.9.1 (Linux) git-repo/1.13.11 |
|
| 62 | + Python 2.7.6 (default, Nov 13 2018, 12:45:42) |
|
| 63 | + [GCC 4.8.4] |
SDK-dat/ubuntu-dat/ubuntu-dat.md
| ... | ... | @@ -17,6 +17,13 @@ |
| 17 | 17 | - 进入到 share 目录 (Enter the share directory). |
| 18 | 18 | - 使用 ls 命令查看挂载结果 (Use the ls command to check the mounted folder). |
| 19 | 19 | |
| 20 | +## basic |
|
| 21 | + |
|
| 22 | +apt-get update |
|
| 23 | +apt-get upgrade |
|
| 24 | +apt-get install <package_name> |
|
| 25 | + |
|
| 26 | + |
|
| 20 | 27 | ## ref |
| 21 | 28 | |
| 22 | 29 | - [[virtualbox-dat]] |
| ... | ... | \ No newline at end of file |
SDK-dat/virtualbox-dat/virtualbox-dat.md
| ... | ... | @@ -1,6 +1,12 @@ |
| 1 | 1 | |
| 2 | 2 | # virtualbox-dat |
| 3 | 3 | |
| 4 | +## supported SDK |
|
| 5 | + |
|
| 6 | +- [[TINA-dat]] |
|
| 7 | + |
|
| 8 | +## install |
|
| 9 | + |
|
| 4 | 10 | 下载安装 |
| 5 | 11 | 官网下载地址:https://www.virtualbox.org/ |
| 6 | 12 | |
| ... | ... | @@ -16,6 +22,7 @@ VirtualBox安装Ubuntu |
| 16 | 22 | 参考链接: Oracle VM VirtualBox安装Ubuntu14.04环境的教程: https://blog.csdn.net/weixin_42135087/article/details/108193641 |
| 17 | 23 | |
| 18 | 24 | 增强功能 |
| 25 | + |
|
| 19 | 26 | 安装增强功能可以实现共享剪切板功能共享文件夹功能。共享粘贴板可在PC和虚拟机之间互相粘贴复制内容。文件夹共享可以在本地主机下创建一个文件夹,然后VirtualBOX将该文件夹映射到虚拟机下指定的文件夹中,这样我们就可以访问该文件夹下的子文件夹以及文件了。这两个功能都能极大地提高我们的开发效率 |
| 20 | 27 | |
| 21 | 28 | 注意: 在共享文件夹的路径中如果是挂在的windows系统的文件夹,可能无法成功地下载Tina的SDK代码,注意SDK的下载目录不要设置在共享文件夹中。 |
| ... | ... | @@ -97,3 +104,33 @@ sudo usermod -aG vboxsf $(whoami) |
| 97 | 104 | # Replace $(whoami) with your Ubuntu username if needed |
| 98 | 105 | ``` |
| 99 | 106 | |
| 107 | + sudo usermod -aG vboxsf vb |
|
| 108 | + reboot |
|
| 109 | + |
|
| 110 | +## proxy |
|
| 111 | + |
|
| 112 | +preferences -> network -> proxy == socks5://127.0.0.1:7897 |
|
| 113 | + |
|
| 114 | +- turn on TUN mode |
|
| 115 | + |
|
| 116 | +## root |
|
| 117 | + |
|
| 118 | + su |
|
| 119 | + usermod -aG sudo vb |
|
| 120 | + |
|
| 121 | + |
|
| 122 | + |
|
| 123 | +## common error |
|
| 124 | + |
|
| 125 | +- Use VBoxVGA Display Controller (Fix for Older Ubuntu) |
|
| 126 | + |
|
| 127 | + |
|
| 128 | + |
|
| 129 | + |
|
| 130 | +## usage |
|
| 131 | + |
|
| 132 | +### scale mode |
|
| 133 | + |
|
| 134 | +The virtual machine window will be now switched to Scale mode. You can go back to windowed mode at any time by pressing Host+C. Note that the Host key is currently defined as Right Ctrl. |
|
| 135 | + |
|
| 136 | +Note that the main menu bar is hidden in scaled mode. You can access it by pressing Host+Home. |
|
| ... | ... | \ No newline at end of file |