Thank you for your suggestions and your explanations!
There are no other APs around, the neighbours are far away so I don't think it's a problem of interference.
I set the 2.4ghz to channel 6, but it seems to behave the same. Are you in auto for both bands?
For 5ghz, it could be as you say. I'm in Europe and all channels have restrictions (according to command iw reg get). If I set the country to India (no restrictions there ...), it keeps the channel I choose in the UI (but the network is still not stable).
What puzzles me is that no matter what setting I put, the situation is the same.
For example, I could connect with my phone from the garden with original fw whereas with openwrt, it doesnt even list the access points there. Since there is no other network around, I wonder whereas it could be a power issue. Maybe openwrt driver is not setting the transmit power to the max even though it says it is?
How would I compare this to the original image builder to get an idea about the changes? I had a look at the image builder files and there are many ipk packages that are gzip compressed. Since the image builder is used to add precompiled packages it is pretty useless to diff them to the original image builder via e.g. GitHub … Is there some step by step howto to get a reproducible image? That would be awesome!
I am using the system image provided by @lrussell887. I use my CR 1300 as Ethernet Switch and Access point, everything works like a charm, so thanks for the work.
I am new to openwrt and have some questions.
Is anybody currently working on a pull request, so openwrt will officially support the Cudy WR 1300? Will this mean that new firmware versions will automatically be created for this hardware? I am not sure, if openwrt has some kind of CI/CD behind, that builds each profile automatically...
After installing openwrt I see that I am still running a quite old Kernel (4.14, this is from 2017). Is this kernel part of the image I flashed or am I still using the kernel provided by cudy?
I am trying to build my own image with imagebuilder of openwrt 19.7.5. Therefore I downloaded the imagebuilder. Next I wanted to apply the pach that you described above. But I have no ide waht i shall do with the lines after the tar command and before the cat. I thought this shall be some kind of patch, but if I paste the date in patch it tell me that my input is garbage. Can you tell me, what I have to do with that lines?
With MODIFY, just to edit the file and doing the changes in it.
I suggest you to compiling rather than using image builder. I think I get some kernel magic numer issue installing some kernel modules packages, when image was built using image builder.
i don't think you can do this by using imagebuilder, this is only for cases where you want to change packages, configuration and similar, not actual code.
$ tar xf openwrt-imagebuilder-19.07.5-ramips-mt7621.Linux-x86_64.tar.xz
$ cd openwrt-imagebuilder-19.07.5-ramips-mt7621.Linux-x86_64
$ patch -p1 ~/cudy_openwrt_imagebuilder_19.07.5.patch
$ cat build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/vmlinux \
build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/image-WR1300.dtb \
>cudy_wr1300-kernel
$ ./staging_dir/host/bin/lzma e -lc1 -lp2 -pb2 cudy_wr1300-kernel cudy_wr1300-kernel.lzma
$ ./staging_dir/host/bin/mkimage -A MIPS -O linux -T kernel -C lzma \
-a 8001000 -e 80001000 -n "MIPS OpenWrt Linux-4.14.195" \
-d cudy_wr1300-kernel.lzma \
build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/cudy_wr1300-kernel.bin
$ make image PROFILE=cudy_wr1300 FILES=files PACKAGES=luci
So mostly following jgoras description. Thereafer I found the image in bin/targets/ramips/mt7621/openwrt-19.07.5-ramips-mt7621-cudy_wr1300-squashfs-sysupgrade.bin. I flashed this to my WR 1300 and it seems to work.
Thanks, @jgora! Could you perhaps create a patch file for the sources? Or (even better) make your git repo accessible? If not, I will try it on my own to build from sources with your description.
thanks, I was able to build the image also from sources with your sources. I just merged your changes into the actual openwrt 19.7 branch.
Is anything else necessary to start a pull request to openwrt? If that`s all, would you like to create the pull request? I would really like to get it into official openwrt.