PINE64
openwrt for the rock64 - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: openwrt for the rock64 (/showthread.php?tid=11012)

Pages: 1 2 3


RE: openwrt for the rock64 - helpmerock - 12-21-2021

(12-20-2021, 11:46 AM)CanadianBacon Wrote: Hiya, there is a semi-active fork of openwrt at https://github.com/lucize/openwrt/tree/rk3328 which supports building for the rock64.

I recently rebased it on openwrt/master so my fork is more up to date and should support up-to-date packages.
https://github.com/CanadianBaconBoi/openwrt/tree/rk3328

Here it is in the Target Profile screen.
[Image: 2PniRYy.png]

Thanks for the updated version.

I have not compiled anything yet. Let's try and see how's coming. Will keep you posted.


RE: openwrt for the rock64 - helpmerock - 12-21-2021

Hi CanadianBacon,



Some error in last step of make:




user@user-vm:~/Downloads/openwrt-rk3328$ make
make[2]: Entering directory '/home/user/Downloads/openwrt-rk3328'
make[3]: Entering directory '/home/user/Downloads/openwrt-rk3328/scripts/config'
set -e; mkdir -p ./; trap "rm -f ./.mconf-cfg.tmp" EXIT; { /bin/sh mconf-cfg.sh; } > ./.mconf-cfg.tmp; if [ ! -r mconf-cfg ] || ! cmp -s mconf-cfg ./.mconf-cfg.tmp; then true '  UPD    mconf-cfg'; mv -f ./.mconf-cfg.tmp mconf-cfg; fi
make[3]: Leaving directory '/home/user/Downloads/openwrt-rk3328/scripts/config'
make[3]: Entering directory '/home/user/Downloads/openwrt-rk3328'
make[3]: Leaving directory '/home/user/Downloads/openwrt-rk3328'


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

make[2]: Leaving directory '/home/user/Downloads/openwrt-rk3328'
make[2]: *** No rule to make target '.config', needed by '/home/user/Downloads/openwrt-rk3328/staging_dir/target-_/stamp/.target_prereq'.  Stop.
make[1]: *** [/home/user/Downloads/openwrt-rk3328/include/toplevel.mk:208: prereq] Error 2
make: *** [/home/user/Downloads/openwrt-rk3328/include/toplevel.mk:228: world] Error 2


RE: openwrt for the rock64 - c012 - 01-16-2022

(12-21-2021, 09:56 AM)helpmerock Wrote: Hi CanadianBacon,



Some error in last step of make:




user@user-vm:~/Downloads/openwrt-rk3328$ make
make[2]: Entering directory '/home/user/Downloads/openwrt-rk3328'
make[3]: Entering directory '/home/user/Downloads/openwrt-rk3328/scripts/config'
set -e; mkdir -p ./; trap "rm -f ./.mconf-cfg.tmp" EXIT; { /bin/sh mconf-cfg.sh; } > ./.mconf-cfg.tmp; if [ ! -r mconf-cfg ] || ! cmp -s mconf-cfg ./.mconf-cfg.tmp; then true '  UPD    mconf-cfg'; mv -f ./.mconf-cfg.tmp mconf-cfg; fi
make[3]: Leaving directory '/home/user/Downloads/openwrt-rk3328/scripts/config'
make[3]: Entering directory '/home/user/Downloads/openwrt-rk3328'
make[3]: Leaving directory '/home/user/Downloads/openwrt-rk3328'


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

make[2]: Leaving directory '/home/user/Downloads/openwrt-rk3328'
make[2]: *** No rule to make target '.config', needed by '/home/user/Downloads/openwrt-rk3328/staging_dir/target-_/stamp/.target_prereq'.  Stop.
make[1]: *** [/home/user/Downloads/openwrt-rk3328/include/toplevel.mk:208: prereq] Error 2
make: *** [/home/user/Downloads/openwrt-rk3328/include/toplevel.mk:228: world] Error 2

Have you read through the build instructions for OpenWRT? You've to run "make menuconfig" & it should work.

Compile for me proceeds beyond this, but it get stucks at a "cannot find dependency cgi-io for luci-base" error at a future point. Googling this seems to indicate its a feed / packages issue. Will try again in a few days... But let me know if anyone sees an issue here already!


RE: openwrt for the rock64 - stamasd - 02-12-2022

It looks like the CanadianBacon git repo is gone...
Tried the official rk3328 branch, I get the same errors as above.
Code:
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency cgi-io for luci-base
* pkg_hash_fetch_best_installation_candidate: Packages for luci-base found, but incompatible with the architectures configured
* pkg_hash_check_unresolved: cannot find dependency uci-firewall for luci-app-firewall
* pkg_hash_fetch_best_installation_candidate: Packages for luci-app-firewall found, but incompatible with the architectures configured
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
*     cgi-io
*     uci-firewall
* opkg_install_cmd: Cannot install package luci.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/home/silviu/openwrt/owrt-rock64/openwrt'
make[1]: *** [package/Makefile:111: /home/silviu/openwrt/owrt-rock64/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/silviu/openwrt/owrt-rock64/openwrt'
make: *** [/home/silviu/openwrt/owrt-rock64/openwrt/include/toplevel.mk:230: world] Error 2



RE: openwrt for the rock64 - CanadianBacon - 03-09-2022

Hey, sorry about the long hiatus, I've just been able to get around to working on this again.

I've got OpenWRT running on the Rock64.

My branch is at https://github.com/CanadianBaconBoi/openwrt/tree/rock64. These changes are from "lucize", I just ported them to a newer openwrt version. Original source here.

Issue is that you have to compile all of the packages you need at build time because it's running kernel version 5.10.103
In light of this I have compiled all packages against kernel 5.10.103 and created a repo at openwrt.cdnbcn.net.
These packages will be linked so you can host your own repo too Big Grin.
You will have to modify the file "/etc/opkg/distfeeds.conf" in openwrt and swap them out for my or your repo.

Attached is also a build config so you can recreate the SD card image with the source from my repo without having to configure the image yourself.
Just copy the file to your <buildroot> and rename it to ".config".

All packages are confirmed working with the attached image. I hope I can help some people out with this Big Grin.

Source Repo: https://github.com/CanadianBaconBoi/openwrt/tree/rock64
SD Card Image: https://drive.google.com/file/d/10hqytuL7bTTc3tAjpW-nrOawHUoi3T75/view?usp=sharing
Build Config: https://drive.google.com/file/d/1BhI6juXNFB36-JSQnTCDbQAONRakaT_s/view?usp=sharing

Custom Repo: http://openwrt.cdnbcn.net
Repo Packages: https://drive.google.com/file/d/1tJC3kNyQ_5xZrGaVHj1pcqj90ZkPCE7n/view?usp=sharing


RE: openwrt for the rock64 - CanadianBacon - 03-10-2022

Quick update, a kernel patch that happened between building the repo and building the boot image broke alot of the kmods. Going to rebuild keeping this in mind.


RE: openwrt for the rock64 - CanadianBacon - 03-12-2022

OKAY. My smooth brain failed to find the most basic solution but now, everything is hosted at http://openwrt.cdnbcn.net

From the sd card image, to the kmods and packages, to the build configs. This took too many hours.


RE: openwrt for the rock64 - helpmerock - 03-13-2022

(03-12-2022, 06:59 PM)CanadianBacon Wrote: OKAY. My smooth brain failed to find the most basic solution but now, everything is hosted at http://openwrt.cdnbcn.net

From the sd card image, to the kmods and packages, to the build configs. This took too many hours.

Thank you very much CanadianBacon,

However, rock64 can not boot from the SC card image you have posted (ext4). I tried different burning tools but rock64 not booting.


RE: openwrt for the rock64 - CanadianBacon - 03-13-2022

(03-13-2022, 04:24 PM)helpmerock Wrote:
(03-12-2022, 06:59 PM)CanadianBacon Wrote: OKAY. My smooth brain failed to find the most basic solution but now, everything is hosted at http://openwrt.cdnbcn.net

From the sd card image, to the kmods and packages, to the build configs. This took too many hours.

Thank you very much CanadianBacon,

However, rock64 can not boot from the SC card image you have posted (ext4). I tried different burning tools but rock64 not booting.

I've got it working using Win32DiskImager, balena and rufus don't work for me.

Had to run gzip -d "file" first because win32diskimager doesn't support gzipped files. If you're on linux, try dd.


RE: openwrt for the rock64 - CanadianBacon - 03-13-2022

I've created a new thread @ https://forum.pine64.org/showthread.php?tid=16305.
Thought this would be better with a new one.