Rebuild Image / Custom Image

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

if you don't want to build your own images, with custom FS size - https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

I need to create an image in case my old one on the router breaks so I have one I can flash immediately.

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...

Yes but :confused:

When tar fails to build, the typical reason is that you are building as root.
Use a non-root account.

i think it works without root, thank you

There's usually a warning about using root, when you start the build, I guess you ignored it.

ohh noooooo

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.

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

I use a different system, I think it's fine.

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

idk whats wrong :confused:

https://sshup.bs002.de/z2JqXIXmBA/build.log