Skip to content
Snippets Groups Projects

videostrong-kii-pro: Initial support for the Videostrong KII Pro.

Merged Imported Administrator requested to merge device/videostrong-kii-pro into master

Initial support for the Meson GXBB-based Videostrong KII Pro TV Box (Amlogic S905). Not to be confused with the Mecool KII Pro, which uses a different SoC (the Amlogic S905D).

The Videostrong KII Pro needs a kernel with a configuration different from the mainline kernel configuration Alpine Linux uses.

This is also my first MR, so don't hesitate to give me recommendations! :smile:

What works:

  • U-Boot v2020.07 (newer versions partially work)
  • mainline Linux
  • booting up postmarketOS with both the vendor U-Boot (~2015) and the mainline U-Boot
  • hardware acceleration
  • wayland and X11 (the latter needs a config file)
  • Xwayland
  • ethernet (when booting from the mainline U-Boot)
  • the 2 LEDs the device has
  • HDMI
  • USB-A
  • Wi-Fi with nonfree firmware
  • bluetooth with nonfree firmware
  • audio
  • ... (see wiki)

What doesn't work/Isn't tested: Everything else

Wiki: https://wiki.postmarketos.org/wiki/VideoStrong_KII_Pro_(videostrong-kii-pro)

KDE Plasma

Edited by Administrator

Merge request reports

Approved by

Merged by AdministratorAdministrator 2 years ago (Mar 10, 2023 8:06am UTC)

Merge details

  • Changes merged into master with 48896114.
  • Deleted the source branch.

Pipeline #205359 passed

Pipeline passed for 48896114 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator added 1 commit · Imported

    added 1 commit

    • 827aebe7 - device/testing/linux-videostrong-kii-pro: Install DTBs to /boot/dtbs

    Compare with previous version

    By f_ on 2023-02-01T11:37:53

  • Administrator added 1 commit · Imported

    added 1 commit

    • bc6b9883 - testing/device-videostrong-kii-pro: Remove whitespace

    Compare with previous version

    By f_ on 2023-02-01T11:42:41

  • Administrator added 1 commit · Imported

    added 1 commit

    • 1e280230 - testing/device-videostrong-kii-pro: Remove mkbootimg, not used.

    Compare with previous version

    By f_ on 2023-02-03T17:36:15

  • Administrator added 1 commit · Imported

    added 1 commit

    • 244e11f1 - device-videostrong-kii-pro: Move SoC-specific subpackages to soc-amlogic-s905

    Compare with previous version

    By f_ on 2023-02-03T19:18:14

  • Administrator resolved all threads · Imported

    resolved all threads

    By f_ on 2023-02-03T19:18:32

  • Author Owner

    @Newbyte @jenneron I solved all threads. Is there any other thing you want me to look at in the MR?

    By f_ on 2023-02-04T11:55:35

  • Author Owner

    Oh wait. postmarketOS doesn't boot without regenerating the uImage with this command:

    mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n linux-next -d vmlinuz uImage

    Don't merge yet until I fix that.

    By f_ on 2023-02-04T11:58:56

    Edited by Administrator
  • Administrator added 1 commit · Imported

    added 1 commit

    • 30e2fb38 - testing/device-videostrong-kii-pro: Set 'gpu_accelerated' to true and the u-boot load address

    Compare with previous version

    By f_ on 2023-02-04T12:57:06

  • Author Owner

    Done.

    By f_ on 2023-02-04T12:57:11

  • Administrator added 11 commits · Imported

    added 11 commits

    • 30e2fb38...af6cc1f1 - 4 commits from branch postmarketOS:master
    • aa588780 - videostrong-kii-pro: Initial support for the VideoStrong KII Pro.
    • 6b2c0ed8 - CODEOWNERS: Add myself
    • 93ae22b8 - device/testing/linux-videostrong-kii-pro: Install DTBs to /boot/dtbs
    • 7035954e - testing/device-videostrong-kii-pro: Remove whitespace
    • 2ca94b54 - testing/device-videostrong-kii-pro: Remove mkbootimg, not used.
    • 0c3e0f57 - device-videostrong-kii-pro: Move SoC-specific subpackages to soc-amlogic-s905
    • f5e42ec6 - testing/device-videostrong-kii-pro: Set 'gpu_accelerated' to true and the u-boot load address

    Compare with previous version

    By f_ on 2023-02-04T13:53:52

  • Author Owner

    This MR is now ready to be merged, unless someone has some other objections about my code.

    By f_ on 2023-02-04T13:54:42

  • Administrator added 1 commit · Imported

    added 1 commit

    • a3431f6a - CODEOWNERS: Add myself for the soc-amlogic-s905 package

    Compare with previous version

    By f_ on 2023-02-04T14:02:08

  • Author Owner

    well u could try getting linux-edge kernel to work it.as far i know s905 has great mainline support .

    see also : https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2948

    By ΞЖKƆ/QVH on 2023-02-04T19:24:19

    Edited by Administrator
    • Author Owner
      Resolved by Administrator

      @exkc As said before linux-edge doesn't work. It boots but is stuck on a splash screen that says that the initramfs couldn't detect the boot partition, so it seems like linux-videostrong-kii-pro is needed.

      By f_ on 2023-02-05T02:12:30

      Edited by Ghost User
  • Administrator resolved all threads · Imported

    resolved all threads

    By f_ on 2023-02-05T11:39:53

  • Administrator resolved all threads · Imported

    resolved all threads

    By f_ on 2023-02-05T16:01:30

  • Administrator added 1 commit · Imported

    added 1 commit

    • cd70a104 - device-videostrong-kii-pro: Use U-Boot v2020.07

    Compare with previous version

    By f_ on 2023-02-05T19:21:35

  • Author Owner

    Got U-Boot to work. I cannot compile and test for now because of !3846 (closed) but I did compile on my host and test and it works (along with HDMI output!). By using mainline U-Boot I also got ethernet to work!

    By f_ on 2023-02-05T19:23:43

    Edited by Administrator
  • Administrator resolved all threads · Imported

    resolved all threads

    By f_ on 2023-02-06T09:22:27

  • Administrator added 1 commit · Imported

    added 1 commit

    • 456dfe75 - testing/soc-amlogic-s905: Just run U-Boot.

    Compare with previous version

    By f_ on 2023-02-06T09:26:23

  • Administrator resolved all threads · Imported

    resolved all threads

    By f_ on 2023-02-06T12:18:17

  • Author Owner

    !3846 (closed) has been merged. I can now test this.

    By f_ on 2023-02-06T12:18:55

  • Administrator added 11 commits · Imported

    added 11 commits

    • a08bd157 - 1 commit from branch postmarketOS:master
    • 0001737c - videostrong-kii-pro: Initial support for the VideoStrong KII Pro.
    • 95de02c7 - CODEOWNERS: Add myself
    • 78894e00 - device/testing/linux-videostrong-kii-pro: Install DTBs to /boot/dtbs
    • 577a5f69 - testing/device-videostrong-kii-pro: Remove whitespace
    • 5f23c18a - testing/device-videostrong-kii-pro: Remove mkbootimg, not used.
    • 618d67a0 - device-videostrong-kii-pro: Move SoC-specific subpackages to soc-amlogic-s905
    • e198573d - testing/device-videostrong-kii-pro: Set 'gpu_accelerated' to true and the u-boot load address
    • 4a90932f - CODEOWNERS: Add myself for the soc-amlogic-s905 package
    • 2ac4237e - device-videostrong-kii-pro: Use U-Boot v2020.07
    • 0feaf346 - testing/soc-amlogic-s905: Just run U-Boot.

    Compare with previous version

    By f_ on 2023-02-06T12:19:09

  • Administrator added 1 commit · Imported

    added 1 commit

    • 7ecae593 - testing/{device-videostrong-kii-pro,soc-amlogic-s905,u-boot-amlogic-s905}:...

    Compare with previous version

    By f_ on 2023-02-06T13:01:08

  • Administrator added 19 commits · Imported

    added 19 commits

    • 7ecae593...c957e4d5 - 8 commits from branch postmarketOS:master
    • 1ed36e53 - videostrong-kii-pro: Initial support for the VideoStrong KII Pro.
    • 39c2cdd4 - CODEOWNERS: Add myself
    • 7cfa6282 - device/testing/linux-videostrong-kii-pro: Install DTBs to /boot/dtbs
    • 32667917 - testing/device-videostrong-kii-pro: Remove whitespace
    • 78a67619 - testing/device-videostrong-kii-pro: Remove mkbootimg, not used.
    • dd32aa03 - device-videostrong-kii-pro: Move SoC-specific subpackages to soc-amlogic-s905
    • 418b6d4a - testing/device-videostrong-kii-pro: Set 'gpu_accelerated' to true and the u-boot load address
    • 48d3f93c - CODEOWNERS: Add myself for the soc-amlogic-s905 package
    • 5137306c - device-videostrong-kii-pro: Use U-Boot v2020.07
    • b25dd38d - testing/soc-amlogic-s905: Just run U-Boot.
    • 8ffb6cf3 - testing/{device-videostrong-kii-pro,soc-amlogic-s905,u-boot-amlogic-s905}:...

    Compare with previous version

    By f_ on 2023-02-06T13:47:38

  • Administrator added 1 commit · Imported

    added 1 commit

    • 360e0385 - testing/linux-videostrong-kii-pro: Minify kernel config and bump kernel version

    Compare with previous version

    By f_ on 2023-02-07T15:42:57

  • Administrator added 18 commits · Imported

    added 18 commits

    • 360e0385...c319a9db - 6 commits from branch postmarketOS:master
    • 17bc470c - videostrong-kii-pro: Initial support for the VideoStrong KII Pro.
    • 72b81ecb - CODEOWNERS: Add myself
    • 06c10f1f - device/testing/linux-videostrong-kii-pro: Install DTBs to /boot/dtbs
    • 21ee8a6c - testing/device-videostrong-kii-pro: Remove whitespace
    • 4f012181 - testing/device-videostrong-kii-pro: Remove mkbootimg, not used.
    • da856dfb - device-videostrong-kii-pro: Move SoC-specific subpackages to soc-amlogic-s905
    • 55ebc1fd - testing/device-videostrong-kii-pro: Set 'gpu_accelerated' to true and the u-boot load address
    • fd717e04 - CODEOWNERS: Add myself for the soc-amlogic-s905 package
    • 415d5478 - device-videostrong-kii-pro: Use U-Boot v2020.07
    • 5e1af5f0 - testing/soc-amlogic-s905: Just run U-Boot.
    • 856c63c5 - testing/{device-videostrong-kii-pro,soc-amlogic-s905,u-boot-amlogic-s905}:...
    • 08d29bf5 - testing/linux-videostrong-kii-pro: Minify kernel config and bump kernel version

    Compare with previous version

    By f_ on 2023-02-07T15:43:17

  • Administrator changed the description · Imported

    changed the description

    By f_ on 2023-02-07T15:53:44

  • Administrator added 14 commits · Imported

    added 14 commits

    • 08d29bf5...99f1489c - 2 commits from branch postmarketOS:master
    • 31a77df0 - videostrong-kii-pro: Initial support for the VideoStrong KII Pro.
    • 5b7ddb15 - CODEOWNERS: Add myself
    • 9e6792fc - device/testing/linux-videostrong-kii-pro: Install DTBs to /boot/dtbs
    • b2426bb3 - testing/device-videostrong-kii-pro: Remove whitespace
    • 6d51f18d - testing/device-videostrong-kii-pro: Remove mkbootimg, not used.
    • 393f1b79 - device-videostrong-kii-pro: Move SoC-specific subpackages to soc-amlogic-s905
    • f485cc56 - testing/device-videostrong-kii-pro: Set 'gpu_accelerated' to true and the u-boot load address
    • 77eb7b9d - CODEOWNERS: Add myself for the soc-amlogic-s905 package
    • b242e627 - device-videostrong-kii-pro: Use U-Boot v2020.07
    • 8277b931 - testing/soc-amlogic-s905: Just run U-Boot.
    • 829f236e - testing/{device-videostrong-kii-pro,soc-amlogic-s905,u-boot-amlogic-s905}:...
    • 1149a4c4 - testing/linux-videostrong-kii-pro: Minify kernel config and bump kernel version

    Compare with previous version

    By f_ on 2023-02-08T16:57:11

  • Administrator added 15 commits · Imported

    added 15 commits

    • 1149a4c4...3bf48874 - 3 commits from branch postmarketOS:master
    • d6fa2265 - videostrong-kii-pro: Initial support for the VideoStrong KII Pro.
    • 0cd697ee - CODEOWNERS: Add myself
    • 61e70288 - device/testing/linux-videostrong-kii-pro: Install DTBs to /boot/dtbs
    • 05db414b - testing/device-videostrong-kii-pro: Remove whitespace
    • ddd64371 - testing/device-videostrong-kii-pro: Remove mkbootimg, not used.
    • fc09b081 - device-videostrong-kii-pro: Move SoC-specific subpackages to soc-amlogic-s905
    • e29b885f - testing/device-videostrong-kii-pro: Set 'gpu_accelerated' to true and the u-boot load address
    • 520a6f24 - CODEOWNERS: Add myself for the soc-amlogic-s905 package
    • c672cc3f - device-videostrong-kii-pro: Use U-Boot v2020.07
    • 7bb4f15a - testing/soc-amlogic-s905: Just run U-Boot.
    • 9aff1a7f - testing/{device-videostrong-kii-pro,soc-amlogic-s905,u-boot-amlogic-s905}:...
    • d9a804e3 - testing/linux-videostrong-kii-pro: Minify kernel config and bump kernel version

    Compare with previous version

    By f_ on 2023-02-09T10:34:01

  • Administrator
  • Administrator added 1 commit · Imported

    added 1 commit

    • 093eb9fb - testing/linux-videostrong-kii-pro: Enable Audio and BT (still requires a...

    Compare with previous version

    By f_ on 2023-02-10T17:48:20

  • Administrator added 1 commit · Imported

    added 1 commit

    • 165c9bb7 - testing/firmware-videostrong-kii-pro: Add firmware.

    Compare with previous version

    By f_ on 2023-02-10T18:41:05

  • Administrator marked this merge request as draft · Imported

    marked this merge request as draft

    By f_ on 2023-02-11T14:36:39

    • Author Owner
      Resolved by Administrator

      For now the u-boot-amlogic-s905 package uses a prebuilt U-Boot binary I built myself on my host (which uses a slightly older toolchain) because building U-Boot v2020.xx versions or older doesn't work (ld.bfd returns 1). I'll fix the linking errors later. For now I need to concentrate on postmarketOS itself.

      For reference this is how to build the binary and install it:

      1. Get the U-Boot v2020.07 source
      2. Get a (small) patch (located in the package directory)
      3. patch -p1 < patchfile.patch
      4. make p201_defconfig
      5. make

      1. Copy u-boot.bin to the root of the boot partition in the SD card.

      By f_ on 2023-02-11T15:10:30

      Edited by Administrator
  • Administrator changed the description · Imported

    changed the description

    By f_ on 2023-02-12T10:17:47

  • Administrator
  • Administrator
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading