Blueberry/README.md

150 lines
5.7 KiB
Markdown
Raw Normal View History

2023-11-09 17:00:55 +08:00
# Blueberry
2023-11-09 17:30:17 +08:00
蓝莓派,基于 [Yuzuki Chameleon](https://github.com/YuzukiHD/YuzukiChameleon) 二次开发。
2023-11-09 17:50:48 +08:00
修改SCH原理图WiFi模块替换为RTL8189ES。
2023-11-13 11:22:33 +08:00
修改PCB适用与RTL8189ES。
2024-02-02 15:53:42 +08:00
2023-11-09 17:00:55 +08:00
## 特点:
2023-11-09 17:31:24 +08:00
基于全志 H616 芯片4*Cortex A53
HDMI支持4K@60支持最大 6K 视频解码
最大 2GB 内存与 128GB eMMC 储存
板载eMMC与TF卡槽
板载 RTL8189ES WIFI芯片
4个USB TypeC3个HOST 一个 OTG支持USB摄像头与采集卡输入
板载风扇槽,散热器固定孔
引出 RJ45 百兆接口
板载 40 Pin GPIO可以扩展 SPI LCD 显示屏千兆以太网麦克风阵列CAN收发器温湿度传感器加速度传感器等等。
AXP313A 电源方案
![brief](IMAGE/blueberry.png)
2023-11-09 17:00:55 +08:00
## Allwinner H616
2023-11-09 17:31:24 +08:00
H616是全志科技为用户提供的新一代高画质64位4K@60fps解码SoC
OTT 和 IPTV 市场。 集成四核64位CortexTM-A53处理器以及全新G31 GPU
支持OpenGL ES 3.2/Vulkan 1.1的ARM引擎。 此外H616支持全格式4K@60fps
10位超高清视频解码全志自主研发的SmartColor3.3TM图像增强引擎,
杜比和 DTS 音频处理。 H616采用新一代功耗技术
比上一代降低20%的功耗。
2023-11-09 17:00:55 +08:00
2023-11-09 17:31:24 +08:00
![brief](IMAGE/brief.png)
2023-11-09 17:00:55 +08:00
2023-11-13 11:37:03 +08:00
## 硬件资料
2023-11-13 11:38:35 +08:00
2023-11-13 11:37:03 +08:00
原理图:
2024-11-27 13:37:15 +08:00
[SCH_blueberry_2023-11-09.pdf](https://git.aixiao.me/aixiao/Blueberry/src/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/blueberry/SCH_blueberry_2023-11-09.pdf)
2023-11-29 12:51:51 +08:00
[嘉立创EDA项目:](https://lceda.cn/)
2024-11-27 13:37:15 +08:00
[ProProject_blueberry_2023-11-09.epro](https://git.aixiao.me/aixiao/Blueberry/src/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/blueberry/ProProject_blueberry_2023-11-09.epro)
2023-11-13 11:37:03 +08:00
BOM:
2024-11-27 13:37:15 +08:00
[BOM.xlsx](https://git.aixiao.me/aixiao/Blueberry/src/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/blueberry/BOM.xlsx)
2023-11-13 11:37:03 +08:00
Gerber:
2024-11-27 13:37:15 +08:00
[Gerber_blueberry_2023-10-19.zip](https://git.aixiao.me/aixiao/Blueberry/src/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/blueberry/Gerber_blueberry_2023-10-19.zip)
2023-11-13 11:37:03 +08:00
2023-12-22 15:46:25 +08:00
H616 ds:
2024-11-27 13:37:15 +08:00
[h616_datasheet_v1.0.pdf](https://git.aixiao.me/aixiao/Blueberry/raw/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/h616_datasheet_v1.0.pdf)
2023-12-22 15:46:25 +08:00
H616 manual:
2024-11-27 13:37:15 +08:00
[h616_user_manual_v1.0.pdf](https://git.aixiao.me/aixiao/Blueberry/raw/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/h616_user_manual_v1.0.pdf)
2023-12-22 15:46:25 +08:00
AXP313a:
2024-11-27 13:37:15 +08:00
[axp313a_datasheet_v0.1-20201105.pdf](https://git.aixiao.me/aixiao/Blueberry/raw/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/axp313a_datasheet_v0.1-20201105.pdf)
2023-12-22 15:46:25 +08:00
RTL8189ES:
2024-11-27 13:37:15 +08:00
[RTL8189ES_STAMP_Module-1V0.pdf](https://git.aixiao.me/aixiao/Blueberry/raw/commit/6e2e6ad930020a941458a49bde2141b6c9ce65ea/HW/RTL8189ES_STAMP_Module-1V0.pdf)
2023-11-13 11:37:03 +08:00
2023-11-09 17:30:17 +08:00
## 构建系统
2023-11-09 17:33:25 +08:00
Linux Kernel: https://github.com/niuyuling/linux
U-BOOT: https://github.com/niuyuling/u-boot
2023-11-28 17:12:16 +08:00
2023-11-29 12:51:51 +08:00
如果自己构建请选择 [Debian GNU/Linux 12 (bookworm)](https://www.debian.org/) 系统并且安装 Docker version 24.0.7 磁盘不少于 60G内存不少于 2G。[Docker 安装方法](https://docs.docker.com/engine/install/debian/)
2024-02-02 15:53:42 +08:00
如果选择 ArmDebian 官方 [build](https://github.com/armbian/build) 构建系统,请下载补丁文件 [blueberry.patch](https://git.aixiao.me/aixiao/Blueberry/raw/branch/master/SF/ArmDebian/blueberry.patch)
2023-11-28 17:12:16 +08:00
```
2023-11-28 17:19:49 +08:00
apt-get -y install git wget
2023-11-28 17:12:16 +08:00
git clone --depth=1 --branch=main https://github.com/armbian/build
2023-11-28 17:13:57 +08:00
wget https://git.aixiao.me/aixiao/Blueberry/raw/branch/master/SF/ArmDebian/blueberry.patch
2023-11-28 17:12:16 +08:00
cd build
git apply ../blueberry.patch # 打补丁
./compile.sh build BOARD=blueberry BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=bookworm
```
2023-11-09 17:33:25 +08:00
2023-11-28 17:12:16 +08:00
如果使用 [build](https://git.aixiao.me/aixiao/build.git) 构建系统,是官方也非官方(二次修改)。
2023-11-09 17:30:17 +08:00
```
apt-get -y install git
git clone --depth=1 --branch=main https://git.aixiao.me/aixiao/build.git
cd build
./compile.sh build BOARD=blueberry BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=bookworm
```
2023-11-28 17:12:16 +08:00
预构建系统下载 https://blueberry.aixiao.me/images/
2023-11-09 17:30:17 +08:00
2024-02-02 15:53:42 +08:00
## EMMc 刷入系统
[Windows 安装驱动](https://linux-sunxi.org/FEL/USBBoot#Using_sunxi-fel_on_Windows)
针对FEL
安装zadig后打开选择"Device"→"Create New Device"
![brief](IMAGE/create_new_device.png)
按图中填写信息
![brief](IMAGE/fel_driver.png)
然后点击"Install Driver"
针对DFU
再次选择"Device"→"Create New Device"
![brief](IMAGE/create_new_device_dfu.png)
按图中填写信息
![brief](IMAGE/dfu_driver.png)
然后点击"Install Driver"
编译可以在 Windows下识别Emmc设备为U盘的 u-boot
```
# ARM TRUSTED FIRMWARE (ARM64)
git clone https://github.com/ARM-software/arm-trusted-firmware.git
cd arm-trusted-firmware
make CROSS_COMPILE=aarch64-linux-gnu- PLAT=sun50i-h616 DEBUG=1 bl31
cd ..
# 编译 U-BOOT
git clone https://github.com/niuyuling/u-boot.git
cd u-boot
git checkout v2023.07-blb
make CROSS_COMPILE=aarch64-linux-gnu- BL31=../arm-trusted-firmware/build/sun50i_h616/debug/bl31.bin blueberry_emmc_ums_defconfig
make CROSS_COMPILE=aarch64-linux-gnu- BL31=../arm-trusted-firmware/build/sun50i_h616/debug/bl31.bin
```
2024-02-02 15:56:54 +08:00
Windows刷机工具[SUNXI-FEL](https://github.com/eperie/build-scripts/releases/download/v1.3/sunxi-tools-mingw64-530adfa.zip)
按住FEL键链接USB后执行刷入U-BOOT
2024-02-02 15:53:42 +08:00
![brief](IMAGE/fel_ver.png)
```
.\sunxi-fel.exe -v ver
```
```
.\sunxi-fel.exe uboot .\u-boot-sunxi-with-spl.bin
```
刷入u-boot后Windows 自动识别设备Emmc为u盘设备
这时下载系统镜像刷入TF那样刷入Emmc设备
Windows 刷机工具 [win32diskimager](https://sourceforge.net/projects/win32diskimager/)
2023-11-09 17:30:17 +08:00
## 问题
2023-12-01 18:02:03 +08:00
目前未发现问题。
2023-11-09 17:30:17 +08:00
2023-11-09 17:45:56 +08:00
## 配件
RJ45口需要自己制作百M速率需要注意等长。
2023-11-09 17:47:31 +08:00
RJ45_SCH
![brief](IMAGE/rj45_sch.png)
2023-11-09 17:45:56 +08:00
RJ45_PCB
![brief](IMAGE/rj45_pcb.png)
RJ45_3D
2024-02-02 15:53:42 +08:00
![brief](IMAGE/rj45_3d.png)