aboutsummaryrefslogtreecommitdiffstats
path: root/wic/rk3399-boot.wks
AgeCommit message (Collapse)Author
2021-06-30wic/wks cleanupTrevor Woerner
By exporting a couple more variables the wks file for every rockchip device can be built from one template instead of having separate wks files for each board and platform. The following BSP variables were checked before and after this change to make sure they remained valid/sensible: - WKS_FILE - UBOOT_SUFFIX - SPL_BINARY - IMAGE_FSTYPES Built-tested for every MACHINE in this BSP. Run-tested on the following devices to ensure they continue to boot correctly to a cmdline (core-image-base): - tinker-board - rock-pi-e - rock-pi-4b - rock64 - nanopi-m4-2gb Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-06-25wic: Use --offset and --fixed-size instead of --align and --sizeJoshua Watt
The --align argument isn't intended to make a partition exist at a fixed location like the Rockchip boot ROM requires. Use the recently added --offset argument which will fail to build the image if the partition can't be placed at the correct location. Also used --fixed-size to make sure that Wic isn't inserting hidden padding that changes things around. Finally, the location of the rootfs isn't required to be at sector 262144 since u-boot and the kernel reads the partition table to find it and actually hasn't been at this location anyway since Wic has been padding the /boot partition, so remove it's alignment requirements. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-02-11Add configuration parameter to set boot device for the imageSergey 'Jin' Bostandzhyan
wic modifies /etc/fstab on the root file system during image generation, without the --ondisk parameter it assumes some default device name which leads to an /etc/fstab file populated with /dev/sda entries. This is not correct for the machines in the rockchip layer which use mmcblkX. This patch introduces an RK_BOOT_DEVICE option which is being set in the machine configuratoin and which is being used in the wks files. The variable expansion in the wks is handled by propagating the variable to the wic environment. This results in correct /etc/fstab entries and in a correct kernel bootargs root= parameter. Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
2020-01-27rk3399: Add generic rk3399 supportJoshua Watt
Adds support for the rk3399 SoC. Notably: *) Split out the default kernel config and image type from rockchip-defaults.inc now that not all support chips are ARMv7 *) Apply a patch to Arm Trusted Firmware to fix a compile issue *) Arm Trusted Firmware requires the arm-none-eabi-native compiler to compile the M0 firmware. *) Modify u-boot to pull in the ATF files when compiling *) The rk3399 is support by the panfrost driver in mesa, so enable it Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>