@Zendog said in Help with bricked Omega 2+:
@Lazar-Demin thanks! I thought as much. Many thanks for looking into this either way.
Luckily, I was a KS backer of the Onion Omega 2+ and got a bundle of 8 of them off the back of enjoying having bought 2 of the first Omegas to be released. 1 down, 7 to go...
So, as a parting shot, can you please point me in the right direction?
I plan to upgrade all the others and hopefully not run into the same issues.
Should my upgrade process for each be:
Upgrade uboot image first with the latest version, then
Upgrade the firmware Omega .bin file with the latest version
... Then reboot. That's the right thing to do to get it to the latest version, right?
Do both of the above points in one go or reboot after uboot is update?
for the record/clarity, you can sysupgrade into the new image from an old Omega2 firmware.
I tried today, using the 'beta firmware' instructions via archive.org (couldn't find any working link otherwise)
https://web.archive.org/web/20250213213028/https://documentation.onioniot.com/firmware/installing-firmware/
used that with the latest 23.05 image from the repo
http://repo.onioniot.com/omega2/images/openwrt-23.05/
(no https is available)
While OpenWrt is a single user system, you can create additional users so you don't have to disclose the root user password. You can add the user by editing /etc/passwd and /etc/shadow or you can install the useradd package:
opkg install shadow-useradd
Now add a new user named "admin", but we don't want them to have shell access:
useradd admin -d /var -M -s /bin/false -p mytemporarypassword
The password is added in cleartext so you need to change it using the command:
passwd admin
Follow the prompts to set your password then you can confirm the new user has been added as required:
cat /etc/passwd
cat /etc/shadow
Since OnionOS uses ubus via rpc we need to add the user to the rpc user list. The configuration file is /etc/config/rcpd, but you can use uci commands to add the user:
uci add rpcd login
uci set rpcd.@login[-1].username='admin'
uci set rpcd.@login[-1].password='$p$admin'
uci add_list rpcd.@login[-1].read='*'
uci add_list rpcd.@login[-1].write='*'
uci commit rpcd
The username must match the username we just created and the structure of the password field causes the rpc daemon to use the system password we just created.
The "read" and "write" fields is set to an asterisk indicating that the user will have unrestricted access, the same as the root user.
You can confirm the new user had been added using a uci command:
uci show rpcd
rpcd.@login[0]=login
rpcd.@login[0].username='root'
rpcd.@login[0].password='$p$root'
rpcd.@login[0].read='*'
rpcd.@login[0].write='*'
rpcd.@login[1]=login
rpcd.@login[1].username='admin'
rpcd.@login[1].password='$p$admin'
rpcd.@login[1].read='*'
rpcd.@login[1].write='*'
Now restart the rpc daemon:
service rpcd restart
You can now login to OnionOS with the same functionality as the root user has, but the user has no console access.
@cyberai pls try running the checkCamera.py Example Python Program and posting the command line output and screenshots of the output.
This will give us a better idea of what's going on.