On Sun, Apr 28, 2002 at 06:26:00PM +0200, Karsten Merker wrote: > - bootfile: the file in the cdimage (e.g. /mnt/cdboot/tftpimage-r3k-kn02.raw) > - cdimage: the cdimage file itself > - kernel_entry: the value of the kernel_entry label, which is > for r3k-kn02: 0x80040464 > for r4k-kn04: 0x8004046c This can change from compile to compile - Better to extract the symbol from the binary - Should be possible for ecoffs and ELFs. ----------------------------------------------------------------- revamp:~# objdump -x /boot/vmlinux-2.4.16-r4k-ip22 /boot/vmlinux-2.4.16-r4k-ip22: file format ecoff-bigmips /boot/vmlinux-2.4.16-r4k-ip22 architecture: mips:3000, flags 0x00000002: EXEC_P start address 0x000000008800246c Sections: Idx Name Size VMA LMA File off Algn 0 .text 001ef000 0000000088002000 0000000088002000 000000d0 2**4 CONTENTS, ALLOC, LOAD, CODE 1 .data 00000000 00000000881f1000 00000000881f1000 001ef0d0 2**4 CONTENTS, ALLOC, LOAD, DATA 2 .bss 00017390 00000000881f1000 00000000881f1000 001ef0d0 2**4 CONTENTS, ALLOC, NEVER_LOAD ----------------------------------------------------------------- Look at "start address" For ELF ----------------------------------------------------------------- revamp:~# objdump -x /boot/vmlinux-2.4.18 | head -30 /boot/vmlinux-2.4.18: file format elf32-tradbigmips /boot/vmlinux-2.4.18 architecture: mips:6000, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED start address 0x88002430 Program Header: 0x70000000 off 0x001a6a60 vaddr 0x881a8a60 paddr 0x881a8a60 align 2**2 filesz 0x00000018 memsz 0x00000018 flags r-- LOAD off 0x00001000 vaddr 0x88002000 paddr 0x88002000 align 2**12 filesz 0x0018ef70 memsz 0x0018ef70 flags r-x LOAD off 0x00190000 vaddr 0x88192000 paddr 0x88192000 align 2**12 filesz 0x00031000 memsz 0x00057aa0 flags rwx private flags = 10001001: [abi=O32] [mips2] [not 32bitmode] Sections: [...] ----------------------------------------------------------------- Same ... Flo -- Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium
Attachment:
pgp3teu0wiOtQ.pgp
Description: PGP signature