OK, after adding the following two files:
target/arm/kernel/tinker-board
target/arm/systems/tinker-board
And setting the proper Git information for the kernel in:
target/linux/Config.in.kernelversion
The main information being where Rockchip keeps it's kernels on Github as
shown below:
ADK_TARGET_LINUX_KERNEL_VERSION_GIT=y
ADK_TARGET_LINUX_KERNEL_GIT_REPO="
https://github.com/rockchip-linux/kernel.git"
ADK_TARGET_LINUX_KERNEL_GIT_REPO_NAME="rockchip"
ADK_TARGET_LINUX_KERNEL_GIT="15dbb651be03ed7f9905f2e7c54b61d55011f54a"
ADK_TARGET_LINUX_KERNEL_GIT_VER="4.4.103"
ADK_TARGET_LINUX_KERNEL_GIT_TYPE="hash"
ADK_TARGET_LINUX_KERNEL_USE_MINICONFIG=y
I was able to get a build of the RootFS and kernel for the Tinker Board
without any errors. For getting the kernel built, I basically used the
defconfig file from a minimal Yocto build. A handful of kernel config
settings seemed to be modified by the OpenADK build, but I don't think any
of them are very significant other than perhaps the kernel command line.
I'll need to investigate that further.
I presume I can test the RootFS (minus the kernel) by simply overwriting a
Yocto rootfs on an SD card with the RootFS I built with OpenADK and see
what happens.
If that works OK, I'll then need to dissect how Yocto builds a minimal
Tinker Board SD card image and see how I can apply that to the OpenADK
build process to create a similar image, but with OpenADK built
components. I'm not positive, but I think Yocto justs uses provided
binaries from Rockchip to install the first and second stage bootloaders to
specific partitions on the SD card.
I'll do more testing tomorrow night and I'll keep you posted as I make
progress.
Mike
On Tue, May 29, 2018 at 5:49 PM, Waldemar Brodkorb <
mail(a)waldemar-brodkorb.de> wrote:
Hi Mike,
Mike Thompson wrote,
Martin,
Thank you for your advice. I'll take a look at the work you did on the
WEGA
board and see how I can adapt it to my needs for
a Rockchip board.
The Phytec Wega is an example for adding a device with non-upstream
Linux kernel support using a GIT Repo.
The sample is very basic, it was added to show that OpenADK could be
used for this device.
best regards
Waldemar