[yocto] [meta-rockchip][PATCH v4] classes: rockchip-gpt-img: add

Eddie Cai eddie.cai.linux at gmail.com
Mon Feb 27 20:42:00 PST 2017


Hi Trevor

2017-02-28 11:08 GMT+08:00 Trevor Woerner <twoerner at gmail.com>:

> Hi Eddie,
>
> On Tue 2017-02-28 @ 08:48:16 AM, Eddie Cai wrote:
> > Could you also copy ${BOOT_IMG} to ${DEPLOY_DIR_IMAGE} . That is much
> > earier for people find boot image. In case they want to flash boot
> > partition alone.
>
> All of this work is always done in DEPLOY_DIR_IMAGE.
>
>         $ bitbake core-image-minimal -e | grep "^DEPLOY_DIR_IMAGE="
>         DEPLOY_DIR_IMAGE="/z/rockchip/master/build/tmp-glibc/deploy/
> images/firefly-rk3288"
>
>         $ bitbake core-image-minimal -e | grep "^BOOT_IMG="
>         BOOT_IMG="boot.img"
>
> With this class file as submitted in v4, if I build my first image I get:
>         $ ls -lh tmp-glibc/deploy/images/firefly-rk3288/
>         -rw-r--r-- 1 trevor users 137M Feb 27 14:05
> core-image-minimal-firefly-rk3288-20170227190504.gpt-img
>         lrwxrwxrwx 1 trevor users   56 Feb 27 14:06
> core-image-minimal-firefly-rk3288.gpt-img -> core-image-minimal-firefly-
> rk3288-20170227190504.gpt-img
>
> If I adjust the image then build it again I get:
>         $ ls -lh tmp-glibc/deploy/images/firefly-rk3288/
>         -rw-r--r-- 1 trevor users 137M Feb 27 14:05
> core-image-minimal-firefly-rk3288-20170227190504.gpt-img
>         -rw-r--r-- 1 trevor users 137M Feb 27 14:06
> core-image-minimal-firefly-rk3288-20170227190628.gpt-img
>         lrwxrwxrwx 1 trevor users   56 Feb 27 14:06
> core-image-minimal-firefly-rk3288.gpt-img -> core-image-minimal-firefly-
> rk3288-20170227190628.gpt-img
>
> As you can see:
> - the images appear in DEPLOY_DIR_IMAGE
> - the first gpt-img is still there
> - after each build the "core-image-minimal-firefly-rk3288.gpt-img" symlink
>   always points to the latest gpt-img file
>
> Is this what you were hoping for?
>
I am not saying gpt image. What i mean is the single boot.img which contain
kernel zimage, device tree and extlinux file. with this file, i can use
below command update kernel and device tree. There are many people prefer
this way.
upgrade_tool db RK3288UbootLoader_V2.30.06.bin
upgrade_tool wl 32768 deploy/images/firefly-rk3288/boot.img
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170228/2811c7b3/attachment.html>


More information about the yocto mailing list