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
  DietPi OS for ROCK64 MichaIng 40 16,793 11-15-2022, 05:28 PM
Last Post: Chubber
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 126 130,859 11-13-2022, 01:04 PM
Last Post: mara
  Using multiple UART's on Rock64. ramprasad 0 248 08-29-2022, 01:22 PM
Last Post: ramprasad
  Using multiple UART's on Rock64. sachineswar 0 212 08-29-2022, 12:31 PM
Last Post: sachineswar
  Rock64 v2 - did not work song / audio sqw200zu 1 371 07-29-2022, 12:08 PM
Last Post: sqw200zu
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 6 5,096 06-30-2022, 06:28 PM
Last Post: rookie_267
  my rock64 can't boot rookie_267 0 396 06-27-2022, 06:52 PM
Last Post: rookie_267
  Armbian for Rock64 pineadmin 57 51,183 04-01-2022, 03:16 PM
Last Post: TRS-80
  Fedora 35 on rock64 dafsjr 4 1,897 03-19-2022, 10:03 PM
Last Post: t4_4t
  Home Assistant Supervisor for rock64 karbon17 4 2,303 02-23-2022, 10:12 AM
Last Post: karbon17

Forum Jump:


Users browsing this thread: 1 Guest(s)