MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.88k stars 497 forks source link

Image | Raspberry Pi 4 #2935

Closed MichaIng closed 5 years ago

MichaIng commented 5 years ago

Device is ordered, initial hardware detection and ID has been added: https://github.com/MichaIng/DietPi/commit/19ab1667e87b760d48414887191ed0b407f13574

Testing image available: https://github.com/MichaIng/DietPi/issues/2935#issuecomment-511226948

Twitter: https://twitter.com/DietPi_/status/1143142028148191232


Third kernel tree added, quite a bunch of data now:

2019-06-24 17:09:41 root@micha:~# G_TREESIZE /lib/modules/
[  OK  ] Root access verified.
174.8 MB /lib/modules/
59.0 MB /lib/modules/4.19.50-v7l+
58.8 MB /lib/modules/4.19.50-v7+
57.0 MB /lib/modules/4.19.50+

Also a new set of kernel/bootloader/start/fixup files has been added, /boot is growing messy:

2019-06-24 17:11:12 root@micha:~# ls -Alh /boot
total 39M
-rwxr-xr-x 1 root root  19K Jun 24 16:06 COPYING.linux
-rwxr-xr-x 1 root root 1.5K Jun 24 16:08 LICENCE.broadcom
-rwxr-xr-x 1 root root  24K Jun 24 16:06 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x 1 root root  23K Jun 24 16:06 bcm2708-rpi-b.dtb
-rwxr-xr-x 1 root root  23K Jun 24 16:06 bcm2708-rpi-cm.dtb
-rwxr-xr-x 1 root root  24K Jun 24 16:06 bcm2708-rpi-zero-w.dtb
-rwxr-xr-x 1 root root  23K Jun 24 16:06 bcm2708-rpi-zero.dtb
-rwxr-xr-x 1 root root  25K Jun 24 16:06 bcm2709-rpi-2-b.dtb
-rwxr-xr-x 1 root root  27K Jun 24 16:06 bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root  26K Jun 24 16:06 bcm2710-rpi-3-b.dtb
-rwxr-xr-x 1 root root  25K Jun 24 16:06 bcm2710-rpi-cm3.dtb
-rwxr-xr-x 1 root root  39K Jun 24 16:06 bcm2711-rpi-4-b.dtb
-rwxr-xr-x 1 root root  52K Jun 24 16:08 bootcode.bin
-rwxr-xr-x 1 root root  103 Mar 26 03:04 cmdline.txt
-rwxr-xr-x 1 root root 2.5K Jun 24 17:08 config.txt
drwxr-xr-x 4 root root 4.5K Mar 23 16:39 dietpi
-rwxr-xr-x 1 root root 9.6K Jun 24 17:08 dietpi.txt
-rwxr-xr-x 1 root root 6.6K Jun 24 16:08 fixup.dat
-rwxr-xr-x 1 root root 6.0K Jun 24 16:08 fixup4.dat
-rwxr-xr-x 1 root root 3.0K Jun 24 16:08 fixup4cd.dat
-rwxr-xr-x 1 root root 9.0K Jun 24 16:08 fixup4db.dat
-rwxr-xr-x 1 root root 9.0K Jun 24 16:08 fixup4x.dat
-rwxr-xr-x 1 root root 2.6K Jun 24 16:08 fixup_cd.dat
-rwxr-xr-x 1 root root 9.6K Jun 24 16:08 fixup_db.dat
-rwxr-xr-x 1 root root 9.6K Jun 24 16:08 fixup_x.dat
-rwxr-xr-x 1 root root 4.8M Jun 24 16:06 kernel.img
-rwxr-xr-x 1 root root 5.1M Jun 24 16:06 kernel7.img
-rwxr-xr-x 1 root root 5.4M Jun 24 16:06 kernel7l.img
drwxr-xr-x 2 root root  15K Jun 24 16:10 overlays
-rwxr-xr-x 1 root root 2.8M Jun 24 16:08 start.elf
-rwxr-xr-x 1 root root 2.7M Jun 24 16:08 start4.elf
-rwxr-xr-x 1 root root 745K Jun 24 16:08 start4cd.elf
-rwxr-xr-x 1 root root 4.5M Jun 24 16:08 start4db.elf
-rwxr-xr-x 1 root root 3.6M Jun 24 16:08 start4x.elf
-rwxr-xr-x 1 root root 670K Jun 24 16:08 start_cd.elf
-rwxr-xr-x 1 root root 4.7M Jun 24 16:08 start_db.elf
-rwxr-xr-x 1 root root 3.7M Jun 24 16:08 start_x.elf

Oh okay, this is even a very close thing on my system:

/dev/mmcblk0p1   43M   41M  2.2M  96% /boot

Checking new Raspbian Lite image: rpi

RefineryX commented 5 years ago

When is the official version of dietpi buster out?

MichaIng commented 5 years ago

@SimplyGardner For Raspberry Pi we will switch to Buster very soon. I think the image above is already fine, it is still based on the latest Raspbian Lite release and now since DietPi v6.25 is release, it will be automatically updated to stable DietPi code on first boot.

Only limitation I know for non-RPi4: No Kodi available yet. RPi4 works as well, but some dietpi-config settings are not yet RPi4 ready.

For x86_64 Buster images are already very stable (tested a long time in combination with DietPi testing in the past ~1.5 years), but we will officially set them to stable (and remove Stretch from download page) after official Debian Buster release (the next weeks).

For most other SBCs it will take a longer while I guess. firmware/drivers have to be Buster-ready and I expect this to take while, especially for older SBC models.

MichaIng commented 5 years ago

@Fourdee VC4 modes related to this I guess: https://www.raspberrypi.org/forums/viewtopic.php?t=244596 Looks like master firmware version solves it (e.g. rpi-update for now): https://github.com/Hexxeh/rpi-firmware/commits/master

Finally also the rpi-update notice makes it clear not NOT use rpi-update without specific reason: https://github.com/Hexxeh/rpi-firmware/commit/768ea94042bade6ea276c6cea358c9645cb5de6a

meeki007 commented 5 years ago

Thanks for keeping me (us, everyone) informed on these changes. The TO_DO_LIST grows :)

MichaIng commented 5 years ago

New RPi4-capable Buster image uploaded: https://dietpi.com/downloads/images/DietPi_RPi-ARMv6-Buster.7z

nboyan commented 5 years ago

@MichaIng, Can I use apt update / upgrade only since I am with 6.25v.3 or I should pre-flash the sdcard once again? Edit: I found in other thread and one more "dietpi -update 1" which one?

renarsvilnis commented 5 years ago

@MichaIng If I use provided the experimental image, will it always stay on the "experimental" branch of updates? Or once it's stable It's just an update?

MichaIng commented 5 years ago

@nboyan @renarsvilnis No need to reflash the image.

The experimental image was created with v6.25 dev or beta code, to have RPi4 definitions inside. But the target Git branch was manually reverted to master (stable). You can verify via:

grep 'DEV_GITBRANCH' /DietPi/dietpi.txt

Should how: DEV_GITBRANCH=master

If you are on v6.25.3 already, then you are already on latest stable release. If the login banner just says DietPi v6.25.3 : 14:19 - Mon 07/15/19 then this is as well a prove that you are on master (stable) code, otherwise it would say e.g. DietPi v6.25.3 (beta) : 14:19 - Mon 07/15/19.

If you are indeed not on master branch, run:

G_CONFIG_INJECT 'DEV_GITBRANCH=' 'DEV_GITBRANCH=master' /DietPi/dietpi.txt

If an update is offered (e.g. you are on v6.25.0/1/2), but the menu does not work (simply exits without update), then run dietpi-update 1. This includes apt update+upgrade.

If no update is offered, but you e.g. want to update the firmware, run as usual: apt update && apt update (or apt full-upgrade, although not required on RPi for firmware updates).

nboyan commented 5 years ago

thx @MichaIng

MichaIng commented 5 years ago

Okay, I made the RPi4-capable Buster image the default download now. No major issues reported. There is still some work to do to make e.g. dietpi-config full RPi4 compatible, e.g. 4k HDMI and separate settings for each HDMI port. So far all that is applied applies to port 1 only.

I will close this issue now. Please report bugs or requests in separate issues from now now.