Commit Graph

18 Commits

Author SHA1 Message Date
Trevor Woerner
13316b7968 KERNEL_DEVICETREE: 32-bit re-org
The upstream kernel reorganized the 32-bit arch/arm device-tree directory
structure to separate out the device-trees by manufacturer (similar to the
organization of the arch/arm64 device-trees). Update the references to
32-bit arm device-trees to match.

This patch can now be applied since all pre-6.5-rc1 kernels have been
removed from oe-core.

NOTE: trying to build a post-6.5-rc1 32-bit kernel with this patch applied
      will fail

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Stephen Chen <stephen@radxa.com>
2024-01-24 20:57:59 -05:00
Trevor Woerner
0ac8152377 rockchip-gpt-img: fix for new override syntax
It looks like I missed a case for the new bitbake override syntax. My tests
weren't done from a fresh build so either a preexisting image was still
available, or the unfixed syntax caused a race.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2021-08-10 15:31:42 -04:00
Trevor Woerner
335bfcbf8d switch to the new bitbake OVERRIDE syntax
With bitbake commit 7dcf317cc141dc980634f8c18bfa84f83e57206a
("bitbake: Switch to using new override syntax"), applied on
Aug 2, 2021, the OVERRIDE separator is now a colon instead of
an underscore. Therefore all builds performed with a bitbake
before this change must use a meta-rockchip commit before this
one, and any builds performed with a bitbake after this change
must use a meta-rockchip starting from this commit onwards.

Build-tested for all meta-rockchip MACHINEs.

Run tested on:
- tinker-board
- nanopi-m4-2gb
- rock64
- rock-pi-4b
- rock-pi-e

The tinker-board and rock-pi-e work fine. The rest of the boards
seem to have a, hopefully unrelated, issue running a
5.13-yocto-standard kernel. However, all boards work with the
5.10-yocto-standard kernel.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-04 21:59:14 -04:00
Trevor Woerner
d926dcdd54 veyron-speedy: remove machine
This MACHINE hasn't built successfully in a long time. Remove it, and
everything associated with it that isn't used anywhere else.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-14 00:25:26 -05:00
Trevor Woerner
6732e8b981 rock2-square: reinstate non-idbloader u-boot
Unfortunately, although the rock2-square is an rk3288-based device, its U-Boot
has not been updated to use the TPL+SPL/idbloader mechanism. This commit adds
back the previous U-Boot packaging but only for the rock2-square.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-12-10 12:52:18 -05:00
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