Root/target/linux/xburst/files-2.6.32/arch/mips/boot/tools/entry

1#!/bin/sh
2
3# grab the kernel_entry address from the vmlinux elf image
4entry=`$1 $2 | grep kernel_entry`
5
6fs=`echo $entry | grep ffffffff` # check toolchain output
7
8if [ -n "$fs" ]; then
9    echo "0x"`$1 $2 | grep kernel_entry | cut -c9- | awk '{print $1}'`
10else
11    echo "0x"`$1 $2 | grep kernel_entry | cut -c1- | awk '{print $1}'`
12fi
13

Archive Download this file



interactive