On 12.10.2014 08:03, Vipin Gahlaut wrote:
Hi,
I have cloned latest coreboot and trying to build with grub2 as payload. in make menuconfig I select grub2 instead of seabios. when I fire make command it checkout latest grub and that fails to build. for 2 reasons.
- Due to some initialization errors that I managed to fix with below
changes
- struct grub_linux_initrd_context initrd_ctx = { 0, };
- struct grub_linux_initrd_context initrd_ctx = { 0,NULL,0 };
Sounds like you have an old gcc
- grub size issue as below that I am unable to resolve and looking for
your help. I am building for QEMU and using QEMU version 2.1.2.
E: Could not add [payloads/external/GRUB2/grub2/build/default_payload.elf, 268862 bytes (262 KB)@0x0]; too big? E: Failed to add 'payloads/external/GRUB2/grub2/build/default_payload.elf' into ROM image.
Increase ROM size.
Vladimir 'φ-coder/phcoder' Serbinenko wrote:
- grub size issue as below that I am unable to resolve and looking for
your help. I am building for QEMU and using QEMU version 2.1.2.
E: Could not add [payloads/external/GRUB2/grub2/build/default_payload.elf, 268862 bytes (262 KB)@0x0]; too big? E: Failed to add 'payloads/external/GRUB2/grub2/build/default_payload.elf' into ROM image.
Increase ROM size.
If it is known that a particular payload option requires a minimum ROM image size then coreboot configuration must ensure that an invalid configuration is not possible.
That is not rocket science. Neither is implementing it. And it is critical for coreboot not to look like a ridiculous toy.
It's like with correct whitespace in source code; a fundamental thing to always get right, to maintain some kind of credibility for the code and not waste time of those who might pass by and have an interest.
Why should we make code any worse than it can be?
//Peter