Tiny Core Linux

Tiny Core Base => Raspberry Pi => piCore Test Releases => Topic started by: piCoreUser1 on January 06, 2020, 11:03:41 AM

Title: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: piCoreUser1 on January 06, 2020, 11:03:41 AM
Code: [Select]
wget http://distro.ibiblio.org/tinycorelinux/11.x/armv6/test_releases/RPi/piCore-11.0beta1a.zip
Boot fails with a kernel panic.

Checked twice.

Code: [Select]
wget http://distro.ibiblio.org/tinycorelinux/11.x/armv6/test_releases/RPi/piCore-11.0alpha1a.zip
Successful Boot

Please confirm if you agree there is a problem with this release?

Armv7 - All good.

Same SD card used for both alpha and beta releases.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Twist on January 06, 2020, 03:35:45 PM
Agreed, as mentioned here (http://forum.tinycorelinux.net/index.php/topic,23386.msg146661.html#msg146661) by me too.

I think the problem is with the initrd (11.0beta1a.gz) as it can't even be copied as a file.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: bmarkus on January 06, 2020, 04:12:47 PM
Hi,

I'm on vacation in the next two weeks away from my Pi's. I will check it when I return home.

Béla
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: MrPorcine on April 30, 2020, 07:33:41 PM
I've got this running on a 3B+, runs OK. Loaded the Xorg server, it worked out of the box. I'm using the official touch screen, touch support is not working. I have "dtoverlay=rpi-ft5406" in my config.txt. It's been a while since I've configured a new version, am I missing something? A USB mouse works. USB keyboard works. In fact, I can load my X11 application and it works fine as well, other than the touch screen. It's a graphics client for a remote server, so the network stuff is working as well. I've used the armv7 branch.

checking lsmod, the rpi-ft5406 module is not loaded.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Juanito on May 01, 2020, 02:07:47 AM
afaik, rpi-ft5406.ko and rpi_backlight.ko are required for the official touch screen.

The piCore-11.x kernel source contains:
Code: [Select]
linux-rpi-4.19.81/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
linux-rpi-4.19.81/drivers/input/touchscreen/rpi-ft5406.c

..I can see the overlay is present, rpi_backlight.ko is present, but not the kernel driver?
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Rich on May 01, 2020, 08:43:25 AM
Hi Juanito
Quote
... linux-rpi-4.19.81/drivers/input/touchscreen/rpi-ft5406.c ...
That is the source for the kernel driver, isn't it?
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Juanito on May 01, 2020, 08:46:27 AM
Correct - I don't have the kernel .config to know if rpi-ft5406.ko was compiled or not, but I don't see it anywhere.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Rich on May 01, 2020, 10:34:43 AM
Hi Juanito
OK, I misunderstood what the issue was.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: MrPorcine on May 02, 2020, 06:46:14 PM
I'm somewhat confused - maybe someone can help. I used the image here when I tested the touchscreen above: http://www.tinycorelinux.net/11.x/armv7/test_releases/RPi/piCore-11.0beta1a.zip. As you pointed out, this image does not have the rpi-ft5406.ko.gz module included.

I then downloaded the sources from this directory: http://www.tinycorelinux.net/11.x/armv7/releases/RPi/src/kernel/. I also picked up the script to make the kernel and modules. I went ahead and made the kernel and modules with the script. All went well.

Here's my confusion. The kernel I built is not the same as the kernel in the image. For one thing, the image has -piCore-v7 in the ID, the kernel that I built only defines -v7. It also looks like resulting build has a lot more modules. So it appears that I'm using the wrong .config. Is there another place to pick up the right config file?

Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Rich on May 02, 2020, 07:59:05 PM
Hi MrPorcine
The dirver (rpi-ft5406.ko) is present in  modules.tar.gz  found here:
http://www.tinycorelinux.net/11.x/armv7/releases/RPi/src/kernel/

It is also present in the  ARMv6  and  ARMv7l  versions.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: MrPorcine on May 02, 2020, 08:32:20 PM
OK , I got the touchscreen working. I took the shortcut as you suggested and just inserted the pre-compiled module into the filesystem image. This worked.

For another part of this project I will need to modify the kernel more extensively. So if I can find the .config that was used to create the version on the default image it will make my life a little easier.

Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Rich on May 02, 2020, 08:54:27 PM
Hi MrPorcine
... I took the shortcut as you suggested ...
It's not a shortcut. If you can't find a kernel module in the base system, that's the place to check if it was compiled for your kernel.
If it's listed in  modules.order , then it was built as a kernel module. If it's listed in  modules.builtin , then it's already built into the
kernel and should load automatically. If it's not listed in either file, it wasn't built.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Pacca on May 22, 2020, 02:50:47 AM
Code: [Select]
wget http://distro.ibiblio.org/tinycorelinux/11.x/armv6/test_releases/RPi/piCore-11.0beta1a.zip
Boot fails with a kernel panic.

Checked twice.

Code: [Select]
wget http://distro.ibiblio.org/tinycorelinux/11.x/armv6/test_releases/RPi/piCore-11.0alpha1a.zip
Successful Boot

Please confirm if you agree there is a problem with this release?

Armv7 - All good.

Same SD card used for both alpha and beta releases.
I am experiencing the kernel panic failure as well. I tried piCore 11.0 beta 1a with Raspberry Pi Zero. How can I solve the problem? Thanks!
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Juanito on May 22, 2020, 03:43:54 AM
I can unzip the armv6 piCore-11.0beta1a.zip and mount both partitions without error, but then I get this:
Code: [Select]
$ cp /tmp/image/11.0beta1a.gz /tmp
cp: read error: Input/output error
$ zcat /tmp/image/11.0beta1a.gz | sudo cpio -i -H newc -d
zcat: no gzip/bzip2/xz magic

I don't get any errors with 11.0beta1av7.gz or 11.0beta1av7l.gz, so I'd say the initrd is corrupted.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Juanito on May 30, 2020, 08:22:20 AM
I've made an attempt to reconstruct the piCore-11.0beta1a initrd, which can be found here:

http://tinycorelinux.net/11.x/armv6/test_releases/RPi/11.0beta1a.gz

I'd be grateful if somebody could test it on an RPi0/RPi1 - the existing file on your sd card needs to be over-written with the new one to test.
Title: Re: Arm6 piCore-11.0beta1a release fails with kernel panic(piCore-11.0alpha1a boots)
Post by: Paul_123 on May 30, 2020, 11:17:12 AM
It boots, but it's missing a few modules....working on it.