mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-19 20:59:03 +02:00

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>
9 lines
358 B
Plaintext
9 lines
358 B
Plaintext
# Copyright (C) 2019 Garmin Ltd. or its subsidiaries
|
|
# Released under the MIT license (see COPYING.MIT for the terms)
|
|
|
|
include rk3288-boot.wks
|
|
|
|
part / --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root
|
|
|
|
bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
|