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

Rc8 09.01 #29

Merged
merged 2 commits into from
Dec 12, 2023
Merged
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
16 changes: 13 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,33 @@ fi

mkdir -p ${topdir}/build

setup_build_tools

for build in ${builds}
do

echo "${build}"
setup_log_file "${build}"

validate_section "Build" ${build} "${topdir}/builds.toml"

machine=($(read_build_config ${build} machine))
bsp_version=($(read_build_config ${build} bsp_version))
distro_variant=($(read_build_config ${build} distro_variant))

export host_arch=`uname -m`
export native_build=false
export cross_compile=aarch64-none-linux-gnu-
if [ "$host_arch" == "aarch64" ]; then
native_build=true
cross_compile=
fi

echo "machine: ${machine}"
echo "bsp_version: ${bsp_version}"
echo "distro_variant: ${distro_variant}"
echo "host_arch: ${host_arch}"

setup_build_tools

setup_log_file "${build}"

validate_build ${machine} ${bsp_version} ${distro_variant}

Expand Down
45 changes: 24 additions & 21 deletions builds.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,36 @@

# Builds for GitHub Actions
builds = [
"am62x_bookworm-no-km_09.00.00.006",
"am62x-lp_bookworm-no-km_09.00.00.006",
"am64x_bookworm_09.00.00.006",
"am62p-bookworm-09.01.00.008",
"am62-bookworm-09.01.00.008",
"am62lp-bookworm-09.01.00.008",
"am62sip-bookworm-09.01.00.008",
"am64-bookworm-09.01.00.008",
]

# List of all valid builds
[am62x_bookworm-no-km_09.00.00.006]
machine = "am62xx-evm"
bsp_version = "09.00.00.006"
distro_variant = "bookworm-default-no-km"

[am62x-lp_bookworm-no-km_09.00.00.006]
machine = "am62xx-lp-evm"
bsp_version = "09.00.00.006"
distro_variant = "bookworm-default-no-km"
[am62p-bookworm-09.01.00.008]
machine = "am62pxx-evm"
bsp_version = "09.01.00.008"
distro_variant = "am62p-bookworm"

[am62x_bookworm_09.00.00.006]
[am62-bookworm-09.01.00.008]
machine = "am62xx-evm"
bsp_version = "09.00.00.006"
distro_variant = "bookworm-default"
bsp_version = "09.01.00.008"
distro_variant = "am62-bookworm"

[am62x-lp_bookworm_09.00.00.006]
[am62lp-bookworm-09.01.00.008]
machine = "am62xx-lp-evm"
bsp_version = "09.00.00.006"
distro_variant = "bookworm-default"
bsp_version = "09.01.00.008"
distro_variant = "am62-bookworm"

[am64x_bookworm_09.00.00.006]
[am62sip-bookworm-09.01.00.008]
machine = "am62xxsip-evm"
bsp_version = "09.01.00.008"
distro_variant = "am62sip-bookworm"

[am64-bookworm-09.01.00.008]
machine = "am64xx-evm"
bsp_version = "09.00.00.006"
distro_variant = "bookworm-am64x"
bsp_version = "09.01.00.008"
distro_variant = "am64-bookworm"

98 changes: 98 additions & 0 deletions configs/bdebstrap_configs/am62-bookworm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
mmdebstrap:
architectures:
- arm64
mode: auto
keyrings:
- /usr/share/keyrings/debian-archive-keyring.gpg
suite: bookworm
variant: standard
components:
- main
- contrib
- non-free-firmware
packages:
- build-essential
- gpg
- curl
- firmware-ti-connectivity
- init
- iproute2
- less
- libdrm-dev
- libpam-systemd
- locales
- neofetch
- network-manager
- net-tools
- openssh-server
- sudo
- vim
- k3conf
- weston
- linux-image-6.1.46-k3
- linux-headers-6.1.46-k3
- linux-libc-dev
- cryptodev-linux-dkms
- ti-img-rogue-driver-am62-dkms
- ti-img-rogue-firmware-am62
- ti-img-rogue-tools-am62
- ti-img-rogue-umlibs-am62
- firmware-ti-ipc-am62
- firmware-cnm-wave
- libti-rpmsg-char
- libti-rpmsg-char-dev
- libd3dadapter9-mesa-dev
- libd3dadapter9-mesa
- libegl-mesa0
- libegl1-mesa
- libgbm1
- libgl1-mesa-dri
- libgl1-mesa-glx
- libglapi-mesa
- libgles2-mesa
- libglx-mesa0
- libosmesa6
- libwayland-egl1-mesa
- mesa-opencl-icd
- mesa-va-drivers
- mesa-vdpau-drivers
- mesa-vulkan-drivers
mirrors:
- http://deb.debian.org/debian
setup-hooks:
# Setup TI Debian Package Repository
- 'mkdir -p $1/etc/apt/sources.list.d/'
- 'wget https://raw.githubusercontent.com/TexasInstruments/ti-debpkgs/main/ti-debpkgs.sources -P $1/etc/apt/sources.list.d/'
# Setup Apt repository preferences
- 'mkdir -p $1/etc/apt/preferences.d/'
- 'printf "Package: *\nPin: origin TexasInstruments.github.io\nPin-Priority: 1001" >> $1/etc/apt/preferences.d/ti-debpkgs'
# Setup Kernel post-install scripts
- 'mkdir -p $1/etc/kernel/postinst.d/'
- 'echo "PWD = $PWD"'
- 'upload target/kernel/postinst.d/cp-kernel-and-overlays /etc/kernel/postinst.d/cp-kernel-and-overlays'
- 'chmod a+x $1/etc/kernel/postinst.d/cp-kernel-and-overlays'
essential-hooks:
# FIXME: Find a better workaround instead of sleep
- 'sleep 10' # workaround for /proc resource busy unable to umount issue
customize-hooks:
# Remove passwd for root user
- 'chroot "$1" passwd --delete root'
# Fix apt install mandb permission issue
- 'chroot "$1" chown -R man: /var/cache/man/'
- 'chroot "$1" chmod -R 755 /var/cache/man/'
# update packages to avoid mandatory update after first boot
- 'chroot "$1" apt-get update'
# Setup .bashrc for clean command-line experience
- 'chroot "$1" cp /etc/skel/.bashrc ~/.bashrc'
# Weston Service and Config Files
- 'chroot "$1" mkdir -p /etc/systemd/system/'
- 'upload target/weston/weston.service /etc/systemd/system/weston.service'
- 'upload target/weston/weston.socket /etc/systemd/system/weston.socket'
- 'chroot "$1" mkdir -p /etc/default/'
- 'upload target/weston/weston /etc/default/weston'
- '$BDEBSTRAP_HOOKS/enable-units "$1" weston'
# Enable ssh to root user without password
- 'chroot "$1" echo "PermitRootLogin yes" >> $1/etc/ssh/sshd_config'
- 'chroot "$1" echo "PermitEmptyPasswords yes" >> $1/etc/ssh/sshd_config'

98 changes: 98 additions & 0 deletions configs/bdebstrap_configs/am62p-bookworm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
mmdebstrap:
architectures:
- arm64
mode: auto
keyrings:
- /usr/share/keyrings/debian-archive-keyring.gpg
suite: bookworm
variant: standard
components:
- main
- contrib
- non-free-firmware
packages:
- build-essential
- gpg
- curl
- firmware-ti-connectivity
- init
- iproute2
- less
- libdrm-dev
- libpam-systemd
- locales
- neofetch
- network-manager
- net-tools
- openssh-server
- sudo
- vim
- k3conf
- weston
- linux-image-6.1.46-k3
- linux-headers-6.1.46-k3
- linux-libc-dev
- cryptodev-linux-dkms
- ti-img-rogue-driver-am62p-dkms
- ti-img-rogue-firmware-am62p
- ti-img-rogue-tools-am62p
- ti-img-rogue-umlibs-am62p
- firmware-ti-ipc-am62p
- firmware-cnm-wave
- libti-rpmsg-char
- libti-rpmsg-char-dev
- libd3dadapter9-mesa-dev
- libd3dadapter9-mesa
- libegl-mesa0
- libegl1-mesa
- libgbm1
- libgl1-mesa-dri
- libgl1-mesa-glx
- libglapi-mesa
- libgles2-mesa
- libglx-mesa0
- libosmesa6
- libwayland-egl1-mesa
- mesa-opencl-icd
- mesa-va-drivers
- mesa-vdpau-drivers
- mesa-vulkan-drivers
mirrors:
- http://deb.debian.org/debian
setup-hooks:
# Setup TI Debian Package Repository
- 'mkdir -p $1/etc/apt/sources.list.d/'
- 'wget https://raw.githubusercontent.com/TexasInstruments/ti-debpkgs/main/ti-debpkgs.sources -P $1/etc/apt/sources.list.d/'
# Setup Apt repository preferences
- 'mkdir -p $1/etc/apt/preferences.d/'
- 'printf "Package: *\nPin: origin TexasInstruments.github.io\nPin-Priority: 1001" >> $1/etc/apt/preferences.d/ti-debpkgs'
# Setup Kernel post-install scripts
- 'mkdir -p $1/etc/kernel/postinst.d/'
- 'echo "PWD = $PWD"'
- 'upload target/kernel/postinst.d/cp-kernel-and-overlays /etc/kernel/postinst.d/cp-kernel-and-overlays'
- 'chmod a+x $1/etc/kernel/postinst.d/cp-kernel-and-overlays'
essential-hooks:
# FIXME: Find a better workaround instead of sleep
- 'sleep 10' # workaround for /proc resource busy unable to umount issue
customize-hooks:
# Remove passwd for root user
- 'chroot "$1" passwd --delete root'
# Fix apt install mandb permission issue
- 'chroot "$1" chown -R man: /var/cache/man/'
- 'chroot "$1" chmod -R 755 /var/cache/man/'
# update packages to avoid mandatory update after first boot
- 'chroot "$1" apt-get update'
# Setup .bashrc for clean command-line experience
- 'chroot "$1" cp /etc/skel/.bashrc ~/.bashrc'
# Weston Service and Config Files
- 'chroot "$1" mkdir -p /etc/systemd/system/'
- 'upload target/weston/weston.service /etc/systemd/system/weston.service'
- 'upload target/weston/weston.socket /etc/systemd/system/weston.socket'
- 'chroot "$1" mkdir -p /etc/default/'
- 'upload target/weston/weston /etc/default/weston'
- '$BDEBSTRAP_HOOKS/enable-units "$1" weston'
# Enable ssh to root user without password
- 'chroot "$1" echo "PermitRootLogin yes" >> $1/etc/ssh/sshd_config'
- 'chroot "$1" echo "PermitEmptyPasswords yes" >> $1/etc/ssh/sshd_config'

97 changes: 97 additions & 0 deletions configs/bdebstrap_configs/am62sip-bookworm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
mmdebstrap:
architectures:
- arm64
mode: auto
keyrings:
- /usr/share/keyrings/debian-archive-keyring.gpg
suite: bookworm
variant: standard
components:
- main
- contrib
- non-free-firmware
packages:
- build-essential
- gpg
- curl
- firmware-ti-connectivity
- init
- iproute2
- less
- libdrm-dev
- libpam-systemd
- locales
- neofetch
- network-manager
- net-tools
- openssh-server
- sudo
- vim
- k3conf
- weston
- linux-image-6.1.46-k3
- linux-headers-6.1.46-k3
- linux-libc-dev
- cryptodev-linux-dkms
- ti-img-rogue-driver-am62-dkms
- ti-img-rogue-firmware-am62
- ti-img-rogue-tools-am62
- ti-img-rogue-umlibs-am62
- firmware-ti-ipc-am62
- firmware-cnm-wave
- libti-rpmsg-char
- libti-rpmsg-char-dev
- libd3dadapter9-mesa-dev
- libd3dadapter9-mesa
- libegl-mesa0
- libegl1-mesa
- libgbm1
- libgl1-mesa-dri
- libgl1-mesa-glx
- libglapi-mesa
- libgles2-mesa
- libglx-mesa0
- libosmesa6
- libwayland-egl1-mesa
- mesa-opencl-icd
- mesa-va-drivers
- mesa-vdpau-drivers
- mesa-vulkan-drivers
mirrors:
- http://deb.debian.org/debian
setup-hooks:
# Setup TI Debian Package Repository
- 'mkdir -p $1/etc/apt/sources.list.d/'
- 'wget https://raw.githubusercontent.com/TexasInstruments/ti-debpkgs/main/ti-debpkgs.sources -P $1/etc/apt/sources.list.d/'
# Setup Apt repository preferences
- 'mkdir -p $1/etc/apt/preferences.d/'
- 'printf "Package: *\nPin: origin TexasInstruments.github.io\nPin-Priority: 1001" >> $1/etc/apt/preferences.d/ti-debpkgs'
# Setup Kernel post-install scripts
- 'mkdir -p $1/etc/kernel/postinst.d/'
- 'echo "PWD = $PWD"'
- 'upload target/kernel/postinst.d/cp-kernel-and-overlays /etc/kernel/postinst.d/cp-kernel-and-overlays'
- 'chmod a+x $1/etc/kernel/postinst.d/cp-kernel-and-overlays'
essential-hooks:
# FIXME: Find a better workaround instead of sleep
- 'sleep 10' # workaround for /proc resource busy unable to umount issue
customize-hooks:
# Remove passwd for root user
- 'chroot "$1" passwd --delete root'
# Fix apt install mandb permission issue
- 'chroot "$1" chown -R man: /var/cache/man/'
- 'chroot "$1" chmod -R 755 /var/cache/man/'
# update packages to avoid mandatory update after first boot
- 'chroot "$1" apt-get update'
# Setup .bashrc for clean command-line experience
- 'chroot "$1" cp /etc/skel/.bashrc ~/.bashrc'
# Weston Service and Config Files
- 'chroot "$1" mkdir -p /etc/systemd/system/'
- 'upload target/weston/weston.service /etc/systemd/system/weston.service'
- 'upload target/weston/weston.socket /etc/systemd/system/weston.socket'
- 'chroot "$1" mkdir -p /etc/default/'
- 'upload target/weston/weston /etc/default/weston'
# Enable ssh to root user without password
- 'chroot "$1" echo "PermitRootLogin yes" >> $1/etc/ssh/sshd_config'
- 'chroot "$1" echo "PermitEmptyPasswords yes" >> $1/etc/ssh/sshd_config'

Loading