Problem during my image build

yes I thought I had 19.x but after 3-4 failed, I dont know what I did but finaly I got snapshot

19.07 != 19.07.6 != master, if you want master:

git checkout master

if you want ...

1 Like

ok good thanks, and if I am on snapshot, if I want the 19.07.6 branch, Do I have to restart my building from scratch? Or, ;

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

git checkout master ....... + make

You are conflating master and 19.x, if you want 19.x you appear to already be there, if you want to restrict to the latest stable tag 19.07.6, I guess. I just build master (aka. snapshot), never understood the rational behind building yesterdays code when building your own image.

ok, if I want to sysupgrade, I just want to be sure if I can.... 19.x vs snap etc

sysupgrade from 19.x to master should not be an issue, just don't keep config. Today's master to tomorrows, keeping config, not usually an issue, But it does behove one to monitor the git log as very once in a while you will get bitten. You have to decide on what it is you are after, long running flash and forget, or the latest changes that may be of interest.

don't know if some have that problem but since I ''try'' to build an image my laptop (pretty good) has some bugs. I mean, when the image is compiling, my laptop's led for SSD/HDD, turns on and flashes and the system freezes.... after some sec or a minute, it becomes ok but I need to restart, the terminal is stopping and my web browser is closed etc...

never seen that before compiling.........

when I do ; opkg update I dont have too much results; snapshots does not have a lot of packages if I understand well ? Cause, ie; I can't load ''curl'' and some others..

Downloading https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages/Packages.sig
Signature check passed.

I already said on our private message that you should not tinker with the download repo options until you understand them.

Update & install feeds, start menuconfig with empty .config, select the router and compile, and magically you should have a firmware that can "opkg update" most vanilla userspace luci/packages/routing/telephony feed packages.

As your distfeeds.conf seems to be almost empty (if opkg update finds no feeds), you have likely mixed 19.07 and master things in .config, or you have not properly updated feeds after switching branch. Or you have done something similar, so that your settings overwrite the defaults during the build

I strongly suggest that you start methodically.

  • select the correct branch
  • rm .config
  • rm -rf tmp (to clear all package definitions)
  • git pull
  • scripts/feeds update
  • scripts/feeds install -a
  • make menuconfig (select router, select LuCI, whatever)
  • make
1 Like

ok I try that,

cause serioulsy, I restarted from scratch.... I thought so..thanks again

and by * select correct branch* is git checkout master if I use master ?

1 Like

I did everything you mentionned, and I have a clean build.
very basic.

but still just some packages, but in my config I chose ''curl'' so I can use it.

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages/Packages.sig
Signature check passed.
root@OpenWrt:~# 

here my ''feeds.conf;

src-git packages https://git.openwrt.org/feed/packages.git^f9ecc4344
src-git luci https://git.openwrt.org/project/luci.git^fb6e62e
src-git routing https://git.openwrt.org/feed/routing.git^ea4a3f2
src-git telephony https://git.openwrt.org/feed/telephony.git^4d2bb84
src-git freifunk https://github.com/freifunk/openwrt-packages.git^98e83ff

By default there is no feeds.conf, and the definitions are on feeds.conf.default
So, you are defined them specially, and for some reason you use a "pinned" commit approach.

This is from my own wrt3200acm buildroot:

perus@ub2010:/Openwrt/wrt3200$ cat feeds.conf
cat: feeds.conf: No such file or directory

perus@ub2010:/Openwrt/wrt3200$ cat feeds.conf.default 
src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
#src-git telephony https://git.openwrt.org/feed/telephony.git
#src-git freifunk https://github.com/freifunk/openwrt-packages.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git management https://github.com/openwrt-management/packages.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed

And it produces nicely a working distfeeds in the router, and opkg update works:

 OpenWrt SNAPSHOT, r15598-1fb413e657
 -----------------------------------------------------

root@router3:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/base
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/routing

root@router3:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.sig
Signature check passed.

I guess that your creating a pinned feeds.conf is the reason for your problems. The buildbot download repos are not pinned, so you target non-existing downloads and they a omitted from the distfeeds file, so something like that...

I have that too:

src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git freifunk https://github.com/freifunk/openwrt-packages.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git management https://github.com/openwrt-management/packages.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed

and here, I just have ''core''

root@OpenWrt:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/packages

You feeds.conf overrides the normal feeds.conf.default. The normal deafault contents are ignored, as you provide your own wishes as feeds.conf

I dont know why it is there, I removed my config before starting again.
I need to remove the ''feeds.conf'' ? and update another time?

Yes. It is not part of normal builds.

(Of course, if you want to ignore normal things and specify something won/special/fixed, then you might need it)

After removing it, your feeds will be re-pulled/created from the normal places.
So, you need the feeds update and install steps, again.
and only then menuconfig

1 Like

here what I have in my folders.


here what I did, after many try. I did restart from scratch but some more steps did the trick.

thanks to @anon68513369

Just delete the whole openwrt folder

Do a fresh git clone openwrt.git

Open folder

Scripts feeds update and install

Make menuconfig

**Select only multiple devices chipset and your devices**

**Save and exit**

Make defconfig

Make menuconfig and than select your packages

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.