Skip to content

Instantly share code, notes, and snippets.

@gabonator
Last active November 1, 2022 18:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabonator/7c4c25c2a62450fcd7e9783b60eaf8cf to your computer and use it in GitHub Desktop.
Save gabonator/7c4c25c2a62450fcd7e9783b60eaf8cf to your computer and use it in GitHub Desktop.
orange pi iot 2g notes
General notes on OrangePi boards:
On the download page you will find many SD card images but not a single image works as one would expect.
Do not forget to set the boot switch to SDCARD instead of NAND!!!! If you are not sure what are you doing, try turning the device on
without SD card and if it is booting, it uses NAND. You will also notice this after logging in, when you are not able to create or modify
any file, since the FS is mounted as read only.
There is on board UART running at unusual 921600 bauds next to USB port (GND/RX/TX), or for OrangePi IOT 3G you need to connect to
USART2 on extension header. Use putty on windows or screen on linux/osx to talk to this device. If you receive garbage even when
the baudrate is correct, check your UART connection if it is correctly grounded or power the orangePi directly from USB port of your
computer. If you will receive shitload of debugging messages, reduce them by calling
"echo 1 > /proc/sys/kernel/printk" (or try zero).
Common problems:
1. cannot alter any configuration file - system is mounted as readonly, you are booting from NAND
2. wpa_cli not working because wpa_supplicant not responding - common problem, try another image or learn how to start wpa_supplicant
3. all images are stuck for minutes (3-5min) during startup (WTF!?!?!) at "A start job is running for...." trying to boot from network
or non existing peripherals.
4. terminal stops responding (unstable power supply)
Summary:
1. use jumper switch to boot from SD
2. use UART to USB converter, baud rate 921600
3. login is root/orangepi or root/1234
4. try to configure the board calling OrangePi_Settings (or armbian_config?)
5. restart the device using "sudo reboot" or "sudo halt" & power cycle
OrangePi_2G-IOT_Ubuntu1604_Server_GSMPPP_V1_0.img
===============
during startup waits 5 minutes "A start job is running for Raise..."
change timeout "TimeoutStartSec=30sec" in
/etc/systemd/system/network-online.target.wants/networking.service
or disable service:
sudo systemctl disable systemd-networkd-wait-online.service
login root/orangepi
observed random behavior: terminal not responding few seconds after logging in - after fresh flashing (probably caused by
unstable power supply)
After configuring wifi with OrangePi_Settings and rebooting, the system shows crashdump and then freezes
[ 19.998107] rda_msys : rda-codec : no available space!
[ 19.998596] ------------[ cut here ]------------
[ 19.999145] kernel BUG at arch/arm/plat-rda/md_sys.c:224!
[ 19.999816] Internal error: Oops - BUG: 0 [#1] PREEMPT THUMB2
[ 20.000549] Modules linked in: rdawfmac autofs4
It seems that this crash dump is generated during "Starting WPA supplicant..."
OrangePi_2G-IOT_Raspbian_Server_GSMPPP_V1.0.img
===============
Takes 1 min 45 seconds to startup (waits about one minute at the network boot)
Configured wifi with OrangePi_Settings and rebooted with command "reboot"
From the settings utility only the Wifi, Audio and Camera sections work.
checked IP address with ifconfig, but dns not properly set
called command "echo nameserver 8.8.8.8 > /etc/resolv.conf"
after reboot ip not set
always getting error log messages since startup:
[ 228.046569] rda-mmc rda-mmc.1: cmd 52, wait resp fail, ifc = 255, ret = -5
[ 228.047424] rda-mmc rda-mmc.1: rda_mmc_request fail, ret = -5
[ 228.048950] [RDAWLAN_ERR]:<sdioh_request_byte,117>: Failed to write :@0x00009=01,Err: -5.
[ 228.049804] [RDAWLAN_ERR]:<wland_chip_wake_up,125>: Write URSDIO_FUNC1_INT_TO_DEVICE failed!
[ 228.067565] rda-mmc rda-mmc.1: rsp noResponseReceived
[ 228.068054] rda-mmc rda-mmc.1: cmd 52, wait resp fail, ifc = 255, ret = -5
[ 228.068908] rda-mmc rda-mmc.1: rda_mmc_request fail, ret = -5
[ 228.069641] [RDAWLAN_ERR]:<sdioh_request_byte,117>: Failed to read :@0x00005=ff,Err: -5.
[ 228.070617] [RDAWLAN_ERR]:<wland_sdio_flow_ctrl_91e,418>: wland read URSDIO_FUNC1_INT_PENDING failed......ret = -5
[ 228.071899] [RDAWLAN_ERR]:<wland_sdio_flow_ctrl,449>: wland_sdio_flow_ctrl_91e failed!
[ 228.072875] [RDAWLAN_ERR]:<wland_sdio_send_pkt,480>: wland_sdio_flow_ctrl failed!
[ 228.073852] [RDAWLAN_ERR]:<wland_proto_cdc_data,232>: set_dcmd failed status: -5
[ 228.699218] rda_modem_pm_notify status:0x2
wpa_cli cannot see any wifi network
on next reboot, IP was properly set and DNS works as well!
Able to connect to the device remotely using "ssh root@192.168.1.xxx"
every reboot, different ip is assigned by dhcp
"apt update" was unable to finish
wifi unstable, apt fails reporting that the network is not available
tried power cycling, but no reliable wifi connection, ping 30-500ms, for some periods of time unreachable, when touched
or changed the antenna orientation, got some signal but then signal dropped shortly
Armbian_5.27_Orangepi2g-iot_Debian_jessie_default_3.10.62.img
========================
Start job limit is set to 1min 30s, tries to boot from dev-ttyS0.device or dev-disk-by/x2du
Takes 2 minutes to shell
Login is root/1234
run "armbian-config" to configure wifi
dns not properly set, called "echo nameserver 8.8.8.8 > /etc/resolv.conf"
"reboot"
system not responding to any commands, seems halted without any message
Armbian_5.67.181221_Orangepilite2_Ubuntu_bionic_dev_4.19.11.img
==================
unable to boot from SD "Open SD card Failed"
@mahaju
Copy link

mahaju commented Oct 19, 2021

HI I have an orange pi 2g-iot that isn't booting up at all. Using ubuntu/debian in the sdcard I get no response from the board (no LED, nothing in the serial port, but the RDA8810 chip gets hot when the USB power cable is connected). Using Android in the sdcard/NAND, the LED turns on but I keep getting garbage values in the serial port (viewing in Putty, baud rate 921600, Data bits 8, Parity None, Stop bits 1 Flow control None). For power I have tried using 5 V adaptor as well as connecting USB cable from computer USB port like your suggestion. NAND/TFCARD jumper is connected correctly. The white dip switches are set as 1,2,3,4 OFF (pointing towards edge of board), 5,6,7,8 ON (pointing towards the 40 pin header). Nothing is working. My board is 2G IoT v2.0. Do you have any other suggestions I could try? Is the board broken, or is there any way I can tell for sure? I was able to download Android image to NAND using the instructions in the manual so I hope the board isn't broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment