-
Notifications
You must be signed in to change notification settings - Fork 434
Sdcard stuck trying to write the image #487
Comments
I have also seen this occasional behaviour from my PINN variant, but as there are no error messages, it is not easy to see what has gone wrong. |
I'm using noobs only on Pi3. |
Hmm, I've not seen it happen on v2.4 (or PINN equivalent), or earlier versions. |
The image I write is a custom image based on raspbian. I use xz compression. I tried to add:
but still I cannot get any log. |
Probably because it has not actually crashed, but just got stuck somewhere... 🤷♂️ |
Also tried with CONFIG_DETECT_HUNG_TASK. I remember the kernel should be able to also print the stacktrace in case something hangs, but not sure if that is optional and if that is properly enabled by these directives... I don't remember ever seeing anything similar in raspbian, so I guess it is probably useless to ask in https://github.com/raspberrypi/linux right? |
Might be worth investigating if it only happens with images that are wget-ed and extracted (i.e the way that NOOBS Lite installs Raspbian), or also happens with images extracted directly from the SD card (i.e. the way that full NOOBS installs Raspbian) ? |
IIRC, I've only seen it when downloading, but didn't take note whether it was ethernet or wifi. |
Ah. It happened tonight in PINN v2.5.4 when installing Retropie on a 3B+ from a USB stick. |
I tried to "reboot -f" once and it didn't work. But the watchdog seemed to be able to do it instead the other day. Were you using xz compression by any chance? I typically use xz (-9) and it happens frequently. xz -9 requires much mem so I then tried with gz, took me some time but at the end I could reproduce with it as well. Difficult to say if it makes any difference or not. |
My retropie image was compressed with xz but with standard compression not -9 cos it uses too much memory. |
This is how mem is seen during the procedure with gz:
I see that only 231MB of memory is available. Is this written somewhere? This is a pi3 so 231MB does not seem a correct value, does it? Is this written somewhere in the sources? |
Put start.elf/fixup.dat on the SD card instead of recovery.elf if you need access to more. |
Thank you for your answer. I read in the wiki:
So does it mean I cannot use start.elf/fixup.dat with noobs? |
I can't remember the details now, but IIRC you can tweak some settings in config.txt to get it to read the NOOBS-named files. |
Ah thanks, so I should:
Is this correct? What I'm missing according to the wiki is how to set rootfs to recovery.rfs. Also can I extract start.elf and fixup.dat from any Raspbian image? |
IIRC |
I tried with this in config.txt but I'm getting a kernel panic (cannot mount root fs):
|
It's a long long time since I played with any of this, but I think @procount might have more recent experience? |
Potentially useful things to try to get more info:
|
I turned on the logging in PINN but kept DMA, tail - f /tmp/debug
tail - f /tmp/messages
Nothing unusual in the logs :( |
I experienced exactly the same behavior. Nothing unusual in the logs related to the sdcard. I kept DMA as well. |
Also on Pi 3 B+ the same is happening. Everything seems to be working properly but it seems the thread writing to the sd card is stuck. |
Hello! I'm using noobs for a project. It seems that sometimes the write procedure of the image blocks suddenly. When it is stuck, the system is up and running, I can login via ssh (I added it to buildroot) and the recovery application works and responds properly. The writing thread of the recovery app instead is stuck (the one that wgets and untars).
In that situation I logged in using ssh and I found that trying to write any data to the sdcard results in the deadlock of the process. Tried to simply dd 1MB into the sdcard and dd couldn't finish. Only solution is to reboot. After a reboot everything is back to normal and the operation typically completes. The system will properly work from then on. This happens from time to time with many devices and sdcards. dmesg doesn't show any error from the kernel.
Any idea what may be causing this? Anyone who got this behaviour before? Thanks!
The text was updated successfully, but these errors were encountered: