[U-Boot-Users] questions regarding entry point

The u-boot 1.1.4 README gives instructions for building a linux kernel image that is bootable by u-boot's 'bootm' command. My question is, since the instructions have you convert the vmlinux (elf) to a flat binary (linux.bin), how are you supposed to get the entry point to use later during the 'mkimage' step? The entry point is contained in the elf image but that information will be lost when converted to binary. I can certainly determine the entry point manually and enter it in that way. But how about an automated way such that the steps from the README can be put straight into the kernel Makefile?
John ============================================================ The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any reproduction, dissemination or distribution of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Tellabs ============================================================

image that is bootable by u-boot's 'bootm' command. My question is, since the instructions have you convert the vmlinux (elf) to a flat binary (linux.bin), how are you supposed to get the entry point to use later during the 'mkimage' step? The entry point is contained in the elf image but that information will be lost when converted to binary. I can certainly determine the entry point manually and enter it in that way. But how about an automated way such that the steps from the README can be put straight into the kernel Makefile?
Set both to zeros. You can take a look at the makefile arch/ppc/boot/images/Makefile.
BTW, if you want to make uImage linux kernel, just type 'make uImage'. uImage is an official target in Linux kernel.
Regards, -Shawn.

In message c3d0340b0604121738m5219b86cob9da8bea7b3efd3b@mail.gmail.com you wrote:
image that is bootable by u-boot's 'bootm' command. My question is, since the instructions have you convert the vmlinux (elf) to a flat binary (linux.bin), how are you supposed to get the entry point to use later during the 'mkimage' step? The entry point is contained in the elf image but that information will be lost when converted to binary. I can certainly determine the entry point manually and enter it in that way. But how about an automated way such that the steps from the README can be put straight into the kernel Makefile?
Set both to zeros. You can take a look at the makefile arch/ppc/boot/images/Makefile.
Of course this is only correct for PowerPC.
Other architectures have different requirements.
BTW, if you want to make uImage linux kernel, just type 'make uImage'. uImage is an official target in Linux kernel.
Right, all of this should be taken care of in the kernel Makefile; see existing examples. Eventually look at the DENX trees which do this on PPC, ARM and MIPS.
Best regards,
Wolfgang Denk
participants (3)
-
Burch, John T.
-
Shawn Jin
-
Wolfgang Denk