* Adding new machine type with boot2qt
@ 2018-06-26 10:49 Damien LEFEVRE
0 siblings, 0 replies; only message in thread
From: Damien LEFEVRE @ 2018-06-26 10:49 UTC (permalink / raw)
To: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 7359 bytes --]
Hi,
I have been working with the jetson reference board with a NVidia TX2
module. I have completed my image and everything runs as expected on the
reference board.
The final product will run on a different carrier, made by ConnectTech.
http://connecttech.com/product/astro-carrier-for-nvidia-jetson-tx2-tx1/
I got the BSP kernel sources from ConnectTech, patched the linux-tegra
kernel repository and created a new machine: astro-tx2.conf
This new machine is identical to the jetson-tx2 one, but with a different
device tree. This is how it looks:
=======================================================================================================================================
#@TYPE: Machine
#@NAME: Nvidia Astro TX2
#@DESCRIPTION: Nvidia Jetson TX2 on ConnectTech Astro
# Comes from meta-tegra
require conf/machine/include/tegra186.inc
# Comes from boot2qt
DEPLOY_CONF_NAME = "NVIDIA Astro TX2"
include conf/distro/include/jetson.inc
KERNEL_DEVICETREE ?=
"_ddot_/_ddot_/_ddot_/_ddot_/nvidia/platform/t18x/quill/kernel-dts/tegra186-tx2-cti-ASG002-revF+.dtb"
# Original device tree
#KERNEL_DEVICETREE ?=
"_ddot_/_ddot_/_ddot_/_ddot_/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-c03-00-base.dtb"
MACHINE_FEATURES += "ext2 ext3 vfat"
UBOOT_MACHINE = "p2771-0000-500_defconfig"
EMMC_SIZE ?= "31276924928"
EMMC_DEVSECT_SIZE ?= "512"
BOOTPART_SIZE ?= "8388608"
BOOTPART_LIMIT ?= "10485760"
ROOTFSPART_SIZE ?= "12884901888"
ODMDATA ?= "0x1090000"
EMMC_BCT ?= "P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg"
NVIDIA_BOARD ?= "t186ref"
TEGRA186_REDUNDANT_BOOT ?= "0"
PARTITION_LAYOUT_TEMPLATE ?= "flash_l4t_t186.xml"
=======================================================================================================================================
I have setup the new machine, setup oe and baked the same image as with
jetson.
=======================================================================================================================================
export MACHINE=astro-tx2
. setup-environment.sh
bitbake stack-rnd
=======================================================================================================================================
Bitbake fails at the do_image_complete in the do_qbsp_image function:
=======================================================================================================================================
DEBUG: Executing shell function do_qbsp_image
| + do_qbsp_image
| + [ -z stack-rnd-astro-tx2.img stack-rnd-astro-tx2.conf
stack-rnd-astro-tx2.flasher.tar.gz ]
| + mkdir -p
/home/damien/stack-astro/build-astro-tx2/tmp/work/aarch64_tegra186-poky-linux/stack-rnd/1.0-r0/stack-rnd-1.0/qbsp
|
| + echo stack-rnd-astro-tx2.img
|
| + awk -F: { print $1 }
|
| + src=stack-rnd-astro-tx2.img
|
| + echo stack-rnd-astro-tx2.img
|
| + awk -F: { print $2 }
|
| + dst=
| + [ -e
/home/damien/stack-astro/build-astro-tx2/tmp/work/aarch64_tegra186-poky-linux/stack-rnd/1.0-r0/deploy-stack-rnd-image-complete/stack-rnd-astro-tx2.img
]
| + [ -e
/home/damien/stack-astro/build-astro-tx2/tmp/deploy/images/astro-tx2/stack-rnd-astro-tx2.img
]
|
| + do_qbsp_image
| + [ -z stack-rnd-astro-tx2.img stack-rnd-astro-tx2.conf
stack-rnd-astro-tx2.flasher.tar.gz ]
| + mkdir -p
/home/damien/stack-astro/build-astro-tx2/tmp/work/aarch64_tegra186-poky-linux/stack-rnd/1.0-r0/stack-rnd-1.0/qbsp
| + echo stack-rnd-astro-tx2.img
| + awk -F: { print $1 }
| + src=stack-rnd-astro-tx2.img
| + echo stack-rnd-astro-tx2.img
| + awk -F: { print $2 }
| + dst=
| + [ -e
/home/damien/stack-astro/build-astro-tx2/tmp/work/aarch64_tegra186-poky-linux/stack-rnd/1.0-r0/deploy-stack-rnd-image-complete/stack-rnd-astro-tx2.img
]
| + [ -e
/home/damien/stack-astro/build-astro-tx2/tmp/deploy/images/astro-tx2/stack-rnd-astro-tx2.img
]
=======================================================================================================================================
The function is not lying
/home/damien/stack-astro/build-astro-tx2/tmp/work/aarch64_tegra186-poky-linux/stack-rnd/1.0-r0/deploy-stack-rnd-image-complete/
only has these files:
=======================================================================================================================================
drwxr-xr-x 2 damien damien 4096 Jun 26 10:21 ./
drwxrwxr-x 12 damien damien 4096 Jun 26 10:20 ../
-rw-r--r-- 1 damien damien 59261 Jun 26 10:20
stack-rnd-astro-tx2-20180626071846.rootfs.manifest
-rw-r--r-- 1 damien damien 124 Jun 26 10:21
stack-rnd-astro-tx2-20180626072124.rootfs.conf
lrwxrwxrwx 1 damien damien 48 Jun 26 10:21 stack-rnd-astro-tx2.conf ->
stack-rnd-astro-tx2-20180626072124.rootfs.conf
lrwxrwxrwx 1 damien damien 52 Jun 26 10:20 stack-rnd-astro-tx2.manifest
-> stack-rnd-astro-tx2-20180626071846.rootfs.manifest
=======================================================================================================================================
As opposed to the jetson-tx2 machine folder
/home/damien/stack-astro/build-jetson-tx2/tmp/work/aarch64_tegra186-poky-linux/stack-rnd/1.0-r0/deploy-stack-rnd-image-complete/
having the .img and .flasher.tar.gz file defined in QBSP_IMAGE_CONTENT in
jetson-inc plus some others:
=======================================================================================================================================
-rw-r--r-- 2 damien damien 524232587 Jun 21 09:45
stack-rnd-jetson-tx2-20180621063532.7z
-rw-r--r-- 2 damien damien 6891758 Jun 21 09:41
stack-rnd-jetson-tx2-20180621063532.flasher.tar.gz
-rw-r--r-- 2 damien damien 3531603968 Jun 21 09:39
stack-rnd-jetson-tx2-20180621063532.img
-rw-r--r-- 2 damien damien 127 Jun 21 09:39
stack-rnd-jetson-tx2-20180621063532.rootfs.conf
-rw-r--r-- 2 damien damien 3529506816 Jun 21 09:39
stack-rnd-jetson-tx2-20180621063532.rootfs.ext4
-rw-r--r-- 2 damien damien 59559 Jun 21 09:39
stack-rnd-jetson-tx2-20180621063532.rootfs.manifest
-rw-r--r-- 2 damien damien 1013398322 Jun 21 09:41
stack-rnd-jetson-tx2-20180621063532.tegraflash.zip
lrwxrwxrwx 2 damien damien 40 Jun 21 09:45 stack-rnd-jetson-tx2.7z
-> stack-rnd-jetson-tx2-20180621063532.7z
lrwxrwxrwx 2 damien damien 49 Jun 21 09:39
stack-rnd-jetson-tx2.conf -> stack-rnd-jetson-tx2-20180621063532.rootfs.conf
lrwxrwxrwx 2 damien damien 49 Jun 21 09:39
stack-rnd-jetson-tx2.ext4 -> stack-rnd-jetson-tx2-20180621063532.rootfs.ext4
lrwxrwxrwx 2 damien damien 52 Jun 21 09:41
stack-rnd-jetson-tx2.flasher.tar.gz ->
stack-rnd-jetson-tx2-20180621063532.flasher.tar.gz
lrwxrwxrwx 2 damien damien 41 Jun 21 09:39
stack-rnd-jetson-tx2.img -> stack-rnd-jetson-tx2-20180621063532.img
lrwxrwxrwx 2 damien damien 53 Jun 21 09:39
stack-rnd-jetson-tx2.manifest ->
stack-rnd-jetson-tx2-20180621063532.rootfs.manifest
lrwxrwxrwx 2 damien damien 52 Jun 21 09:41
stack-rnd-jetson-tx2.tegraflash.zip ->
stack-rnd-jetson-tx2-20180621063532.tegraflash.zip
=======================================================================================================================================
Am I missing something with the new machine definition?
Thanks,
-Damien
[-- Attachment #2: Type: text/html, Size: 9198 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-26 10:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-26 10:49 Adding new machine type with boot2qt Damien LEFEVRE
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.