Page 1 of 2

Kernel panic while booting Toon

Posted: Fri Apr 20, 2018 8:23 pm
by RoadXY
I was in de process of rooting my Toon when all of a sudden my Toon stopped booting.

Some numbers:
Boot

What I had accomplished so far:

Interupted boot
Enabled root
Disabled OpenVPN
Copied the base64 encoded dropbear file
I already noticed that touch didn't work but the flat cable had come out so I didn't worry to much
Reboot

Last part of the boot log:

Code: Select all

UBIFS: recovery needed
UBIFS error (pid 1): ubifs_recover_leb: corrupt empty space LEB 639:47104, corruption starts at 2048
UBIFS error (pid 1): ubifs_scanned_corruption: corruption at LEB 639:2048
UBIFS error (pid 1): ubifs_recover_leb: LEB 639 scanning failed
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             512 mtdblock0 (driver?)
1f01            1536 mtdblock1 (driver?)
1f02            3072 mtdblock2 (driver?)
1f03            3072 mtdblock3 (driver?)
1f04          121856 mtdblock4 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c00273d0>] (unwind_backtrace+0x0/0xf0) from [<c029e720>] (panic+0x60/0x190)
[<c029e720>] (panic+0x60/0x190) from [<c0008ea0>] (mount_block_root+0x15c/0x20c)
[<c0008ea0>] (mount_block_root+0x15c/0x20c) from [<c00090d0>] (prepare_namespace+0x8c/0x178)
[<c00090d0>] (prepare_namespace+0x8c/0x178) from [<c0008b50>] (kernel_init+0x10c/0x14c)
[<c0008b50>] (kernel_init+0x10c/0x14c) from [<c00238ec>] (kernel_thread_exit+0x0/0x8)

Re: Kernel panic while booting Toon

Posted: Fri Apr 20, 2018 10:54 pm
by TheHogNL

Re: Kernel panic while booting Toon

Posted: Fri Apr 20, 2018 10:58 pm
by RoadXY
I feel stupid.
Thanks for the heads up

Re: Kernel panic while booting Toon

Posted: Sun Apr 22, 2018 10:28 pm
by marcelr
Don't thrash your rootfs just like that.

Try and fix the rootfs first, before you revert to a complete rewrite. Access to Eneco will be lost forever, then, and there's no guarantee that the method described in the tutorials works for you.

Re: Kernel panic while booting Toon

Posted: Sun Apr 22, 2018 11:14 pm
by RoadXY
On u-boot here aren't any commands like ls or vi.
Do you still think it's possible to repair it?
I've searched on Google but couldn't find anything where I don't need the source-code for the OS...

Re: Kernel panic while booting Toon

Posted: Mon Apr 23, 2018 3:24 pm
by marcelr
My first try would be to follow the path through an NFS-mounted rootfs, then try to fix the ubi from there.

Re: Kernel panic while booting Toon

Posted: Thu May 24, 2018 1:18 pm
by RoadXY
marcelr wrote:My first try would be to follow the path through an NFS-mounted rootfs, then try to fix the ubi from there.
But where can I get the root filesystem?

Re: Kernel panic while booting Toon

Posted: Thu May 24, 2018 6:54 pm
by marcelr
A barebones rootfs image is part of the openembedded build. Back then, I built a kernel with a rootfs over nfs mount. I can upload both if you want.

Re: Kernel panic while booting Toon

Posted: Thu May 24, 2018 8:32 pm
by RoadXY
Yes please!

Re: Kernel panic while booting Toon

Posted: Thu May 24, 2018 11:31 pm
by marcelr
Apparently, I already did that a while ago ...

You can find them here:

http://files.domoticaforum.eu/uploads/T ... qb2.tar.gz
http://files.domoticaforum.eu/uploads/T ... ge-nfs.zip

Re: Kernel panic while booting Toon

Posted: Tue Apr 09, 2019 10:42 am
by RoadXY
WickedMaster solved the issue!
The whole parition of the Toon was corrupted and even an repair wasn't helping.
He formatted and flashed the partition and my Toon is back up again.

Thanks WickedMaster! :!:

Re: Kernel panic while booting Toon

Posted: Tue Apr 09, 2019 4:04 pm
by TheHogNL
No problem ;)

Re: Kernel panic while booting Toon

Posted: Tue Apr 09, 2019 4:12 pm
by WickedMaster
TheHogNL wrote:No problem ;)
Also thanks for the help!

Re: Kernel panic while booting Toon

Posted: Fri Apr 19, 2019 1:39 am
by NLKris
What did WickedMaster do exactly? I think I might brik my Toon the same way and I just do not understand the unbrick post with webservers etc..

What happend: I did a factory reset, after that I made connection to WiFi so I could root and connect with ssh. When connected to internet the Toon started to download a update. I power off.
Than I started rooting, happend all fine. Than I started the update script witch told me it had to force to 5.2.11. After the download it needed a minute of two. After long waiting the script told me it could not start/finish the update.

So I did the script with -f, it worked..But still wanted to update from 4.20 to 5.2.11. Won't finish the last download part (I think). So after some reading I tried to open VPN, command "opkg update" and "opkg install base-qb2-uni".
Toon told me onscreen it had to reboot after an update. Rebooting in 8..7..6..5.... Anyway, it never rebooted. So I power of.

Than it never startup again. No SSH access. Looked up with COM poort and saw this:

Code: Select all

RedBoot partition parsing not available
5 cmdlinepart partitions found on MTD device mxc_nand
Creating 5 MTD partitions on "mxc_nand":
0x000000100000-0x000000180000 : "u-boot-env"
0x000000180000-0x000000300000 : "splash-image"
0x000000300000-0x000000600000 : "kernel"
0x000000600000-0x000000900000 : "kernel-backup"
0x000000900000-0x000008000000 : "rootfs"

Code: Select all

Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[<c00273d0>] (unwind_backtrace+0x0/0xf0) from [<c029e720>] (panic+0x60/0x190)
[<c029e720>] (panic+0x60/0x190) from [<c00223dc>] (init_post+0x78/0xc4)
[<c00223dc>] (init_post+0x78/0xc4) from [<c0008b54>] (kernel_init+0x110/0x14c)
[<c0008b54>] (kernel_init+0x110/0x14c) from [<c00238ec>] (kernel_thread_exit+0x0/0x8)
I hope someone can help me trough step by step (of send me a very clear tutorial). I thank you already for the time!!

Re: Kernel panic while booting Toon

Posted: Mon May 20, 2019 10:43 pm
by NLKris
NLKris wrote:What did WickedMaster do exactly? I think I might brik my Toon the same way and I just do not understand the unbrick post with webservers etc..

What happend: I did a factory reset, after that I made connection to WiFi so I could root and connect with ssh. When connected to internet the Toon started to download a update. I power off.
Than I started rooting, happend all fine. Than I started the update script witch told me it had to force to 5.2.11. After the download it needed a minute of two. After long waiting the script told me it could not start/finish the update.

So I did the script with -f, it worked..But still wanted to update from 4.20 to 5.2.11. Won't finish the last download part (I think). So after some reading I tried to open VPN, command "opkg update" and "opkg install base-qb2-uni".
Toon told me onscreen it had to reboot after an update. Rebooting in 8..7..6..5.... Anyway, it never rebooted. So I power of.

Than it never startup again. No SSH access. Looked up with COM poort and saw this:

Code: Select all

RedBoot partition parsing not available
5 cmdlinepart partitions found on MTD device mxc_nand
Creating 5 MTD partitions on "mxc_nand":
0x000000100000-0x000000180000 : "u-boot-env"
0x000000180000-0x000000300000 : "splash-image"
0x000000300000-0x000000600000 : "kernel"
0x000000600000-0x000000900000 : "kernel-backup"
0x000000900000-0x000008000000 : "rootfs"

Code: Select all

Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[<c00273d0>] (unwind_backtrace+0x0/0xf0) from [<c029e720>] (panic+0x60/0x190)
[<c029e720>] (panic+0x60/0x190) from [<c00223dc>] (init_post+0x78/0xc4)
[<c00223dc>] (init_post+0x78/0xc4) from [<c0008b54>] (kernel_init+0x110/0x14c)
[<c0008b54>] (kernel_init+0x110/0x14c) from [<c00238ec>] (kernel_thread_exit+0x0/0x8)
I hope someone can help me trough step by step (of send me a very clear tutorial). I thank you already for the time!!
I've tried to make up a server myself, with linux, but I could not get it working. Is there somebody with a running server to get the Toon alive again? I could drive to your way and if needed I'll pay for the service.
I hope that somebody could help my Toon or have some golden steps to do it myself.