Problem using imagebuilder

I am trying to build my own image for the Raspberry Pi 4 that adds 2 packages.
I tried

$ make manifest PACKAGES="kmod-usb-net-rtl8152"

Collected errors:
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_core http://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/packages). Skipping.
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_base http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/base). Skipping.
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_luci http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/luci). Skipping.
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_packages http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/packages). Skipping.
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_routing http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/routing). Skipping.
 * opkg_conf_parse_file: Duplicate src declaration (openwrt_telephony http://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a72/telephony). Skipping.

The other package I want to add it:

$ make manifest PACKAGES="kmod_mt76"

Collected errors:
 * opkg_install_cmd: Cannot install package kmod_mt76.
make[2]: *** [Makefile:157: package_install] Error 255
make[1]: *** [Makefile:127: _call_manifest] Error 2
make: *** [Makefile:207: manifest] Error 2
$ make info
Current Target: "bcm27xx/bcm2711"
Current Revision: "r12647-cb44ab4f5d"
Default Packages: base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd urandom-seed urngd bcm27xx-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835 kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 partx-utils mkf2fs e2fsprogs dnsmasq iptables ip6tables ppp ppp-mod-pppoe firewall odhcpd-ipv6only odhcp6c kmod-ipt-offload
Available Profiles:

rpi-4:
    Raspberry Pi 4B
    Packages: cypress-firmware-43455-sdio cypress-nvram-43455-sdio-rpi-4b kmod-brcmfmac wpad-basic iwinfo
    hasImageMetadata: 1
    SupportedDevices: raspberrypi,4-model-b

I also want to remove the cypress/broadcom driver since I don't use the builtin wifi.

I did:

make image PROFILE=rpi-4 PACKAGES="kmod-usb-net-rtl8152 kmod-mt76 luci usbutils wireless-tools luci-app-nlbwmon"

after deleting everything in the dl directory.
I have an image I haven't tried yet.
If it works then I might try removing the cyprus stuff.

$ make image PROFILE=rpi-4 PACKAGES="kmod-usb-net-rtl8152 kmod-mt76 luci usbutils wireless-tools luci-app-nlbwmon -cypress-firmware-43455-sdio -cypress-firmware-43455-sdio-rpi-4b -brcmfmac-firmware-usb -kmod-brcmfmac -kmod-brcmutil"

Did it work? I tried this but no sucess. Same error.

In a new directory:

wget https://downloads.openwrt.org/snapshots/targets/bcm27xx/bcm2711/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64.tar.xz

tar -xf openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64.tar.xz

cd openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/

make image PROFILE=rpi-4 PACKAGES="kmod-usb-net-rtl8152 kmod-mt76 kmod-mt76x2u kmod-mt76x02-usb kmod-mt76x2 kmod-mt76-usb kmod-mt76x2-common kmod-mt76x2u luci usbutils wireless-tools pciutils luci-app-nlbwmon sqlite3-cli bcm27xx-userland openssl-util htop wireguard wireguard-tools kmod-wireguard luci-app-wireguard nut-upsc nut-server nut-driver-usbhid-ups nut-upsmon luci-app-nut vpn-policy-routing luci-app-vpn-policy-routing python3 sysfsutils -cypress-firmware-43455-sdio -cypress-firmware-43455-sdio-rpi-4b -brcmfmac-firmware-usb -kmod-brcmfmac -kmod-brcmutil"

That compiles fine.
I don't have my pi at the moment to test if it runs but it did in July with those commands.

What error do you get?

1 Like

I'm using for another device. A (very) old one. But the error is the same (Duplicate src declaration). Deleting dl folder did not work. I will try downloading again.