OpenWrt Forum Archive

Topic: There is no tag for 15.05.1

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

How can I pull the exact source for it? What is the svn id?

Pilot6 wrote:

How can I pull the exact source for it? What is the svn id?

it uses a 15.05 tree, pull it and reset to the following commit (used to build currently uploaded files)
87e9837 openssl: update to 1.0.2f (fixes CVE-2016-0701, CVE-2015-3197)

(Last edited by stas2z on 17 Mar 2016, 10:28)

Thanks. That what I needed.

There is another problem.

"opkg update" still pulls from 15.05, not from 15.05.1 repository.
The version is still shown 15.05. How can I change it?

Where is the version and the opkg URL stored?

(Last edited by Pilot6 on 17 Mar 2016, 11:25)

When I add URL to opkg.conf it pulls both.

Pilot6 wrote:

There is another problem.

"opkg update" still pulls from 15.05, not from 15.05.1 repository.
The version is still shown 15.05. How can I change it?

Where is the version and the opkg URL stored?

in your current .config smile
create new default config and you'll see changes

(Last edited by stas2z on 17 Mar 2016, 11:38)

In 15.05.1 the opkg config should be like this:

root@OpenWrt:~# cat /etc/opkg/distfeeds.conf
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/base
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/telephony
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/routing
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/management

root@OpenWrt:~# cat /etc/opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature 1

But the 15.05 sources still point to 15.05 packages, so you need to manually set the correct option for your build. Otherwise the built firmware still points to the wrong place.

If you want to build your own firmware that pulls opkg packages from the 15.05.1, you need to set this in your .config file:

# opkg download directory: 15.05.1 release packages                                            
CONFIG_IMAGEOPT=y                                                                              
CONFIG_VERSIONOPT=y                                                                            
CONFIG_VERSION_NUMBER="15.05.1"                                                                
CONFIG_VERSION_REPO="http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages"

(Of course, adjust the platform "ar71xx/generic" according to your device...)

Alternatively you can set the same option in "make menuconfig".
Image configuration--> Version configuration options
--> Release version number
--> Release repository

Actually, if you are building your own firmware, you should build from the currect tip of the 15.05 branch, currently r49007. Then you get also all the fixes since January (when 15.05.1 was built).

(Last edited by hnyman on 17 Mar 2016, 11:52)

I do not see anything regarding the version in .config

oh. sorry, yeah, nothing changed in the build scripts about version
so you need make a few changes in your .config as hnyman said

One more alternative for you:
copy the 15.05.1 belease build config as your .config and start from that.
E.g. for ar17xx/generic:  https://downloads.openwrt.org/chaos_cal … onfig.diff
That is the output of ./scripts/diffconfig.sh that can be used as a "seed .config" which gets expanded to a full .config by "make defconfig" or "make menuconfig"

But the config used for the release builds also the Imagebuilder, SDK and all possible packages, so you need to cut those options away.

This would be the base config for normal use (base image + Luci + CC15.05.1 version options):

CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_PACKAGE_luci=y
CONFIG_IMAGEOPT=y
CONFIG_VERSIONOPT=y
CONFIG_VERSION_DIST="OpenWrt"
CONFIG_VERSION_FILENAMES=y
CONFIG_VERSION_HWREV=""
CONFIG_VERSION_MANUFACTURER=""
CONFIG_VERSION_NICK="Chaos Calmer"
CONFIG_VERSION_NUMBER="15.05.1"
CONFIG_VERSION_PRODUCT=""
CONFIG_VERSION_REPO="http://downloads.openwrt.org/%n/%v/%S/packages"

EDIT:
I practiced all the variations yesterday when I updated my own CC15.05 build for 15.05.1 ;-)

(Last edited by hnyman on 17 Mar 2016, 11:56)

There is no Version configuration options in menuconfig.
But that's not a problem.

I know that I can build from HEAD of the repository, but the problem is that it has a different kernel and kernel packages will not install from Openwrt repos.

Pilot6 wrote:

There is no Version configuration options in menuconfig.

There are version control options, but you have to first toggle "Image configuration" active, then you can enter its submenu.
Then same thing for "Version configuration options"

 .config - OpenWrt Configuration
 > Image configuration > Version configuration options ──────────────────────────────────────
  ┌──────────────────────────── Version configuration options ────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus      │  
  │  ----).  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M>   │  
  │  modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.       │  
  │  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable                   │  
  │ ┌───────────────────────────────────────────────────────────────────────────────────┐ │  
  │ │      --- Version configuration options                                            │ │  
  │ │      (OpenWrt) Release distribution                                               │ │  
  │ │      (Chaos Calmer) Release version nickname                                      │ │  
  │ │      (15.05.1) Release version number                                             │ │  
  │ │      (http://downloads.openwrt.org/%n/%v/%S/packages) Release repository          │ │  
  │ │      ()    Manufacturer name                                                      │ │  
  │ │      ()    Product name                                                           │ │  
  │ │      ()    Hardware revision                                                      │ │  
  │ │      [*]   Version number in filenames                                            │ │  
  │ │                                                                                   │ │  

(Last edited by hnyman on 17 Mar 2016, 12:04)

Oh, I see.

Do you know where in the source is the default version number? Is it include/version.mk?

hnyman,

Thanks so much!

I am building Openwrt with some of my patches. It is supposed to be used with the standard repos.

Pilot6 wrote:

Do you know where in the source is the default version number? Is it include/version.mk?

Version info is in several places, in a rather distributed way.

Mainly in these two:
https://dev.openwrt.org/browser/branche … version.mk
https://dev.openwrt.org/browser/branche … -config.in

Version name is mentioned also in these two:
https://dev.openwrt.org/browser/branche … etc/banner
https://dev.openwrt.org/browser/branche … oplevel.mk

And the svn revision is determined during build by using the latest commit.
https://dev.openwrt.org/browser/branche … /getver.sh

(Last edited by hnyman on 17 Mar 2016, 12:41)

I fixed it in the source. It was indeed

include/version.mk

That was enough to fix the repo issue.

Now I can have my fork OK.

(Last edited by Pilot6 on 17 Mar 2016, 12:42)

There is a default 15.05, that can be overridden by .config

Chaos Calmer sources were patched today with r49053 to have 15.05.1 as the default version:
http://git.openwrt.org/?p=15.05/openwrt … 9ef507ca25

If CC sources are now cloned or updated with git pull, the version number should default to 15.05.1 and opkg should download packages from .../15.05.1/... download repo.

Manual changes are not needed any more.

(Last edited by hnyman on 20 Mar 2016, 16:36)

The discussion might have continued from here.