Skip to content

config.txt: „total_mem“ in [piX] should not affect non-piX devices #716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
herrmeier01 opened this issue Jan 12, 2017 · 3 comments
Closed

Comments

@herrmeier01
Copy link

bootloader configuration config.txt

[pi1]
total_mem=512

This option should only affect Pi1 board but not Pi2 and Pi3 board.
But it will force the Pi2 and Pi3 to use 512MB.

@popcornmix
Copy link
Contributor

config.txt is actually parsed by both bootcode.bin and start.elf.
bootcode.bin is very minimal. The code runs from the cache before sdram is enabled.
As such the config.txt filtering is more basic. The only filter currently supported is serial number.

Most config.txt options are start.elf options.
total_mem and gpu_mem are bootcode options hence the issue.

Let me look into parsing the processor type. If it can be done in a small amount of code, I'll add it. (pi1 is easy to identify, but Pi2/Pi3 distinction involves parsing the revision field from otp, so is a little more involved).

Note: some filters, like EDID based sections will be impossible from bootcode.bin (but fortunately you are unlikely to want to change the memory size based on monitor attached).

@popcornmix
Copy link
Contributor

Could you test https://drive.google.com/uc?id=0B-6zmEDJwxZEVGtIVHg0dmotZ2s&export=download
Hopefully it will fix both of your issues.

popcornmix added a commit that referenced this issue Jan 14, 2017
kernel: BCM270X_DT: Add pi3-disable-wifi overlay

kernel: Add driver_name properties to JustBoom drivers
See: raspberrypi/linux#1787

kernel: bcm2835-i2s: Changes for allowing asymmetric sample formats
See: raspberrypi/linux#1783

firmware: bootcode: Don't let total_mem exceed sdram size
See: #717

firmware: bootcode: Enhance parsing to handle processor sections
See: #716
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this issue Jan 14, 2017
kernel: BCM270X_DT: Add pi3-disable-wifi overlay

kernel: Add driver_name properties to JustBoom drivers
See: raspberrypi/linux#1787

kernel: bcm2835-i2s: Changes for allowing asymmetric sample formats
See: raspberrypi/linux#1783

firmware: bootcode: Don't let total_mem exceed sdram size
See: raspberrypi/firmware#717

firmware: bootcode: Enhance parsing to handle processor sections
See: raspberrypi/firmware#716
@herrmeier01
Copy link
Author

Great job! Both issues are fixed (Pi1 256M and Pi1 512M) and "total_mem" works fine now

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants