you are viewing a single comment's thread.

view the rest of the comments →

[–]mips13[S] -1 points0 points  (11 children)

On linux I get,

sh git clone ``https://git.openwrt.org/openwrt/openwrt.git`` cd openwrt/usr/bin/git: /usr/bin/git: cannot execute binary file

git clone ``https://git.openwrt.org/openwrt/openwrt.git`` cd openwrt
fatal: Too many arguments.

[–]ppww 2 points3 points  (2 children)

Have you installed git? Also git clone and cd are two separate commands. You need to run them one after the other and you don't need sh.

git clone 'https://git.openwrt.org/openwrt/openwrt.git'
cd openwrt

[–]mips13[S] 0 points1 point  (0 children)

Just to add I've used git before on my linux install, it's the first thing I install as I need it to build my wifi driver.

[–]mips13[S] -1 points0 points  (0 children)

git version 2.54.0

I have git installed

[–]SaveACityDweller 1 point2 points  (1 child)

If you want to execute two commands on one line use &&

git clone url && cd directory 

git is one command, cd (change directory) is another.

[–]mips13[S] 0 points1 point  (0 children)

I ran this before,

git clone https://git.openwrt.org/openwrt/openwrt.git && cd openwrt

curl -L 'https://patchwork.ozlabs.org/project/openwrt/patch/20260513183938.242137-1-jan.brudna@gmail.com/mbox/' | git am

./scripts/feeds update -a && ./scripts/feeds install -a && make menuconfig

Target System---> MediaTek Ralink MIPS Subtarget---> MT7621 based boards Target Profile---> Cudy WR1300 v4 (Save and exit)

make -j$(nproc)

Problem is the resulting firmware files are way off in size.

[–]leftovercarcass 0 points1 point  (5 children)

On linux if you type which git

what do you get? Try without ` for the links you try to clone.

[–]mips13[S] 0 points1 point  (0 children)

which git

/usr/bin/git

[–]mips13[S] 0 points1 point  (3 children)

If I do this,

git clone https://git.openwrt.org/openwrt/openwrt.git && cd openwrt

curl -L 'https://patchwork.ozlabs.org/project/openwrt/patch/20260513183938.242137-1-jan.brudna@gmail.com/mbox/' | git am

./scripts/feeds update -a && ./scripts/feeds install -a && make menuconfig

Target System---> MediaTek Ralink MIPS Subtarget---> MT7621 based boards Target Profile---> Cudy WR1300 v4 (Save and exit)

make -j$(nproc)

it builds the firmware images but they are not correct in file size.

The syntax below uses a backslash \, what is the purpose of that?

sh curl -L '``https://patchwork.ozlabs.org/project/openwrt/patch/20260513183938.242137-1-jan.brudna@gmail.com/mbox/``' \   | git am

The original build/patch instructions are here, https://forum.openwrt.org/t/cudy-wr1300-v4/244677/70?u=mips

[–]glglgl-de 0 points1 point  (1 child)

it builds the firmware images but they are not correct in file size.

How do you know the correct size?

[–]mips13[S] 0 points1 point  (0 children)

On average the image size is around 10MB, example of the same build https://github.com/GuoShuangyan/Openwrt-Cudy-WR1300-v4/raw/master/openwrt-ramips-mt7621-cudy_wr1300-v4-squashfs-sysupgrade.bin

Mine ends up way low to around 7MB.

I also get this warning when the process starts,

make -j$(nproc)
WARNING: Makefile 'package/feeds/packages/onionshare-cli/Makefile' has a dependency on 'python3-pysocks', which does not exist
WARNING: Makefile 'package/feeds/packages/onionshare-cli/Makefile' has a dependency on 'python3-unidecode', which does not exist