Auc binary download image only

Is it possible to have an option to only download the created image rather than flash it via the auc binary?

Essentially exiting before this point when the file has been downloaded

This is available in the luci package luci-app-attendedsysupgrade. You can request the image and have the opportunity to download the image prior to flashing.

The reason for suggesting this is that it could be used in a backup script to generate an image as part of the backup process. I was thinking I could keep track of the installed packages and if there is a change, run auc to generate a new image.

A total backup script could be

  1. Run opkg list-installed pipe to file
  2. diff output from 1 to previous output
  3. If different run auc to generate image
  4. Run sysupgrade -b always to create a backup
  5. Cleanup - only keep x backups and x sysuprade images from auc

Thoughts?

1 Like

I've made a patch for auc.c. I'm not sure how to compile it though to test. Any pointers anyone?

1738c1738
< 	fprintf(stdout, "Usage: auc [-b <branch>] [-B <ver>] [-c] %s[-f] [-h] [-r] [-y]\n",
---
> 	fprintf(stdout, "Usage: auc [-b <branch>] [-B <ver>] [-c] %s[-f] [-h] [-r] [-y] [-i]\n",
1756a1757
> 	fprintf(stdout, " -i\t\tdownload image only, do not flash\n");
1777a1779
> 	bool download_only = false;
1826a1829,1831
> 			
> 		if (!strncmp(argv[argc], "-i", 3))
> 			download_only = true;
2122a2128,2133
> 	
> 	if (download_only){
> 		fprintf(stdout, "image downloaded to /tmp/firmware.bin, exiting\n");
> 		rc=0;
> 		goto freebranches;
> 	}	

1 Like

Yeah, this is way better than my current workaround:

auc -n
... wait for it to finish and tell me where the bin is ...
wget <cut-n-pasted-file-name>

I don't suppose you know how to cross compile a binary? Its taking me a while to do something simple :laughing:

I've built the toolchain. Then I source the environment as follows (I've been experimenting)

# Set up paths and environment for cross compiling for openwrt
export STAGING_DIR=~/Downloads/owrt/openwrt/staging_dir
export TOOLCHAIN_DIR=$STAGING_DIR/toolchain-mipsel_24kc_gcc-12.2.0_musl
export TARGET_DIR=$STAGING_DIR/target-mipsel_24kc_musl
export LDCFLAGS=$TOOLCHAIN_DIR/usr/lib:$TOOLCHAIN_DIR/usr/include
export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/usr/lib:$TOOLCHAIN_DIR/usr/include
export PATH=$TOOLCHAIN_DIR/bin:$PATH

Then I run

mipsel-openwrt-linux-gcc auc_patched.c -o auc_patched

But I get

auc_patched.c:32:10: fatal error: uci.h: No such file or directory
   32 | #include <uci.h>
      |          ^~~~~~~
compilation terminated.

A bit of Googling I tried

mipsel-openwrt-linux-gcc auc_patched.c -o auc_patched -L${TARGET_DIR}/usr/lib -I${TARGET_DIR}/usr/include

But then I get

auc_patched.c: In function 'load_config':
auc_patched.c:370:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  370 |         url = uci_lookup_option_string(uci_ctx, uci_s, "url");
      |             ^
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `uci_lookup_section':
auc_patched.c:(.text+0x40): undefined reference to `uci_lookup_next'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `uci_lookup_option':
auc_patched.c:(.text+0xb8): undefined reference to `uci_lookup_next'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `blobmsg_add_u8':
auc_patched.c:(.text+0x6f4): undefined reference to `blobmsg_add_field'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `blobmsg_add_u32':
auc_patched.c:(.text+0x7a4): undefined reference to `blobmsg_add_field'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `blobmsg_add_string':
auc_patched.c:(.text+0x804): undefined reference to `blobmsg_add_field'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `blobmsg_open_table':
auc_patched.c:(.text+0x848): undefined reference to `blobmsg_open_nested'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `blobmsg_close_table':
auc_patched.c:(.text+0x888): undefined reference to `blob_nest_end'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `blobmsg_buf_init':
auc_patched.c:(.text+0x8c8): undefined reference to `blob_buf_init'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `__avl_find_element':
auc_patched.c:(.text+0xc68): undefined reference to `avl_find'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0xc84): undefined reference to `avl_find_lessequal'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0xca0): undefined reference to `avl_find_greaterequal'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `blobmsg_format_json':
auc_patched.c:(.text+0xd34): undefined reference to `blobmsg_format_json_with_cb'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `uloop_end':
auc_patched.c:(.text+0xd60): undefined reference to `uloop_cancelled'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0xd68): undefined reference to `uloop_cancelled'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `uloop_run':
auc_patched.c:(.text+0xd98): undefined reference to `uloop_run_timeout'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `ubus_invoke':
auc_patched.c:(.text+0xe14): undefined reference to `ubus_invoke_fd'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `load_config':
auc_patched.c:(.text+0xe44): undefined reference to `uci_alloc_context'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0xea0): undefined reference to `uci_load'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x10dc): undefined reference to `uci_free_context'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `pkglist_check_cb':
auc_patched.c:(.text+0x1c68): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `pkglist_req_cb':
auc_patched.c:(.text+0x22cc): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `board_cb':
auc_patched.c:(.text+0x2634): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x26d0): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `upgtest_cb':
auc_patched.c:(.text+0x2a18): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `open_output_file':
auc_patched.c:(.text+0x2bc4): undefined reference to `uclient_get_url_filename'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `request_done':
auc_patched.c:(.text+0x2d6c): undefined reference to `json_tokener_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x2d84): undefined reference to `uclient_disconnect'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `header_done_cb':
auc_patched.c:(.text+0x2e20): undefined reference to `uclient_http_redirect'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x2f1c): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `read_data_cb':
auc_patched.c:(.text+0x3248): undefined reference to `uclient_read'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3308): undefined reference to `uclient_read'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3374): undefined reference to `json_tokener_parse_ex'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3384): undefined reference to `json_tokener_get_error'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x33a0): undefined reference to `json_tokener_get_error'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x33d0): undefined reference to `blobmsg_add_json_element'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x33dc): undefined reference to `json_object_put'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `server_request':
auc_patched.c:(.text+0x368c): undefined reference to `json_tokener_new'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x36c8): undefined reference to `uclient_new'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3704): undefined reference to `uclient_http_set_ssl_ctx'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3738): undefined reference to `uclient_set_url'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3764): undefined reference to `uclient_connect'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x37c4): undefined reference to `uclient_http_set_request_type'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x37fc): undefined reference to `uclient_http_reset_headers'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3820): undefined reference to `uclient_http_set_header'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3854): undefined reference to `uclient_http_set_header'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x389c): undefined reference to `uclient_write'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x38b4): undefined reference to `uclient_request'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `request_target':
auc_patched.c:(.text+0x3c5c): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3cc4): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3d30): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3d80): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3dc0): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x3ef8): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `process_branch':
auc_patched.c:(.text+0x40dc): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x41f4): undefined reference to `avl_init'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x44dc): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x4a78): undefined reference to `avl_insert'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x4b38): undefined reference to `avl_insert'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `request_branches':
auc_patched.c:(.text+0x4c38): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x4ca0): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x4e04): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `free_branches':
auc_patched.c:(.text+0x4f14): undefined reference to `avl_delete'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x50b0): undefined reference to `avl_delete'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `add_upg_packages':
auc_patched.c:(.text+0x55c8): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5644): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5858): undefined reference to `avl_insert'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `request_packages':
auc_patched.c:(.text+0x5a8c): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5ae0): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5be4): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5bf4): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5c30): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `check_installed_packages':
auc_patched.c:(.text+0x5c74): undefined reference to `blob_buf_init'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5cd4): undefined reference to `ubus_lookup_id'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `req_add_selected_packages':
auc_patched.c:(.text+0x5dac): undefined reference to `blob_buf_init'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x5e0c): undefined reference to `ubus_lookup_id'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `get_image_by_type':
auc_patched.c:(.text+0x5fac): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o: in function `main':
auc_patched.c:(.text+0x6e58): undefined reference to `uloop_init'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x6e64): undefined reference to `ubus_connect'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x6f0c): undefined reference to `blob_buf_init'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x6f30): undefined reference to `ubus_lookup_id'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x7838): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x7898): undefined reference to `blobmsg_parse'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x7b00): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x7cf4): undefined reference to `uclient_get_url_filename'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x7f3c): undefined reference to `ubus_lookup_id'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x82a0): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x82b0): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x82c0): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x82d0): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x82e0): undefined reference to `blob_buf_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x834c): undefined reference to `uloop_done'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x8364): undefined reference to `ubus_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: auc_patched.c:(.text+0x8390): undefined reference to `uclient_free'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o:(.data+0x18): undefined reference to `avl_strcmp'
~/Downloads/owrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/12.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: /tmp/ccEGAfrB.o:(.data+0x3c): undefined reference to `avl_strcmp'
collect2: error: ld returned 1 exit status

To streamline that could do something like

wget -P /tmp -O `date +"%Y-%m-%d_%H%M%S"`.bin `auc -n -y 2>&1 | grep Image | grep -Eo
 https.*`

Sorry, not yet. I'm still farting about deciding on which machine I'm going to set up my build environment. (Ubuntu, Fedora, Alma, Mint??? None of the above? Probably Fedora...)

1 Like