mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-25 14:18:05 +02:00
dc3d3f1c49
it's basically also provided by ingenic and nativly based on 2.6.27, adjusted to fit into the OpenWrt-environment
13 lines
334 B
Bash
13 lines
334 B
Bash
#!/bin/sh
|
|
|
|
# grab the kernel_entry address from the vmlinux elf image
|
|
entry=`$1 $2 | grep kernel_entry`
|
|
|
|
fs=`echo $entry | grep ffffffff` # check toolchain output
|
|
|
|
if [ -n "$fs" ]; then
|
|
echo "0x"`$1 $2 | grep kernel_entry | cut -c9- | awk '{print $1}'`
|
|
else
|
|
echo "0x"`$1 $2 | grep kernel_entry | cut -c1- | awk '{print $1}'`
|
|
fi
|