[oe-commits] Andrea Adami : linux-kexecboot: add initial ben-nanonote support

git version control git at git.openembedded.org
Wed Mar 2 07:32:48 UTC 2011


Module: openembedded.git
Branch: hipox
Commit: d605b592244d3abf027b725b41f26857c0ce2146
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d605b592244d3abf027b725b41f26857c0ce2146

Author: Andrea Adami <andrea.adami at gmail.com>
Date:   Tue Mar  1 02:05:20 2011 +0100

linux-kexecboot: add initial ben-nanonote support

* temporarly use custom task for uImage
* will be fixed when mips kernel will have uImage target (pending)

Signed-off-by: Andrea Adami <andrea.adami at gmail.com>

---

 recipes/linux/linux-kexecboot.inc |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/recipes/linux/linux-kexecboot.inc b/recipes/linux/linux-kexecboot.inc
index b6599fe..90ee7c2 100644
--- a/recipes/linux/linux-kexecboot.inc
+++ b/recipes/linux/linux-kexecboot.inc
@@ -1,5 +1,5 @@
 # We set INC_PR here, since a change in the kexecboot recipe will need to get picked up by *all* the kernels:
-INC_PR = "r29"
+INC_PR = "r30"
 
 inherit kernel siteinfo
 
@@ -20,6 +20,8 @@ CMDLINE_akita = "console=tty1 console=ttyS0,115200n8 fbcon=rotate:1"
 CMDLINE_collie = "console=tty1 console=ttySA0,115200n8 fbcon=rotate:1 mem=64M"
 CMDLINE_spitz = "console=tty1 console=ttyS0,115200n8 fbcon=rotate:1"
 CMDLINE_hx4700 = "console=tty1 console=ttyS0,115200n8 fbcon=rotate:1"
+CMDLINE_ben-nanonote = "console=tty0 console=ttyS0,57600n8 mem=32M"
+
 
 # Set the verbosity of kernel messages during runtime
 # You can define CMDLINE_DEBUG in your local.conf or distro.conf to override this behaviour..
@@ -147,3 +149,22 @@ do_install() {
 
 python do_package() {
 }
+
+
+# With 2.6.37 mips has no uImage target upstream.
+# use custom task in the meantime
+
+do_uboot_mkimage_ben-nanonote() {
+        cd ${S}
+        kernel_entry=`nm vmlinux | grep " kernel_entry" | cut -d' ' -f1`
+
+        cd ${S}/arch/mips/boot
+        rm -f vmlinux.bin.gz
+        gzip -c9 vmlinux.bin > vmlinux.bin.gz
+
+        mkimage -A mips -O linux -T kernel -C gzip -a 0x80010000 -e 0x${kernel_entry} \
+        -n 'MIPS' -d vmlinux.bin.gz uImage-kexecboot-${PV}-${PR}-${MACHINE}.bin
+
+        install -d ${DEPLOY_DIR_IMAGE}
+        install -m 0644 uImage-kexecboot-${PV}-${PR}-${MACHINE}.bin ${DEPLOY_DIR_IMAGE}
+}





More information about the Openembedded-commits mailing list