ramdisk_csum="crc32"
ramdisk_sign_algo="${FIT_SIGN_ALG}"
ramdisk_sign_keyname="${UBOOT_SIGN_IMG_KEYNAME}"
- ramdisk_loadline=""
- ramdisk_entryline=""
-
- if [ -n "${UBOOT_RD_LOADADDRESS}" ]; then
- ramdisk_loadline="load = <${UBOOT_RD_LOADADDRESS}>;"
- fi
- if [ -n "${UBOOT_RD_ENTRYPOINT}" ]; then
- ramdisk_entryline="entry = <${UBOOT_RD_ENTRYPOINT}>;"
- fi
cat << EOF >> $1
ramdisk-$2 {
arch = "${UBOOT_ARCH}";
os = "linux";
compression = "$4";
- $ramdisk_loadline
- $ramdisk_entryline
hash-1 {
algo = "$ramdisk_csum";
};
require recipes-kernel/linux/linux-fit.inc
-UBOOT_RD_LOADADDRESS ?= "0x80000000"
-UBOOT_RD_ENTRYPOINT ?= "0x80000000"
-
-UBOOT_RDI_LOADADDRESS ?= "0x86000000"
-UBOOT_RDI_ENTRYPOINT ?= "0x86000000"
-
BAIKAL_COMP_ALG ?= "lzma"
BAIKAL_COMP_ALG_EXTENSION ?= ".lzma"
baikal_do_uinitramfs () {
uboot-mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C ${BAIKAL_COMP_ALG} \
- -a ${UBOOT_RD_LOADADDRESS} -e ${UBOOT_RD_ENTRYPOINT} \
-d "${BAIKAL_IMAGES}/initramfs${BAIKAL_COMP_ALG_EXTENSION}" \
-n "uInitramfs Image for bfk3 board" \
${BAIKAL_IMAGES}/${MACHINE}.uInitramfs
baikal_do_uinitrd () {
uboot-mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C ${BAIKAL_COMP_ALG} \
- -a ${UBOOT_RDI_LOADADDRESS} -e ${UBOOT_RDI_ENTRYPOINT} \
-d "${BAIKAL_IMAGES}/initrd${BAIKAL_COMP_ALG_EXTENSION}" \
-n "uInitrd Image for bfk3 board" \
${BAIKAL_IMAGES}/${MACHINE}.uInitrd