diff --git a/bin/mknnk b/bin/mknnk new file mode 100755 index 0000000..b2a6de5 --- /dev/null +++ b/bin/mknnk @@ -0,0 +1,3 @@ +#!/bin/sh -e +PATH=$PATH:../u-boot/tools +make ARCH=mips CROSS_COMPILE=mipsel-openwrt-linux- "$@" diff --git a/bin/nnui b/bin/nnui new file mode 100755 index 0000000..1f55964 --- /dev/null +++ b/bin/nnui @@ -0,0 +1,8 @@ +#!/bin/sh -ex +PATH=$PATH:../u-boot/tools +mknnk -j4 vmlinux.bin +gzip -9 -f arch/mips/boot/vmlinux.bin +mkimage -A mips -O linux -T kernel -a 0x80010000 \ + -C gzip -e 0x`mipsel-openwrt-linux-nm vmlinux | \ + grep " kernel_entry" | cut -f1 -d ' '` \ + -n 'Ben NanoNote Linux Kernel' -d arch/mips/boot/vmlinux.bin.gz uImage