From 8d9ec86cbc7cfa006797f231ec85ca0e3114741d Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 2 Oct 2014 15:24:26 +0000 Subject: Upgrade drm enable jetson TK1 support --- strata/x-common.morph | 5 +++-- strata/x-common/drm.morph | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 strata/x-common/drm.morph diff --git a/strata/x-common.morph b/strata/x-common.morph index 987862a9..9acb4bf0 100644 --- a/strata/x-common.morph +++ b/strata/x-common.morph @@ -231,9 +231,10 @@ chunks: build-depends: - xorg-util-macros - name: drm + morph: strata/x-common/drm.morph repo: upstream:drm - ref: d6861609b2b887612d652bb2be7c39f199802937 - unpetrify-ref: libdrm-2.4.56 + ref: bcac0a17407dc78d0813b2eea7fae7c34de54c1b + unpetrify-ref: baserock/jetson/drm build-depends: - xcb-pthread-stubs - xorg-lib-libpciaccess diff --git a/strata/x-common/drm.morph b/strata/x-common/drm.morph new file mode 100644 index 00000000..8f5b88e2 --- /dev/null +++ b/strata/x-common/drm.morph @@ -0,0 +1,10 @@ +name: drm +kind: chunk +build-system: autotools +configure-commands: + - NOCONFIGURE=1 ./autogen.sh + - ./configure --prefix="$PREFIX" --enable-tegra-experimental-api +install-commands: + - make install DESTDIR="$DESTDIR" + - mkdir -p "$DESTDIR"/usr/lib/pkgconfig + - /usr/bin/install -c -m 644 tegra/libdrm_tegra.pc "$DESTDIR"/usr/lib/pkgconfig -- cgit v1.2.1 From bb6567abaf5c69138b7c3c4b53c0aafc15e95eb3 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 2 Oct 2014 15:28:59 +0000 Subject: Upgrade weston and wayland-ivi-extension --- strata/weston-genivi.morph | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/strata/weston-genivi.morph b/strata/weston-genivi.morph index e563ab31..a84c9aa9 100644 --- a/strata/weston-genivi.morph +++ b/strata/weston-genivi.morph @@ -15,13 +15,13 @@ chunks: - name: weston morph: strata/weston-genivi/weston.morph repo: upstream:weston - ref: 8658e06e69cc3944e89684a2de619e479751633f - unpetrify-ref: baserock/genivi/baseline-h-1.1 + ref: 5d9e9c1393c6b0ea6ce52912fc458c963e644547 + unpetrify-ref: baserock/genivi/1.2.0 build-depends: - linux-pam - name: wayland-ivi-extension repo: upstream:genivi/wayland-ivi-extension - ref: 8b59529cf3b279a948f253bc79263d00d3f051a5 - unpetrify-ref: baserock/genivi/baseline-h-1.1 + ref: 633ce4f89f695c575bdfc080551b0e59c8287427 + unpetrify-ref: baserock/genivi/1.2.0 build-depends: - weston -- cgit v1.2.1 From 559b9a5e50a1e030d9e892c03f4a434c06ce6fea Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 2 Oct 2014 17:44:21 +0100 Subject: Add bsp for jetson genivi-baseline --- strata/bsp-jetson-genivi.morph | 40 ++++++++++++ strata/bsp-jetson-genivi/bsp-support.morph | 6 ++ .../bsp-jetson-genivi/device-tree-compiler.morph | 6 ++ .../linux-jetson-tk1-genivi.morph | 71 ++++++++++++++++++++++ strata/bsp-jetson-genivi/nouveau-drm.morph | 10 +++ strata/bsp-jetson-genivi/u-boot.morph | 16 +++++ 6 files changed, 149 insertions(+) create mode 100644 strata/bsp-jetson-genivi.morph create mode 100644 strata/bsp-jetson-genivi/bsp-support.morph create mode 100644 strata/bsp-jetson-genivi/device-tree-compiler.morph create mode 100644 strata/bsp-jetson-genivi/linux-jetson-tk1-genivi.morph create mode 100644 strata/bsp-jetson-genivi/nouveau-drm.morph create mode 100644 strata/bsp-jetson-genivi/u-boot.morph diff --git a/strata/bsp-jetson-genivi.morph b/strata/bsp-jetson-genivi.morph new file mode 100644 index 00000000..03958c57 --- /dev/null +++ b/strata/bsp-jetson-genivi.morph @@ -0,0 +1,40 @@ +name: bsp-jetson-genivi +kind: stratum +description: The platform dependent components required to boot an NVIDIA Jetson TK1 + genivi image board. +build-depends: +- morph: strata/core.morph +chunks: +- name: device-tree-compiler + morph: strata/bsp-jetson-genivi/device-tree-compiler.morph + repo: upstream:device-tree-compiler + ref: c92f284c3cf76d471eb27a271de3a51cb45ed058 + unpetrify-ref: baserock/morph + build-depends: [] +- name: u-boot + morph: strata/bsp-jetson-genivi/u-boot.morph + repo: upstream:u-boot + ref: b15ae44ab9f085140039b09a00232d5aed6596a9 + unpetrify-ref: baserock/arm/tegra-uboot-btrfs + build-depends: + - device-tree-compiler +- name: linux-jetson-tk1-genivi + morph: strata/bsp-jetson-genivi/linux-jetson-tk1-genivi.morph + repo: upstream:linux + ref: 8da6ad2e1c6366ebb2d9a72aeaf4a42dc32c8623 + unpetrify-ref: baserock/jetson/3.17.0-rc5 + build-depends: + - u-boot +- name: bsp-support + morph: strata/bsp-jetson-genivi/bsp-support.morph + repo: baserock:baserock/bsp-support + ref: 19bc31ce3198a3c19cdd96d392bde34cb34ed525 + unpetrify-ref: baserock/arm/tegra-3.10 + build-depends: [] +- name: nouveau-drm + morph: strata/bsp-jetson-genivi/nouveau-drm.morph + repo: upstream:nouveau + ref: 62d1f5d2f5b3e5122eeac0f763dcdd1d04bf5c45 + unpetrify-ref: baserock/jetson/3.17-rc5 + build-depends: + - linux-jetson-tk1-genivi diff --git a/strata/bsp-jetson-genivi/bsp-support.morph b/strata/bsp-jetson-genivi/bsp-support.morph new file mode 100644 index 00000000..23524ac7 --- /dev/null +++ b/strata/bsp-jetson-genivi/bsp-support.morph @@ -0,0 +1,6 @@ +name: bsp-support +kind: chunk +install-commands: +- install -o 0 -g 0 -m 755 -D nv-ondemand-cpufreq-governor.service "$DESTDIR/usr/lib/systemd/system/nv-ondemand-cpufreq-governor.service" +- install -d "$DESTDIR/usr/lib/systemd/system/sysinit.target.wants" +- ln -s /usr/lib/systemd/system/nv-ondemand-cpufreq-governor.service "$DESTDIR/usr/lib/systemd/system/sysinit.target.wants/nv-ondemand-cpufreq-governor.service" diff --git a/strata/bsp-jetson-genivi/device-tree-compiler.morph b/strata/bsp-jetson-genivi/device-tree-compiler.morph new file mode 100644 index 00000000..8abfafc8 --- /dev/null +++ b/strata/bsp-jetson-genivi/device-tree-compiler.morph @@ -0,0 +1,6 @@ +name: device-tree-compiler +kind: chunk +build-commands: +- make all +install-commands: +- make install DESTDIR="$DESTDIR" PREFIX="$PREFIX" diff --git a/strata/bsp-jetson-genivi/linux-jetson-tk1-genivi.morph b/strata/bsp-jetson-genivi/linux-jetson-tk1-genivi.morph new file mode 100644 index 00000000..e1c99473 --- /dev/null +++ b/strata/bsp-jetson-genivi/linux-jetson-tk1-genivi.morph @@ -0,0 +1,71 @@ +name: linux-jetson-tk1-genivi +kind: chunk +configure-commands: +- make ARCH=arm tegra_defconfig +- scripts/config -d KERNEL_LZO +- scripts/config -e KERNEL_GZIP +- scripts/config -e NAMESPACES +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e DRM_TEGRA_STAGING +- scripts/config -m DRM_NOUVEAU +- yes '' | make ARCH=arm oldconfig +build-commands: +- make $MAKEFLAGS ARCH=arm LOADADDR=0x80200000 zImage dtbs +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/zImage "$DESTDIR"/boot/zImage +- cp arch/arm/boot/dts/tegra124-jetson-tk1.dtb "$DESTDIR"/boot/. +- make modules +- make INSTALL_MOD_PATH="$DESTDIR" modules_install +- install -d "$DESTDIR$PREFIX/src/linux" +- | + ( + printf 'Makefile\0' + printf 'Module.symvers\0' + find arch/arm -maxdepth 1 -name 'Makefile*' -print0 + find arch/arm \( -name 'module.lds' -o -name 'Kbuild.platforms' -o -name 'Platform' \) -print0 + find arch/arm \( -type d -a \( -name include -o -name scripts \) \) -o \ + \! -type d -a \( -path '*include/*' -o -path '*scripts/*' \) -print0 + find include -name 'asm*' -prune -o -print0 + find include/asm-generic -print0 + find include/uapi -print0 + find scripts -print0 + ) | cpio -0pumd "$DESTDIR$PREFIX/src/linux" diff --git a/strata/bsp-jetson-genivi/nouveau-drm.morph b/strata/bsp-jetson-genivi/nouveau-drm.morph new file mode 100644 index 00000000..e89df38b --- /dev/null +++ b/strata/bsp-jetson-genivi/nouveau-drm.morph @@ -0,0 +1,10 @@ +name: nouveau-drm +kind: chunk +build-commands: + - cd drm && make M=$(pwd) -C /usr/src/linux/ modules +install-commands: + - cd drm && make M="$(pwd)" -C /usr/src/linux/ INSTALL_MOD_PATH="$DESTDIR" modules_install +system-integration: + nouveau-drm-misc: + 00-earlyconf: + - (cd /lib/modules && for version in *; do depmod -a "$version"; done) diff --git a/strata/bsp-jetson-genivi/u-boot.morph b/strata/bsp-jetson-genivi/u-boot.morph new file mode 100644 index 00000000..705b3851 --- /dev/null +++ b/strata/bsp-jetson-genivi/u-boot.morph @@ -0,0 +1,16 @@ +name: u-boot +kind: chunk +configure-commands: +- make ARCH=arm jetson-tk1_config +build-commands: +- make ARCH=arm CROSS_COMPILE=/usr/bin/ +- make ARCH=arm CROSS_COMPILE=/usr/bin/ tools +install-commands: +- mkdir -p "$DESTDIR$PREFIX/bin" +- mkdir -p "$DESTDIR/boot" +- install -m 755 u-boot-dtb-tegra.bin "$DESTDIR/boot/u-boot.bin" +- install -m 755 tools/img2brec.sh "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/jtagconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/netconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkenvimage "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkimage "$DESTDIR$PREFIX/bin/." -- cgit v1.2.1 From acc083b31355a6aeb06a999e2d583c31f243a272 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 2 Oct 2014 17:53:52 +0100 Subject: Add a GENIVI baseline system for jetson TK1 --- .../genivi-baseline-system-armv7lhf-jetson.morph | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 systems/genivi-baseline-system-armv7lhf-jetson.morph diff --git a/systems/genivi-baseline-system-armv7lhf-jetson.morph b/systems/genivi-baseline-system-armv7lhf-jetson.morph new file mode 100644 index 00000000..b5a23618 --- /dev/null +++ b/systems/genivi-baseline-system-armv7lhf-jetson.morph @@ -0,0 +1,45 @@ +name: genivi-baseline-system-armv7lhf-jetson +kind: system +description: A GENIVI baseline system for a Jetson TK. +arch: armv7lhf +strata: +- name: build-essential + morph: strata/build-essential.morph +- name: core + morph: strata/core.morph +- name: foundation + morph: strata/foundation.morph +- name: genivi-foundation + morph: strata/genivi-foundation.morph +- name: bsp-jetson-genivi + morph: strata/bsp-jetson-genivi.morph +- name: connectivity + morph: strata/connectivity.morph +- name: connman-common + morph: strata/connman-common.morph +- name: audio-bluetooth + morph: strata/audio-bluetooth.morph +- name: x-common + morph: strata/x-common.morph +- name: multimedia + morph: strata/multimedia.morph +- name: genivi + morph: strata/genivi.morph +- name: wayland-generic + morph: strata/wayland-generic.morph +- name: graphics-common + morph: strata/graphics-common.morph +- name: input-common + morph: strata/input-common.morph +- name: mesa-common + morph: strata/mesa-common.morph +- name: weston-genivi + morph: strata/weston-genivi.morph +configuration-extensions: +- set-hostname +- add-config-files +- simple-network +- nfsboot +- install-files +- strip-gplv3 +- fstab -- cgit v1.2.1 From ced256bda95f184361815a6444d752ee10d86d02 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 3 Oct 2014 08:26:25 +0100 Subject: Add support for btrfs in jetson u-boot --- strata/bsp-jetson-devel.morph | 4 ++-- strata/bsp-jetson-genivi.morph | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/strata/bsp-jetson-devel.morph b/strata/bsp-jetson-devel.morph index bf110d1f..eafa029b 100644 --- a/strata/bsp-jetson-devel.morph +++ b/strata/bsp-jetson-devel.morph @@ -14,8 +14,8 @@ chunks: - name: u-boot morph: strata/bsp-jetson-devel/u-boot.morph repo: upstream:u-boot - ref: b15ae44ab9f085140039b09a00232d5aed6596a9 - unpetrify-ref: baserock/arm/tegra-uboot-btrfs + ref: c77921345b943cdf5f2f28bbe88c6d8970620d2e + unpetrify-ref: baserock/jetson/u-boot-tegra-next build-depends: - device-tree-compiler - name: linux-jetson-tk1 diff --git a/strata/bsp-jetson-genivi.morph b/strata/bsp-jetson-genivi.morph index 03958c57..fd0b765a 100644 --- a/strata/bsp-jetson-genivi.morph +++ b/strata/bsp-jetson-genivi.morph @@ -14,8 +14,8 @@ chunks: - name: u-boot morph: strata/bsp-jetson-genivi/u-boot.morph repo: upstream:u-boot - ref: b15ae44ab9f085140039b09a00232d5aed6596a9 - unpetrify-ref: baserock/arm/tegra-uboot-btrfs + ref: c77921345b943cdf5f2f28bbe88c6d8970620d2e + unpetrify-ref: baserock/jetson/u-boot-tegra-next build-depends: - device-tree-compiler - name: linux-jetson-tk1-genivi -- cgit v1.2.1 From 094ecc5f8a382109221f6e81ced42f26ad158249 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 3 Oct 2014 11:45:25 +0100 Subject: Update release.morph for the 14.40 release --- clusters/release.morph | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/clusters/release.morph b/clusters/release.morph index 37defb09..5beee3e2 100644 --- a/clusters/release.morph +++ b/clusters/release.morph @@ -29,11 +29,14 @@ systems: type: rawdisk location: devel-system-x86_64-generic.img DISK_SIZE: 4G -- morph: systems/devel-system-armv7lhf-wandboard.morph +- morph: systems/devel-system-armv7lhf-jetson.morph deploy: release: - type: tar - location: devel-system-armv7lhf-wandboard.tar + type: rawdisk + location: devel-system-armv7lhf-jetson.img + DISK_SIZE: 4G + ROOT_DEVICE: "/dev/mmcblk0p1" + KERNEL_ARGS: cma=256M console=ttyS0,115200n8 no_console_suspend=1 lp0_vec=2064@0xf46ff000 video=tegrafb mem=1862M@2048M memtype=255 ddr_die=2048M@2048M section=256M pmuboard=0x0177:0x0000:0x02:0x43:0x00 vpr=151M@3945M tsec=32M@3913M otf_key=c75e5bb91eb3bd94560357b64422f85 usbcore.old_scheme_first=1 core_edp_mv=1150 core_edp_ma=4000 tegraid=40.1.1.0.0 debug_uartport=lsport,3 power_supply=Adapter audio_codec=rt5640 modem_id=0 android.kerneltype=normal usb_port_owner_info=0 fbcon=map:1 commchip_id=0 usb_port_owner_info=0 lane_owner_info=6 emc_max_dvfs=0 touch_id=0@0 tegra_fbmem=32899072@0xad012000 board_info=0x0177:0x0000:0x02:0x43:0x00 tegraboot=sdmmc gpt - morph: systems/genivi-baseline-system-x86_64-generic.morph deploy: genivi-baseline-system-x86_64-generic: @@ -41,10 +44,14 @@ systems: location: genivi-baseline-system-x86_64-generic.img DISK_SIZE: 4G KERNEL_ARGS: vga=788 -- morph: systems/genivi-baseline-system-armv7lhf-versatile.morph +- morph: systems/genivi-baseline-system-armv7lhf-jetson.morph deploy: - genivi-baseline-system-armv7lhf-versatile: + genivi-baseline-system-armv7lhf-jetson: type: rawdisk - location: genivi-baseline-system-armv7lhf-versatile.img + location: genivi-baseline-system-armv7lhf-jetson.img DISK_SIZE: 4G - KERNEL_ARGS: vga=788 + ROOT_DEVICE: "/dev/mmcblk0p1" + DTB_PATH: "boot/tegra124-jetson-tk1.dtb" + BOOTLOADER_CONFIG_FORMAT: "extlinux" + BOOTLOADER_INSTALL: "none" + KERNEL_ARGS: cma=256M console=ttyS0,115200n8 no_console_suspend=1 lp0_vec=2064@0xf46ff000 video=tegrafb mem=1862M@2048M memtype=255 ddr_die=2048M@2048M section=256M pmuboard=0x0177:0x0000:0x02:0x43:0x00 vpr=151M@3945M tsec=32M@3913M otf_key=c75e5bb91eb3bd94560357b64422f85 usbcore.old_scheme_first=1 core_edp_mv=1150 core_edp_ma=4000 tegraid=40.1.1.0.0 debug_uartport=lsport,3 power_supply=Adapter audio_codec=rt5640 modem_id=0 android.kerneltype=normal usb_port_owner_info=0 fbcon=map:1 commchip_id=0 usb_port_owner_info=0 lane_owner_info=6 emc_max_dvfs=0 touch_id=0@0 tegra_fbmem=32899072@0xad012000 board_info=0x0177:0x0000:0x02:0x43:0x00 tegraboot=sdmmc gpt -- cgit v1.2.1 From 6192396b0515942344298b38d7bf906a6f60df77 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 3 Oct 2014 14:16:20 +0100 Subject: Enable nouveau drivers in mesa --- strata/mesa-common/mesa.morph | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/strata/mesa-common/mesa.morph b/strata/mesa-common/mesa.morph index 44a9af85..9a528cbe 100644 --- a/strata/mesa-common/mesa.morph +++ b/strata/mesa-common/mesa.morph @@ -4,19 +4,31 @@ build-system: autotools configure-commands: - | cpu=$(echo $TARGET | cut -d '-' -f 1) + EXTRAARGS=--disable-gallium-egl case "$cpu" in x86_32|x64_64) - DRIDRIVERS=i915,i965,swrast,nouveau + DRIDRIVERS=intel,i915,i965,swrast + GALLIUMDRIVERS=swrast + EGLPLATFORMS=x11,wayland,drm + ;; + armv7lhf) + DRIDRIVERS=nouveau,swrast + GALLIUMDRIVERS=nouveau,swrast + EXTRAARGS="--with-state-trackers=egl --enable-gallium-egl" + EGLPLATFORMS=wayland,drm ;; *) - DRIDRIVERS=swrast,nouveau + DRIDRIVERS=swrast + GALLIUMDRIVERS=swrast + EGLPLATFORMS=x11,wayland,drm ;; esac ./autogen.sh --prefix="$PREFIX" \ --enable-gles2 \ - --disable-gallium-egl \ - --with-egl-platforms=x11,drm,wayland \ + --with-egl-platforms="$EGLPLATFORMS" \ --enable-gbm \ --enable-shared-glapi \ - --with-gallium-drivers=swrast \ - --with-dri-drivers="$DRIDRIVERS" + --with-gallium-drivers="$GALLIUMDRIVERS" \ + --with-dri-drivers="$DRIDRIVERS" \ + --disable-dri3 $EXTRAARGS + -- cgit v1.2.1