Build for Netgear R7800

No.
There is discussion on developer mailing list but there seems to be kernel size limitations that affect R7800.

You should also read the r7800 exploration thread in forum, as that thread is for this kind of generic device development discussions.

the packages are built but after update lists: Signature check failed.

for now using #option check_signature 1

You can manually download the packages.
Or I think that you can override the package list signature check with opkg options.

The reason for the signature failure is that I compiled my own build before jow had added the 18.06 keys to the keyring that is included in the build.

You could also manually copy the 18.06 key to your key directory.
https://git.openwrt.org/?p=keyring.git;a=shortlog

My next 18.06 build will naturally then contain the key.

@steom - after the packages got built, I got the packages on my R7800 with git-18.135.22030-f3b3051 to work when I used #option check_signature 1

@hnyman - thanks for your 18.06 build. Do you know if the 18.1 release will use kernel 4.14 with hardware nat/flow offloading. A link in the 7800 exploration thread showed a patch where they seemed to overcome the kernel size limitation on R7800.

I know. In 18.06 the ipq806x target uses kernel 4.9.
No offloading.

18.06 has already been branched, so now new major features or major kernel version bumps will happen in 18.06.

Maybe then for 18.11 or whatever will be the next one.

The kernel partition of all Netgear ipq806x devices is sadly only 2 MB large, with kernel 4.14 we need a tad less than 2.3 MB. If you'd treat ipq806x like a -tiny target (using CONFIG_OPTIMIZE_INLINING=y, CONFIG_CC_OPTIMIZE_FOR_SIZE=y, CONFIG_KERNEL_DEBUG_INFO=n, CONFIG_KERNEL_DEBUG_KERNEL=n, CONFIG_KERNEL_KALLSYMS=n, ...), you can still fit into its original partition, but bang on the limit of 2'097'152 bytes, so you'd be living on a razor's edge.

Therefore my proposed patch collection for kernel 4.14 support resizes the kernel partition for all affected routers to at least 3 MB (4 MB in case of the r7800), as mentioned in that commit, installing an image with a different partition split (on NAND devices) requires flashing via tftp recovery (in both directions). Unfortunately the constraints of 2 MB don't leave many alternatives. See http://lists.infradead.org/pipermail/openwrt-devel/2018-May/012332.html and http://lists.infradead.org/pipermail/openwrt-devel/2018-May/012344.html for details.

Edit: Just to clarify, sysupgrade can't cope with different partition splits on NAND, reverting to OEM or 2-MB-kernel-partition firmware images is possible via push-button tftp recovery (which you have to use for migrating to 4-MB-kernel-partitions as well), so -while disruptive- it's not a one way street.

1 Like

Your guess then, will 4.14 kernel fit sometime in the future?
Btw, how come it's bigger when it's mostly based on modules and is hardware specific built? Did they really change that much generic stuff?

That is not what I said, on the contrary.

owrt1806-r6917-8948a78862-20180520

18.06 buildbot signing keys have been added to the keyring today, so the new build is able to normally download 18.06 packages with opkg.

Fastpath is included? How to enable?

Fastpath is not enabled. I tested it a few months ago but did not benefit from it.

If you want it, build the image by yourself. (And use dissent's cleaned up patch, available from GitHub pull requests. Gwlim's original approach contains lot of garbage.)

Getting this error below with that build. Not sure what file I need to remove.

opkg update
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ipq806x/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ipq806x/generic/packages/Packages.sig
Signature check failed.
Remove wrong Signature file.

works for me.

 OpenWrt 18.06-SNAPSHOT, r6917-8948a78862
 -----------------------------------------------------
root@LEDE:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ipq806x/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ipq806x/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/arm_cortex-a15_neon-vfpv4/telephony/Packages.sig
Signature check passed.

I have flashed quite normally with sysupgrade while keeping settings.
There shouldn't be any specific setting that would remove keys added by the build.

You can debug just by "cat" the keys in /etc/opkg/keys . One of the keys should be the 18.06 build key:

 OpenWrt 18.06-SNAPSHOT, r6917-8948a78862
 -----------------------------------------------------
root@LEDE:~# cat /etc/opkg/keys/*
untrusted comment: OpenWrt 18.06 public key
RWQQNaxzzE5Z41cVmEh2rilAPKLsyfPKm+S4BJWA1Yv+LP1hKebmGtXi
untrusted comment: Local build key
RWQX7BTw0VWIJB+Kk0d84XoiWWVHn6/5mPzabfrileOgOTpVlcXmcT/M
untrusted comment: LEDE usign key of Hans Dedecker
RWRRUfaUIMP1CAL9wvk3ABBHdUM+3SjMvIuJlK68b3b04Pw3wiaiAfxX
untrusted comment: LEDE usign key of Jo-Philipp Wich
RWRypX8hkbIR4FLhtx5pjXcAIsI1iPUIcI5bMG8jZoiCkrwTstECBPqL
untrusted comment: LEDE 17.01 "Reboot" public key
RWR5LZ2bOfGA3FGliZosEDhodiAKDOISmQs/mmjo4rhcbFtqkibJqMzo
...

Thx, turned out I was using your earlier build from today.

R7800-owrt1806-r6914-54a864d914-20180520-2010-sqfs-sysupgrade

Yeah, with the earlier build I noticed that although devs had added the 18.06 key to the keyring, they had not updated the keyring Makefile. After I prompted them, devs updated that Makefile, and the r6917 build finally had the new keys.
https://git.openwrt.org/?p=openwrt/openwrt.git;a=shortlog;h=8948a78862abd975422d742152408249de6eadcf

So are the master builds still ahead of the 18.06 builds?

Do you mid sharing a link to this PR? I am not seeing it in the OpenWRT repo: there are only two unrelated PRs from dissent1 there.

Reference can be found in the fast path thread...
Pull request is on the old LEDE GitHub site:

Sure. 18.06 was branched off the master a week ago, and will not see much actual development in future. Mostly bug fixes etc.

All new stuff gets into master. E.g. the Luci rollback is now already merged into master.

So master will go forward, while 18.06 will remain stable by having only minor changes.

1 Like

Just upgraded to R7800-master-r6931-4ff23afdcc-20180517-2124-sqfs-sysupgrade. Not getting wireless speed above 25mbit/s. Any idea on how to figure out the cause?
Wired speed is fine.