openwrt for the rock64
#21
(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.
  Reply
#22
Photo 
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


Attached Files Thumbnail(s)
   
  Reply
#23
(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!
  Reply
#24
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
  Reply
#25
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/10hqytuL...sp=sharing
Build Config: https://drive.google.com/file/d/1BhI6juX...sp=sharing

Custom Repo: http://openwrt.cdnbcn.net
Repo Packages: https://drive.google.com/file/d/1tJC3kNy...sp=sharing
  Reply
#26
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.
  Reply
#27
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.
  Reply
#28
(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.
  Reply
#29
(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.
  Reply
#30
I've created a new thread @ https://forum.pine64.org/showthread.php?tid=16305.
Thought this would be better with a new one.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 5 868 10-09-2024, 01:03 PM
Last Post: mara
  arch rock64 does not boot nemnob 1 901 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 42,481 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 80,168 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 1,819 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 606 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 1,028 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 1,027 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 10,849 10-12-2023, 05:14 PM
Last Post: tpaul
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 133 214,710 10-09-2023, 03:31 AM
Last Post: mara

Forum Jump:


Users browsing this thread: 1 Guest(s)