BS002
November 25, 2023, 4:50pm
1
hello everyone, i would like to use an existing image to extend the packages as follows
i have a R3 and R3 mini, here i would like to use the finished image to expand the memory and add things like adguard etc. is there a manual for this? so far i can only find how to build an image, but not how to edit and rebuild an existing one
frollic
November 25, 2023, 5:11pm
2
BS002
November 25, 2023, 5:38pm
3
I need to create an image in case my old one on the router breaks so I have one I can flash immediately.
efahl
November 25, 2023, 5:44pm
4
Have you tried out the firmware builder? https://firmware-selector.openwrt.org/ You should be able to make one that contains all your extra packages and startup scripts for quick recovery...
hnyman
November 25, 2023, 6:12pm
6
When tar fails to build, the typical reason is that you are building as root.
Use a non-root account.
BS002
November 25, 2023, 6:20pm
7
i think it works without root, thank you
frollic
November 25, 2023, 6:27pm
8
There's usually a warning about using root, when you start the build, I guess you ignored it.
Try running make V=s 2>&1 | tee build.log
Then you will have the necessary information on the error to look further into the issue.
BS002
November 25, 2023, 7:03pm
11
Enabling urngd
Enabling wpad
sed -i "s/Installed-Time: ./Installed-Time: 1700932606/" /home/debian/openwrt/build_dir/target-mips_24kc_musl/root-ath79/usr/lib/opkg/status
rm -rf /home/debian/openwrt/build_dir/target-mips_24kc_musl/root-ath79/boot /home/debian/openwrt/build_dir/target-mips_24kc_musl/root-ath79/tmp/ /home/debian/openwrt/build_dir/target-mips_24kc_musl/root-ath79/usr/lib/opkg/info/.postinst /home/debian/openwrt/build_dir/target-mips_24kc_musl/root-ath79/usr/lib/opkg/lists/* /home/debian/openwrt/build_dir/target-mips_24kc_musl/root-ath79/var/lock/*.lock
find /home/debian/openwrt/build_dir/target-mips_24kc_musl/root-ath79/ -mindepth 1 -execdir touch -hcd "@1700932606 " "{}" +
find: The relative path 'Files' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove that entry from $PATH
make[2]: *** [package/Makefile:73: package/install] Error 1
make[2]: Leaving directory '/home/debian/openwrt'
make[1]: *** [package/Makefile:123: /home/debian/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/debian/openwrt'
make: *** [/home/debian/openwrt/include/toplevel.mk:232: world] Error 2
BS002
November 25, 2023, 7:22pm
12
I use a different system, I think it's fine.
hnyman
November 25, 2023, 7:40pm
13
First guess would be that you are using windows wsl2 to build, and your path includes "Program Files", which causes error.
Read advice about wsl usage, if that is true.
1 Like
BS002
November 26, 2023, 6:25pm
14