css459 / arch-linux-arm-clockworkpi-a06

[UNMAINTAINED] Arch Linux ARM for the ClockworkPi DevTerm A06
GNU Lesser General Public License v2.1
15 stars 6 forks source link

Considering to take over the maintenance #12

Open yatli opened 1 year ago

yatli commented 1 year ago

Hi!

I've been doing some stuff downstream: https://github.com/yatli/arch-linux-arm-clockworkpi-a06 and things are taking shape now. Would be great if we can merge it back, and also have my patches propagate to Manjaro/Armbian etc.

lonewsk commented 1 year ago

Hi @yatli ,

Thanks for your work! You've made some very interesting progress on better use of the Devterm's hardware.

I'm currently running css459's kernel he built and would like to upgrade. I'm especially interesting in the video hardware decoding ability.

I tried to build the kernel from your git on my Devterm and on an x86_64 machine, but both failed.

Here's the output:

[...]
  LD [M]  net/qrtr/qrtr-smd.ko
  LD [M]  net/qrtr/qrtr-tun.ko
  DTC     arch/arm64/boot/dts/rockchip/px30-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-ctouch2.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-ctouch2-of10.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-edimm2.2.dtb
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:452.10-471.6: Warning (graph_child_address): /syscon@ff140000/lvds/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:1232.9-1241.5: Warning (graph_child_address): /isp@ff4a0000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
  also defined at arch/arm64/boot/dts/rockchip/px30-evb.dts:483.8-491.4
arch/arm64/boot/dts/rockchip/px30.dtsi:1236.11-1240.6: Warning (graph_child_address): /isp@ff4a0000/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
  also defined at arch/arm64/boot/dts/rockchip/px30-evb.dts:484.10-490.5
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:1096.20-1132.4: Warning (avoid_unnecessary_addr_size): /dsi@ff450000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:452.10-471.6: Warning (graph_child_address): /syscon@ff140000/lvds/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:1112.9-1131.5: Warning (graph_child_address): /dsi@ff450000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:1096.20-1132.4: Warning (avoid_unnecessary_addr_size): /dsi@ff450000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:1112.9-1131.5: Warning (graph_child_address): /dsi@ff450000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:1096.20-1132.4: Warning (avoid_unnecessary_addr_size): /dsi@ff450000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:1112.9-1131.5: Warning (graph_child_address): /dsi@ff450000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
  DTC     arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3308-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dtb
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:1096.20-1132.4: Warning (avoid_unnecessary_addr_size): /dsi@ff450000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:452.10-471.6: Warning (graph_child_address): /syscon@ff140000/lvds/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:1112.9-1131.5: Warning (graph_child_address): /dsi@ff450000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
  DTC     arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dtb
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:452.10-471.6: Warning (graph_child_address): /syscon@ff140000/lvds/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:456.12-470.7: Warning (graph_child_address): /syscon@ff140000/lvds/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:1116.11-1130.6: Warning (graph_child_address): /dsi@ff450000/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:452.10-471.6: Warning (graph_child_address): /syscon@ff140000/lvds/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:456.12-470.7: Warning (graph_child_address): /syscon@ff140000/lvds/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:1116.11-1130.6: Warning (graph_child_address): /dsi@ff450000/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:452.10-471.6: Warning (graph_child_address): /syscon@ff140000/lvds/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:456.12-470.7: Warning (graph_child_address): /syscon@ff140000/lvds/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:1116.11-1130.6: Warning (graph_child_address): /dsi@ff450000/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
  DTC     arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-a1.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dtb
arch/arm64/boot/dts/rockchip/px30.dtsi:331.26-351.4: Warning (avoid_unnecessary_addr_size): /syscon@ff010000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:433.23-473.4: Warning (avoid_unnecessary_addr_size): /syscon@ff140000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/px30.dtsi:452.10-471.6: Warning (graph_child_address): /syscon@ff140000/lvds/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:456.12-470.7: Warning (graph_child_address): /syscon@ff140000/lvds/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/px30.dtsi:1116.11-1130.6: Warning (graph_child_address): /dsi@ff450000/ports/port@0: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
  DTC     arch/arm64/boot/dts/rockchip/rk3328-rock64.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-roc-pc.dtb
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3328.dtsi:703.17-711.5: Warning (graph_child_address): /vop@ff370000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
  DTC     arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb
arch/arm64/boot/dts/rockchip/rk3368-evb.dtsi:19.9-22.4: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts:23.9-26.4: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
  DTC     arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-r88.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06-extcart.dtbo
arch/arm64/boot/dts/rockchip/rk3368-r88.dts:23.9-26.4: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
Error: arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06-extcart.dts:25.20-21 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [scripts/Makefile.lib:437: arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06-extcart.dtbo] Error 1
make[2]: *** Attente des tâches non terminées....
arch/arm64/boot/dts/rockchip/rk3399.dtsi:434.26-468.4: Warning (unit_address_vs_reg): /usb@fe800000: node has a unit name, but no reg or ranges property
  also defined at arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:907.12-909.3
arch/arm64/boot/dts/rockchip/rk3399.dtsi:470.26-504.4: Warning (unit_address_vs_reg): /usb@fe900000: node has a unit name, but no reg or ranges property
arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:376.19-392.4: Warning (unit_address_vs_reg): /mipi@ff960000/panel: node has a reg or ranges property, but no unit name
arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:232.21-242.4: Warning (unit_address_vs_reg): /battery@0: node has a unit name, but no reg or ranges property
arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:244.33-250.4: Warning (unit_address_vs_reg): /backlight@0: node has a unit name, but no reg or ranges property
arch/arm64/boot/dts/rockchip/rk3399.dtsi:1925.22-1956.4: Warning (avoid_unnecessary_addr_size): /hdmi@ff940000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
  also defined at arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:351.7-360.3
arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:366.20-373.5: Warning (avoid_unnecessary_addr_size): /mipi@ff960000/ports/port@1: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/rk3399.dtsi:1994.27-2030.4: Warning (avoid_unnecessary_addr_size): /mipi@ff968000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:232.21-242.4: Warning (unique_unit_address): /battery@0: duplicate unit-address (also used in node /backlight@0)
arch/arm64/boot/dts/rockchip/rk3399-clockworkpi-a06.dts:366.20-373.5: Warning (graph_child_address): /mipi@ff960000/ports/port@1: graph node has single child node 'endpoint', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3399.dtsi:2010.9-2029.5: Warning (graph_child_address): /mipi@ff968000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
arch/arm64/boot/dts/rockchip/rk3399.dtsi:2046.9-2064.5: Warning (graph_child_address): /edp@ff970000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
make[1]: *** [scripts/Makefile.build:504: arch/arm64/boot/dts/rockchip] Error 2
make: *** [Makefile:1487: dtbs] Error 2

Are you able to build the kernel on your machine?

Thanks a lot for your help

yatli commented 1 year ago

@lonewsk ah I forgot to sync the patch. The workflow is a little bit manual. Please try the latest commit at 5da6df2. Thanks!

lonewsk commented 1 year ago

@yatli thanks for your help! I was able to build the kernel :)

But now I'm stuck at compiling u-boot... Seems like there's something wrong in PKGBUILD's package() function: it doesn't find idbloader.img, uboot.img and trust.img in src/rkbin-master directory.

yatli commented 1 year ago

There's a message printed by PKGBUILD, and here's what it means: Assume you're doing it on x64 in a chroot arm64 environment:

  1. [in chroot] makepkg, and watch it fail
  2. [in native x64] run gen-image.sh
  3. [in chroot] makepkg -e

Edit: working on a hack to run x64 binary in qemu-user-static arm64 with qemu-x86_64... Edit: done! check 2d204a4

lonewsk commented 1 year ago

Thanks again, I've been able to build u-boot! :partying_face:

I'm gonna continue through the README. There are some things that could be clarified. Can I send a PR for that?

yatli commented 1 year ago

Sure!