Skip to content
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

native cuda support #75

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layers/meta-balena
Submodule meta-balena updated 44 files
+102 −0 .versionbot/CHANGELOG.yml
+22 −0 CHANGELOG.md
+6 −0 meta-balena-common/classes/kernel-resin.bbclass
+2 −2 meta-balena-common/conf/distro/include/balena-os.inc
+60 −0 meta-balena-common/recipes-containers/balena/balena/0001-imporve-hardcoded-CC-on-cross-compile-docker-ce.patch
+11 −6 meta-balena-common/recipes-containers/balena/balena_git.bb
+0 −33 meta-balena-common/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch
+0 −64 meta-balena-common/recipes-devtools/go/go-1.10/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch
+0 −47 meta-balena-common/recipes-devtools/go/go-1.10/0004-ld-add-soname-to-shareable-objects.patch
+0 −108 meta-balena-common/recipes-devtools/go/go-1.10/0007-cmd-go-make-GOROOT-precious-by-default.patch
+5 −5 meta-balena-common/recipes-devtools/go/go-1.12.inc
+31 −0 meta-balena-common/recipes-devtools/go/go-1.12/0001-allow-CC-and-CXX-to-have-multiple-words.patch
+75 −77 meta-balena-common/recipes-devtools/go/go-1.12/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch
+47 −0 meta-balena-common/recipes-devtools/go/go-1.12/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch
+44 −0 meta-balena-common/recipes-devtools/go/go-1.12/0004-ld-add-soname-to-shareable-objects.patch
+9 −12 meta-balena-common/recipes-devtools/go/go-1.12/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch
+104 −99 meta-balena-common/recipes-devtools/go/go-1.12/0006-cmd-dist-separate-host-and-target-builds.patch
+106 −0 meta-balena-common/recipes-devtools/go/go-1.12/0007-cmd-go-make-GOROOT-precious-by-default.patch
+37 −0 meta-balena-common/recipes-devtools/go/go-1.12/0008-use-GOBUILDMODE-to-set-buildmode.patch
+52 −70 meta-balena-common/recipes-devtools/go/go-1.12/0009-ld-replace-glibc-dynamic-linker-with-musl.patch
+0 −1 meta-balena-common/recipes-devtools/go/go-common.inc
+9 −1 meta-balena-common/recipes-devtools/go/go-cross-canadian.inc
+0 −0 meta-balena-common/recipes-devtools/go/go-cross-canadian_1.12.bb
+3 −3 meta-balena-common/recipes-devtools/go/go-cross.inc
+0 −0 meta-balena-common/recipes-devtools/go/go-cross_1.12.bb
+1 −1 meta-balena-common/recipes-devtools/go/go-crosssdk.inc
+0 −0 meta-balena-common/recipes-devtools/go/go-crosssdk_1.12.bb
+1 −5 meta-balena-common/recipes-devtools/go/go-native.inc
+0 −0 meta-balena-common/recipes-devtools/go/go-native_1.12.bb
+5 −1 meta-balena-common/recipes-devtools/go/go-runtime.inc
+0 −0 meta-balena-common/recipes-devtools/go/go-runtime_1.12.bb
+3 −2 meta-balena-common/recipes-devtools/go/go-target.inc
+0 −2 meta-balena-common/recipes-devtools/go/go_%.bbappend
+0 −2 meta-balena-common/recipes-devtools/go/go_1.10.bb
+14 −0 meta-balena-common/recipes-devtools/go/go_1.12.bb
+1 −1 meta-balena-common/recipes-support/bindmount/bindmount_0.0.1.bb
+32 −18 meta-balena-common/recipes-support/os-helpers/os-helpers/os-helpers-fs
+0 −4 meta-balena-thud/recipes-devtools/go/go-cross_%.bbappend
+0 −3 meta-balena-thud/recipes-devtools/go/go-runtime_%.bbappend
+0 −4 meta-balena-warrior/recipes-devtools/go/go-cross_%.bbappend
+0 −3 meta-balena-warrior/recipes-devtools/go/go-runtime_%.bbappend
+2 −0 meta-resin-rocko/recipes-devtools/go/go-cross_%.bbappend
+4 −2 meta-resin-sumo/conf/layer.conf
+1 −0 meta-resin-sumo/recipes-devtools/go/go-cross_%.bbappend
15 changes: 13 additions & 2 deletions layers/meta-balena-jetson/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "tegra-nvpmodel tegra-configs-nvstartup t

BBMASK += "/meta-tegra/recipes-core/ "
BBMASK += "/meta-tegra/external/ "
BBMASK += "/meta-tegra/recipes-graphics/ "

BBMASK += "/meta-tegra/recipes-graphics/cairo "
BBMASK += "/meta-tegra/recipes-graphics/clutter "
BBMASK += "/meta-tegra/recipes-graphics/cogl "
BBMASK += "/meta-tegra/recipes-graphics/drm "
BBMASK += "/meta-tegra/recipes-graphics/mesa "
BBMASK += "/meta-tegra/recipes-graphics/vulkan "
BBMASK += "/meta-tegra/recipes-graphics/wayland "
BBMASK += "/meta-tegra/recipes-graphics/xorg-xserver "

BBMASK += "/meta-tegra/external/openembedded-layer/recipes-support/opencv/ "
BBMASK += "/meta-tegra/recipes-multimedia/gstreamer/"
BBMASK += "/meta-tegra/recipes-multimedia/gstreamer/ "

LAYERSERIES_COMPAT_balena-jetson = "warrior"
LAYERSERIES_COMPAT_tegra = "warrior"
SERIAL_CONSOLES_jetson-xavier = "115200;ttyTHS0"
SERIAL_CONSOLES_jetson-tx2 = "115200;ttyS0"
SERIAL_CONSOLES_jetson-tx1 = "115200;ttyS0"

NVIDIA_DEVNET_MIRROR = "file://home/acostach/work/tx2alteplaci/balena-jetson/sdkm_downloads"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# We don't need to build or install docker-ce and cuda-toolkit
RDEPENDS_${PN} = ""
12 changes: 10 additions & 2 deletions layers/meta-balena-jetson/recipes-core/images/resin-image.inc
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ RESIN_BOOT_PARTITION_FILES_jetson-tx1 = " \

do_rootfs_resinos-img_jetson-xavier-nx-devkit-emmc[depends] += " tegra194-nxde-flash-dry:do_deploy "

# The space resinOS takes will amount to 1GiB
IMAGE_ROOTFS_SIZE = "487424"
# Although current space seems enough just for libcuda, it's still not enough for
# testing first with all the files in tegra-libraries, to ensure the docker patches work fine.
# So let's double the size just for now, while testing.
IMAGE_ROOTFS_SIZE = "974848"

# Need space for all the above signed update binaries
RESIN_BOOT_SIZE_jetson-nano = "80960"
Expand Down Expand Up @@ -111,6 +113,7 @@ IMAGE_INSTALL_append_jetson-xavier-nx-devkit-emmc = " \
tegra-configs-udev \
"

# Added cuda-driver, tegra-libraries with libcuda.so and container tools
IMAGE_INSTALL_append_jetson-tx2 = " \
tegra186-flash-dry \
parted \
Expand All @@ -124,6 +127,11 @@ IMAGE_INSTALL_append_jetson-tx2 = " \
linux-firmware-bcm4354 \
tegra-firmware-xusb \
bt-scripts \
cuda-driver \
tegra-libraries \
libnvidia-container-tools \
go-runtime \
nvidia-container-toolkit \
"

IMAGE_INSTALL_append_srd3-tx2 = " \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FILESEXTRAPATHS_append := ":${THISDIR}/files"

# This recipe doesn't find the repo in our DEVNET mirror
# for some reason, just copy the file here in "files" directory
SRC_URI = "file://cuda-repo-l4t-10-0-local-10.0.326_1.0-1_arm64.deb "
2 changes: 2 additions & 0 deletions layers/meta-balena-jetson/recipes-devtools/cuda/files/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copy cuda-repo-l4t-10-0-local-10.0.326_1.0-1_arm64.deb from the DEVNET mirror
specified in meta-balena-jetson/layer.conf in this directory
2 changes: 1 addition & 1 deletion layers/meta-tegra