Blueberry/index.html
2025-04-01 11:32:11 +08:00

240 lines
11 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>蓝莓派</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
<style>
body {
padding-top: 20px;
padding-bottom: 20px;
}
.header {
border-bottom: 1px solid #e5e5e5;
margin-bottom: 20px;
}
.footer {
padding-top: 1px;
color: #777;
margin-top: 20px;
border-top: 1px solid #e5e5e5;
text-align: center;
font-size: 0.9em;
}
/* 固定左侧导航栏样式 */
.toc {
position: fixed;
top: 20px;
left: 20px;
width: 200px; /* 固定宽度,可根据需要调整 */
height: calc(100vh - 40px); /* 高度为视口高度减去上下边距 */
overflow-y: auto;
border-right: 1px solid #e5e5e5;
padding-right: 10px;
}
.toc a {
text-decoration: none;
color: #333;
}
.toc a:hover,
.toc a.active {
color: #0d6efd;
font-weight: bold;
}
/* 主体内容区域预留左侧空间 */
.main-content {
margin-left: 240px; /* 固定导航宽度 + 20px 间隙 */
padding: 20px;
}
/* 代码块样式 */
pre {
background-color: #2d2d2d;
color: #ccc;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
}
/* 响应式调整:小屏幕下隐藏固定导航 */
@media (max-width: 768px) {
.toc {
display: none;
}
.main-content {
margin-left: 0;
}
}
</style>
</head>
<body>
<div class="container">
<!-- 固定左侧导航栏 -->
<nav class="toc">
<h4>导航</h4>
<ul class="list-unstyled">
<li><a href="index.html">首页</a></li>
<li><a href="https://blueberry.aixiao.me/images/" target="_blank">预编译系统下载</a></li>
<li><a href="https://github.com/niuyuling/Blueberry" target="_blank">源码</a></li>
<li><a href="about.html">关于作者</a></li>
</ul>
</nav>
<!-- 右侧主体内容 -->
<div class="main-content">
<style>
#blueberry {
color: blue;
}
</style>
<h1 id="blueberry">Blueberry</h1>
<p>
蓝莓派,基于 <a href="https://github.com/YuzukiHD/YuzukiChameleon" target="_blank">Yuzuki Chameleon</a> 二次开发。<br>
修改SCH原理图WiFi模块替换为RTL8189ES。<br>
修改PCB适用与RTL8189ES。
</p>
<h2 id="特点">特点</h2>
<ul>
<li>基于全志 H616 芯片4*Cortex A53</li>
<li>HDMI支持4K@60支持最大6K视频解码</li>
<li>最大2GB内存与128GB eMMC储存</li>
<li>板载eMMC与TF卡槽</li>
<li>板载 RTL8189ES WIFI芯片</li>
<li>4个USB TypeC3个HOST 一个 OTG支持USB摄像头与采集卡输入</li>
<li>板载风扇槽,散热器固定孔</li>
<li>引出 RJ45 百兆接口</li>
<li>板载 40 Pin GPIO可扩展SPI LCD显示屏、千兆以太网、麦克风阵列、CAN收发器、温湿度传感器、加速度传感器等</li>
<li>AXP313A 电源方案</li>
</ul>
<img src="IMAGE/blueberry.png" alt="蓝莓派硬件架构图" class="img-fluid">
<h2 id="allwinner-h616">Allwinner H616</h2>
<p>
H616是全志科技为用户提供的新一代高画质64位4K@60fps解码SoC适用于OTT和IPTV市场。它集成了四核64位CortexTM-A53处理器和全新的G31 GPU支持OpenGL ES 3.2/Vulkan 1.1的ARM引擎。
</p>
<p>
此外H616还支持全格式4K@60fps 10位超高清视频解码以及全志自主研发的SmartColor3.3TM图像增强引擎、杜比和DTS音频处理。H616采用了新一代功耗技术比上一代降低20%的功耗。
</p>
<figure>
<img src="IMAGE/brief.png" alt="H616 概览图" class="img-fluid">
</figure>
<h2 id="硬件资料">硬件资料</h2>
<ul>
<li><a href="https://lceda.cn/" target="_blank">嘉立创EDA项目</a></li>
<li>嘉立创EDA项目文件<a href="https://git.aixiao.me/aixiao/Blueberry/raw/branch/master/HW/blueberry/ProProject_blueberry_2023-11-09.epro" target="_blank">ProProject_blueberry_2023-11-09.epro</a></li>
<p></p>
<li><a href="https://www.altium.com.cn/products/downloads" target="_blank">Altium Designer</a></li>
<li>Altium Designer 项目文件:<a href="Altium Designer/Blueberry-AD-20250401.zip" target="_blank">Blueberry-AD-20250401.zip</a></li>
<p></p>
<li>原理图:<a href="HW/blueberry/SCH_blueberry_2023-11-09.pdf" target="_blank">SCH_blueberry_2023-11-09.pdf</a></li>
<li>BOM<a href="HW/blueberry/BOM.xlsx" target="_blank">BOM.xlsx</a></li>
<li>Gerber<a href="HW/blueberry/Gerber_blueberry_2023-10-19.zip" target="_blank">Gerber_blueberry_2023-10-19.zip</a></li>
<li>H616 ds<a href="HW/h616_datasheet_v1.0.pdf" target="_blank">h616_datasheet_v1.0.pdf</a></li>
<li>H616 manual<a href="HW/h616_user_manual_v1.0.pdf" target="_blank">h616_user_manual_v1.0.pdf</a></li>
<li>AXP313a<a href="HW/axp313a_datasheet_v0.1-20201105.pdf" target="_blank">axp313a_datasheet_v0.1-20201105.pdf</a></li>
<li>RTL8189ES<a href="HW/RTL8189ES_STAMP_Module-1V0.pdf" target="_blank">RTL8189ES_STAMP_Module-1V0.pdf</a></li>
</ul>
<h2 id="构建系统">构建系统</h2>
<p>Linux Kernel: <a href="https://github.com/niuyuling/linux" target="_blank">https://github.com/niuyuling/linux</a></p>
<p>U-BOOT: <a href="https://github.com/niuyuling/u-boot" target="_blank">https://github.com/niuyuling/u-boot</a></p>
<pre><code class="bash">
apt-get -y install git wget
git clone --depth=1 --branch=main https://github.com/armbian/build
wget https://git.aixiao.me/aixiao/Blueberry/raw/branch/master/SF/ArmDebian/blueberry.patch
cd build
git apply ../blueberry.patch # 打补丁
./compile.sh build BOARD=blueberry BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=bookworm
</code></pre>
<h2 id="EMMc 刷入系统">EMMc 刷入系统</h2>
<p><a href="https://linux-sunxi.org/FEL/USBBoot#Using_sunxi-fel_on_Windows" target="_blank">Windows 安装驱动</a></p>
<p>针对FEL</p>
<p>安装zadig后打开选择"Device"→"Create New Device" </p>
<img src="IMAGE/create_new_device.png" alt="create_new_device.png" class="img-fluid">
<p>按图中信息填写 </p>
<img src="IMAGE/fel_driver.png" alt="fel_driver.png" class="img-fluid">
<p>然后点击"Install Driver" </p>
<p>针对DFU </p>
<p>再次选择"Device"→"Create New Device" </p>
<img src="IMAGE/create_new_device_dfu.png" alt="create_new_device_dfu.png" class="img-fluid">
<p>按图中信息填写 </p>
<img src="IMAGE/dfu_driver.png" alt="dfu_driver.png" class="img-fluid">
<p>然后点击"Install Driver" </p>
<p>编译可以在 Windows下识别Emmc设备为U盘的 u-boot </p>
<pre><code class="bash">
# 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
</code></pre>
<p>Windows刷机工具 <a href="https://github.com/eperie/build-scripts/releases/download/v1.3/sunxi-tools-mingw64-530adfa.zip" target="_blank">SUNXI-FEL</a></p>
<p>按住FEL键链接USB后执行刷入U-BOOT </p>
<img src="IMAGE/fel_ver.png" alt="fel_ver.png" class="img-fluid">
<pre><code class="bash">
.\sunxi-fel.exe -v ver
</code></pre>
<pre><code class="bash">
.\sunxi-fel.exe uboot .\u-boot-sunxi-with-spl.bin
</code></pre>
<p>刷入u-boot后Windows 自动识别设备Emmc为u盘设备 </p>
<p>这时下载系统镜像刷入TF那样刷入Emmc设备 </p>
<p>Windows 刷机工具<a href="https://sourceforge.net/projects/win32diskimager/" target="_blank">win32diskimager</a></p>
<h2 id="问题">问题</h2>
<p>目前未发现问题。</p>
<p>适用于树莓派的GPIO库还未移植成功</p>
<h2 id="配件">网口配件</h2>
<p>RJ45口需要自行制作百兆速率需注意等长。</p>
<p>
RJ45_SCH<br>
<img src="IMAGE/rj45_sch.png" alt="RJ45 接口原理图" class="img-fluid">
</p>
<p>
RJ45_PCB<br>
<img src="IMAGE/rj45_pcb.png" alt="RJ45 接口 PCB 布局" class="img-fluid">
</p>
<p>
RJ45_3D<br>
<img src="IMAGE/rj45_3d.png" alt="RJ45 接口 3D 效果图" class="img-fluid">
</p>
</div>
</div>
<!-- 页脚 -->
<footer class="footer">
<p>Copyright &copy; 2019 - 2025 AIXIAO.ME All Rights Reserved</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
</body>
</html>