Toon firmware - update script

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz

adval40
Starting Member
Starting Member
Posts: 13
Joined: Sat Sep 02, 2017 1:17 am

Re: Toon firmware - update script

Post by adval40 »

I have updated 2 times
first from 2.94 (i think) to version 3

next time i want to go 5.5.7
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

Ok it seems like there is a disk space issue when updating from old versions directly to 5.5.7. Yesterday I already changed the script to have a mandatory update to 5.0.4 first.
We see this issue also on the Eneco official forum. To be clear, this is an original Toon issue.

You now need to recover this. Start your toon in the uboot method via serial. If your are lucky you get a working login there. Then you need to check the install log (in /HCBv2/tmp/opkg-cache/*.log or /mnt/data/update/*.log) to see on what part the disk went full and what errors your are getting.
I fixed another Toon (from the official forum) myself a few days ago facing the same problem. It was missing some crucial library files (/lib/* and /usr/lib/*) which caused OPKG not to work anymore. I needed to unpack the lib files packages file manually and place the library files manually in the right place. You need some experience to do this.

If you are able to boot into the uboot method then I would be happy to assist you over a teamviewer. Just PM me your contact details (for example your 06-number so I can whatsapp you).
Member of the Toon Software Collective
whizzz63
Starting Member
Starting Member
Posts: 41
Joined: Wed Feb 27, 2019 6:18 pm

Re: Toon firmware - update script

Post by whizzz63 »

Sorry, I don't know the previous version..... :oops:
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

whizzz63 wrote:Sorry, I don't know the previous version..... :oops:
same goes for you, you probably also where on an old version
Member of the Toon Software Collective
pkaak
Starting Member
Starting Member
Posts: 9
Joined: Sat Aug 12, 2017 5:49 pm

Re: Toon firmware - update script

Post by pkaak »

So after a lot of time I found out the password of my 'dev' Toon (took me half a year to find the password again).
I never had the guts to update my 'production' Toon.

So now I want to update the Dev version. What is the best way to do this?
I ran the script and it says I am on version 4.4.21.

How can I upgrade without having to uboot?
Direct update available or should I go to version x.x.x and/or y.y.y first?
TerrorSource
Administrator
Administrator
Posts: 494
Joined: Thu May 04, 2017 9:28 pm

Re: Toon firmware - update script

Post by TerrorSource »

pkaak wrote:So after a lot of time I found out the password of my 'dev' Toon (took me half a year to find the password again).
I never had the guts to update my 'production' Toon.

So now I want to update the Dev version. What is the best way to do this?
I ran the script and it says I am on version 4.4.21.

How can I upgrade without having to uboot?
Direct update available or should I go to version x.x.x and/or y.y.y first?
At the moment, go to 5.0.4 first and then to 5.5.7.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

TerrorSource wrote:
At the moment, go to 5.0.4 first and then to 5.5.7.
Actually the script will force an update to 5.0.4 first :-)
Member of the Toon Software Collective
CrumNL
Starting Member
Starting Member
Posts: 17
Joined: Sat Mar 09, 2019 11:18 am

Re: Toon firmware - update script

Post by CrumNL »

I've been trying to update my toon a couple of times the last few weeks but until now it just doesn't finish correct.
I think I was updating from 5.0.4 when I did the first update since somehwere in May I think, the firmware says it runs on 5.5.7.
But nothing of the store or custom apps work, the upgrade fails with the following in the upgrade-qb2.sh.log file:

Code: Select all

update-alternatives: Error: not linking //etc/passwd to passwd.busybox since //etc/passwd exists and is not a link
update-alternatives: Error: not linking //etc/group to group.busybox since //etc/group exists and is not a link
I have ssh access but am not that sure what happens if I move the passwd and group file and manually create the links to passwd.busybox and group.busybox.
Or if that will even solve the issue I'm facing :)
I tried to find similar issues in the forums here but can't find anything that looks the same.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

/etc/passwd and /etc/group are files and should NEVER be links to busybox
you need to find out why it want to link it anyways
Member of the Toon Software Collective
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

and post the complete log so we can have a look why it want to link those files
Member of the Toon Software Collective
CrumNL
Starting Member
Starting Member
Posts: 17
Joined: Sat Mar 09, 2019 11:18 am

Re: Toon firmware - update script

Post by CrumNL »

TheHogNL wrote:/etc/passwd and /etc/group are files and should NEVER be links to busybox
you need to find out why it want to link it anyways
That's what I thought as well, but hey, I'm not a toon expert so for all I know it would be something.

I did manage somehow to get my apps back up, toonstore working again too, which was gone as well.
I tried downgrading to previous versions without knowing if that is even supported but that all failed the same.
After a numerous reboots and interruptions by kids, I noticed that the store and TSC were available again at some point but I didn't log well what I did before that.
When I force a -v 5.5.7 I still get the same error, but for now it seems to be working mostly.
vnc doesn't yet seem to work but I'll figure out some day why that is.

Even though my toon is working again after a few weeks doing nothing, I attached the logs and some other info.
Netstat showed a lot less this morning compared to what it shows now.
Attachments
upgrade-qb2.sh.log.zip
upgrade log
(3.4 KiB) Downloaded 288 times
Last edited by CrumNL on Tue Jul 16, 2019 1:14 am, edited 1 time in total.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon firmware - update script

Post by TheHogNL »

Log almost directly starts with that weird passwd/group file linking. That is bad... something is really messed up.
If you really want to fixed it completly use my Toon Recovery script to recover a Toon from a good image. You will loose your history (RRD files). You can ofcourse make a backup of your rrd files first though and hope to restore it later with the tools provided by marcelr.
Member of the Toon Software Collective
CrumNL
Starting Member
Starting Member
Posts: 17
Joined: Sat Mar 09, 2019 11:18 am

Re: Toon firmware - update script

Post by CrumNL »

Thanks, I'll check it somewhere soon.
I was already planning to do it somewhere in the next few weeks if I find some time for it.
jozg
Member
Member
Posts: 56
Joined: Wed Nov 15, 2017 1:13 pm

Re: Toon firmware - update script

Post by jozg »

Hello all,

I have a problem upgrading from 4.22.7 to 5.0.4.
The logfile says not enough diskspace, so i decide to monitor df -h.

When the upgrade started i have:
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 103.3M 78.0M 25.2M 76% /
tmpfs 40.0K 0 40.0K 0% /mnt/.psplash
tmpfs 61.6M 148.0K 61.5M 0% /var/volatile

When monitoring the update, i saw:
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 103.3M 101.1M 2.2M 98% /
tmpfs 40.0K 0 40.0K 0% /mnt/.psplash
tmpfs 61.6M 2.7M 58.9M 4% /var/volatile

So i guess the problem really is the diskspace.
I allready cleaned up the /mnt/data/update dir.

But i cannot find a /HCBv2/tmp/opkg-cache dir, it does not exist, so i cannot clean it.
The /root folder is almost empty, not containing big files.

I have a toon1 at the moment.
Is there somewhere else a location to delete some files, to free up some space?.

Thanks.

regards,
mAiden
Member
Member
Posts: 330
Joined: Mon Jul 10, 2017 10:22 am

Re: Toon firmware - update script

Post by mAiden »

Remove some custom apps. You can install them agian, when update is done.
Member of the Toon Software Collective
Post Reply

Return to “Toon Firmware”