Skip to content
Snippets Groups Projects

Add support for SYS6701

9 unresolved threads

SYS6701 is a qualcomm SDA845 based board designed by Inforce computing.

This board can reuse bootloaders improvement made for the 96 board dragonboard 845, to make it more Linux friendly.

At the moment this recipes require the user to provide:

  • The image.gz
  • The modules.tar.gz
  • The dtb file

All these file can be generate from the upstream kernel and the additionnal devicetree file for sys6701 available there:

https://github.com/julien-massot/linux/commit/ff45d7c0f5611cf4bcd5359c8bb18d66dbf8fce5

This recipes doesn't provide a full disk image but only the boot and rootfs partition that will need to be flashed using the generated flashall script.

With an upstream kernel (tested on 5.18) it's possible to reach the Apertis prompt and to log in.

Fancy features such as GPU WiFi or bluetooth may require additional firmware.

This work is mostly coming from the skywalker image.

Signed-off-by: Julien Massot julien.massot@collabora.com

Work done following this ticket https://phabricator.collabora.com/T34594

Edited by Julien Massot

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
71 command: cat ${ROOTDIR}/Image.gz ${ROOTDIR}/{{ $dtb_file }} > ${ROOTDIR}/Image.gz+dtb
72 {{ else }}
73 - action: run
74 description: Create boot image
75 label: cat
76 command: cat ${ROOTDIR}/vmlinuz ${ROOTDIR}/usr/lib/linux-image*/qcom/{{ $dtb_file }} > ${ROOTDIR}/Image.gz+dtb
77 {{ end }}
78
79 - action: run
80 description: Save cmdline in image
81 label: echo
82 command: echo "{{ $kernel_cmdline }}" > ${ROOTDIR}/etc/kernel/cmdline
83
84 - action: run
85 description: Create boot image
86 # It is required to install mkbootimg package
  • 72 {{ else }}
    73 - action: run
    74 description: Create boot image
    75 label: cat
    76 command: cat ${ROOTDIR}/vmlinuz ${ROOTDIR}/usr/lib/linux-image*/qcom/{{ $dtb_file }} > ${ROOTDIR}/Image.gz+dtb
    77 {{ end }}
    78
    79 - action: run
    80 description: Save cmdline in image
    81 label: echo
    82 command: echo "{{ $kernel_cmdline }}" > ${ROOTDIR}/etc/kernel/cmdline
    83
    84 - action: run
    85 description: Create boot image
    86 # It is required to install mkbootimg package
    87 label: mkbootimg
  • 24 file: {{ $ospack }}.tar.gz
    25
    26 - action: apt
    27 description: Install kernel
    28 packages:
    29 - linux-image-arm64
    30
    31 - action: run
    32 description: Create fstab
    33 command: echo "PARTLABEL={{ $root_partition }} / ext4 defaults,rw,x-systemd.growfs 0 0" > ${ROOTDIR}/etc/fstab
    34
    35 # ABL second stage bootloader is use in qualcomm modern devices
    36 # doesn't have support for vmlinuz image.
    37 # Use Image.gz file with appended dtb
    38
    39 {{ if eq $install_local_kernel_img "true" }}
  • 1 {{- $architecture := or .architecture "arm64" }}
  • 1 {{- $architecture := or .architecture "arm64" }}
    2 {{- $suite := or .suite "v2022pre" }}
    3 {{ $suite := or .suite "v2023dev2" }}
    4 {{ $type := or .type "fixedfunction" }}
    5 {{ $ospack := or .ospack (printf "ospack_%s-%s-%s" $suite $architecture $type) }}
    6 {{ $sbc := or .sbc "sys6701" }}
    7 {{ $image := or .image (printf "apertis-%s-%s-%s-%s" $suite $type $architecture $sbc) }}
    8
    9 {{- $image_rootfs := or .image_rootfs (printf "%s-rootfs" $image) }}
  • 1 {{- $architecture := or .architecture "arm64" }}
    2 {{- $suite := or .suite "v2022pre" }}
    3 {{ $suite := or .suite "v2023dev2" }}
  • 24 file: {{ $ospack }}.tar.gz
    25
    26 - action: apt
    27 description: Install kernel
    28 packages:
    29 - linux-image-arm64
    30
    31 - action: run
    32 description: Create fstab
    33 command: echo "PARTLABEL={{ $root_partition }} / ext4 defaults,rw,x-systemd.growfs 0 0" > ${ROOTDIR}/etc/fstab
    34
    35 # ABL second stage bootloader is use in qualcomm modern devices
    36 # doesn't have support for vmlinuz image.
    37 # Use Image.gz file with appended dtb
    38
    39 {{ if eq $install_local_kernel_img "true" }}
  • 71 command: cat ${ROOTDIR}/Image.gz ${ROOTDIR}/{{ $dtb_file }} > ${ROOTDIR}/Image.gz+dtb
    72 {{ else }}
    73 - action: run
    74 description: Create boot image
    75 label: cat
    76 command: cat ${ROOTDIR}/vmlinuz ${ROOTDIR}/usr/lib/linux-image*/qcom/{{ $dtb_file }} > ${ROOTDIR}/Image.gz+dtb
    77 {{ end }}
    78
    79 - action: run
    80 description: Save cmdline in image
    81 label: echo
    82 command: echo "{{ $kernel_cmdline }}" > ${ROOTDIR}/etc/kernel/cmdline
    83
    84 - action: run
    85 description: Create boot image
    86 # It is required to install mkbootimg package
  • 102 # haven't used image-partition
    103 command: mount -o remount,ro "/scratch"
    104
    105 - action: run
    106 description: Create rootfs image
    107 label: mke2fs
    108 command: mke2fs -t ext4 -d "${ROOTDIR}" "${ARTIFACTDIR}/{{ $image_rootfs }}.img" 2G &&
    109 e2fsck -y -f -D "${ARTIFACTDIR}/{{ $image_rootfs }}.img"
    110
    111 - action: run
    112 description: Create checksums of artifacts
    113 postprocess: true
    114 label: sha256sum
    115 command: sha256sum *.img > {{ $image }}.sha256sum
    116
    117 - action: run
  • Please register or sign in to reply
    Loading