-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for TI AM62x Starter Kit EVM (SK-AM62B-P1) board on Common Torizon #215
base: scarthgap-7.x.y
Are you sure you want to change the base?
Changes from all commits
ebd8a8a
40952db
6b2ff1f
66540af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
WKS_FILE:sota:am62xx-evm = "torizon-am62xx-sota.wks" | ||
jsrc27 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
OSTREE_KERNEL_ARGS:sota:am62xx-evm:append = "console=ttyS2,115200 earlycon root=LABEL=otaroot rootfstype=ext4" | ||
|
||
UBOOT_BOOT_PARTITION_NUMBER:am62xx-evm = "2" | ||
OTAROOT_PARTITION_NUMBER:am62xx-evm = "2" | ||
EXTRA_BOARD_FIXUPS:am62xx-evm = "if test "${board_name}" = "am62b_p1_skevm"; then if test "${fdtfile}" = "ti/k3-am625-sk.dtb"; then env set fdtfile k3-am625-sk.dtb; fi; fi" | ||
|
||
KERNEL_DEVICETREE:am62xx-evm = " \ | ||
ti/k3-am625-sk.dtb \ | ||
ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
" | ||
# Overlays in KERNEL_DEVICETREE to be applied during boot time | ||
KERNEL_DEVICETREE_OVERLAY_BOOT:am62xx-evm = " \ | ||
k3-am62x-sk-csi2-imx219.dtbo \ | ||
k3-am62x-sk-csi2-ov5640.dtbo \ | ||
k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
k3-am62x-sk-hdmi-audio.dtbo \ | ||
" | ||
|
||
IMAGE_FSTYPES:append = " wic" | ||
IMAGE_BOOT_FILES:append:am62xx-evm = " tispl.bin u-boot.img tiboot3.bin tiboot3-am62x-hs-fs-evm.bin tiboot3-am62x-gp-evm.bin tiboot3-am62x-hs-evm.bin" | ||
|
||
PREFERRED_PROVIDER_virtual/dtb = "" | ||
hostname:pn-base-files = "am62xx-evm" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require recipes-bsp/u-boot/u-boot-rollback.inc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require recipes-kernel/linux/linux-torizon.inc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
kernel_image_type=@@KERNEL_IMAGETYPE@@ | ||
overlays_file="overlays.txt" | ||
otaroot=1 | ||
otaroot=@@OTAROOT_PARTITION_NUMBER@@ | ||
fitconf_fdt_overlays="@@FITCONF_FDT_OVERLAYS@@" | ||
|
||
set_bootargs=env set bootcmd_args env set bootargs ${defargs} root=LABEL=otaroot rootfstype=ext4 ${bootargs} ${tdxargs} | ||
|
@@ -85,6 +85,8 @@ set_bootargs_custom=if test -n "${fdt_overlays}"; then \ | |
done; \ | ||
fi || true | ||
|
||
extra_board_fixups=@@EXTRA_BOARD_FIXUPS@@ | ||
|
||
board_fixups=if test "${board}" = "verdin-imx8mm"; then \ | ||
if test "${fdtfile}" = "imx8mm-verdin-nonwifi-v1.1-dahlia.dtb"; then \ | ||
env set fdtfile imx8mm-verdin-nonwifi-dahlia.dtb; \ | ||
|
@@ -95,7 +97,7 @@ board_fixups=if test "${board}" = "verdin-imx8mm"; then \ | |
elif test "${fdtfile}" = "imx8mm-verdin-wifi-v1.1-dev.dtb"; then \ | ||
env set fdtfile imx8mm-verdin-wifi-dev.dtb; \ | ||
fi; \ | ||
fi || true | ||
fi || if test -n "${extra_board_fixups}"; then run extra_board_fixups; fi || true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this line ever running? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think U-Boot runs the If I change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant having it in uenv like
And in the recipe having a default like
This way this is a separate u-boot command that we're always calling. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, currently the only case where the command doesn't run is when the board is a Verdin iMX8M Mini, as it has its own DTB fixups hardcoded there. But I guess it makes sense to have a more general command that always gets executed. I'll change it then. |
||
|
||
bootcmd_boot=if test ${bootscript_debug} != 1; then \ | ||
if test ${kernel_image_type} = "fitImage"; then \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_LEGACY_IMAGE_FORMAT=y | ||
CONFIG_USE_BOOTCOMMAND=y | ||
CONFIG_BOOTCOMMAND="setenv devtype mmc; setenv devnum 1; ext4load ${devtype} ${devnum}:2 ${loadaddr} /boot.scr && source" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# short-description: Create OTA-enabled SD card image | ||
# long-description: Creates a partitioned SD card image with OSTree | ||
# physical sysroot as a payload. Boot files are located in the | ||
# first vfat partition. | ||
# Based on: | ||
# meta-ti/meta-ti-bsp/wic/sdimage-2part.wks | ||
# meta-updater/scripts/lib/wic/canned-wks/sdimage-sota.wks | ||
|
||
part --source bootimg-partition --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M | ||
part / --source otaimage --ondisk mmcblk --fstype=ext4 --align 1024 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, this is really minor, but could we order these? 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? You mean put the
meta-ti-bsp
lines in alphabetical order i.e. like below?