R7000 default firmware question

2 posts / 0 new
Last post
gordon_c
gordon_c's picture
R7000 default firmware question
Hello
 
I have a question regarding the Netgear r7000 firmware. I tried to build it from scratch and maybe customize it later, after I succeed with the default build.
 
I took the build system from https://github.com/hajuuk/R7000 and followed the instructions. The issue occurs after I flash the image via tftp, as it seems to hang.
 
After some investigations, I found out that the hang comes from https://github.com/hajuuk/R7000/blob/master/components/opensource/linux/... , at line 987, where off = offset + (le32_to_cpu(trx->offsets[1]) & ~mask) - blocksize; keeps setting the off variable to the same value, so it generates an infinite loop.
 
I tried to comment that section, but the call cannot find the SQUASHFFS_MAGIC bytes, and cannot load the filesystem.
 
As I said, the issue occurs in a clean build, with no modifications.
 
Did anybody experienced the same issue? I followed the basic instructions to build the image.
 
Thank you.
 
gordon_c
gordon_c's picture
The issue is that le32_to_cpu

The issue is that le32_to_cpu(trx->offsets[1]) is evaluated to 0, in this scenario.

Has anyone run into the same problem?