jayanta525 / rk3308-rock-pi-s

OpenWrt/Linux/u-boot for ROCK Pi S by Radxa
https://wiki.radxa.com/RockpiS
Other
24 stars 10 forks source link

Compilation and build rk3308-rock-pi-s with Erlang OTP 23 #8

Closed ottoTillsammans closed 5 months ago

ottoTillsammans commented 5 months ago

Describe the bug

I want to build this project with Erlang OTP 24, but nothing yet. I tried using feeds with both git-src and custom options, but the output firmware doesn't contains working Erlang. If I manually replace the source archive and hash in the Makefile, the build fails with type 1 and type 2 errors (yes I know this is a bad idea). OTP 26 builds and works correctly, but it i can't build with it my project that contains nklib.

Can I get any advice on how to do this?

Thanks so much, Dmitry

OpenWrt version

From rk3308-rock-pi-s repo

OpenWrt target/subtarget

Rockchip

Device

Media gateway on Rockchip (doesn't exist yet, in developing)

Image kind

Official downloaded image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms

jayanta525 commented 5 months ago

@ottoTillsammans Is erlang package enabled in menuconfig?

ottoTillsammans commented 5 months ago

@jayanta525 Yes, Erlang package is enabled, but if I just switch it on in menuconfig without configuring in feeds.conf the manager installs the OTP 26 while I need OTP 24. When I disable Erlang in menuconfig -> languages, but add it in feeds.conf and then enable in menuconfig -> feeds, the OpenWrt builds successfully, but Erlang doesn't starts.

jayanta525 commented 5 months ago

@ottoTillsammans For the 24 version, you can refer to this https://github.com/openwrt/packages/commit/cca300147570d49c39eb6b9b3f52e69ec9836f91

You'll need to copy the patches accordingly.