Yes, you can use that script.
I used it to from 2.9.26 to, 3.0.29 to 3.1.22 to 3.2.18, and finally to 3.5.4 (still my current version).
You can go direct to the version you like (but I have no experience with the use of the script after 3.5.4).
It is some time ago I did this, and hope my notes are complete.
You probably also need to change a port in iptables.conf, and set a new passwd. See:
viewtopic.php?f=87&t=8743&start=90#p77550
Not sure anymore if I had to change the passwd via serial.
I have the following line in /etc/init.d/dropbear at around line 87 to adapt iptables.conf after an additional reboot following the upgrade.
(see
viewtopic.php?f=87&t=8743&sid=691c23d4e ... 210#p78584 )
Code: Select all
sed -i 's/\/Toon:/\/2Toon:\n-A HCB-INPUT -p tcp -m tcp --dport 22 --tcp-flags SYN,RST,ACK SYN -j ACCEPT/g' /etc/default/iptables.conf
Steps I used:
- cd /HCBv2/tmp/opkg-cache/
copy _opkg.qb2-ene-3.0.29.script.sh from here http://www.domoticaforum.eu/viewtopic.p ... 150#p77719
rm /HCBv2/tmp/opkg-cache/_opkg.qb2-ene-2.9.26.script.sh*
chmod 744 _opkg.qb2-ene-3.0.29.script.sh
./_opkg.qb2-ene-3.0.29.script.sh qb2 ene 3.0.29 prepare
cat _opkg.qb2-ene-3.0.29.script.sh.res
Look on Toon for new message with the followup steps for the upgrade
Check for errors before continuing:
- cat /HCBv2/tmp/opkg-cache/_opkg.qb2-ene-3.0.29.script.sh.res
cat /HCBv2/tmp/opkg-cache/_opkg.qb2-ene-3.0.29.script.sh.log
Start the actual upgrade:
- cd /HCBv2/tmp/opkg-cache/
./_opkg.qb2-ene-3.0.29.script.sh qb2 ene 3.0.29 execute
Verify and adapt iptables.conf (e.g. 5900 for vnc):
- vi /etc/default/iptables.conf
-A HCB-INPUT -p tcp -m tcp --dport 10080 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 5900 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
/usr/sbin/iptables-restore </etc/default/iptables.conf
Verify logs:
- /HCBv2/tmp/opkg-cache/_opkg.qb2-ene-3.0.29.script.sh.log
/var/volatile/tmp/hcb_log/99_DEBUG.log.json