OEC 刷机Armbain 25.05后配置说明

DHCP 调整为固定IP

nano  /etc/netplan/00-default-use-network-manager.yaml

# Added by Armbian
#
# Reference: https://netplan.readthedocs.io/en/stable/netplan-yaml/
#
# Let NetworkManager manage all devices on this system.
# Any device will come up with DHCP, once carrier is detected.
# This is basically Netplan passing control over to NetworkManager at boot time.

network:
  version: 2
  renderer: NetworkManager
  ethernets:
    eth0:  # 根据你的网络接口名称更改,例如eth1, enp3s0等
      dhcp4: no
      addresses: [10.0.0.178/24]  # 你的IP地址和子网掩码
      gateway4: 10.0.0.1          # 网关地址
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]

挂载SSD硬盘

nano /etc/fstab

UUID=7ba6f126-a3e1-4fc2-b934-40f23013bf65  /      ext4  defaults,noatime,nodiratime,commit=600,errors=remount-ro  0 1
LABEL=BOOT_EMMC  /boot  ext4  defaults  0 2
tmpfs           /tmp     tmpfs    defaults,nosuid                                             0 0

UUID=94460f0e-89ea-47fb-a80a-a748262aec46 /store ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro  0 0

开启SAMBA共享 apt install samba

nano /etc/samba/smb.conf

[global]
        workgroup = SAMBA
        security = user
        map to guest=Bad User
        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

[store]
        comment=oec
        path=/store
        writable=yes
        public=yes
        browseable=yes
        writable=yes
        create mask=0644

MacBook M1访问测试  显示-> 连接服务器 smb://10.0.0.178 选访客 不输入帐号密码

就可以在访达中访问smb服务。

### OEC 设备刷机教程或方法 OEC设备的刷机过程需要特定的工具、驱动程序以及镜像文件。以下内容详细描述了刷机的过程及相关注意事项。 #### 1. 准备工作 在开始刷机之前,必须确保所有必要的工具和文件已经准备就绪[^2]: - **下载并安装驱动程序**:打开`DriverAssitant_v5.1.1`文件夹,运行`DriverInstall.exe`软件以安装所需的驱动程序。 - **获取刷机工具和固件**:从提供的网盘链接中下载刷机工具和镜像文件。例如,使用`RKDevTool.exe`作为刷机工具,并选择正确的镜像文件(如`Oec-box-wxy4.img`)[^3]。 #### 2. 刷机步骤 以下是具体的刷机操作步骤: - **连接设备**:将设备的所有电源线拔掉,然后短接指定的触点,同时插入Type-C数据线。等待两秒钟后松开短接触点。 - **加载底层文件**:在刷机工具中选择`LoaderToDDR`选项,并指定`MiniLoaderAll.bin`文件。 - **选择系统镜像**:在`System`选项中选择准备好的镜像文件(如`Oec-box-wxy4.img`)[^2]。 - **执行刷机**:确认设备已被正确识别后,点击刷机按钮开始执行刷机操作。如果第一次尝试失败,可以多试几次[^2]。 #### 3. 注意事项 - **失败处理**:如果刷机过程中出现失败,可以通过串口日志查看具体原因。然而,根据经验,失败时可能没有串口响应,因此需要多次尝试[^1]。 - **必要条件**:尽管具体的复现条件尚未完全明确,但成功刷机通常需要设备处于正确的启动模式,并且镜像文件与设备硬件兼容。 - **备份原厂系统**:在进行任何刷机操作前,建议备份原厂系统,以便在出现问题时能够恢复到初始状态[^1]。 ```python # 示例代码:模拟刷机工具的基本逻辑 def oec_brush_tool(loader_file, image_file): try: print(f"Loading file: {loader_file}") # 模拟加载底层文件 if loader_file == "MiniLoaderAll.bin": print("Loader file loaded successfully.") else: raise ValueError("Invalid loader file.") print(f"Selecting image file: {image_file}") # 模拟选择镜像文件 if image_file == "Oec-box-wxy4.img": print("Image file selected successfully.") else: raise ValueError("Invalid image file.") print("Executing brush process...") # 模拟刷机过程 return "Brush completed successfully." except Exception as e: return f"Error occurred: {str(e)}" result = oec_brush_tool("MiniLoaderAll.bin", "Oec-box-wxy4.img") print(result) ``` #### 4. 结果验证 完成刷机后,重启设备并检查系统是否正常运行。如果一切正常,则说明刷机成功;否则,需要重新检查每一步的操作是否正确[^2]。 ---
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

恒云客

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值