hostedOS14 first boot broken on rPi with 256 MiB memory

I just tested the testing channel on an original 256 MiB memory rPi 1. It runs out of memory during first boot.


    Booting up..

[*] Waiting for storage device
[*] testing:240515:125a8c:stable-0014 (first boot) on 00000002 (v6, 0)
[*] Drivers loaded
[*] Using Ethernet
[*] Mounting stage2... ok
[*] Entering stage2
[*] First boot detected
    ===================

    We have to prepare a few things. This is only done
    once and it only takes a few seconds. Stay tuned.

    Do *NOT* remove power until this setup is done.

[*] Creating system partitions
[   14.686863] Out of memory: Killed process 158 (sysfs-gpio) total-vm:1800kB, anon-rss:88kB,
file-rss:0kB, shmem-rss:244kB, UID:0, pgtables:8kB oom_score_adj:0
[   14.886940] Out of memory: Killed process 174 (init) total-vm:1288kB, anon-rss:52kB, file-rss:0kB, shmem-rss:0kB, UID:0, pgtables:6kB oom_score_adj:0
[   14.927275] Out of memory: Killed process 193 (cp) total-vm:1256kB, anon-rss:20kB, file-rss:0kB, shmem-rss:0kB, UID:0, pgtables:6kB oom_score_adj:0

I was able to work around or fix the problem. After deleting gpu_mem_256=128 and gpu_mem_512=256 from config.txt first boot was successfull.

According to https://www.raspberrypi.com/documentation/computers/legacy_config_txt.html#gpu_mem the ‘gpu_mem’ settings are deprecated. Probably cause “gpu” driver has been reworked heavily and memory is allocated dynamically nowadays. But I am not sure. Only rumours I heard.

1 Like

Thanks for reporting! gpu_mem is indeed deprecated when using the default kms overlay mode on one of the modern Pis. For Pis up to model 3, info-beamer still uses the older (but reliable) broadcom API. For that, gpu_mem is still relevant. Deleting the setting will use the default. It’s probably not 128MB on a Pi with only 256 :slight_smile:

I‘ll check what can be improved to make this work.