From 3b2b9166d9091636ca67d8b4115d6b4c0e4828ea Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 25 Mar 2011 20:19:51 -0300 Subject: [PATCH] mknnk, nnui: kernel build scripts - mknnk: invoke "make" for making a NanoNote kernel - nnui: make an uImage for the NanoNote --- bin/mknnk | 3 +++ bin/nnui | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100755 bin/mknnk create mode 100755 bin/nnui 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