Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
- DietPi version | 9.8.0
- Distro version | bookworm
- Kernel version | IDK
- Architecture | arm
- SBC model | RPi Zero W
- Power supply used | 5V 2A; USB PD
- SD card used | SanDisk ultra; PNY Pro Elite
Additional Information (if applicable)
Expected behaviour
Complete installation process
Actual behaviour
system crashes during upgrage of packages
Extra details
During the first start, instalation process stops during packages upgrade (on a different stage) e.g.:
─────────────────────────────────────────────────────
DietPi v9.8.0 : 23:35 - wto 17.12.2024
─────────────────────────────────────────────────────
- LAN IP : 192.168.1.2 (wlan0)
[ OK ] DietPi-Software | Initialised database
[ OK ] DietPi-Software | Reading database
DietPi-Software
─────────────────────────────────────────────────────
Step: Applying initial first run setup steps
[ OK ] DietPi-Software | Checking IPv4 network connectivity
[ OK ] DietPi-Software | Checking DNS resolver
[ OK ] DietPi-TimeSync | systemctl stop systemd-timesyncd
[ OK ] DietPi-TimeSync | mkdir -p /run/systemd/timesync
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.com/raspbian bookworm InRelease
Hit:2 https://dietpi.com/apt bookworm InRelease
Hit:3 https://dietpi.com/apt all InRelease
Hit:4 https://archive.raspberrypi.com/debian bookworm InRelease
Reading package lists...
[ OK ] DietPi-Software | APT update
[ INFO ] DietPi-Software | APT dist-upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
base-files bsdutils curl fdisk iputils-ping libblkid1 libc-bin libc-l10n
libc6 libcurl4 libfdisk1 libmount1 libnghttp2-14 libsmartcols1 libsqlite3-0
libssl3 libsystemd-shared libsystemd0 libudev1 libuuid1 locales mount
openssl systemd systemd-sysv systemd-timesyncd udev util-linux
util-linux-extra zlib1g
30 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.9 MB of archives.
After this operation, 25.6 kB disk space will be freed.
Get:1 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf base-files armhf 12.4+rpi1+deb12u8 [71.1 kB]
Get:2 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf bsdutils armhf 1:2.38.1-5+deb12u2 [80.1 kB]
Get:4 https://archive.raspberrypi.com/debian bookworm/main armhf libc6 armhf 2.36-9+rpt2+deb12u9 [3877 kB]
Get:3 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libsmartcols1 armhf 2.38.1-5+deb12u2 [79.1 kB]
Get:5 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf util-linux-extra armhf 2.38.1-5+deb12u2 [92.1 kB]
Get:6 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf util-linux armhf 2.38.1-5+deb12u2 [1017 kB]
Get:7 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf mount armhf 2.38.1-5+deb12u2 [120 kB]
Get:8 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libblkid1 armhf 2.38.1-5+deb12u2 [117 kB]
Get:9 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libmount1 armhf 2.38.1-5+deb12u2 [128 kB]
Get:10 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf systemd-timesyncd armhf 252.31-1~deb12u1+rpi1 [63.7 kB]
Get:11 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf systemd armhf 252.31-1~deb12u1+rpi1 [2894 kB]
Get:12 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libsystemd-shared armhf 252.31-1~deb12u1+rpi1 [1515 kB]
Get:24 https://archive.raspberrypi.com/debian bookworm/main armhf libc-bin armhf 2.36-9+rpt2+deb12u9 [708 kB]
The process stops with error:
<[ 596.185074] 8<--- cut here --- │
[ 596.222130] Unable to handle kernel paging request at virtual address c0fe9ab8
[ 596.309794] [c0fe9ab8] *pgd=00e0041e(bad)───────────────────────────────────┘
[ 596.358412] Internal error: Oops: 8000000d [#1] ARM
[ 596.417570] Modules linked in: brcmfmac brcmutil sha256_generic libsha256 cfg80211 rfkill raspberrypi_hwmon fixed uio_pdrv_genirq uio fuse dm_mod ip_tables x_tables ipv6
[ 596.601398] CPU: 0 PID: 60 Comm: kworker/u3:0 Not tainted 6.1.21+ #1642
[ 596.681678] Hardware name: BCM2835
[ 596.722885] Workqueue: brcmf_wq/mmc1:0001:1 brcmf_sdio_dataworker [brcmfmac]
[ 596.808961] PC is at 0xc0fe9ab8
[ 596.847012] LR is at 0xc4271b44
[ 596.885051] pc : [<c0fe9ab8>] lr : [<c4271b44>] psr: a0000113
[ 596.961089] sp : df815ed8 ip : c4271b00 fp : c0d7ece0
[ 597.024458] r10: c0ca14c0 r9 : 00000001 r8 : c0d7ed20
[ 597.087825] r7 : c26e4c00 r6 : c19d5800 r5 : c0c2f02c r4 : c0e25588
[ 597.168450] r3 : 00000000 r2 : 00000002 r1 : 00000005 r0 : c26e4c00
[ 597.249099] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 597.337172] Control: 00c5387d Table: 0401c008 DAC: 00000055
[ 597.408362] Register r0 information: slab skbuff_head_cache start c26e4c00 pointer offset 0 size 48
[ 597.521231] Register r1 information: non-paged memory
[ 597.584024] Register r2 information: non-paged memory
[ 597.646793] Register r3 information: NULL pointer
[ 597.705329] Register r4 information: non-slab/vmalloc memory
[ 597.775481] Register r5 information: non-slab/vmalloc memory
[ 597.845647] Register r6 information: slab kmalloc-cg-2k start c19d5800 pointer offset 0 size 2048
[ 597.956429] Register r7 information: slab skbuff_head_cache start c26e4c00 pointer offset 0 size 48
[ 598.069518] Register r8 information: non-slab/vmalloc memory
[ 598.139851] Register r9 information: non-paged memory
[ 598.202765] Register r10 information: non-slab/vmalloc memory
[ 598.274087] Register r11 information: non-slab/vmalloc memory
[ 598.345374] Register r12 information: non-slab/vmalloc memory
[ 598.416619] Process kworker/u3:0 (pid: 60, stack limit = 0xe8022e38)
[ 598.495224] Stack: (0xdf815ed8 to 0xdf816000)
[ 598.549545] 5ec0: 00000014 defb4400
[ 598.651752] 5ee0: 00000000 8f726b7c 00000000 c0c2f02c c19d5800 8f726b7c 00000040 c0c2f02c
[ 598.754029] 5f00: c07ada78 c0d7ece8 00000040 c0724510 00000001 c26e4c00 c0c31880 8f726b7c
[ 598.856440] 5f20: c0d7ed30 c0d7ed30 00000000 c072468c 00000001 c0d7ed30 00000040 df815f7b
[ 598.958979] 5f40: 000073b1 df815f84 c0ca14c0 c07252d8 c1900390 00000000 c0c30358 c0d7ed30
[ 599.061634] 5f60: 00000000 0000012c df815f7c c07258b4 000073b3 00000000 00000056 df815f7c
[ 599.164344] 5f80: df815f7c df815f84 df815f84 8f726b7c c0ca37e0 c0d97780 00000004 00000003
[ 599.267105] 5fa0: 00000048 00000000 0000000c 00000100 c0d97774 c0009474 00000000 c006a3e4
[ 599.370074] 5fc0: 0000000a 000073b2 00000001 04208060 c10f3600 c0c36e90 60000113 ffffffff
[ 599.473265] 5fe0: dfac1ca4 00000000 c13a4100 00000000 dfac1c68 c0028210 c06bd080 c0892b40
[ 599.576563] Code: 00000017 0032e86c 00000017 0032e874 (00000017)
[ 599.652503] ---[ end trace 0000000000000000 ]---
[ 599.710449] Kernel panic - not syncing: Fatal exception in interrupt
[ 599.789518] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
Thanks for reporting. And weird, since this kernel is quite old and worked well since a year or more on all RPi 1 and Zero models, including my own RPi Zero W.
However, we want to migrate to the new kernel and firmware stack for all RPis anyway soon. Can you give this image a try? It uses the new kernel that equals the one from recent RPi OS Bookworm: https://dietpi.com/downloads/images/testing/DietPi_RPi1-ARMv6-Bookworm.img.xz
Thanks for your reply @Michalng!
I tried it. With the new image my Pi does not boot at all. After about 1sec. LED starts constantly blinking (sth like 0.5s on /0.5 off). Do not see anything on UART.
Btw - I’m confused with this situation as well. This Pi worked for a year or so with very old RPi image as a bridge for Xiaomi Thermometers to SUPLA system. Then I moved to another solution and put Pi into the drawer for a long time.
After I failed with Bookworm image I also tried DietPi Bullseye with 50% success. I was able to fininsh an installation and first boot and do an initial config. But the same situation happend during dowloading packages for PiHole and Unbound (with nginx).
I tested Raspbian Lite (bookworm) also - pihole worked for a few hours (aprox. 1AM - 8AM) than the same thing happend.
Hmm, maybe it is a hardware issue then, typically SD card. Do you have another SD card to test with?
And if you get an image up with the current one, before installing anything else, drop to a shell and check for kernel errors:
dmesg -l 0,1,2,3
Maybe some I/O or filesystem errors are shown before already.
I tried 3 different SD cards (Sandisk, Sandisk Ultra, Kingstone).
I used bullseye image once again. System booted up correcly. I configured basic staff like STATIC IP, regions etc.
Update with dietpi-update was succesfull.
WiFi Internet connecion is stable ~72/72 Mbps.
No messages on levels 0,1,2,3.
Just some warnings:
[ 1.686764] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 1.687028] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 1.711087] armv6-pmu arm-pmu: hw perfevents: no irqs for PMU, sampling events not supported
[ 2.620845] Core Release: 2.80a
[ 2.622623] Setting default values for core params
[ 2.624277] Finished setting default values for core params
[ 2.825793] Using Buffer DMA mode
[ 2.827483] Periodic Transfer Interrupt Enhancement - disabled
[ 2.829123] Multiprocessor Interrupt Enhancement - disabled
[ 2.830815] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.832568] Dedicated Tx FIFOs mode
[ 2.834928] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = dad14000 dma = 0x9ad14000 len=9024
[ 2.839886] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 2.847905] WARN::hcd_init_fiq:457: FIQ on core 0
[ 2.851068] WARN::hcd_init_fiq:458: FIQ ASM at c065d3d8 length 36
[ 2.854164] WARN::hcd_init_fiq:497: MPHI regs_base at df810000
[ 2.862041] Init: Port Power? op_state=1
[ 2.863527] Init: Power Port (0)
[ 3.096657] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.777639] Kernel memory protection not selected by kernel config.
System crashed again during an installation of additional packages
I can’t believe, it’s a SD Card issue, but ofc it is not a problem to buy a new one.
Is there anything else I can do or test? I do not like to give up to quick :-]
Update 12/20/2024 2:46PM
Another try, another fail, but this time dmesg shows:
root@pihole:~# dmesg -l 0,1,2,3
[ 12.559427] Internal error: Oops - undefined instruction: 0 [#1] ARM
[ 12.580141] Register r0 information: non-slab/vmalloc memory
[ 12.581702] Register r1 information: non-paged memory
[ 12.583253] Register r2 information: slab task_struct start c2010000 pointer offset 0
[ 12.584851] Register r3 information: non-paged memory
[ 12.586408] Register r4 information: NULL pointer
[ 12.587941] Register r5 information: non-paged memory
[ 12.589432] Register r6 information: NULL pointer
[ 12.590897] Register r7 information: NULL pointer
[ 12.592330] Register r8 information: non-slab/vmalloc memory
[ 12.593792] Register r9 information: 2-page vmalloc region starting at 0xdfb2c000 allocated at kernel_clone+0xac/0x31c
[ 12.596726] Register r10 information: NULL pointer
[ 12.598237] Register r11 information: non-slab/vmalloc memory
[ 12.599740] Register r12 information: non-slab/vmalloc memory
[ 12.601210] Process systemd-udevd (pid: 146, stack limit = 0x7b3a88fc)
[ 12.602707] Stack: (0xdfb2dc10 to 0xdfb2e000)
[ 12.604183] dc00: c0c3b420 00000001 c236fa00 00000000
[ 12.607047] dc20: c1153500 0395834f b5df1000 da825060 ffffffff c2ecebd0 00000cc0 000b5df1
[ 12.609930] dc40: b5df1000 b5df1000 00000a15 c23d2d70 c23d2d70 00000000 00000000 00000000
[ 12.612958] dc60: c2e0b7c4 c1a183b0 00000000 675f2917 00000817 dfb2dcf8 c1a18380 b5df1000
[ 12.616109] dc80: 00000817 00000215 c2ecebd0 00000002 c1a183b0 c08cd358 c1928000 00000002
[ 12.619398] dca0: c08c6378 c004bf18 c0c3b438 c0c34bfc 00000817 c08cd220 b5df1000 dfb2dcf8
[ 12.622807] dcc0: c2010000 00000fff c1a18380 c00189fc dfb2dd2c c08c6378 c2daf168 c2daf1b0
[ 12.626308] dce0: c04d79c0 80000113 ffffffff dfb2dd2c c2ce9fd8 c0008c28 c1a183b0 ffffff00
[ 12.629971] dd00: 00000000 00000000 b5df1000 00000000 00000000 00000028 c2ce9fd8 c0c2f02c
[ 12.633758] dd20: 00000fff c1a18380 00000000 dfb2dd48 c04d7a08 c04d79c0 80000113 ffffffff
[ 12.637762] dd40: b5df1000 c04d7a08 dfb2df20 c2e0b7c0 c1a183b0 675f2917 003b0000 00000006
[ 12.642012] dd60: 00001000 dfb2df08 da8090c4 dfb2df08 c0c34b80 c2ce9000 c0c2f02c c04de738
[ 12.646371] dd80: 003ad82d 003ad83f 00000000 c018bd38 00000000 003ad840 c2c23af0 dfb2df08
[ 12.650839] dda0: ffffffff dfb2dde4 ad840000 675f2917 ad829000 00000000 00001000 00000000
[ 12.655522] ddc0: da8090c4 dfb2df08 c0c34b80 c0dce9f8 dfb2df20 c04dee4c 00029000 c1c02648
[ 12.660275] dde0: da8090c4 00000004 00001000 00000000 ad840000 00000003 00030000 c018c6fc
[ 12.665116] de00: 00001000 00000000 ad840000 00000003 dfb2df08 c2c23aa0 003ad82d 00000000
[ 12.669937] de20: 003ad82c 00000000 00000000 00000000 ad880000 00000003 c1c02648 c1c02748
[ 12.674778] de40: c0d79f0c 0000000f da809058 da80907c da8090a0 da8090c4 da8090e8 da80910c
[ 12.679616] de60: da809130 da809154 da809178 da80919c da8091c0 da8091e4 da809208 da80922c
[ 12.684440] de80: da809250 675f2917 c1a18380 ad800000 00000003 dfb2df20 00040000 dfb2df08
[ 12.689279] dea0: 00000000 00000000 00000003 c049061c c0c2f02c c001b090 00000000 03aab34f
[ 12.694121] dec0: 00000255 675f2917 00041000 c2c23aa0 00000000 00040000 c0c2f02c dfb2df78
[ 12.698960] dee0: b5dc0028 00000001 00004004 c021649c 00000cc0 c00118a4 b5dc0000 00000003
[ 12.703787] df00: 00000000 00000000 01000006 00030000 00010000 b5dc0028 00000000 00000000
[ 12.708616] df20: c2c23aa0 00000000 ad830000 00000003 00000000 00000000 00000000 00004004
[ 12.713459] df40: 00000000 00000000 00000000 675f2917 0000000f c2c23aa0 c2c23aa0 c0c2f02c
[ 12.718283] df60: b5dc0028 00040000 c2010000 ad800000 00000003 c0216d64 ad800000 00000003
[ 12.723123] df80: c2010000 675f2917 0000000f b6f9b600 ad800000 00000003 c0008408 00800000
[ 12.727963] dfa0: b6f1f1e8 c00083f8 0000000f b6f9b600 0000000f b5dc0028 00040000 00000000
[ 12.732803] dfc0: 0000000f b6f9b600 ad800000 00000003 b5dc0008 01afc9b4 b5dc0020 b6f1f1e8
[ 12.737631] dfe0: b6f1ec80 bee2bcf8 b6e7af28 b6e7af44 60000010 0000000f 00000000 00000000
[ 12.742473] handle_mm_fault from do_page_fault+0x138/0x3a8
[ 12.744975] do_page_fault from do_DataAbort+0x40/0xb4
[ 12.747419] do_DataAbort from __dabt_svc+0x48/0x80
[ 12.749785] Exception stack(0xdfb2dcf8 to 0xdfb2dd40)
[ 12.752098] dce0: c1a183b0 ffffff00
[ 12.756569] dd00: 00000000 00000000 b5df1000 00000000 00000000 00000028 c2ce9fd8 c0c2f02c
[ 12.761001] dd20: 00000fff c1a18380 00000000 dfb2dd48 c04d7a08 c04d79c0 80000113 ffffffff
[ 12.765431] __dabt_svc from __copy_to_user_memcpy+0x54/0x1dc
[ 12.767688] __copy_to_user_memcpy from _copy_to_iter+0x9c/0x69c
[ 12.769919] _copy_to_iter from copy_page_to_iter+0x114/0x2ac
[ 12.772103] copy_page_to_iter from filemap_read+0x20c/0x428
[ 12.774258] filemap_read from blkdev_read_iter+0x138/0x208
[ 12.776379] blkdev_read_iter from vfs_read+0x1e4/0x2a8
[ 12.778460] vfs_read from ksys_read+0x5c/0xd8
[ 12.780489] ksys_read from __sys_trace_return+0x0/0x10
[ 12.782482] Exception stack(0xdfb2dfa8 to 0xdfb2dff0)
[ 12.784426] dfa0: 0000000f b6f9b600 0000000f b5dc0028 00040000 00000000
[ 12.788221] dfc0: 0000000f b6f9b600 ad800000 00000003 b5dc0008 01afc9b4 b5dc0020 b6f1f1e8
[ 12.792000] dfe0: b6f1ec80 bee2bcf8 b6e7af28 b6e7af44
[ 12.793899] Code: 73c5cb76 68737213 70f86db3 5fe469a4 (f6c517fa)