Commit Graph

13 Commits

Author SHA1 Message Date
Joshua Watt
295b58facf Fix rk3288 bootloader
Recent versions of u-boot use a combined SPL/TPL (called idbloader.img)
in the loader1 partition, which then loads the full u-boot from the
loader2 partition. Update the GPT partition class to reflect this
change. Additionally, remove the u-boot bbappend since it is no longer
needed.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2019-12-09 21:32:23 -05:00
Trevor Woerner
bc09904bc2 classes/rockchip-gpt-img.bbclass: cleanup GPTIMG_APPEND
Put MACHINE-specific tweaks into MACHINE configuration.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-05-08 10:04:22 -04:00
Trevor Woerner
a8ce2c0b9b rockchip-gpt-img.bbclass: fix dts filename
Remove the "${KERNEL_IMAGETYPE}" (i.e. zImage) that preceeded the dts file
since that file no longer has the image-type prepended to it in the deploy
dir.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-07-13 18:28:07 -04:00
Trevor Woerner
1ffcfc9ff2 tinker-rk3288: add
Add support for the ASUS Tinker Board.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-04-25 09:34:53 -04:00
Trevor Woerner
1fa1fba729 rockchip-gpt-img: fix intermittent build failure
If a new build is kicked off, and no changes are required to the image
contents themselves, but a new rockchip gpt image needs to be generated, the
build will fail because this build (run now) will look for an ext4 rootfs that
should also exist from this build. However, since no changes were made to the
rootfs, a rootfs with this build's timestamp will not exist. I.e. when
generating the rockchip gpt image, the script currently looks for the rootfs
in:

	<image name>-<machine name>-<timestamp>.rootfs.<rootfs type>

In other words, if the last build to be done had a timestamp of <yesterday>
and the build the is currently running has a timestamp of <now>, when the
build tries to generate the rockchip gpt image, it will look for:

	<image name>-<machine name>-<now>.rootfs.ext4

but that file will not exist. The file that will exist is:

	<image name>-<machine name>-<yesterday>.rootfs.ext4

Therefore, don't look for the absolute file, but use the symlink instead which
does not include the timestamp, but will point to the latest rootfs:

	<image name>-<machine name>.ext4

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-04-25 09:34:42 -04:00
Trevor Woerner
eeda53d872 rockchip-gpt-img: fix deprecated notation
The older "IMAGE_DEPENDS..." notation has been deprecated in favour of the
newer "do_image_...[depends]" notation.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-06-30 20:37:25 -04:00
Trevor Woerner
4d0f7dab58 classes: rockchip-gpt-img: add
This bbclass was taken from the Rockchip team's work at
53d2e2e474
It was mostly written by Jacob Chen <jacob-chen@iotwrt.com>. I've made some
small modifications and added it.

Older images used (what Rockchip calls) the "legacy parameter" format. Newer
images use u-boot and a GPT partitioning scheme. This class allows the build
to generate a gpt-img file that can either be flashed to eMMC or written to an
SDcard (the same image is used for both).

This is the new image format used for rk3288 SoCs (e.g. the Firefly board).

Reviewed-by: Eddie Cai <eddie.cai.linux@gmail.com>
Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-05 10:43:02 -05:00
Julien CHAUVEAU
8dc393689a rockchip-update-img: add 'rootdelay=1' parameter in CMDLINE
Reduce boot delay from 30 seconds to 1 second, caused by rk30xxnand-3.0.36+.ko
which is not responding to wait-for-root in pre_mountroot() function of initrd
https://github.com/radxa/initrd/blob/master/scripts/local#L16
2014-05-05 14:38:08 +02:00
Julien CHAUVEAU
63f845bac9 rockchip-update-img: fix creation of 'update' image 2014-05-02 16:24:32 +02:00
Julien CHAUVEAU
8bb75db93d rockchip-update-img: add dependency to rockchip-bootloader 2014-05-02 09:57:51 +02:00
Julien CHAUVEAU
203fd151a9 rockchip-update-img: set image dependency to ext4 2014-05-02 09:57:44 +02:00
Julien CHAUVEAU
06a8752c6d rockchip-update-img: add dependency to mkbootimg-native 2014-04-28 10:27:55 +02:00
Julien CHAUVEAU
cbaa25c44a Initial commit 2014-04-04 16:25:45 +02:00