TD;DR:
Gain internet connection from some functioning router LAN>WAN.
Reboot when prompted by end of process.
vi /etc/resolv.conf
- delete 127.0.0.1 and replace it with 8.8.8.8
save with Esc :wq
curl -O -k https://repo.turris.cz/turris/packages/base/ca-certificates_20190110-1_mpc85xx.ipk
opkg install ca-certificates_20190110-1_mpc85xx.ipk
opkg update
opkg install turris-btrfs
btrfs_migrate
- if no SD detected > power off > reformat SD card/change SD card
cd /tmp
curl -O -k https://repo.turris.cz/hbs/medkit/turris1x-medkit-latest.tar.gz
schnapps import -f turris1x-medkit-latest.tar.gz
schnapps rollback factory
reboot
Set up initial steps in reForis (WiFi is not here yet, must be done separately from within reForis) > in settings > administration > snapshots > create manually 1 snapshot so you have a point of return.
Reboot device (hard reboot - power cord in/out) and verify that device will boot up as is.
Enjoy
Hi.
despite that you deleted the answer - I would like to thank you @JosefKo because it solved my problem(!).
If can recall correctly (because after reboot the ssh serial output history is empty):
- did that in web Foris UI > set up LAN from 192.168.1.1 for 192.168.2.1 - this will allow internet and the checks in DNS tab confirm show that.
(Now the Foris allow me to skip the wizard with no error page - unlike previous attempts.)
It’s necessary in process unplugging the Ethernet cable causing it reset the settings in PC adapter and clear cache in browser (that is because previous info from Foris will stay in memory refusing even with right adapter setting load the UI).
If someone is capable to do that in ssh, that is the way as well.
vi /etc/resolv.conf
- delete 127.0.0.1 and replace it with 8.8.8.8
save with Esc >:wq
Had to do that after each network restart/reboot - otherwise error ‘couldn’t resolve host’
curl -O -k https://repo.turris.cz/turris/packages/base/ca-certificates_20190110-1_mpc85xx.ipk
opkg install ca-certificates_20190110-1_mpc85xx.ipk
-
opkg update
-
power off pulling the cord (serial can stay connected, it will resume itself)
and inserting the SD card (there is no info as how it should be formatted - did fat32 and full formatting while preparing the SD card) -
power on, wait for boot up
opkg install turris-btrfs
this exiting with
Collected errors:
* resolve_conffiles: Existing conffile /etc/fw_env.config is different from the conffile in the new package. The new conffile will be placed at /etc/fw_env.config-opkg.
* resolve_conffiles: Existing conffile /etc/config/schnapps is different from the conffile in the new package. The new conffile will be placed at /etc/config/schnapps-opkg.
* resolve_conffiles: Existing conffile /etc/cron.d/schnapps is different from the conffile in the new package. The new conffile will be placed at /etc/cron.d/schnapps-opkg.
btrfs_migrate
here the process returned 2 errors:
root@turris:/# btrfs_migrate
No MicroSD card present!
Well despite seeing the SD card info about it’s presence while booting (the log slow down for few sec). Did choose to reformat card again.
and
root@turris:/# btrfs_migrate
/bin/ash: btrfs_migrate: Permission denied
Have no idea why - reboot helped
After next attempt:
Cannot parse config file ‘/etc/fw_env.config’: Invalid argument
Error: environment not initialized
Migration successful, please reboot!
so after reboot
step 7)
cd /tmp
curl -O -k https://repo.turris.cz/hbs/medkit/turris1x-medkit-l
atest.tar.gz
schnapps import -f turris1x-medkit-*.tar.gz
schnapps rollback factory
reboot
After playing with successfully booted up 7.0.2 it somehow stopped working.
While searching for some info - found this
root@turris:/# schnapps list
ERROR: not a valid btrfs filesystem: /
# | Type | Size | Date | Description
------+-----------+-------------+-----------------------------+------------------------------------
1 | rollback | 51.77MiB | 2024-09-15 18:00:00 +0200 | Rollback to snapshot factory 6:00 PM
So repeated the process again (after another by red button reset) and now I do have 7.0.2 working so far.
Saw another error but I’m not able to match this for command that it belong to.
‘mv: can't rename '/mnt/.snapshots/@factory': No such file or directory ERROR: Could not statfs: No such file or directory Your factory image was updated!
’
And some info:
mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead. 6:52 PM
Despite that seems to me it’s working.
So from 3.6.5 (I didn’t make again the SD image recovery tbh) it’s possible to go back for 7.0.2 directly!
Also do recommend changing the SD card after many years for fresh one - because this it something I’m really not willing to repeat often.
Side note:
updater.sh fail despite the certificates so tried this:
the system update for 3.8.5 (info from here)
but
opkg-trans -a updater-ng_59.3.3-1_mpc85xx.ipk -r updater-ng_59.3.3-1_mpc85xx.ipk
or different/newest .ipk does not complete, throw error so it’s maybe not possible anymore or my machine had some bad state with 3.6.5 - who knows.