diff --git a/docs/common/orion-common/low-level-dev/_bios.mdx b/docs/common/orion-common/low-level-dev/_bios.mdx index 96e25a11d..9953e4447 100644 --- a/docs/common/orion-common/low-level-dev/_bios.mdx +++ b/docs/common/orion-common/low-level-dev/_bios.mdx @@ -42,8 +42,8 @@ :::tip 推荐配件 -- [瑞莎 DC 36W 电源适配器(推荐使用)](https://radxa.com/products/accessories/power-dc12-36w) -- [瑞莎 DC 60W 电源适配器(推荐使用)](https://radxa.com/products/accessories/power-dc12-60w) +- [瑞莎 DC 36W 电源适配器 (推荐使用)](https://radxa.com/products/accessories/power-dc12-36w) +- [瑞莎 DC 60W 电源适配器 (推荐使用)](https://radxa.com/products/accessories/power-dc12-60w) - 标准 12V DC5525 电源适配器,建议电流 3A 及以上 ::: @@ -124,7 +124,7 @@ USB 转 TTL 串口线的连接方式可以参考 -启动主板后,显示器出现 Radxa Logo 和进度条时,短按键盘的 “Esc” 按键进入 `BIOS` 界面。 +启动主板后,显示器出现 Radxa Logo 和进度条时,短按键盘的“Esc”按键进入 `BIOS` 界面。
Radxa Logo 界面 @@ -167,7 +167,7 @@ Press ESCAPE for boot options />
-进入 UEFI Shell 界面后,按 `ESC` 键取消自动更新,手动进入指定磁盘更新 BIOS固件。 +进入 UEFI Shell 界面后,按 `ESC` 键取消自动更新,手动进入指定磁盘更新 BIOS 固件。
UEFI Shell 界面 @@ -224,3 +224,169 @@ startup.nsh 3. 重启系统 更新完成后,重新插拔电源适配器启动系统! + +## 使用编程器刷写 BIOS 固件(仅在无法启动系统时使用) + +对于需要从损坏的 BIOS 中恢复或偏好直接硬件访问的高级用户,可以使用 Serial Flash 编程器(如 CH341A)将 BIOS 固件(cix_flash_all.bin)直接刷写到 SPI NOR Flash 芯片中。此方法完全绕过操作系统,即使在设备无法启动的情况下也能工作。 + +### 准备工作 + +1. 准备硬件 + +- 编程器:推荐使用 CH341A / CH341B 编程器 +- 1.8V 转换器 +- SOP8 烧录夹 +- linux 系统的电脑 + +2. 下载 BIOS 固件 + +访问 资源汇总下载 页面,下载 BIOS 固件。 +从 radxa-dl 网站上下载的固件是 zip 格式,需要进行两次解压: + + + +``` +unzip orion-o6-bios-v1.x.x.zip # orion o6n 的 bios 名称与之类似 +cd orion-o6-bios-v1.x.x # 进入解压后的目录 +gzip -d cix_flash_all.bin.gz +``` + + + +3. 安装 flashrom 工具 + + + +``` +sudo apt-get install flashrom +``` + + + +### 组装烧录夹 + +1. 将 CH341A/B 编程器设置为刷机模式 + 将编程器的跳线帽设置为刷机模式,具体位置请参考编程器说明书。 + +
+ +
+ +2. 将 1.8V 转换器放在 CH341A/B 编程器的烧录夹上并锁定压杠 + +
+ +
+ +3. 将 SOP8 烧录夹放在 1.8V 转换器的脚端并锁定压杠 + +
+ +
+ +4. 使用夹具夹住 Flash ROM 芯片 + + + + 将烧录夹夹住主板上的 Flash ROM + 芯片确保夹具的引脚与芯片的引脚对应正确,红色的线为 SOP8 的 1 + 号引脚,和芯片上圆形点标注的引脚对应。 +
+ +
+
+ + 将烧录夹夹住取下来的 Flash ROM + 芯片,确保夹具的引脚与芯片的引脚对应正确,红色的线为 SOP8 的 1 + 号引脚,和芯片上圆形点标注的引脚对应。 拆卸安装 BIOS + 芯片的步骤请参考下方的“拆卸 SPI Flash 芯片”和“安装 SPI Flash 芯片”章节。 +
+ +
+
+
+ +### 刷写 BIOS 固件 + +1. 插入编程器并启动电脑 + +将组装好的编程器插入 linux 系统的电脑 USB 接口。 + +2. 查看编程器识别情况 + + + +``` +sudo flashrom -L | grep ch341 +``` + + + +如果显示类似如下信息,表示编程器识别成功: + +``` +Supported USB devices for the ch34la_spi programmer +``` + +3. 查看芯片识别情况 + + + +``` +sudo flashrom -p ch341a_spi -n +``` + + + +如果显示类似如下信息,表示芯片识别成功: + +``` +Found Winbond flash chip "W25Q64.W" (8192 kB, SPI) on ch341a_spi. +``` + +4. 刷写 BIOS 固件 + +确保进行此步骤时,编程器和芯片连接稳定,避免刷写过程中断电或连接不稳定导致刷写失败。 + +当前目录下有需要刷写的 `cix_flash_all.bin` 文件。 + + + +``` +sudo flashrom -p ch341a_spi -w cix_flash_all.bin +``` + + + +等待刷写完成,显示如下信息表示刷写成功: + +``` +Verifying flash... VERIFIED. +``` + +5. 重启系统 + +更新完成后,重新插拔电源适配器启动系统! diff --git a/docs/orion/o6/low-level-dev/bios.md b/docs/orion/o6/low-level-dev/bios.md index c28be32ff..a3918b9eb 100644 --- a/docs/orion/o6/low-level-dev/bios.md +++ b/docs/orion/o6/low-level-dev/bios.md @@ -8,9 +8,7 @@ import BIOS from '../../../common/orion-common/low-level-dev/\_bios.mdx'; -## 使用烧录器更新 BIOS 固件 - -对于需要从损坏的 BIOS 中恢复或偏好直接硬件访问的高级用户,可以使用 Serial Flash 编程器(如 CH341A )将BIOS固件(cix_flash_all.bin)直接刷写到 SPI NOR Flash 芯片中。此方法完全绕过操作系统,即使在设备无法启动的情况下也能工作。 +## 安装与拆卸 SPI Flash 芯片 ### 拆卸 SPI Flash 芯片 @@ -28,12 +26,6 @@ import BIOS from '../../../common/orion-common/low-level-dev/\_bios.mdx';
-### 烧录 BIOS 固件 - -有关详细的步骤说明和硬件要求,请参阅社区成员 Meco 提供的全面 [论坛指南](https://forum.radxa.com/t/guide-flash-bios-with-ch341a-macos-linux/26742)。 - -论坛指南教程所需要的 `cix_flash_all.bin` 文件位于下载 BIOS 包中。 - ### 安装 SPI Flash 芯片 ① : 将 SPI Flash 芯片安装到主板上 @@ -44,7 +36,7 @@ import BIOS from '../../../common/orion-common/low-level-dev/\_bios.mdx'; :::tip 安装时注意芯片安装的方向和位置 -- 芯片的圆圈对应引脚 1 ,图中用红色小圆圈标注出来了。 +- 芯片的圆圈对应引脚 1,图中用红色小圆圈标注出来了。 - 安装 SPI Flash 的底座有一个三角箭头,对应 SPI Flash 的引脚 1 你可以通过以上两种方式确认 SPI Flash 的安装方向和位置。 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/_bios.mdx b/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/_bios.mdx index 4f0b24933..4fa0ff899 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/_bios.mdx +++ b/i18n/en/docusaurus-plugin-content-docs/current/common/orion-common/low-level-dev/_bios.mdx @@ -224,3 +224,170 @@ startup.nsh 3. Reboot the system After the update completes, unplug and reconnect the power adapter to reboot the system. + +## Flash BIOS Firmware Using a Programmer (Only When System Cannot Boot) + +For advanced users who need to recover from a corrupted BIOS or prefer direct hardware access, you can use a Serial Flash programmer (such as CH341A) to flash the BIOS firmware (cix_flash_all.bin) directly to the SPI NOR Flash chip. This method completely bypasses the operating system and works even when the device cannot boot. + +### Preparation + +1. Prepare hardware + +- Programmer: CH341A / CH341B programmer recommended +- 1.8V adapter +- SOP8 clip +- Linux PC + +2. Download BIOS firmware + +Visit the Downloads page to download the BIOS firmware. +The firmware downloaded from the radxa-dl website is in zip format and requires two extractions: + + + +``` +unzip orion-o6-bios-v1.x.x.zip # The BIOS filename for Orion O6N is similar +cd orion-o6-bios-v1.x.x # Enter the extracted directory +gzip -d cix_flash_all.bin.gz +``` + + + +3. Install flashrom tool + + + +``` +sudo apt-get install flashrom +``` + + + +### Assemble the Programming Clip + +1. Set the CH341A/B programmer to flash mode + Set the programmer's jumper to flash mode. Refer to the programmer's manual for the specific position. + +
+ +
+ +2. Place the 1.8V adapter on the CH341A/B programmer's clip and lock the lever + +
+ +
+ +3. Place the SOP8 clip on the 1.8V adapter's pins and lock the lever + +
+ +
+ +4. Clip onto the Flash ROM chip + + + + Clip onto the Flash ROM chip on the board. Ensure the clip's pins correspond + correctly to the chip's pins - the red wire is pin 1 of the SOP8, which + corresponds to the pin marked with a circular dot on the chip. +
+ +
+
+ + Clip onto the removed Flash ROM chip. Ensure the clip's pins correspond + correctly to the chip's pins - the red wire is pin 1 of the SOP8, which + corresponds to the pin marked with a circular dot on the chip. Refer to the + "Remove SPI Flash Chip" and "Install SPI Flash Chip" sections below for + steps on removing and installing the BIOS chip. +
+ +
+
+
+ +### Flash BIOS Firmware + +1. Insert the programmer and boot the PC + +Insert the assembled programmer into the USB port of a Linux PC. + +2. Check programmer recognition + + + +``` +sudo flashrom -L | grep ch341 +``` + + + +If output similar to the following appears, the programmer is recognized successfully: + +``` +Supported USB devices for the ch34la_spi programmer +``` + +3. Check chip recognition + + + +``` +sudo flashrom -p ch341a_spi -n +``` + + + +If output similar to the following appears, the chip is recognized successfully: + +``` +Found Winbond flash chip "W25Q64.W" (8192 kB, SPI) on ch341a_spi. +``` + +4. Flash BIOS firmware + +Ensure the programmer and chip are stably connected during this step to avoid flash failure due to power loss or unstable connections. + +Make sure the `cix_flash_all.bin` file to be flashed is in the current directory. + + + +``` +sudo flashrom -p ch341a_spi -w cix_flash_all.bin +``` + + + +Wait for flashing to complete. The following message indicates successful flashing: + +``` +Verifying flash... VERIFIED. +``` + +5. Reboot the system + +After the update completes, unplug and reconnect the power adapter to reboot the system! diff --git a/i18n/en/docusaurus-plugin-content-docs/current/orion/o6/low-level-dev/bios.md b/i18n/en/docusaurus-plugin-content-docs/current/orion/o6/low-level-dev/bios.md index 9c2a32ca0..c7a6a2f48 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/orion/o6/low-level-dev/bios.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/orion/o6/low-level-dev/bios.md @@ -8,9 +8,7 @@ import BIOS from '../../../common/orion-common/low-level-dev/\_bios.mdx'; -## Update BIOS Firmware Using a Programmer - -For advanced users who need to recover from a corrupted BIOS or prefer direct hardware access, you can use a Serial Flash programmer (such as CH341A) to flash the BIOS firmware (cix_flash_all.bin) directly to the SPI NOR Flash chip. This method completely bypasses the operating system and works even if the device cannot boot. +## Remove and Install the SPI Flash Chip ### Remove the SPI Flash Chip @@ -28,12 +26,6 @@ After completing the above steps, use tweezers to remove the SPI Flash chip from -### Flash the BIOS Firmware - -For detailed instructions and hardware requirements, please refer to the comprehensive [forum guide](https://forum.radxa.com/t/guide-flash-bios-with-ch341a-macos-linux/26742) provided by community member Meco. - -The `cix_flash_all.bin` file required for the forum guide is located in the downloaded BIOS package. - ### Install the SPI Flash Chip ① : Install the SPI Flash chip onto the motherboard diff --git a/static/img/orion/o6/bios/orion-o6-adapter-sop8-clamp-lock.webp b/static/img/orion/o6/bios/orion-o6-adapter-sop8-clamp-lock.webp new file mode 100644 index 000000000..0f2748245 Binary files /dev/null and b/static/img/orion/o6/bios/orion-o6-adapter-sop8-clamp-lock.webp differ diff --git a/static/img/orion/o6/bios/orion-o6-ch341-adapter-clamp.webp b/static/img/orion/o6/bios/orion-o6-ch341-adapter-clamp.webp new file mode 100644 index 000000000..f6baefa2a Binary files /dev/null and b/static/img/orion/o6/bios/orion-o6-ch341-adapter-clamp.webp differ diff --git a/static/img/orion/o6/bios/orion-o6-ch341-eeprom-clamp.webp b/static/img/orion/o6/bios/orion-o6-ch341-eeprom-clamp.webp new file mode 100644 index 000000000..e89ae2fd4 Binary files /dev/null and b/static/img/orion/o6/bios/orion-o6-ch341-eeprom-clamp.webp differ diff --git a/static/img/orion/o6/bios/orion-o6-ch341-pin.webp b/static/img/orion/o6/bios/orion-o6-ch341-pin.webp new file mode 100644 index 000000000..ccb587058 Binary files /dev/null and b/static/img/orion/o6/bios/orion-o6-ch341-pin.webp differ diff --git a/static/img/orion/o6/bios/orion-o6n-ch341-eeprom-clamp.webp b/static/img/orion/o6/bios/orion-o6n-ch341-eeprom-clamp.webp new file mode 100644 index 000000000..c9f7188ee Binary files /dev/null and b/static/img/orion/o6/bios/orion-o6n-ch341-eeprom-clamp.webp differ