meta-digi-dey: Add a dey-image-tiny initramfs image.
To boot from TFTP/NFS you need something like:
setenv uimage uImage-ccimx6sbc
setenv initrdimg dey-image-tiny-initramfs-ccimx6sbc.rootfs.initramfs
setenv fdt_file uImage-imx6q-ccimx6sbc.dtb
setenv initrdaddr 0x22000000
setenv bootargs console=ttymxc3,115200 rdinit=/sbin/init
saveenv
tftp $loadaddr $uimage
tftp $initrdaddr $initrdimg
tftp $fdt_addr $fdt_file
bootm $loadaddr $initrdaddr $fdt_addr
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
parent
aef38bc285
commit
0514d03e0e
|
|
@ -0,0 +1,12 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2014 Digi International.
|
||||||
|
#
|
||||||
|
DESCRIPTION = "DEY busybox only based initramfs image."
|
||||||
|
|
||||||
|
include dey-image-tiny.bb
|
||||||
|
|
||||||
|
export IMAGE_BASENAME = "dey-image-tiny-initramfs"
|
||||||
|
|
||||||
|
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
|
||||||
|
IMAGE_FSTYPES_append = " rootfs.initramfs"
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if grep -q devtmpfs /proc/filesystems; then
|
||||||
|
# mount the devtmpfs on /dev, if not already done
|
||||||
|
LANG=C awk '$2 == "/dev" && ($3 == "devtmpfs") { exit 1 }' /proc/mounts && {
|
||||||
|
mount -n -o mode=0755 -t devtmpfs none "/dev"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
@ -2,8 +2,11 @@
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
||||||
|
|
||||||
SRC_URI += "file://device_table.txt"
|
SRC_URI += "file://device_table.txt \
|
||||||
|
file://devtmpfs.sh"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
|
install -m 755 ${WORKDIR}/devtmpfs.sh ${D}${sysconfdir}/init.d/devtmpfs.sh
|
||||||
|
update-rc.d -r ${D} devtmpfs.sh start 03 S .
|
||||||
install -m 0755 ${WORKDIR}/device_table.txt ${D}${sysconfdir}/device_table
|
install -m 0755 ${WORKDIR}/device_table.txt ${D}${sysconfdir}/device_table
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue