# #Step1: Download rkdeveloptool # For aarch64 FreeBSD-13.1-RELEASE # wget https://personalbsd.org/download/Packages/rkdeveloptool.tgz # pkg add rkdeveloptool.tgz # root@dell:~ # rkdeveloptool -v rkdeveloptool ver 1.32 root@dell:~ # #Step2: Connect NanoPi-R4SE to PC and Enter Installation Mode #1) Disconnect the connected USB cable and the power cord from NanoPi-R4SE, eject the TF card; #2) Press and hold the “Mask” key, power on the board. After the status LED has been on for at least 3 seconds, release the Mask key. #3) Use a USB A-to-A cable, connect NanoPi-R4SE to a PC as follows. # Note: please pay attention to the USB port the USB cable is connected to in the screenshot # https://personalbsd.org/download/Business/Nanopi-R4SE-usba-to-usba.jpg #Step3: Write image to eMMC flash rkdeveloptool ld # DevNo=1 Vid=0x2207,Pid=0x350a,LocationID=104 Maskrom # Erase flash rkdeveloptool ef # Download the loader (flash helper) to init the ram # and prepare the flashing environment etc. # If you don't have it, you can download it from here # For R4SE # wget https://personalbsd.org/download/Business/rk3399_loader_v1.27.126.bin rkdeveloptool db rk3399_loader_v1.27.126.bin # For R5S # wget https://personalbsd.org/download/Business/rk356x_spl_loader_ddr1056_v1.06.110.bin rkdeveloptool db rk356x_spl_loader_ddr1056_v1.06.110.bin #TestDevice: rkdeveloptool td #EraseFlash: rkdeveloptool ef # Write the GPT image to eMMC, start to write from offset 0. # For example. # OPNsense For R4SE # wget https://personalbsd.org/images/OPNsense-22.7-OpenSSL-aarch64-NanoPi-R4SE-20220825.img.xz # unxz -T0 OPNsense-22.7-OpenSSL-aarch64-NanoPi-R4SE-20220825.img.xz # rkdeveloptool wl 0 OPNsense-22.7-OpenSSL-aarch64-NanoPi-R4SE-20220825.img # Reboot the device rkdeveloptool rd