Hi I am new to LinuxBIOS. I am using LinuxBIOSv2 .I am trying to build a rom image for the khepri board from newisys. I do the following for the build -
#cd LinuxBIOSv2/targets/ #./buildtarget newisys/khepri #cd newisys/khepri/khepri #make
I get the following error -
linuxbios_ram.o(.text+0x853c): In function `start_cpu': : undefined reference to `_secondary_start' collect2: ld returned 1 exit status make[1]: *** [linuxbios_ram] Error 1
I am using gnu gcc 3.4.3
Can someone help me with this ASAP?
Rohit.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Hi I am new to LinuxBIOS. I am using LinuxBIOSv2 .I am trying to build a rom
Welcome.
#cd LinuxBIOSv2/targets/ #./buildtarget newisys/khepri #cd newisys/khepri/khepri #make
I get the following error -
linuxbios_ram.o(.text+0x853c): In function `start_cpu': : undefined reference to `_secondary_start' collect2: ld returned 1 exit status make[1]: *** [linuxbios_ram] Error 1
I don't have your hardware but I just tried the build and it worked fine for me. I got all the way to the payload error which is the last step.
#define DISCLAMER_I_AM_NOT_AN_SMP_EXPERT
_secondary_start looks to me to be code that will start up the other cpus in SMP. Its assmembly that lives 'src/cpu/x86/lapic/secondary.S'.
'src/cpu/x86/lapic/lapic_cpu_init.c' copies that code into a area below 1M.
Unless this is your truly first attempt to build this then you should do is a fresh check out into a new directory and re-try. I've had buildproblems with unresolved symbols in the past that were fixed by clean checkouts. The linuxbios build system is pretty complex and sometimes it can get confused.
If you still have the problem after that then save the build info to a file and grep through it looking for where secondary.S is assembled and make sure it's making it into your linker statements.