diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2011-03-01 02:05:20 +0100 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2011-03-01 02:05:20 +0100 |
commit | 7a6eb3220e5a71c68f12eb800636c10718e99573 (patch) | |
tree | 893dfb892fe92f0bbebb439fb8f1b3ffc93e1c34 /recipes | |
parent | 6d94ff134f59c2b76216a2127ea494a8c5816024 (diff) | |
download | openembedded-7a6eb3220e5a71c68f12eb800636c10718e99573.tar.gz |
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@gmail.com>
Diffstat (limited to 'recipes')
-rw-r--r-- | 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 b6599fe24e..90ee7c28ce 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} +} |