summaryrefslogtreecommitdiff
path: root/packages/kexecboot/initramfs-kexecboot_1.0.bb
blob: 62865a5b588d6c19e2c74869bc6470c3167a5c40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESCRIPTON = "A init script that mounts a device and kexecs a new kernel from it."
FILE_PR = "r8"
RDEPENDS = "kexecboot klibc-utils-static-mount klibc-utils-static-sh klibc-utils-static-sleep"

FBANGLE = "270"
FBANGLE_c7x0 = "0"
INPUTDEV = "/dev/event0"


do_compile() {
        cat > init.sh << EOF
#!/bin/sh
/bin/sleep 3
/bin/mount -t proc proc /proc
echo "0 4 1 7" > /proc/sys/kernel/printk
/usr/bin/kexecboot -a ${FBANGLE} -i ${INPUTDEV}
EOF
}

do_install() {
        install -m 0755 ${S}/init.sh ${D}/init
        install -d ${D}/proc
        install -d ${D}/mnt
}

PACKAGE_ARCH = "all"

FILES_${PN} = "/init /proc /mnt"