mirzak / meta-coral

Yocto/OE-core BSP Layer for Coral Dev Board
MIT License
40 stars 21 forks source link

conf/layer.conf: add more versions to LAYERSERIES_COMPAT #60

Closed mirzak closed 5 months ago

mirzak commented 5 months ago

Add compatibility with the two current releases. Only boot tested building from master branch which should be close to the 'scarthgap' release (next LTS).

mirzak commented 5 months ago

Started working on upgrading to a more recent release, there are some issues:

  1. imx-boot is not built by default as a dep on coral-dev board
  2. Warning of to old kernel: linux-coral: OLDEST_KERNEL is "5.15" but the version of the kernel you are building is "5.4.237+g336307819297+p21" - therefore glibc as built may not be compatible with this kernel.
  3. Coral U-Boot is from 2019, it is supported upsteam, use that instead? https://github.com/u-boot/u-boot/tree/master/board/google/imx8mq_phanbell
mirzak commented 5 months ago

But the shortest path to a release, is just fixing the imx-boot issue. With that it actually boots and Ethernet works.

embetrix commented 5 months ago

@mirzak I did some work the last week and tested the stuffs wit latest yocto 5.0:

mirzak commented 5 months ago

linux-imx 6.1 is working with @kraj PCIe patches but Wifi Chipset is not detected, TPU is detected with gasket driver:

https://github.com/google/gasket-driver

Nice, that sounds promising.

pycoral and libegdge tpu in this layer are quiet old and not anymore maintained , here are the actual repos:

https://github.com/google-coral/libedgetpu https://github.com/google-coral/pycoral

Indeed, I was just looking at these.

embetrix commented 5 months ago

u-boot-imx 2023.04 is not booting up (clock problem and hangs in SPL), probably u-boot mainline does'nt work neither

embetrix commented 5 months ago

https://github.com/google-coral/libedgetpu require bazel build system to cross compile, the best is to add meta-tensorflow layer which use it to build tensorflow

mirzak commented 5 months ago

I have summarized the necessary improvements in https://github.com/mirzak/meta-coral/issues/65.

Will merge this, and follow up with the others later.

embetrix commented 5 months ago

@mirzak I started a layer from scratch https://github.com/embetrix/meta-coral-ai

I fixed u-boot imx and it's booting, next steps is to add recipes for libegdtpu and pycoral.

I almost took nothing from here, I would like to maintain it on my own and of course you are welcome if you like to support.

best regards

mirzak commented 5 months ago

@mirzak I started a layer from scratch https://github.com/embetrix/meta-coral-ai

I almost took nothing from here, I would like to maintain it on my own and of course you are welcome if you like to support.

I do not think the community around Coral is large enough to have multiple forks of BSP support, nor does it benefit from it. But it is your freedom to do so and I wish you all the best on your venture.