-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux-raspberrypi-4.19.57-2, 4.19.58-1, 4.19.59-1, 4.19.63-1 causes kernel panic on raspberry pi 2 (arch linux arm) #3087
Comments
This needs more information:
|
The rootfs is located on USB Flash Drive (8 GB), (Memory Cards (any) were very unreliable for root in case of power failure (ever since purchase) ) I'll try to get photo of kernel panic. |
@lategoodbye The above data is as requested (hopefully), I currently have held back update:
Because its also the primary server at home, and, however, I can try to intentionally cause kernel panic by updating software, |
I have a raspberry 3b and the same thing happens with the kernel 4.19.58-1 in arch linux arm. I have the system / on a usb disk and it gives me kernel panic. Also, if I install the whole system on an SD card and try to mount USB devices with this version of the kernel, it gives me print_req_error and I / O errors. With the previous kernel versions works perfect. |
I have a Raspberry Pi 3B+ with Arch Linux on a SD Card. With kernel 4.19.58 my Sundtek USB Tuner is not working anymore. With 4.19.57 everything works as expected. Maybe there is something bad in general with 4.19.58 and USB devices? If you need further info, please ask. |
@nightBulb Thanks for the photo. It seems that the USB device isn't accessible (-110 = ETIMEDOUT). But a trace of the real kernel panic would be still necessary. |
@lategoodbye This is the kernel panic stack trace, (hopefully as needed) Also I discovered that linux-raspberrypi-4.19.57-2 also causes, what appears to be the same problem. linux-raspberrypi-4.19.57-1 seems to be the last sane kernel. And so, changing the title seems appropriate. |
@nightBulb Sorry for being inprecise, we need the beginning of the kernel panic. Apart from that, your issue looks like #3067 |
@lategoodbye Is there any place where the Bootlog is stored, or any other method besides snapping pictures to get the boot-log? Also, linux-raspberrypi-4.19.57-1 is booting fine unlike #3067 . |
Without rootfs there is chance to store the file. The best solution is to connect serial TTL adapter to the debug UART. In case USB still working you could try to enlarge the kernel log buffer by adding |
@lategoodbye I meant, how do you scroll screen after kernel panic? I do not have a TTL adapter either. One thing to note though, Before boot, If I remove the USB rootfs, the bootloader (or whatever it is that boots rpi) drops me to ash terminal. after I re-insert rootfs USB and call init, it panics, and I can no longer run any commands even from bootloader ash 😁 The above panic is with 4.19.58-1 |
Sometimes it's possible to scroll back via page up/down. But this depends on the crash. |
The (shift +) Page up/down keys do not seem to be working especially after kernel panic, I even tried the following,
No method to scroll the screen. |
Adding |
Here is a console log showing the issue. It is from a Pi2 v1.1 running Arch Linux, with the /boot directory on SD and the OS on an SSD connected via USB - the Toshiba HDD mentioned in the log is just the usb-sata interface. I've had a similar issue with another Pi2 v1.2 which is used as a TVHeadend server; the OS is on SD but the videos are on a USB HDD. With this device there is no crash but playback of video stops after a while and the disk is inaccessible until the Pi is rebooted. The latest software I know is working is Linux 4.19.55 and bootloader/firmware 20190624. |
I too managed to get the picture of kernel panic using @pelwell 's idea. I also have more pictures of the same kernel panic, if this one is not clear, I can upload them if needed .. The above image appears straight when clicked, it is rotated in preview. |
I'm seeing the same bug on Raspberry Pi 3 Model B, booting from external USB SSD. |
The common factors here appear to be kernel version and Arch Linux - it's not a problem we've seen on Raspbian, and it would be enlightening if one of you would install Raspbian on a spare card to confirm (or not) that it boots OK. |
OK I installed the current Raspbian Buster Lite onto an RPi3 (kernel 4.19.57-V7+), then configured it to boot from SD but use an SSD as the root FS. I then ran a dist-upgrade which updated the kernel to 4.19.58. The system booted as normal. I moved the SD card and SSD to the same RPi2 as in my previous test and it continued to boot correctly. It's not quite the same test (the SSD and usb-sata interface were different) but it does suggest an Arch problem. Arch forums have one post with the same issue: |
I have been iterating over the kernel configuration parameters that Arch kernel has changed recently. See diff here. I'm not 100% sure I'm on a right track, but it seems to me that CONFIG_VMSPLIT_3G=y (instead of VMSPLIT_2G) is the change that triggers the bug for me on RPI3. Can experts here deny or confirm that this could cause USB boot to not work? Notifying also @kmihelich from Arch Linux ARM team. |
I've built a new stock Foundation kernel (which is now at version 4.19.59) and it boots my Arch RPi3 with rootfs on SSD. This does seem to be an Arch kernel config issue. |
The Pi2 bringup was a long time ago now, but from what I recall we switched to VMSPLIT_2G to avoid the need for HIGHMEM on a 1GB part. Does the Arch config have HIGHMEM enabled? |
From https://archlinuxarm.org/packages/armv7h/linux-raspberrypi/files/config.v7 (also config.v6) |
Changing to CONFIG_HIGHMEM=n seems to fix the problem too. |
This is not a fix, it's only a workaround. |
Yes I agree, sorry for bad wording. |
This is not my area at all, but just in case this is relevant: Arch config enables also CONFIG_ARM_LPAE and CONFIG_ARCH_DMA_ADDR_T_64BIT which results in
Rest of the warnings are here |
Can you not use one of our kernels with the Arch userland? |
The problem seems not to be related to archlinuxarm's Pi 2 configuration, since it also happens on Raspbian, as reported some posts ago and verified by me, on my Pi 2 -- Booting raspbian from MMC, but with USB drives attached is enough to reveal the problem -- even if the USB drives are not involved in the boot process. Maybe the title for this issue should be reconsidered and the Archlinuxarm part removed? |
@zertyz, the issue with USB happens with raspbian too? Relevant info! |
We have already troubleshooted this problem here. It is related to the USB driver and it is triggered by kernel config settings CONFIG_VMSPLIT_3G=y and CONFIG_HIGHMEM=y. The problem appeared when these settings were taken into use in Arch raspberry kernel by @kmihelich who we have not reached for comments (see diff here). Nobody seems to be working with HIGHMEM support for the USB driver. Therefore, like suggested here before, the only feasible way forward seems to be either to revert the change in Arch raspberry kernel package, or by moving to different Linux distro. |
@pelwell - Check your email for our exchange around 12-July. My memory is that in order to get the RPi4 to boot, the changes to the config file that @tsaarni linked were needed. From my notes, they were these 3:
I cannot remember if the HIGHMEM option is selected in doing this or not. |
I'm not sure what you are saying. The issue is about why current Arch images don't run on Pi 2, and you've just described what we had to do on Pi 4. Note that the Pi 4 uses a completely different USB controller, so the problems reported here with the dwc_otg driver and HIGHMEM don't apply. |
@pelwell - I thought the hypothesis is that the problem for RPi2 was introduced when Arch ARM merged those support options including HIGHMEM to allow for RPi4 support.
|
Yes, that is the hypothesis. I still don't get your point - you just seem to be restating the problem. |
If we disable HIGHMEM will there by any ill-effects for Pi4 boards? If not, would it be it be a good test to have someone with Arch ARM and an affected RPi2 compile the current kernel using the following patch which disables HIGHMEM and see if it fixes the USB issue? https://gist.github.com/graysky2/5dee027e153fadc98659a85f32aeddbc If it does, and if the Pi4 can run without ill-effects, the change could be proposed. |
Yes - the kernel won't be able to address all memory, and it may even crash - I don't remember the precise failure mechanism. |
@pelwell - OK. I still feel like having an affected RPi2 user try compiling/booting with that config patched disablign HIGHMEM will be a test that it is causing the problem. If it does, Arch ARM might need to consider another kernel package for RPi2 with HIGHMEM disabled, no? |
@graysky2 I tested with RPi3 previously around here and it fixed the problem with dwc_otg driver. |
Just an addition to this, I am not getting a kernel panic via a Pi 3, but USB devices do not work after 4.19.57-1.
… On 2019. Aug 13., at 21:47, Phil Elwell ***@***.***> wrote:
I thought the hypothesis is that the problem for RPi2 was introduced when Arch ARM merged those support options including HIGHMEM to allow for RPi4 support.
Yes, that is the hypothesis. I still don't get your point - you just seem to be restating the problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#3087?email_source=notifications&email_token=AAHLD4CJ5EDDIIJ6Z4CL7LLQEMFUHA5CNFSM4IFAERI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4GYT2A#issuecomment-520980968>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAHLD4GN2V5AQMRRHJCMSP3QEMFUHANCNFSM4IFAERIQ>.
|
I'm sorry, I have not read through all 50+ comments. My goal is to help out by verifying what the correct fix is and potentially submit a PR to Arch ARM to fix it. It seems disabling HIGHMEM is not a fix per some of the comments above. Do I understand that correctly? |
Set the VMSPLIT back to 2G, then disable HIGHMEM and LPAE because neither is needed. |
No worries. Your help is very much appreciated.
I did not test with the posted patch as of yet, but according to a previous post, it seems to fix USB issues on the Pi 3.
… On 2019. Aug 13., at 22:08, graysky ***@***.***> wrote:
I'm sorry, I have not read through all 50+ comments. My goal is to help out by verifying what the correct fix is and potentially submit a PR to Arch ARM to fix it. It seems disabling HIGHMEM is not a fix per some of the comments above. Do I understand that correctly?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#3087?email_source=notifications&email_token=AAHLD4ELTUTQXLHAEFZ75DLQEMIDRA5CNFSM4IFAERI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4G2RRY#issuecomment-520988871>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAHLD4BJN647OS6TH5ORGDDQEMIDRANCNFSM4IFAERIQ>.
|
@pelwell -
I am confused about this... in the email exchange you mentioned LPAE was required to boot the RPi4 as I recall. Are you saying with 2 separate kernel packages?
|
Yes - that's what we use. |
I observe a similar problem on RPI3 :( When will there be official corrections? linux-raspberrypi-4.19.57-2
Archlinux |
I imagine the Arch devs will have a few packaging issues to sort out in order to support an extra kernel build, so give them a while. |
Did you guys know that if you swap out the board to an RPI4 the same error randomly occurs at various points (shortly after boot, or later) in time with these kernel versions and the USB configuration for drives? Its minus the dwc_otg errors, the rest is the same. Resulting in kernel panic eventually. |
@nightBulb @johnny-cash @dkadioglu @dave-p @tsaarni @esiqveland @Flameborn @denisandroid - Update your systems with an insync mirror and see if the problem is gone: archlinuxarm/PKGBUILDs@274a92b If you're running a Pi4, take action based on pacman's warning:
|
I can confirm that my pi3 is booting again with using the updated kernel package |
@graysky2 although, do note that:
error in So this issue seems most likely resolved. If it is fixed for others as well, I recommend, this issue be closed. 🥇 Thanks. 😊 |
Works.. However, had issue with NFS Server. I was getting the tag errors 0x2003 whilst nfs-server starting up. I had to disable the nfs-server service, reboot, enable and start the service. Subsequent reboots seem fine. So NFS Server needs a refresh following this issue. On a RPI2. |
Updates to Archlinux (RPI 3)
New kernel: 4.19.66-1 Errors when working with usb are not observed. 'Dmesg' is empty.
|
@pelwell - Probably safe to close this. |
Describe the bug
Kernel Panic on boot.
To reproduce
pacman -Syu
(updating linux-raspberrypi package to 4.19.65-1 (current latest)) ( any version after
4.19.57-1
)Expected behaviour
System to boot / not result in Kernel Panic
Actual behaviour
Kernel Panic
System
raspinfo.txt on gist.github.com
raspinfo.txt
cat /etc/rpi-issue
)?vcgencmd version
)?uname -a
)?Logs
If applicable, add the relevant output from
dmesg
or similar.Additional context
Last functional version of
linux-raspberrypi
package is :4.19.57-1
Failing Versions: 4.19.57-2, 4.19.58-1, 4.19.59-1, 4.19.63-1, 4.19.65-1 (these versions are tested to fail) (any version missing in between probably is also failing)
Current workarounds are:
Workaround 1:
Part A
/boot
from backup to/boot
on memorycard manuallyPart B
pacman -U /var/cache/pacman/pkg/linux-raspberrypi-4.19.57-1-armv7h.pkg.tar.xz
(You can download this version from this link if you don't have the old package)
sha1sum:
b23f0bdb7befafc2f86a19041df25c8240b5efdc
oflinux-raspberrypi-4.19.57-1-armv7h.pkg.tar.xz
OR
Workaround 2 :
set
gpu_mem=256
in/boot/config.txt
as suggested by @zertyz in the commentOR
Workaround 2.5 :
Workaround 2
above, to make the system bootablethen,
Workaround 1 Part B
to switch to older kernel, so that you can reclaim the RAM from GPU(which is optimal for headless system)
gpu_mem=64
in/boot/config.txt
More Context
Since this may or maynot ( recently reported to affect raspbian too) be an
Arch Linux ARM
specific issue,the troubleshooting / bug-reporting / discussion is also happening on Arch Linux ARM forums as well,
on following posts:
Arch Linux ARM
/ARMv7h Sub Forum
: main discussion (also oldest discussion)Arch Linux ARM
/Packages Sub Forum
secondary discussion( since it is recommended by @kmihelich on Arch Linux Forum to report bugs on Packages Sub Forum )
Arch Linux ARM
/Packages Sub Forum
Partial Summary of All DiscussionsArch Linux ARM
/Packages Sub Forum
Another Bug Report for Pi 3B+ with similar issueArch Linux ARM
/ARMv7h Sub Forum
Another Bug Report as suggested by @semeion in this commentDo note that, #3087 i.e. this github issue is (probably) most active.
The text was updated successfully, but these errors were encountered: