I recompiled a kernel that enables flashrom (normal kernels do, which is I guess why no one told me after I was asked about mine,) but I have had further problems.
I compiled grub2 for coreboot, and it says zelf payloads did not exist (I have read many posts on gmane that said that such zelf files specified in the make process are not even in the source: I saw none there.) Then I replaced those with "payload /root/coreboot-v2-3923/coreboot.elf" in /root/coreboot-v2-3923/targets/tyan/s4882/Config.lb. Then at "/root/coreboot-v2-3923/targets/tyan/s4882/s4882#" make said:
"cp: missing destination file operand after `payload'."
I changed it to "payload ../../../coreboot.elf" in Config.lb (and copied that '.elf' to that path,) and it said:
... objcopy --gap-fill 0xff -O binary coreboot coreboot.strip make[1]: *** No rule to make target `../../../coreboot.elf', needed by `payload'. Stop. make[1]: Leaving directory `/root/coreboot-v2-3923/targets/tyan/s4882/s4882/normal' make: *** [normal/coreboot.rom] Error 1
--David
-----Original Message----- From: coreboot-bounces@coreboot.org [mailto:coreboot-bounces@coreboot.org] On Behalf Of David Melik Sent: Sunday, February 01, 2009 10:42 PM To: coreboot@coreboot.org Subject: Re: [coreboot] making coreboot for Tyan s4882?
I recompiled a kernel that enables flashrom (normal kernels do, which is I guess why no one told me after I was asked about mine,) but I have had further problems.
I compiled grub2 for coreboot, and it says zelf payloads did not exist (I have read many posts on gmane that said that such zelf files specified in the make process are not even in the source: I saw none there.) Then I replaced those with "payload /root/coreboot-v2-3923/coreboot.elf" in /root/coreboot-v2-3923/targets/tyan/s4882/Config.lb. Then at "/root/coreboot-v2-3923/targets/tyan/s4882/s4882#" make said:
"cp: missing destination file operand after `payload'."
I changed it to "payload ../../../coreboot.elf" in Config.lb (and copied that '.elf' to that path,) and it said:
Can you try copying your payload (grub2) to targets/tyan/s4882/grub2.elf and using "payload ../grub2.elf" in your Config.lb?
Thanks, Myles
On Mon, Feb 2, 2009 at 9:06 AM, Myles Watson mylesgw@gmail.com wrote:
-----Original Message----- From: coreboot-bounces@coreboot.org [mailto:coreboot-bounces@coreboot.org] On Behalf Of David Melik Sent: Sunday, February 01, 2009 10:42 PM To: coreboot@coreboot.org Subject: Re: [coreboot] making coreboot for Tyan s4882?
I recompiled a kernel that enables flashrom (normal kernels do, which is I guess why no one told me after I was asked about mine,) but I have had further problems.
I compiled grub2 for coreboot, and it says zelf payloads did not exist (I have read many posts on gmane that said that such zelf files specified in the make process are not even in the source: I saw none there.) Then I replaced those with "payload /root/coreboot-v2-3923/coreboot.elf" in /root/coreboot-v2-3923/targets/tyan/s4882/Config.lb. Then at "/root/coreboot-v2-3923/targets/tyan/s4882/s4882#" make said:
"cp: missing destination file operand after `payload'."
I changed it to "payload ../../../coreboot.elf" in Config.lb (and copied that '.elf' to that path,) and it said:
Can you try copying your payload (grub2) to targets/tyan/s4882/grub2.elf and
I meant targets/tyan/s4882/s4882/grub2.elf. Sorry.
Myles
using "payload ../grub2.elf" in your Config.lb?
Thanks, Myles
The make error for s4882 being discussed:
objcopy --gap-fill 0xff -O binary coreboot coreboot.strip make[1]: *** No rule to make target `grub2', needed by `payload'. Stop. make[1]: Leaving directory `/root/coreboot-v2-3923/targets/tyan/s4882/s4882/normal' make: *** [normal/coreboot.rom] Error 1
I meant targets/tyan/s4882/s4882/grub2.elf. Sorry.
Myles
(Perhaps 'payload' should be in $target in the first place.) I did that and got the exact same results (I tried payload 'grub2' and './grub2,' and also put it in 'fallback.') I wrote a longer letter this afternoon, but Thunderbird did not send it or save a copy, so this will be short. I will still say I noticed this funny line in s4882: 'cp -f $TYANMB"_coreboot.rom" /home/yhlu/.' Since make says it has no rule for 'target 'grub2,' needed by payload,' I searched through config.py for 'target,' 'image,' etc. and I do not see how it works.
--David
David Melik wrote:
(Perhaps 'payload' should be in $target in the first place.)
Config.lb is used to build several Makefiles and they are in further subdirectories of target/vendor/board/dir/
It is easy and reliable to use an absolute path to the payload.
v2 is like this. v3 uses Kconfig for configuration and a special file format (LAR) with a tool (lar) for adding files into the final coreboot.rom file.
//Peter