# Rockpi4b issues

**URL:** <https://dietpi.com/forum/t/rockpi4b-issues/4300>\
**Category:** Troubleshooting\
**Created:** [13 July 2020 20:47 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300 "2020-07-13T20:47:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![aguapi](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@aguapi](https://dietpi.com/forum/u/aguapi)\
**Post date:** [13 July 2020 20:47 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/1 "2020-07-13T20:47:18Z")

</div>

Hi. I am running Dietpi from a rock pi4b board. And I have some doubts / problems:  
The first thing that worries me is that the start takes a long time. I have not timed it, but I think it takes easy up to 2 minutes or more to get the desktop screen (LXDE desktop installed)  
I have had problems with the wifi connection, (I do not dare to say that I fix it, because in fact I am not sure it is so), but the truth is that after making some changes in the configuration it is now working. For the one that interests you, I have disabled ipv6. Also disable mac randomization with the following command (echo -e “[device] \ nwifi.scan-rand-mac-address = no” | sudo tee /etc/NetworkManager/conf.d/disable-random-mac.conf), but as I have taken it from another site with a similar problem with the wifi, the reality is that I do not know for sure if that command has affected my dietpi system in any way.Anyway, right now I am writing from the rocpi board with wifi working fine.  
The other problem that worries me is that the CPU frequency limits were disabled by default. At one point the temperature of the board was reaching 71º centigrade. I have set it to min = off and max = 1512 mhz.  
I would appreciate someone to give me a hand to reduce boot times.  
Regards

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [13 July 2020 21:06 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/2 "2020-07-13T21:06:46Z")

</div>

Hi,

many thanks for your message. Right after reboot, execute the following on command line

```nohighlight
systemd-analyze blame

```

this should give some indication where most of time is spend on during boot.

---

<div class="post-metadata">

**Author:** ![aguapi](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@aguapi](https://dietpi.com/forum/u/aguapi)\
**Post date:** [13 July 2020 22:29 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/3 "2020-07-13T22:29:35Z")

</div>

Hi, thanks for the prompt reply. here I paste the command output

```nohighlight
systemd-analyze blame
         31.428s dietpi-boot.service
         24.294s dev-nvme0n1p7.device
          4.715s systemd-udevd.service
          3.479s systemd-modules-load.service
          3.369s resolvconf.service
          3.171s dev-hugepages.mount
          3.074s systemd-udev-trigger.service
          2.553s sys-kernel-debug.mount
          2.453s systemd-tmpfiles-setup-dev.service
          2.361s systemd-remount-fs.service
          2.312s dev-mqueue.mount
          2.274s systemd-sysusers.service
          2.020s kmod-static-nodes.service
          1.723s fake-hwclock.service
          1.333s keyboard-setup.service
          1.303s networking.service
          1.247s systemd-journald.service
           932ms systemd-journal-flush.service
           334ms tmp.mount
           317ms upower.service
           309ms var-log.mount
           247ms sys-kernel-config.mount
           232ms systemd-sysctl.service
           222ms sys-fs-fuse-connections.mount
           212ms proftpd.service
           192ms systemd-random-seed.service
           181ms user@0.service
           173ms dietpi-preboot.service
            87ms systemd-fsck@dev-disk-by\x2duuid-8bb79367\x2df07
c\x2d41a8\x2d9ae9\x2d0539a80c397e.service
            78ms systemd-logind.service
            60ms ifupdown-pre.service
            53ms dietpi-ramlog.service
            43ms alsa-restore.service
            37ms dropbear.service
            34ms user-runtime-dir@0.service
            29ms polkit.service
            29ms systemd-tmpfiles-setup.service
            24ms systemd-user-sessions.service
            24ms systemd-update-utmp.service
            22ms systemd-update-utmp-runlevel.service
            18ms console-setup.service
            17ms boot.mount
            16ms systemd-rfkill.service

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [14 July 2020 00:37 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/4 "2020-07-14T00:37:05Z")

</div>

basically it looks like 2 challenges.

```nohighlight
31.428s dietpi-boot.service
24.294s dev-nvme0n1p7.device

```

Let me do a guess:

First one seems to be related to network time sync taking around 30 sec. Can you check journalctl -u systemd-timesyncd.service right after reboot pls

Secound one seems to be a slow/old RootFS. Around 24 sec to have RootFS mounted is quite a long time. On my RPi4B, its around 1 sec.

---

<div class="post-metadata">

**Author:** ![aguapi](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@aguapi](https://dietpi.com/forum/u/aguapi)\
**Post date:** [14 July 2020 13:11 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/5 "2020-07-14T13:11:53Z")

</div>

Hi. The output of the command does not give any extraordinary result:  
journalctl -u systemd-timesyncd.service  
– Logs begin at Thu 2019-02-14 07:12:16 -03, end at Mon 2020-07-13 23:02:19 -03  
. –  
– No entries –

As for slow / old rootFS, I don’t know how to fix it. Would it be a matter of updating it? I am using a multiboot image, provided by people from the radxa / rockpi page, because in fact it is the only way I managed to boot from nvme.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [14 July 2020 13:47 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/6 "2020-07-14T13:47:31Z")

</div>

I guess it’s the SD card that seems to be slow.

Strange that systemd-timesyncd.service doesn’t have any output. Usually it should display time sync attempts. Is it same right after reboot?

---

<div class="post-metadata">

**Author:** ![aguapi](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@aguapi](https://dietpi.com/forum/u/aguapi)\
**Post date:** [14 July 2020 23:06 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/7 "2020-07-14T23:06:43Z")

</div>

Hello, I am sorry for the delay in responding.

> Can you check journalctl -u systemd-timesyncd.service right after reboot pls

sudo systemctl status systemd-timesyncd  
● systemd-timesyncd.service - Network Time Synchronization  
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled; vend  
or preset: enabled)  
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d  
└─disable-with-time-daemon.conf  
Active: inactive (dead)  
Docs: man:systemd-timesyncd.service(8)

I want to make a clarification pertinent to the boot system that I am using at the moment:  
It is a system provided by a member of the Rockpi forum. A multiboot image, which with a series of commands can create a medium (in this case an nvme disk) that can bounce various operating systems. I paste a link if necessary. [About multiboot - ROCK 4 Series - Radxa Forum](https://forum.radxa.com/t/about-multiboot/2838)

I say this so that you know that I have an Armbian image on the same support, which incidentally bounces in less than a minute, and also the Dietpi image, which takes about 4 and a half minutes to reach the desktop screen. That said, I think the problem has to do with the nucleus, because investigating in the rockpi forum, they say that although there are several images of Armbian, the only stable one is that of nucleus 4.4. The newer kernel image (5.4) has slow boot. So maybe it’s a problem with Dietpi’s nucleus, which according to una -a is 5.4.49  
  
  
regards

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [14 July 2020 23:17 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/8 "2020-07-14T23:17:22Z")

</div>

Hi,

just for clarification. DietPi did not and will not create own kernels. The kernel is provided by the underlying Debian base image, always.

---

<div class="post-metadata">

**Author:** ![aguapi](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@aguapi](https://dietpi.com/forum/u/aguapi)\
**Post date:** [15 July 2020 00:09 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/9 "2020-07-15T00:09:52Z")

</div>

Ok, so there is no way to solve such slow system startup around here?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [15 July 2020 00:46 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/10 "2020-07-15T00:46:54Z")

</div>

well you could install plain Armbian Buster Legacy image (kernel 4.4)  
[https://dl.armbian.com/rockpi-4b/Buster\_legacy](https://dl.armbian.com/rockpi-4b/Buster_legacy)

and try to run DietPi PREP script afterwards to install DietPi on top. But no guaranty that it will work that way  
[https://github.com/MichaIng/DietPi/issues/1285](https://github.com/MichaIng/DietPi/issues/1285)

---

<div class="post-metadata">

**Author:** ![aguapi](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@aguapi](https://dietpi.com/forum/u/aguapi)\
**Post date:** [15 July 2020 12:42 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/11 "2020-07-15T12:42:43Z")

</div>

Hi. But in the case of getting the image with kernel 4.4. Wouldn’t it switch to the newer one when I update / upgrade?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [15 July 2020 12:50 UTC](https://dietpi.com/forum/t/rockpi4b-issues/4300/12 "2020-07-15T12:50:05Z")

</div>

could be. something to test. Unfortunately I don’t have a RackPi4 board.
