From 8d4bf9b524bb6fd00f7e6c3e10bc8f8866fabe09 Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Wed, 2 Nov 2016 12:04:38 +0100 Subject: uEnv.txt for booting into OSTree on Porter Bug-AGL: SPEC-307 Change-Id: I10030197b1cba8f1b0018b8454d6d61a088da706 Signed-off-by: Anton Gerasimov --- .../recipes-bsp/bootfiles/files/uEnv-ota.txt | 18 ++++++++++++++++ .../recipes-bsp/bootfiles/porter-bootfiles.bb | 25 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 meta-rcar-gen2/recipes-bsp/bootfiles/files/uEnv-ota.txt create mode 100644 meta-rcar-gen2/recipes-bsp/bootfiles/porter-bootfiles.bb (limited to 'meta-rcar-gen2/recipes-bsp') diff --git a/meta-rcar-gen2/recipes-bsp/bootfiles/files/uEnv-ota.txt b/meta-rcar-gen2/recipes-bsp/bootfiles/files/uEnv-ota.txt new file mode 100644 index 0000000..9def764 --- /dev/null +++ b/meta-rcar-gen2/recipes-bsp/bootfiles/files/uEnv-ota.txt @@ -0,0 +1,18 @@ +bootkaddr=0x40007fc0 +bootiaddr=0x50000000 + +bootargs_console=console=ttySC6,38400 ignore_loglevel +bootargs_video=vmalloc=384M video=HDMI-A-1:1024x768-32@60 +bootargs_extra=rw rootfstype=ext4 rootwait rootdelay=2 + +bootargs_root=ostree_root=/dev/mmcblk0p2 root=/dev/ram0 ramdisk_size=16384 + +bootmmc=1:2 + +booteload_sd=ext4load mmc ${bootmmc} ${bootkaddr} boot/loader/uEnv.txt; env import -t ${bootkaddr} ${filesize} + +bootkload_sd=ext4load mmc ${bootmmc} ${bootkaddr} boot/${kernel_image} +bootiload_sd=ext4load mmc ${bootmmc} ${bootiaddr} boot/${ramdisk_image} + +bootcmd=run booteload_sd; setenv bootargs ${bootargs} ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra}; run bootkload_sd; run bootiload_sd; bootm ${bootkaddr} ${bootiaddr} + diff --git a/meta-rcar-gen2/recipes-bsp/bootfiles/porter-bootfiles.bb b/meta-rcar-gen2/recipes-bsp/bootfiles/porter-bootfiles.bb new file mode 100644 index 0000000..2c14a88 --- /dev/null +++ b/meta-rcar-gen2/recipes-bsp/bootfiles/porter-bootfiles.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Boot files (bootscripts etc.) for Renesas Porter board" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +inherit deploy + +COMPATIBLE_MACHINE = "porter" + +S = "${WORKDIR}" + +SRC_URI_append_sota = "file://uEnv-ota.txt" + +do_deploy() { + install -d ${DEPLOYDIR}/${PN} +} + +do_deploy_append_sota() { + install -m 0755 ${WORKDIR}/uEnv-ota.txt ${DEPLOYDIR}/${PN}/uEnv.txt +} + +addtask deploy before do_package after do_install +do_deploy[dirs] += "${DEPLOYDIR}/${PN}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + -- cgit 1.2.3-korg