From 5aa68e560748a64329dbb180bbb03ab0d05cc71e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 12 Jul 2007 23:38:04 +0000 Subject: devimage-image, devimage_0.1: Finally, an initrd for kernel testing (minimal userspace involvment). * Details: # Image for kernel debugging and development testing # Contains minimal userspace shim (no udev, etc.), but all useful # "kernel userspace" utilities (feel free to add missing). # Allows to login via serial and real console or SSH --- packages/images/devimage-image.bb | 15 +++++++++++++++ packages/initrdscripts/devimage/.mtn2git_empty | 0 packages/initrdscripts/devimage/devimage.sh | 12 ++++++++++++ packages/initrdscripts/devimage/dropbear_rsa_host_key | Bin 0 -> 426 bytes packages/initrdscripts/devimage/passwd | 1 + packages/initrdscripts/devimage_0.1.bb | 11 +++++++++++ 6 files changed, 39 insertions(+) create mode 100644 packages/images/devimage-image.bb create mode 100644 packages/initrdscripts/devimage/.mtn2git_empty create mode 100644 packages/initrdscripts/devimage/devimage.sh create mode 100644 packages/initrdscripts/devimage/dropbear_rsa_host_key create mode 100644 packages/initrdscripts/devimage/passwd create mode 100644 packages/initrdscripts/devimage_0.1.bb (limited to 'packages') diff --git a/packages/images/devimage-image.bb b/packages/images/devimage-image.bb new file mode 100644 index 0000000000..b6ae6aa5cb --- /dev/null +++ b/packages/images/devimage-image.bb @@ -0,0 +1,15 @@ +# Image for kernel debugging and development testing +# Contains minimal userspace shim (no udev, etc.), but all useful +# "kernel userspace" utilities (feel free to add missing). +# Allows to login via serial and real console or SSH +LICENSE = "MIT" +PR = "r1" + +RDEPENDS = "devimage busybox dropbear module-init-tools wireless-tools wpa-supplicant irda-utils acx-firmware" + +export IMAGE_BASENAME = "devimage" +export IMAGE_LINGUAS = "" + +PACKAGE_INSTALL = "${RDEPENDS}" + +inherit image diff --git a/packages/initrdscripts/devimage/.mtn2git_empty b/packages/initrdscripts/devimage/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/initrdscripts/devimage/devimage.sh b/packages/initrdscripts/devimage/devimage.sh new file mode 100644 index 0000000000..e85debf245 --- /dev/null +++ b/packages/initrdscripts/devimage/devimage.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +mkdir /proc +mount -t proc proc /proc +mkdir /sys +mount -t sysfs sysfs /sys +mkdir -p /dev/pts +mount -t devpts devpts /dev/pts + +/usr/sbin/dropbear -E + +/bin/sh diff --git a/packages/initrdscripts/devimage/dropbear_rsa_host_key b/packages/initrdscripts/devimage/dropbear_rsa_host_key new file mode 100644 index 0000000000..18d832332e Binary files /dev/null and b/packages/initrdscripts/devimage/dropbear_rsa_host_key differ diff --git a/packages/initrdscripts/devimage/passwd b/packages/initrdscripts/devimage/passwd new file mode 100644 index 0000000000..233d68fae1 --- /dev/null +++ b/packages/initrdscripts/devimage/passwd @@ -0,0 +1 @@ +root::0:0:root:/:/bin/sh diff --git a/packages/initrdscripts/devimage_0.1.bb b/packages/initrdscripts/devimage_0.1.bb new file mode 100644 index 0000000000..e29e6a93ea --- /dev/null +++ b/packages/initrdscripts/devimage_0.1.bb @@ -0,0 +1,11 @@ +SRC_URI = "file://devimage.sh file://passwd file://dropbear_rsa_host_key" +PR = "r0.7" + +do_install() { + install -m 0755 ${WORKDIR}/devimage.sh ${D}/init + install -d ${D}/etc/dropbear + install -m 0600 ${WORKDIR}/dropbear_rsa_host_key ${D}/etc/dropbear/ + install -m 0644 ${WORKDIR}/passwd ${D}/etc/ +} + +FILES_${PN} += " /init /etc/*" -- cgit v1.2.3