Compare commits

...

786 Commits

Author SHA1 Message Date
Harald Welte 48a5cd9c10 update merge-all to use 201310 branch
It doesn't make sense to try to support too many different OE versions
like dora and krogoth from one branch. Also, the sysmocom 201310 and
201705 will use different versions of the osmcoom programs lile
osmo-bts.  Hence, we introduce a 201310 legacy branch which we merge
into this repository (which has maintenance updates for 201310 only),
rather than trying to follow master of those upstream meta-layers.
2017-06-14 11:57:22 +02:00
Daniel Willmann 742a86d746 Merge commit 'eca7186eaa09df1870cd9d96017ddc385cffb68f' into dora 2017-06-02 15:01:47 +02:00
Daniel Willmann 089587dd9a Merge commit '1327e40a0cc7dc8b4f56873034bdc3889fae6cb8' into dora 2017-06-02 15:01:45 +02:00
Daniel Willmann 60560d74b8 Merge commit '315f10aa4759abb627f39122503874e7006db8b1' into dora 2017-06-02 15:01:44 +02:00
Daniel Willmann af8cb4980a Merge commit '3b2076a5563a27e114b02a1e41cf4f62330e9575' into dora 2017-06-02 15:01:41 +02:00
Daniel Willmann 315f10aa47 osmo-bts: Update revision to fix GSM HR encoding
Ticket: SYS#2452
2017-06-02 14:59:05 +02:00
Holger Hans Peter Freyther eca7186eaa cmake: Place the bbappend only for dora builds
Not sure if they are needed for pyro but this layer will be rarely
used with pyro but need to continue to work for dora. This could
work.
2017-05-16 16:25:46 +08:00
Max 3b2076a556 openbsc: Fix build failure
Add explicit reference to osmo-gbproxy.service to fix build issue.

ERROR: QA Issue: openbsc: Files/directories were installed but not shipped
 /lib/systemd/system/osmo-gbproxy.service
ERROR: QA run found fatal errors. Please consider fixing them.
2017-05-02 17:02:49 +02:00
Holger Hans Peter Freyther abc017e891 sysmobts: Force thumb interworking (armv5_t_e) for pyro
Somehow the PACKAGE_ARCH selection in pyro only comes up with armv5e but
we want (at least for legacy) thumb interworking. Force it to the thumb
mode.
2017-04-30 00:15:49 +02:00
Holger Hans Peter Freyther 8610f32401 sysmocom-defaults: Workaround sysmocom-bsc-v2 rootfs issue
Disable the libsolv backend to workaround an install issue. This does
not occur or sysmobts or sysmocom-bsc but only on the v2 target or the
idu.
2017-04-27 12:45:34 +02:00
Holger Hans Peter Freyther 1bc3be8eb6 sysmocom-bsc2: Add a BSC v2 where we can tune for i686
The old Geode based systems are replaced by AMD APU systems. We might
build for sysmobsc v1 and v2 but would like to be able to tune for the
better CPU.
2017-04-26 23:06:06 +02:00
Holger Hans Peter Freyther 60aceccd0d bsc/idu: Drop edison (1.1) support and stick to 3.10er kernel
This is fixing the QA issue on newer perf for x86 on Dora as seen
by the CI system. Drop support for ancient unsupported OE version
and force 3.10/4.9 depending on where we are.
2017-04-25 18:01:53 +02:00
Holger Hans Peter Freyther bbc7c997ae image-rauc-ubi: Fix building on latest poky
mtd-utils-native needs to be available for do_deploy, so add the
dependency there. DEPENDS is meaningless for us so remove it too.
Use specific tasks as dependency to workaround an issue with poky
master where glibc-initial and glibc-locale would be direct deps.

Clone the recipe to deal with the different tasks. I wasn't able
to get the other tasks in place for dora.
2017-04-24 16:07:50 +02:00
Holger Hans Peter Freyther b18c50951f barebox: Update to be able build and link with gcc6/ld.gold
Build the old barebox with newer tools. This should work for dora
and master at the same time.
2017-04-24 11:46:47 +02:00
Holger Hans Peter Freyther 204fea2e7d linux-sysmocom: Add a Linux 4.9 recipe to be used for new poky
Linux 4.9 is a LTS released and will be maintained until at least
January 2019.
2017-04-24 11:46:47 +02:00
Holger Hans Peter Freyther 6751f3e212 modernize: Use d.get* instead of the bb.data.get* facade
In modern Poky the facade is gone and the data dictionary needs
to be accessed directly. This commit is catching up with it. It
was build tested on dora as well. I have not checked if it is
changing the checksums of a dora build.
2017-04-24 00:48:40 +02:00
Holger Hans Peter Freyther 789c9a650c iperf: Upgrade to 2.0.9 to solve c++ compilation issue
2.0.5 is known not to build with newer G++/libstdc++. Upgrade to
version 2.0.9, fix compilation issue on arm for C code and let's
see..
2017-04-17 06:59:31 +02:00
Holger Hans Peter Freyther 2b8949c52e ifupdown: Build without access to dpkg-architecture
Take a patch from newer version in Poky to hardcode the os to
Linux. This surfaced because of the more strict sysroot in newer
versions of Poky.
To avoid some bad surprises I am continuing to use this version
of ifupdown instead of the newer one in Poky.
2017-04-17 06:59:24 +02:00
Holger Hans Peter Freyther 39afcd35ae rauc: Make gdbus-codegen available to the build process
Require glib-2.0-native so that we can call gdbus-codegen from
the build process. Needed for newer versions of poky.
2017-04-16 20:09:51 +02:00
Holger Hans Peter Freyther 3f352433bd netcat-openbsd: Fix linking and use GNU_HASH for symbols
Inherit the pkgconfig bbclass so libbsd can be found properly and
pass in LDFLAGS to make sure the right link line is being used.
2017-04-16 20:09:33 +02:00
Holger Hans Peter Freyther 0646719119 rtl8169-eeprom: Use newer version to honor external LDFLAGS
Make sure libraries are linked with GNU_HASH on newer versions
of Poky.
2017-04-16 20:09:20 +02:00
Holger Hans Peter Freyther 801c195338 osmo-bts: Remove inline from the declaration of function
The function is declared and defined as inline and gcc6 will not
emit an external visible symbol for it. Master doesn't have this
problem anymore so let's just patch it here.

Fixes:
| /usr/src/debug/osmo-bts/0.4.3+gitAUTOINC+57ee780789-r1a2ff06d20-r18.18/git/tests/sysmobts/sysmobts_test.c:207: undefined reference to `l1if_ms_pwr_ctrl'
2017-04-16 20:09:02 +02:00
Holger Hans Peter Freyther 49153b2904 gpsd: Make sure that LDFLAGS are passed to scons
In newer Poky the LDFLAGS are not passed through the $CC variable
anymore and we need to make sure scons is picking them up. Take an
old Gentoo patch for it.
2017-04-16 20:08:50 +02:00
Holger Hans Peter Freyther 9f0d341f23 systemd-compat-units: Add LIC_FILES_CHKSUM for SRC_URI files
We need to have our own LIC_FILES_CHKSUM now as we add the alignment
service.
2017-04-16 20:08:42 +02:00
Holger Hans Peter Freyther 0d7522675f dvnixload: Fix deployment on latest poky
The with builddir != srcddir the deployment will fail. Add ${B} as
it will work for both old and new poky.
2017-04-16 20:08:33 +02:00
Holger Hans Peter Freyther 2111c3cad3 u-boot: Upgrade to a version of u-boot master
This is updating to u-boot v2017.03+256. v2017.05 is coming soon
and it seems quite stable already. This seems to work for old and
the new dora.
2017-04-16 20:08:26 +02:00
Holger Hans Peter Freyther 0319396ca8 meta-toolchain-osmo: Attempt to fix it for master
For master we need to change to SDKDEPLOYDIR to add the symlink
we want. Try to keep it working for dora.
2017-04-05 09:42:56 +02:00
Holger Hans Peter Freyther 2b3379dfc2 lcr: Fix compilation with new versions of gcc 2017-04-02 15:49:51 +02:00
Holger Hans Peter Freyther 1327e40a0c smalltalk-native: Require readline-native for the build as well 2017-03-31 13:41:02 +02:00
Holger Hans Peter Freyther 259a8a81e4 smalltalk: Require zip/unzip from the host
checking for zip... no
| checking for timeout... env
| configure: error: Please install InfoZIP to use GNU Smalltalk.
2017-03-31 13:02:10 +02:00
Daniel Willmann c695640d40 Merge commit '1b77777791ff2d19b6c53a81bd4b332fab72c339' into dora 2017-02-14 21:00:05 +01:00
Daniel Willmann 1b77777791 osmo-bts: Bump version to include power ramping support for 1020, 1100 models
Ticket: SYS#3214
2017-02-14 20:43:26 +01:00
Daniel Willmann d54743b9a5 Merge commit '4e9cabbe91032eba81e3f97a3df8967ee93d3c65' into dora
Add power ramping support for sysmoBTS 1020 and 1100
Ticket: SYS#3214
2017-02-14 19:02:42 +01:00
Daniel Willmann 4e9cabbe91 osmo-bts: Bump version to include power ramping support.
Ticket: SYS#3214
2017-02-14 18:38:47 +01:00
Harald Welte d35db6f1b5 Merge commit '24b544024cfcfe1b3e49b07992187cd826ba7028' into dora 2017-02-10 17:03:55 +01:00
Harald Welte f77a9570d6 Revert "python-argparse: build also for nativesdk"
This reverts commit e48e48af48.

We do this with a bbappend from meta-telephony now
2017-02-10 17:03:23 +01:00
Harald Welte 24b544024c Add .bbappend for nativesdk-python-argparse
In commit a7e967225d we added
python-argparse to the SDK/toolchain.  However, upstream dora doesn't
have this in the nativesdk bbclass, so let's add it using a .bbappend
file.  I tried with python-argparse_%.bbappend to be less version
dependent, but that didn't work.
2017-02-10 17:00:37 +01:00
Harald Welte e595d424f4 Merge commit '0c4a046bd5c1f790bb547f53f0b5ee049c7ab885' into dora 2017-02-10 16:33:35 +01:00
Harald Welte 0c4a046bd5 openggsn-config: Use the sysmocom-bsc/ggsn.conf as default for all machines
Only sysmobts-v2 will override it, but all other machines should have
the same configuration as the sysmocom-bsc.  This will fix the build of
our yocto-dora for sysmocom-idu/sysmocom-odu, where task-sysmocom-feed
pulls in task-gprscore which in turn wants to build the ggsn
configuration even on those machines where we don't actually have a ggsn
so far.
2017-02-10 16:30:46 +01:00
Harald Welte be388bd7d5 openggsn-config: share one gprs_routing file for different machines
there's no point in having two identical gprs_routing files in the
two machine-specific directories.  So let's share one common file.
2017-02-10 16:25:13 +01:00
Harald Welte 1ca4555bef Merge commit 'a7e967225d4b3b2bc518e14296e82be1f3b6c25b' into dora 2017-02-10 16:12:57 +01:00
Harald Welte a7e967225d toolchain-osmo: Add nativesdk-python-argparse
libosmocore needs this during code generation of some of the header
files, so let's make sure the SDK has python-argparse included.
2017-02-10 16:11:36 +01:00
Harald Welte e48e48af48 python-argparse: build also for nativesdk
... some build scripts (like recent libosmocore) require python
argparse, so we want that to be part of the SDK.
2017-02-10 16:08:35 +01:00
Neels Hofmeyr a526dd123e Merge commit '29dd84c82a756afcc44209f89fd2fd0d77307d73' into dora 2016-12-06 15:35:22 +01:00
Neels Hofmeyr f882d0a98b Merge commit '8cf5a67850adf270bc2fdb4c0ed708b0ba037670' into dora 2016-12-06 15:35:02 +01:00
Daniel Willmann 29dd84c82a task-sysmocom-feed: Add task-gprscore
Just build the gprs corenet related packages in our regular feed so they are
built for the sysmobsc as well.

Ticket: SYS#3096
2016-11-29 20:54:14 +01:00
Daniel Willmann 9833551361 sysmocom-bsc: Install dnsmasq in the image with correct config
Ticket: SYS#3081, SYS#2439
2016-11-28 17:36:48 +01:00
Holger Hans Peter Freyther 0cdda35f22 u-boot: Go back just supporting RevG hardware
We need some more testing/experience with the AEMIF related fixed
that it is better to ship what we have right now.

Discussed in the sob chat.

(cherry-picked to generic-poky)
2016-09-05 14:42:59 +02:00
Holger Hans Peter Freyther 28b1fc60bf ubl: Add reivision G and later support
The nWP handling was only present for RevF but applies to later
HW revisions too.
2016-09-05 14:41:58 +02:00
Holger Hans Peter Freyther 8698210e1d u-boot: Go back just supporting RevG hardware
We need some more testing/experience with the AEMIF related fixed
that it is better to ship what we have right now.

Discussed in the sob chat.
2016-09-05 14:40:25 +02:00
Harald Welte 17758a0de8 update gpsdate to fixed init script revision
... using variables from /etc/default/gpsdate not only in systemd
service file, but also init script.
2016-08-01 14:02:18 +02:00
Holger Hans Peter Freyther 959ae40f34 sysmocom-archiver: Make it somehow work with python3
Yocto master has switched to use python3 and this means all of
our bbclasses must work with it. The cmp function has been removed
and the closest is this dropin routine. Start to use it.
2016-07-02 21:49:21 +02:00
Harald Welte 7c07fdaa46 barebox-state.bb: add missing spaces at end of line of FILES lines 2016-06-23 09:23:40 +02:00
Harald Welte 2025596913 OWHW: update barebox for SWITCH_RESET pulse generation on cold boot 2016-06-23 00:41:43 +02:00
Harald Welte b021331415 OWHW: Enable hardware watchdog from systemd
We had this enabled on odu/idu/sysmobts already, but didn't do so
on owhw.
2016-06-23 00:41:38 +02:00
Harald Welte 78f5bc0867 OWHW: add image definitio for OWHW related files + rauc-slot files
for OWHW, one should build sysmocom-owhw-rauc-image, not
sysmocom-owhw-image!
2016-06-23 00:41:33 +02:00
Harald Welte 27d5493687 OWHW: update barebox recipe (move eeprom bootstate to offset 0) 2016-06-23 00:41:31 +02:00
Harald Welte f54c291c85 OWHW: add patch to hard-code the boot-state back-end EEPROM path 2016-06-23 00:41:18 +02:00
Harald Welte 4a8db6dbea update barebox-state to current dt-utils master
which (at least for owhw-v2) fixes the automatic discovery of the
bootstate backend EEPROM. I suspect it should now also work without
the hardc-de-layout-values.patch on sysmobts-v2 and sysmocom-odu, but
that remains to be tested (and thus the patches remain).
2016-06-23 00:41:12 +02:00
Harald Welte 6eef6d8fb3 OWHW: update barebox to include v2 changes 2016-06-23 00:41:06 +02:00
Harald Welte b53807060b sysmocom-owhw-image: no initramfs, hard-link for kernel
for some reason barebox is not able to resolve the symlink, so let's
create a hard link instead.
2016-06-23 00:40:50 +02:00
Harald Welte 08406f0a8c barebox: update to 'initramfs is optional' boot config 2016-06-23 00:40:45 +02:00
Harald Welte b917d5b19a task-owhw-image: Add crda and iw for wifi 2016-06-23 00:40:38 +02:00
Harald Welte d5c8bcd3b7 add crda (wifi regulatory database) and its [build] dependencies 2016-06-23 00:40:34 +02:00
Harald Welte 843770cb60 import iw 3.11 recipe from meta-openembedded dora branch.
I completley fail to understand why the most fundamental tool for wifi
configuration is missing from poky/dora.
2016-06-23 00:40:32 +02:00
Harald Welte b45f8f591f bossa: add missing readline build dependency 2016-06-23 00:40:20 +02:00
Harald Welte 5bf8ff5571 OWHW: add 'sysmocom-owhw-image' and ensure usb2514 + bossa is included 2016-06-23 00:40:16 +02:00
Harald Welte aa5249a22d OWHW: add recipe for bossa (Atmel SAM flasher) 2016-06-23 00:40:10 +02:00
Harald Welte 87ba2df810 OWHW: update barebox to fix button GPIO 2016-06-23 00:40:01 +02:00
Harald Welte 5c4b0827e6 OWHW: fix gpio_usb2514 syntax error 2016-06-23 00:39:23 +02:00
Harald Welte 3bacf883bd OWHW: persistent modem serial device names 2016-06-23 00:39:20 +02:00
Harald Welte 8cde214b95 rauc: support OWHW 2016-06-23 00:39:11 +02:00
Harald Welte fe3fe6e3d3 OWHW: add GPIO export script for this board
... and use the new GPIO location from usb2514 tool
2016-06-23 00:39:06 +02:00
Harald Welte a224a88891 usb2514.c: Add support for GSMK OWHW board
we only need to swap a single port (DN4) here.
2016-06-23 00:39:02 +02:00
Harald Welte 89435bf483 usb2514: make it more modular/configurable 2016-06-23 00:38:58 +02:00
Harald Welte 1c6616736c OWHW: Add barebox recipe 2016-06-23 00:38:44 +02:00
Holger Hans Peter Freyther ddb2f88230 u-boot: Build newer version of U-Boot not touching A1CR
UBL is setting up the flash timings (A1CR) and so far U-Boot
was overwriting it with a timing for the EVB development board
of TI. Let UBL define ECC/ChipSelect and the A1CR timings.

This might now cause different kind of flash issues because the
per chip timings might be "wrong". This is why this commit should
needs to stay in testing a bit longer. We should use this commit
on RevC, D, E and F hardware ourselves a bit.
2016-06-12 21:47:34 +02:00
Holger Hans Peter Freyther a09e6a2fec barebox-sysmobts: Prepare the system for revisionG as well 2016-06-06 14:36:43 +02:00
Holger Hans Peter Freyther 86baca7ed8 u-boot: Add revision G and later support as well 2016-06-06 14:27:54 +02:00
Holger Hans Peter Freyther 0673324a5d ubl: Add reivision G and later support
The nWP handling was only present for RevF but applies to later
HW revisions too.
2016-06-06 14:23:31 +02:00
Holger Hans Peter Freyther bce73d1dc7 image-rauc-ubi: Deal with different kernel types
I might end up using a zImage and then it should be used. Use the
variable exported by the ${MACHINE}.conf to work with it.
2016-06-02 18:08:38 +02:00
Holger Hans Peter Freyther 2ed575b506 uboot: Avoid QA error on packaging
I didn't know that u-boot was creating a package and installing
the bin into /boot. The detection of the file seems to have
changed and a new QA error comes up.

ERROR: u-boot-v2011.12+gitAUTOINC+f6453a3911-r0 do_package: QA Issue: split_and_strip_files: 'file /home/oebuilds/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/sysmobts_v2-poky-linux-gnueabi/u-boot/v2011.12+gitAUTOINC+f6453a3911-r0/package/boot/u-boot-sysmobts-v2-v2011.12+gitAUTOINC+f6453a3911-r0' failed [split-strip]

This seems to have been introduced by changing the LC_ALL to
en_US.UTF-8. I have started a dialogue with upstream development
but as we do not need a u-boot package, let's just remove the
files.
2016-05-24 14:39:29 +02:00
Holger Hans Peter Freyther 5bdf5bc9f9 image-rauc-ubi: Make sure mkfs.ubifs is present
The DEPENDS is not enough to have it ready in time. Add a task
dependency for mtd-utils-native.
2016-05-15 15:23:43 +02:00
Holger Hans Peter Freyther 719af51ad0 image-rauc-ubi: Add license file checksums
ERROR: image-rauc-ubi-1.0-r0 do_populate_lic: QA Issue: image-rauc-ubi: Recipe file does not have license file information (LIC_FILES_CHKSUM) [license-checksum]
2016-05-07 23:00:11 +02:00
Holger Freyther 8cf5a67850 Merge pull request #3 from ctrob67/krogoth-fixes
Add missing items to fix build with Yocto Krogoth
2016-05-03 13:19:58 +02:00
Chris Trobridge 50321ae4a1 Add missing items to fix build with Yocto Krogoth
Add kernel module for dahdi-vpmadt032-loader.
Add hotplug/firmware directory to dahdi-firmware package.
2016-05-03 11:47:38 +01:00
Holger Hans Peter Freyther 90a5fad2b7 glib: Enable static libraries for glib
I want to use static libraries of glib in rauc to shrink the rescue
image to a reasonable amount.
2016-04-21 13:06:13 +02:00
Holger Hans Peter Freyther 1ba7ed6c28 meta-toolchain-osmo: Attempt to fix hash data issue
Exclude DATETIME from the variables to fix errors like:

ERROR: meta-toolchain-osmo-1.0-r7 do_populate_sdk: Taskhash mismatch 0fb3116488402f87d1e4d637af229664 verses 6dda5ee949e484709fbac4a097018fc2 for meta-telephony/recipes-osmocom/meta/meta-toolchain-osmo.bb.do_populate_sdk
2016-04-11 19:02:41 -04:00
Holger Hans Peter Freyther a8b9551257 ca-cacert-rootcert: Add the letsencrypt certificate here as well
This is not quite "ca-cacert" anymore, more like "ca-sysmocom" for
the root certificates needed for us.

Fixes: SYS#2499
2016-04-09 18:25:03 +02:00
Holger Hans Peter Freyther 9460fb650f glib-2.0: Move recipes to yocto-dora/
This glib-2.0 version was required by rauc and should have been
placed in the recipes-extra (or recipes-fixes) directory.

Yocto master has imported gobject-introspecition and this requires
a newer version of glib-2.0. For Yocto master this recipe has
replaced the newer one. By moving it to the yocto-dora directory
we continue to use the old version on dora and the default version
on master.
2016-03-23 13:53:56 +01:00
Holger Hans Peter Freyther e6edea0cdb layer: Allow to have entire recipes in the yocto-VER directory
In case of the upcoming glib-2.0 change we only want to use our
version on Dora. Look for *.bb in the yocto-dora/*/ as well.
2016-03-23 13:53:55 +01:00
Holger Hans Peter Freyther ba68c05621 Merge commit 'f3ffbf4db3a4a6a8c375e44c8d03f63bd4851afb' into dora 2016-03-23 12:00:39 +01:00
Holger Hans Peter Freyther 207ab6359d Merge commit '9092529d52b16e271eb8f2e287d4ae6b19a04e7e' into dora 2016-03-23 12:00:36 +01:00
Holger Hans Peter Freyther 9092529d52 packagegroup-sdk-osmo: Add libsctp as dependency for the SDK
Make libsctp available to be used by libosmo-netif and othr Osmocom
software.

Fixes: SYS#2524
2016-03-23 11:54:26 +01:00
Holger Hans Peter Freyther 00e53d5e6e lksctp-tools: Add package from meta-networking
In the future libsomo-netif will require libsctp to build. Take the
copy from meta-networking to handle this dependency.

Fixes: SYS#2524
2016-03-23 11:53:00 +01:00
Holger Hans Peter Freyther f3ffbf4db3 task-sysmocom-feed: Add linux sctp library to the feed
libosmo-netif gained SCTP support and we should be able to provide
it.

Related: SYS#2524
2016-03-23 11:52:19 +01:00
Holger Hans Peter Freyther 73c143612a yocto-master: Remove udev bbappend for the master build
In master we use systemd to provide udev and standalone udev has
been replaced with eudev. I think we do not need to patch things
around here.
2016-03-05 21:23:55 +01:00
Holger Hans Peter Freyther ab705eff27 openssl: Apply latest set of security fixes for OpenSSL
Apply patches from the openssl-1.0.1e-51.el7_2.4.src.rpm package
downloaded from the Oracle server.

* Wed Feb 24 2016 Tomáš Mráz <tmraz@redhat.com> 1.0.1e-51.4
- fix CVE-2016-0702 - side channel attack on modular exponentiation
- fix CVE-2016-0705 - double-free in DSA private key parsing
- fix CVE-2016-0797 - heap corruption in BN_hex2bn and BN_dec2bn

* Tue Feb 16 2016 Tomáš Mráz <tmraz@redhat.com> 1.0.1e-51.3
- fix CVE-2015-3197 - SSLv2 ciphersuite enforcement
- disable SSLv2 in the generic TLS method
2016-03-02 09:53:27 +01:00
Harald Welte 2d24a1a1f5 put libusb1-dev into osmocom SDK
this is helpful for SDK-based development of applications accessing
USB from userspace (like simtrace).
2016-02-29 16:44:29 +01:00
Holger Hans Peter Freyther ceac7bd7b9 openssl: Apply patches from RHEL to address open CVEs
The patches were taken from openssl-1.0.1e-51.el7_2.2.src.rpm and
apply all CVEs that were not applied yet. Document which patches
were not applied. There should be another openssl version soon as
the next round of fixes was announced for the 1st of March.

After the upgrade "opkg update with https feeds" and "openvpn against
netport" were tested. They seem to work.

Fixes: SYS#2448
2016-02-27 17:14:08 +01:00
Holger Hans Peter Freyther b87c5b4a0c ntp: Upgrade with security fixes in ntp
The upgrade is fixing several known security issues. Let's update it.

Fixes: SYS#2449
2016-02-27 17:09:51 +01:00
Holger Hans Peter Freyther 0f016bb89e libosmocore: Split the package into one package per library
This will allow us to have multiple versions installed at the
same time. Use a HACK to not have package.bbclass renamed the
RREPLACE we need for the upgrade.

Fixes: SYS#217
2016-02-27 09:27:29 +01:00
Holger Hans Peter Freyther 106e8cb85f package: Add hack to allow/help with the libosmocore split
Right now we have one "libosmocore" package but if we split it up
the libosmocore package will be renamed to libosmocore6 and then
even a RREPLACE_libosmocore = "libosmocore" will be replaced to
RREPLACE_libosmocore6 = "libosmocore6". Add a HACK to have a
certain start of a dependency not being replaced. This will be
used by the libosmocore upgrade.

We only need this in dora as for other distributions we start
with a fresh slate.

Related: SYS#217
2016-02-27 09:25:28 +01:00
Harald Welte 4e69783333 Merge commit 'aa458a136ebd4abc55d502984b5c90ddab458288' into dora
This brings in libtalloc for the sdk
2016-02-23 13:39:43 +01:00
Harald Welte aa458a136e add libtalloc and its dependency waf-samba.bbclass
This also adds libtalloc-dev to the SDK, which is a first step to
upgrading libosmocore to a 'post external talloc' version.
2016-02-23 12:24:28 +01:00
Holger Hans Peter Freyther 29ba452c5f lmsensors-apps: The code vanished once again, move to fedora 2016-02-20 19:36:25 +01:00
Holger Hans Peter Freyther b271ce4d23 sysmocom-defaults: Add more systemd features needed to build
Disabling the new "binfmt" doesn't work and breaks the build. I have
sent an email to the mailinglist and this might be fixed but at the
same time binfmt is split into a new package anyway. At the same time
we should enable some items we have now switched off. Once we start
to use/stabilize this build we need to check what we need and what the
cost is.
2016-02-18 20:22:47 +01:00
Holger Hans Peter Freyther e274f00fa9 libgsm: Pass in CC variable to compile libgsm
It appears that in latest poky master the CC variable is not automatically
passed to the build. The last good build was 7cd835177a
and now it was failing. Pass CC to the build.
2016-02-18 09:16:12 +01:00
Holger Hans Peter Freyther 975d15ac7e iproute2: Re-introduce quirk to add a iproute2-misc package
We need the -misc package for extra utilities needed by our tasks.
Use the bbappend to create an empty package that pulls in the other
utilities.
2016-02-17 23:19:16 +01:00
Holger Hans Peter Freyther 4ca7a67cca iproute2: Remove poky master patches for version 4.4
Yocto is now using iproute2 4.4 and the tools we packaged into
the main package are now available as extra packages and we can
just drop our extension for master.
2016-02-17 23:12:38 +01:00
Holger Hans Peter Freyther b89eec5de8 misc: Remove autotools_stage as it was removed in master
autotools_stage has only included autotools at least in dora and
later and we can simply change this.
2016-01-30 21:17:31 +01:00
Catalin Popeanga 6d8a902fdd bash: Fix-for-CVE-2014-6278
This vulnerability exists because of an incomplete fix for CVE-2014-6271, CVE-2014-7169, and CVE-2014-6277

See: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-6278

(From OE-Core daisy rev: de596b5f31e837dcd2ce991245eb5548f12d72ae)

(From OE-Core rev: 1e155330f6cf132997b91a7cfdfe7de319410566)

Signed-off-by: Catalin Popeanga <Catalin.Popeanga@enea.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:33:26 +01:00
Catalin Popeanga 731c201426 bash: Fix for CVE-2014-6277
Follow up bash42-049 to parse properly function definitions in the
values of environment variables, to not allow remote attackers to
execute arbitrary code or to cause a denial of service.

See: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-6277

(From OE-Core daisy rev: 85961bcf81650992259cebb0ef1f1c6cdef3fefa)

(From OE-Core rev: 5a802295d1f40af6f21dd3ed7e4549fe033f03a0)

Signed-off-by: Catalin Popeanga <Catalin.Popeanga@enea.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:33:16 +01:00
Catalin Popeanga 38c91c440f bash: Fix for CVE-2014-7186 and CVE-2014-7187
This is a followup patch to incomplete CVE-2014-6271 fix code execution via
specially-crafted environment

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-7186
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-7187

(From OE-Core daisy rev: 153d1125659df9e5c09e35a58bd51be184cb13c1)

(From OE-Core rev: bdfe1e3770aeee9a1a7c65d4834f1a99820d3140)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:33:08 +01:00
Catalin Popeanga ca6bbc3f99 bash: Fix for exported function namespace change
This is a followup patch to incomplete CVE-2014-6271 fix code execution via
specially-crafted environment

This patch changes the encoding bash uses for exported functions to avoid
clashes with shell variables and to avoid depending only on an environment
variable's contents to determine whether or not to interpret it as a shell
function.

(From OE-Core daisy rev: 6c51cc96d03df26d1c10867633e7a10dfbec7c45)

(From OE-Core rev: af1f65b57dbfcaf5fc7c254dce80ac55f3a632cb)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:32:58 +01:00
Paul Eggleton 7aab9b0784 bash: add missing patch for CVE-2014-7169 to 4.2 recipe
The bash_4.2 recipe was missed when the fix was backported to the dora
branch.

Patch from OE-Core master rev: 76a2d6b83472995edbe967aed80f0fcbb784b3fc
by Khem Raj <raj.khem@gmail.com>

(From OE-Core rev: a71680ec6e12c17159336dc34d904cb70155d0d7)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:32:49 +01:00
Paul Eggleton 2c4b5d0e9d bash: add missing patch for CVE-2014-6271 to 4.2 recipe
The bash_4.2 recipe was missed when the fix was backported to the dora
branch.

Patch based on the one from OE-Core master rev
798d833c9d4bd9ab287fa86b85b4d5f128170ed3 by Ross Burton
<ross.burton@intel.com>, with the content replaced from the
appropriate upstream patch.

(From OE-Core rev: 74d45affd5cda2e388d42db3322b4a0d5aff07e8)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:32:39 +01:00
Khem Raj e46f9d389a bash: Fix CVE-2014-7169
This is a followup patch to incomplete CVE-2014-6271 fix
code execution via specially-crafted environment

Change-Id: Ibb0a587ee6e09b8174e92d005356e822ad40d4ed
(From OE-Core master rev: 76a2d6b83472995edbe967aed80f0fcbb784b3fc)

(From OE-Core rev: 1c8f43767c7d78872d38652ea808f30ea825bbef)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:32:31 +01:00
Ross Burton 86e38661a6 bash: fix CVE-2014-6271
CVE-2014-6271 aka ShellShock.

"GNU Bash through 4.3 processes trailing strings after function definitions in
the values of environment variables, which allows remote attackers to execute
arbitrary code via a crafted environment."

(From OE-Core master rev: 798d833c9d4bd9ab287fa86b85b4d5f128170ed3)

(From OE-Core rev: 05eecceb4d2a5821cd0ca0164610e9e6d68bb22c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:32:20 +01:00
Sona Sarmadi f5a41d8a6f openssl: Fix for CVE-2014-3568
Fix for no-ssl3 configuration option

This patch is a backport from OpenSSL_1.0.1j.

(From OE-Core rev: 97e7b7a96178cf32411309f3e9e3e3b138d2050b)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:22:24 +01:00
Sona Sarmadi 8d139f9e3b openssl: Fix for CVE-2014-3567
Fix for session tickets memory leak.

This patch is a backport from OpenSSL_1.0.1j.

(From OE-Core rev: 420a8dc7b84b03a9c0a56280132e15b6c9a8b4df)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:22:11 +01:00
Sona Sarmadi c9caf7dfd7 openssl: Fix for CVE-2014-3513
Fix for SRTP Memory Leak

This patch is a backport from OpenSSL_1.0.1j.

(From OE-Core rev: 6c19ca0d5aa6094aa2cfede821d63c008951cfb7)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:22:00 +01:00
Sona Sarmadi d75c7e8ab7 openssl: Fix for CVE-2014-3566
OpenSSL_1.0.1 SSLV3 POODLE VULNERABILITY (CVE-2014-3566)

This patch is a backport from OpenSSL_1.0.1j.

(From OE-Core rev: 47633059a8556c03c0eaff2dd310af87d33e2b28)

Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-27 14:21:49 +01:00
Holger Hans Peter Freyther 18428e1d52 ntp: Deal with /usr/libexec being empty in Yocto master
libexecdir is now a dedicated directory and empty in our ntpd
build. Avoid QA issue of an empty directory not belonging to
anyone. Clean it if it is empty
2016-01-27 14:05:17 +01:00
Holger Hans Peter Freyther 94a36866e7 Merge commit '87c73f768c84613f07e704026f3b6eff9459cfd0' into dora 2016-01-22 19:20:12 +01:00
Holger Hans Peter Freyther 87c73f768c sofia-sip: Fix undefined behavior in parsing
Symptoms with LCR: nta outgoing create: invalid URI

Take patch posted to the upstream project and carried by Debian
and Ubuntu for this project. Unroll the different fields by hand
to fix undefined behavior.
2016-01-08 13:05:12 +01:00
Holger Hans Peter Freyther 5428bbd10a libosmocore: Code is not in master so don't force SHA validation
The 0.9.0 release is in a different branch (+patches) and it is
easier to not write the branch name here.
2015-12-26 22:14:39 +01:00
Holger Hans Peter Freyther b17f95d381 Revert "sysmocom-archiver: Attempt to fix issue with linux-firmware"
Attempt to not change the fingerprint of all builds?

This reverts commit 6fd05a1e3f.
2015-12-26 19:20:05 +01:00
Holger Hans Peter Freyther 904f600a85 Merge commit 'ebf4952e889c88853813c5f6ae1bbd50accc2683' into dora 2015-12-26 19:03:25 +01:00
Holger Hans Peter Freyther bd81eeb08c Merge commit 'a715416731955e0454fc88d439709c94afb4b1af' into dora 2015-12-26 19:03:22 +01:00
Holger Hans Peter Freyther ebf4952e88 osmo-pcu: Upgrade to jerlbeck/master
Big amount of changes for EDGE support without supporting it
yet. See if it still works at 32C3.
2015-12-26 18:55:27 +01:00
Holger Hans Peter Freyther a715416731 libosmocore/libosmo-netif: Bump version needed for osmo-pcu 2015-12-26 18:48:41 +01:00
Holger Hans Peter Freyther 6fd05a1e3f sysmocom-archiver: Attempt to fix issue with linux-firmware
Exception: OSError: [Errno 36] File name too long: '/home/oebuilds/jenkins/workspace/Yocto-Master/label/OE/build/tmp/deploy/sources/allarch-poky-linux/Firmware-AbilisFirmware-agereFirmware-amd-ucodeFirmware-atheros_firmwareFirmware-broadcom_bcm43xxFirmware-ca0132Firmware-chelsio_firmwareFirmware-cw1200Firmware-dib0700Firmware-ene_firmwareFirmware-fw_sst_0f28Firmware-go7007Firmware-i2400mFirmware-ibt_firmwareFirmware-it913xFirmware-iwlwifi_firmwareFirmware-IntcSST2Firmware-MarvellFirmware-mwl8335Firmware-myri10ge_firmwareFirmware-OLPCFirmware-phanfwFirmware-qat_dh895xcc_firmwareFirmware-qla2xxxFirmware-r8a779x_usb3Firmware-radeonFirmware-ralink_a_mediatek_company_firmwareFirmware-ralink-firmwareFirmware-rtlwifi_firmwareFirmware-tda7706-firmwareFirmware-ti-connectivityFirmware-ueagle-atm4-firmwareFirmware-via_vt6656Firmware-wl1251Firmware-xc4000Firmware-xc5000Firmware-xc5000cFirmware-sianoFirmware-qualcommAthos_ar3kFirmware-qualcommAthos_ath10k'
2015-12-20 19:03:15 +01:00
Holger Hans Peter Freyther 9241e2bdc5 systemd: It keeps growing, try to cut it back a bit more
It gains more features and the binary size has grown in a
significant manner. Disable some features not disabled by
the default OE build.
2015-12-20 17:57:42 +01:00
Holger Hans Peter Freyther 45bc37acf6 idu/bsc: libx11-trim is dead for a long time use libx11-diet
Yocto master now fails because our preferred provider does not
exist anymore and no other provider is picked.
2015-12-19 16:21:49 +01:00
Holger Hans Peter Freyther dc69479f0f sysmocom-backup: Fix creating of back-ups for external files
* The file we install is called default.files and not *.backup
* Spotted by Lazlo while creating a backup on the latest system
2015-12-15 11:00:10 +01:00
Holger Hans Peter Freyther 3b80fa69e8 osmo-bts: Upgrade to latest pre l1sap release, upgrade firmware
Upgrade the superfemto firmware to version 5.1 and upgrade the
osmo-bts to the latest release before the l1sap changes.
2015-12-07 13:24:21 +01:00
Holger Hans Peter Freyther 2c54ce9af5 libosmo-abis: Build newer release for osmo-bts
This adds RTP statistics support to libosmotrau.
2015-12-07 13:22:37 +01:00
Holger Hans Peter Freyther bbfabee7c1 iproute2: Disable arpd differently on newer releases
It is checking for the berkeley db in some way but let's make sure
that between our current release and the next one we have the
same functionality.
2015-12-03 17:24:44 +01:00
Holger Hans Peter Freyther 1394710d91 busybox: Catch up with master again 2015-12-02 21:13:53 +01:00
Holger Hans Peter Freyther 87183b8b71 Merge commit '04093241861f665ca3a7e47c5706be16269a4b9b' into dora 2015-11-27 11:03:19 +01:00
Holger Hans Peter Freyther 0409324186 rauc: Do not try to populate /etc/opkg/
Our initramfs images are supposed to be small and don't have a
/etc/opkg folder so attempting to put feed config in there will
fail. Reset the FEED_URIS that come from our local.conf.
2015-11-27 11:00:19 +01:00
Holger Hans Peter Freyther 5a1dca4d60 ca-certificates: Try to fetch it from launchpad
The angstrom mirror is very slow in finding the file (no dirhash?),
let's see if canonical is any better in serving the file.
2015-11-25 17:52:04 +01:00
Holger Hans Peter Freyther 85f60e5a65 ca-certificates: The source has vanished from debian
It was never a released version so it is not showing up on the
archive.debian.org page. Let's move to angstrom for our stable
source of it.
2015-11-25 17:28:42 +01:00
Holger Hans Peter Freyther b382d145a0 barebox: Update to be buildable with gcc5
No functional change for the specific hardware platform but a
new header to be consumed by gcc5.
2015-11-25 16:46:02 +01:00
Jan Luebbe ca148fe435 barebox: update to newer git version for fixed sysmobts DSP
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-11-25 16:31:24 +01:00
Holger Hans Peter Freyther 33b6d83edd u-boot: Add the compiler-gcc5.h header file
When trying to compile with gcc5 we need this file to be present
as otherwise the build will fail.
2015-11-21 21:39:28 +00:00
Holger Hans Peter Freyther 0700c55790 lm-sensors: Attempt to move to a URI where the code still exists
lm-sensors.org seems to have vanished from the internet. Start to
use a copy what was found by googling.
2015-11-21 10:15:57 +00:00
Holger Hans Peter Freyther 9170107271 task-sysmocom-feed: Attempt to put perf into the feed as well
Make perf (perf-python, perf-perl) available to us as well. Let's
see what the CI is saying about it.
2015-11-20 22:13:23 +00:00
Holger Hans Peter Freyther 8ce4ab4927 sysmocom-backup-data: Avoid an absolute symlink to fix restoring
When restoring the backup the rootfs is mounted in /rootfs/data
and the symlink to the real file would then not work. Attempt to
change the directory first to get a relative symlink.

Untested change and needed for rauc
2015-11-20 21:45:34 +00:00
Harald Welte 20e26fcd3b ntp: fix postinst on systemd based hosts
We need to make sure we're not trying to call systemctl on the build
host.  Thanks to holger for pinpointing this.
2015-11-02 08:54:24 +01:00
Holger Hans Peter Freyther 9b6c17ad01 asterisk/dahdi-tools: Make it parsable on dora systems
In dora we do not have autotools-brokensep. Do it the old way
and set the B variable directly. At sysmocom we still use this
layer for the very old Dora release.
2015-11-01 22:46:11 +01:00
Harald Welte ba2e6da375 OWHW: add a machine config 2015-11-01 12:06:07 +01:00
Harald Welte c820b61c10 Add barebox recipe for OWHW 2015-11-01 12:05:38 +01:00
Holger Freyther 6606d56b73 Merge pull request #1 from OSSystems/master
Asterisk and update of recipes
2015-10-31 15:15:31 +01:00
Fabio Berton a066f13e75 dahdi-tools: Update to version 2.10.2
* libpcap is no longer a dependence.

* libusb is needed for building fpga_load, needed for firmware loading
  of the Xorcom Astribank.

* do_configure, do_compile and do_install were removed to use functions
  provided by autotools class.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton 23399a4592 dahdi-tools: Organize recipe
Fix indentations and style issues.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton a1debd963c dahdi-tools: Drop dahdi-tools.inc
Move all code to bb file.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton 988c11d3dd dahdi-linux: Update to version 2.10.2
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton f6bd02dc68 dahdi-linux: Organize recipe
Fix indentations and style issues.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton 425322314a dahdi-linux: Drop dahdi-linux.inc
Move all code to bb file.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton a354c4242e misdn-utils: Update to version 2.0.19
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton 4a63c7c73e misdn-utils: Organize recipe
Fix indentations and style issues.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton efa5849c45 libgsm: Update to version 1.0.14
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton ee5e6c4c53 libgsm: Organize recipe
Fix indentations and style issues.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton f6234c4d32 libgsm: Drop libgsm.inc
Move all code to bb file.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-26 13:23:34 -02:00
Fabio Berton 1464800759 asterisk: Add recipe
Asterisk is an Open Source PBX and telephony toolkit.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2015-10-15 13:27:57 -03:00
Holger Hans Peter Freyther 20bcf2de07 systemd: It is 225 and not 255.. but let's call it % 2015-10-13 17:41:13 +02:00
Holger Hans Peter Freyther 9b775911a0 systemd: Attempt to catch up with master 2015-10-13 17:39:19 +02:00
Jan Luebbe ff183a100e sysmocom-configure: handle missing system.conf gracefully
If /slot/system.conf is missing, we just exit the generator.
2015-10-13 17:37:03 +02:00
Jan Luebbe 8e104ac413 sysmocom-configure: add simple framework to run configuration scripts
The configuration scripts are named for the systemd units for which they
generate configuration files. The generator causes them to run before
those units are started.
2015-10-13 17:36:42 +02:00
Henning Heinold 08913496cc ntp: change the cron call for ntpdate
* the ntpdate cron job turned into
  a shell script which now checks
  for running timeserver before
  updating the time via ntpdate

* install the cron stanza to the
  cron.d directory like serval
  other packages does

* comment the entry in the old
  crontab file when found

Fixes: SYS#1841
2015-10-02 11:34:46 +02:00
Holger Hans Peter Freyther 9c5ee37ab2 linux-sysmocom: Make room for linux4
Yocto master has introduced GCC5 and this doesn't like to compile
the older linux kernels yet. This year it is time to move to a newer
LTS kernel and this can be Linux-4.1. Make space for the upgrade
by moving the recipe to a new name.
2015-09-08 15:23:37 +02:00
Holger Hans Peter Freyther ebb9f0dd71 osmo-pcu: Upgrade to the latest PCU version
* Fix SGSN re-connect
* Reliability fixes
2015-09-08 14:53:40 +02:00
Jan Luebbe a4edad8b84 linux: update for sysmobts
Move to newer stable kernel (3.10.84).

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-09-08 14:45:40 +02:00
Jan Luebbe 5fa7032384 initramfs-rauc-slot: support restoring the backup archive
This change adds an initramfs module to mount the data partition and
restore the backup to the overlay. It is enabled by adding it to the
image-rauc-slot-initramfs recipe.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>

[hfreyther: keep udev out of the dependencies]
2015-09-08 14:37:03 +02:00
Jan Luebbe 4d66b042e4 sysmocom-backup-data: do not enable the restore service automatically
This is needed for an upcoming change which will restore the backup from
the initramfs.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-09-08 14:36:03 +02:00
Jan Luebbe ecff51c389 rauc: update to newer git version for file reuse support
The new version searches mounted slots for matching files referenced by
the new manifest. This avoids downloading files we already have on the
system.

Additionally, the new version includes better error handling and more
unit tests.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-09-08 14:35:47 +02:00
Jan Luebbe 6b6e9405cc initramfs-rauc-install: fix root device entry for slot B
The typo caused an empty root= command line argument, which made it
impossible to boot this slot.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-09-08 14:35:36 +02:00
Jan Luebbe 6f165aba56 image-rauc-ubi: make sure all files belong to root
mkfs.ubifs needs the --squash-uids options, which squashes owners making all
files owned by root.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-09-08 14:35:21 +02:00
Holger Hans Peter Freyther ce34b983e3 opkg: Upstream has upgraded track it generically
We need to re-evaluate if module autoloading is broken
or not. This is now tracked in SYS#2116.
2015-09-04 07:19:26 +02:00
Holger Hans Peter Freyther 9d3031bb8f Merge commit '3a87c6e2f4f18b3833a9fe16c9231f6a9cf4c42c' into dora 2015-08-26 14:38:03 +02:00
Holger Hans Peter Freyther 3a87c6e2f4 journald: Backport various leak fixes from later journald versions
Journald being the typical GNOME application is leaking memory left
and right. Let's backport some of the patches that were done in
later versions.

Fixes: SYS#1843
2015-08-26 14:35:49 +02:00
Holger Hans Peter Freyther 243de8f36e linux-sysmocom: Attempt to enable the ext4 kernel module again
Wow.. this seems to be off so frequently. For the SD Card we
should have the ext4 kernel module available.
2015-08-25 17:53:38 +02:00
Henning Heinold 8fd695e69b image-static-dns.inc: fix several items
* use printf instead of echo
* add missing /etc/ for the udhcpc-default file
* add log-entries for all shell actions in the
  post image setup
* generate comments in all files which are touched

Related: SYS#1774
2015-08-20 08:05:12 +02:00
Holger Hans Peter Freyther 043447c300 Merge commit '4d0adcb963fd15e2239bbbc949e136651a102db8' into dora 2015-08-19 16:42:45 +02:00
Henning Heinold 4d0adcb963 netcat-openbsd: adding the recipe from meta-networking in meta-openembedded
Fixes: SYS#1962

[hfreyther: Add mising task-sysmocom-feed entry]
2015-08-18 14:09:32 +02:00
Holger Hans Peter Freyther 4971ff2b0d Merge commit 'c8e79c559d53d4e0a187f2d80b1d029c5780b4ca' into dora 2015-08-15 09:30:16 +02:00
Holger Hans Peter Freyther c8e79c559d osmo-pcu: Upgrade for a reliability fix 2015-08-15 09:29:18 +02:00
Holger Hans Peter Freyther 1dd8c76663 Merge commit '910ab95f6c5fb1a470002bb6c07a70e65a38b315' into dora 2015-08-13 20:15:44 +02:00
Holger Hans Peter Freyther 910ab95f6c osmo-pcu: Fix TBF release issue with maybe_reuse 2015-08-13 20:15:02 +02:00
Holger Hans Peter Freyther de1460dab6 Merge commit '10e1b544716747d178e6efa9e798f4141a179f9d' into dora 2015-08-12 07:54:15 +02:00
Holger Hans Peter Freyther 10e1b54471 osmo-pcu: Upgrade to the latest code in jerlbeck/master
This is using codel as a form of congestion algorithm to
drop packages early before the queue getting too long.
2015-08-12 07:46:12 +02:00
Holger Hans Peter Freyther d777b0ecd0 sysmocom-backup: Store the UUCP data as well
Store UUCP configuration in the backup as well.
2015-08-11 14:09:12 +02:00
Holger Hans Peter Freyther 2a2a0cf499 sysmocom-backup: Create a single sysmocom-backup-default
We can not have sysmocom-backup-default and sysmocom-backup-data-default
installed at the same time. I don't want to play games with RREPLACE and
RPROVIDES either. So simply use one of the two files. Copy the two more
default values over to the other recipe.
2015-08-11 14:08:41 +02:00
Holger Hans Peter Freyther fa5e7b12e5 sysmocom-idu: Fix the core2 vs. core2-32 tune selection
The distro is included after the machine so we can not rely
on the DISTRO_VERSION here. Use the AVAILTUNES and see if the
core2-32 is listed and then pick it.
2015-08-11 13:44:03 +02:00
Holger Hans Peter Freyther fdc0560b63 rauc: Create default files for a rauc slot to be used by the image
Create a sysmocom-nitb-rauc-image and create a rauc packagegroup
with the default depdencies and an include file to be used by
other images. This assumes that sysmocom-image.inc has been
included first.
2015-08-11 10:02:40 +02:00
Holger Hans Peter Freyther e6712d10df sysmocom-idu: Pick the right tune level
Depending on the upstream version (dora or not) we need to
use either core2 or core2-32. Use a python block expression
to pick this depending on the distro version.
2015-08-11 08:14:34 +02:00
Holger Hans Peter Freyther 6159c85e74 sysmocom-defaults: Be a bit more aggressive for the size
E.g. when using musl and trying to build the smallest possible
rootfs. Existing builds should not start to use these flags as
they would be likely to force a big rebuild.
2015-08-10 15:50:13 +02:00
Holger Hans Peter Freyther a11c332fbb sysmocom-defaults: Add some defaults that make sense to be used
While copying one build to a new directory we inherit most of
the config but it is better to collect this in a single place
so external contributors build with the same options we use.
2015-08-10 15:48:04 +02:00
Holger Hans Peter Freyther ac63f16b9b sysmocom-odu/sysmocom-idu: Use the default tunes we actually use
On our build setup we are using these default tune levels, so
we should apply them everywhere.
2015-08-10 15:46:47 +02:00
Henning Heinold e900822de2 init-ifupdown: move sysmocom-idu to meta-sysmocom
Fixes: SYS#1936
2015-08-10 15:20:47 +02:00
Holger Hans Peter Freyther a01eff9366 image-rauc-slot-initramfs: Diet and don't install udev
We don't need udev in the slot ramfs. We do have the
devtmpfs and don't need to apply any kind of rename
2015-08-10 15:19:53 +02:00
Holger Hans Peter Freyther 79545ec6cd sysmoocom-backup-data: Optimize taking a backup
With the ro image we have a cheap way to figure out which
files were changed. We can run cmp between the to be backed
up file. This way the stored data will be minimal in the
sense of changed files.
2015-08-10 15:19:44 +02:00
Holger Hans Peter Freyther 09dbe7bd33 sysmocom-backup-data: Restore all files that were saved
The backup system allows to define which other files to store
so we should just restore everything regardless of where the
file is coming from.
2015-08-10 15:19:36 +02:00
Holger Hans Peter Freyther d1a9e0efbc sysmocom-backup-data: Fix the restore service
When the normal backup script is not installed the issue became
unnoticable. Use the new/right name for the backup script.
2015-08-10 15:19:29 +02:00
Holger Hans Peter Freyther c0d9e409d9 rauc-native: Fix the building of the rauc-native tool
Drop system.conf from the SRC_URI and link the right (current
test certificates) to be used.
2015-08-08 13:51:43 +02:00
Holger Hans Peter Freyther 73d48c807e image-rauc-rescue-initramfs: Do not install kbd packages
None of our systems have a graphical console. We do not need
to install packages that load keymaps, change console fonts and
the console fonts.
2015-08-08 13:51:33 +02:00
Holger Hans Peter Freyther 3c84414af4 image-rauc-ubi: Attempt to fix when building from sstate-cache
These are set by image.bbclass and they appear to resolve the
issue of the exception during SetScene.
2015-08-08 13:35:11 +02:00
Holger Hans Peter Freyther 72f1df181d image-rauc-ubi: Make some more space for the data partition
By using initramfs for the rescue we occupy 8mb + ~3mb for the
kernel and can reduce the size of that slot. With glibc it is
difficult to reduce this even further. Let's see if a uclibc
build can help us
2015-08-07 19:46:02 +02:00
Holger Hans Peter Freyther cc6c1da7a0 sysmocom-backup-data: Store the machine-id and ssh host key 2015-08-07 19:28:52 +02:00
Holger Hans Peter Freyther 4ba1d03895 sysmocom-backup-data: Fix the glob to load additional files list
The defaults.files ends with files and not backup.
2015-08-07 19:26:20 +02:00
Holger Hans Peter Freyther b4124f6924 sysmocom-backup-data: Allow to install in parallel 2015-08-07 19:25:06 +02:00
Holger Hans Peter Freyther 1016ac1dbc linux-sysmocom: Use the only working module scheme
In fido the old autoload feature doesn't work anymore and we
need to remove it. Otherwise our sysmobts.service file will
create the /dev/dspl.. /dev/fpgadl... firmware upload files
and we all think that firmware loading is working.
2015-08-07 19:23:45 +02:00
Holger Hans Peter Freyther d0610b60cf linux-sysmocom: Move the mISDN legacy to the 3.2 kernel recipe
Only in 3.2 we are using mISDN for lcr. Move the module loading
over there so we can let it die when we kill this recipe.
2015-08-07 19:23:27 +02:00
Jan Luebbe fe728f0dcc initramfs-rauc-slot: fix overlay fs name
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-08-07 19:22:56 +02:00
Jan Luebbe 046634e17a image-rauc-ubi: change rescue slot layout
Splitt of the actual rescue root filesystem to
image-rauc-rescue-initramfs and build image-rauc-ubi using
kernel+initramfs (like normal rauc slots).

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-08-07 19:22:16 +02:00
Jan Luebbe 0c06d8a3d3 barebox: update to newer git version for changed rescue slot layout
We now use kernel+initramfs for the rescue slot as well.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-08-07 19:21:50 +02:00
Jan Luebbe eb571a7c88 barebox: update to newer git version for MAC address configuration
The new version configures the MAC address from the EEPROM on the
sysmocom-odu.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-08-07 19:21:34 +02:00
Jan Luebbe 2ad885f06a systemd: ship emergency.service which triggers a reboot
This reboots the system instead of starting a shell on boot problems.
Because the slot will only be marked as sucessfully booted as the last
step in a normal boot, repeated emergency boots will cause a fallback at
the boot chooser level to the other slot.

Testing this is possible by passing 'emergency' via the kernel command
line.
2015-08-07 19:20:43 +02:00
Harald Welte 3da09cecaa Merge commit '78b77de220befe6a532e8afd83780aeef55974fe' into dora
this updates gpsdate for the gps-watchdog sub-package
2015-08-05 11:20:55 +02:00
Harald Welte 78b77de220 gpsdate: Update to most recent version and sub-package gps-watchdog 2015-08-05 11:20:05 +02:00
Harald Welte 4504966c7e import python-smbus from meta-oe/meta-python
As we have a lot of I2C peripherals, it is useful to be able to access
them from a scripting language.
2015-08-01 18:43:55 +02:00
Harald Welte 2c7144acfe Merge commit '970fe3d755034e53878e8ec2041417f4e400124e' into dora 2015-08-01 18:28:57 +02:00
Harald Welte 970fe3d755 Add OE recipe for linux-mpu9150 project 2015-08-01 18:25:55 +02:00
Jan Luebbe c1eeb1a68a barebox: update to newer git version for I2C recovery
The new version contains the I2C recovery support ported from the linux
kernel for sysmobts and sysmocom-odu.
2015-07-31 21:10:57 +02:00
Jan Luebbe 27915edf67 ntp: enable automatic restart
NTPd sometimes fails to start on the first try, but works fine when
restarted.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-07-31 21:10:43 +02:00
Jan Luebbe f0fb4a9ad8 ntp: split off perl-based userspace tools
This makes it possible to install the basic debug tools without pulling
in perl itself.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-07-31 21:10:29 +02:00
Jan Luebbe e4cc94cfd0 linux: update for sysmocom-odu
This adds kernel support for the EEPROM write-protect GPIO. Bump
linux-backports PR as well.
2015-07-31 21:09:44 +02:00
Holger Hans Peter Freyther 11c241c756 u-boot: Unbreak yocto master
We don't care about the specific u-boot version as we are using
our own releas. Use the general glob so we don't need to play
catch up.
2015-07-25 16:40:01 +02:00
Holger Hans Peter Freyther 8de2d28267 Merge commit '33995b24737535a751326d4711330a9f96760cac' into dora 2015-07-23 16:08:57 +02:00
Neels Hofmeyr 33995b2473 busybox-udhcpc: move sysmocom-idu dir.
The proper place apparently is below files/, not next to it.
2015-07-23 16:00:42 +02:00
Neels Hofmeyr bfac671c1c Revert "busybox-udhcpc simple.script: whitespace."
This reverts commit ea8c1346e5,
to facilitate diffing.
2015-07-23 15:55:35 +02:00
Neels Hofmeyr 8e46fae730 busybox-udhcpc: udhcpc.default file for IDU.
Hopefully, this installs a different /etc/default/udhcpc file on
sysmocom-idu machines. Not sure if adding a machine subdir suffices.

The idea is that the machine-specific subdir symocom-idu should replace
the udhcpc.default file used for the idu packages, only, which has both
resolv.conf mods and default route disabled by default.
2015-07-23 15:49:17 +02:00
Neels Hofmeyr 1411cacbce busybox-udhcpc: add option to skip default route.
The IDU requires that udhcpc does neither touch resolv.conf nor install a
default route. Add a flag to switch off default route installation, the
resolv.conf part is already switch-off-able.
2015-07-23 15:49:17 +02:00
Neels Hofmeyr ea8c1346e5 busybox-udhcpc simple.script: whitespace.
Will edit the file in next commit, first fixing indenting to not mess up
the diff.
2015-07-23 15:49:17 +02:00
Neels Hofmeyr bdfd0f736d init-ifupdown: remove iridium "weak" route.
Remove post-up entries from iridium interface config for weak ping route
to ortelius, now set by sob-idu-linkmon itself.
2015-07-23 15:49:17 +02:00
Holger Hans Peter Freyther 28bcb5f43d rtl8169-eeprom: Assume that automake is not used or broken
It looks like a classic src != build dir issue of the
utility breaking the build on Yocto-Master. Try to fix
that.

ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5e-poky-linux-gnueabi/rtl8169-eeprom/v0.0.1+gitAUTOINC+e62e515ce3-r0/temp/log.do_install.2455)
ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5e-poky-linux-gnueabi/rtl8169-eeprom/v0.0.1+gitAUTOINC+e62e515ce3-r0/temp/log.do_install.2455
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_install
| install: cannot stat `/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5e-poky-linux-gnueabi/rtl8169-eeprom/v0.0.1+gitAUTOINC+e62e515ce3-r0/git/rtl8168-eeprom': No such file or directory
| WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5e-poky-linux-gnueabi/rtl8169-eeprom/v0.0.1+gitAUTOINC+e62e515ce3-r0/temp/run.do_install.2455:1 exit 1 from
|   install -m 0755 /home/builder/jenkins/workspace/Yocto-
2015-07-19 22:07:40 +02:00
Holger Hans Peter Freyther d04b359479 Merge commit '6597f246c5afe7a180774169cff83e55277b51d8' into dora 2015-07-19 21:32:57 +02:00
Holger Hans Peter Freyther 6597f246c5 autossh: Force B=S because this is using autoconf and not automake
autossh is not using automake and has a broken buildsystem. For it
to build in the source directory.
2015-07-19 21:26:47 +02:00
Henning Heinold 2276fd4a7b linux-backports: fix build on master
* the kernel build directory was splitted
  and renamed on master
2015-07-19 19:57:17 +02:00
Neels Hofmeyr 38579ae767 init-ifupdown: inmarsat should be dhcp.
From the obn-test config, I wrongly assumed that the inmarsat config should
be static on a vessel. Instead, we need to figure out a way to use dhcp with
linkmon.
2015-07-17 14:33:29 +02:00
Neels Hofmeyr 1ed5160b0d init-ifupdown: adjust comment about metrics 2015-07-17 14:33:29 +02:00
Holger Hans Peter Freyther 0aec6171be osmo-pcu: Make sure the commit is available in a branch
The builds of the stable upgrade and the Yocto-Master failed
because of the commit gone missing (no remote is referencing
it). I created a dummy branch to hold this commit.
2015-07-14 14:48:43 +02:00
Neels Hofmeyr 119a9ce8b4 init-ifupdown: set 'inactive' sat metrics, comment. 2015-07-14 14:27:27 +02:00
Neels Hofmeyr c09cac566d init-ifupdown: add IDU eth0.2002 inmarsat config 2015-07-14 14:24:53 +02:00
Holger Hans Peter Freyther 1422f63b03 autossh: Add a small ssh spawner/link tester 2015-07-12 11:50:02 +02:00
Holger Hans Peter Freyther fd44e0be45 image-rauc-slot-rescue: Make sure dropbear is in the image too 2015-07-12 11:50:02 +02:00
Holger Hans Peter Freyther 9955e6aaf6 image-rauc-slot-rescue: Remove bts kernel modules if present
In case of the sysmobts we can remove the kernel modules for
the dsp communication.
2015-07-12 10:47:22 +02:00
Holger Hans Peter Freyther e696c6fb6b image-rauc-slot-rescue: Do not add e2fsprogs-fsck
For the ODU/BTS we do not have ext4 and will not need to check
a filesystem. Do not install these recommendations.
2015-07-12 10:41:49 +02:00
Holger Hans Peter Freyther 870b73cb12 image-rauc-slot-rescue: Remove some more files from it
* We never need the BTS firmware. We never want to do GSM from
within rescue image

* Remove various udev hardware dbs. I think we couldn't care less
about identifying peripheral devices by name and such.
2015-07-12 09:22:58 +02:00
Holger Hans Peter Freyther 455820b8d3 image-rauc-slot-rescue: Reduce the size of the rescue slot
The system should be as small as possible and besides tools to
touch flash and block files, SSHD and rauc there should be nothing
else. We might continue to have opkg on it to allow updating it
2015-07-12 09:21:03 +02:00
Holger Hans Peter Freyther e2d36a57d4 task-sysmocom-feed: Build the new rtl8169-eeprom
We want this to be installable for the IDU system and for now
let's put it into the feed.
2015-07-11 08:56:10 +02:00
Holger Hans Peter Freyther f8535440b7 rtl8169: And kill the COMPATIBLE_MACHINE completely
Yes, this does require a PCI bus and will not run on a BTS
but there is no specific config file or such.
2015-07-11 08:55:08 +02:00
Holger Hans Peter Freyther f70f875e83 rtl8169: Fix the machine name for the E1 one 2015-07-11 08:54:34 +02:00
Henning Heinold de502623c1 rtl8169-eeprom: add recipe for rtl8169-eeprom 2015-07-11 08:48:07 +02:00
Holger Hans Peter Freyther 209666c7dd linux-sysmocom: Document upgrade issue with the kernel
The reverse dependency appears broken. Add a comment to
the recipes to warn us when updating. The issue does not
appear to exist in master of Yocto.

Related: SYS#1353
2015-07-09 09:53:11 +02:00
Neels Hofmeyr 9cef909c82 init-ifupdown: fix typo in network/interfaces 2015-07-06 23:03:26 +02:00
Harald Welte f3e12f1297 Merge commit '5c86ed95c907f9e518a8fa3b3f6d58a8fe0a4f56' into dora 2015-07-06 14:03:33 +02:00
Harald Welte 2ffc4a04b0 Merge commit '97676796f729efd1c847ff65da9a5076ab0a8cbb' into dora 2015-07-06 14:03:30 +02:00
Harald Welte 5c86ed95c9 linux-backports: bump PR as dependency to kernel somehow not working
See SYS#1353 for details.
2015-07-06 14:02:02 +02:00
Jan Luebbe bcbd47e2af barebox: update to newer git version for eeprom write-protect
For the sysmocom-odu, this add support for the EEPROM write-protect
GPIO.
2015-07-03 17:46:05 +02:00
Jan Luebbe 385453cf22 initramfs-rauc-install: add installer for the sysmocom-idu
The partition layout needed for rauc is different from the one created
by the existing installer (based on the live image).

An initramfs-framework module for installation to the sysmocom-idu is
added. It is included in a corresponding initramfs image for use on an
USB memory stick.
2015-07-03 17:45:24 +02:00
Jan Luebbe 2cd82376d9 initramfs-framework: make sure console messages are visible on reboot
The serial console may take some time to send the messages, so sleep a
moment before rebooting.
2015-07-03 17:44:59 +02:00
Jan Luebbe e8097c044e rauc: update to newer version
The new version fixes a possible free of an uninitialized pointer.
2015-07-02 22:10:21 +02:00
Jan Luebbe 3c38bd3c2f barebox: enable password support for sysmobts and sysmocom-odu
This uses a new git revision to use a required fix.
2015-07-02 22:10:14 +02:00
Jan Luebbe 2b3373ce53 rauc: update to newer version
The new version fixes compatibility checking.
2015-07-02 22:09:48 +02:00
Jan Luebbe 5b5741f314 sysmocom-backup-data: add alternative package for overlay based systems
When using squashfs + overlayfs a root, we need to store the backup
somewhere else and restore it on every boot. Do avoid breaking existing
users, this is implemented in a separate recipe (as suggested by Holger).
2015-07-02 22:09:29 +02:00
Jan Luebbe 20d03de6b2 rauc: build without background service
The allows us to drop the RDEPENDS on dbus.
2015-07-02 22:09:09 +02:00
Holger Hans Peter Freyther 6826004831 osmo-pcu: Upgrade PCU and fix the branch name 2015-07-02 22:02:19 +02:00
Holger Hans Peter Freyther 89e0c53ba8 osmo-bts: Bump the PR to force a re-fetch of the source 2015-06-30 22:04:23 +02:00
Holger Hans Peter Freyther a2bb468480 osmo-bts: Fix the branch name in the hope to fix the build 2015-06-29 07:57:13 +02:00
Holger Hans Peter Freyther 97676796f7 openggsn: Inherit pkgconfig as it is by configure 2015-06-26 21:31:38 +02:00
Holger Hans Peter Freyther 3c9ac429ac Merge commit '7e54997fbe9903d9c734cbea5e37bea71cb2fb7b' into dora 2015-06-26 13:39:22 +02:00
Holger Hans Peter Freyther 94adaf9c2d Merge commit '7b41ee80ec30db8d218ce900bf0df5d2333e42c1' into dora 2015-06-26 13:39:17 +02:00
Holger Hans Peter Freyther 7e54997fbe osmo-bts/osmo-pcu: Upgrade to the latest version of the BTS and PCU 2015-06-26 10:26:03 +02:00
Holger Hans Peter Freyther 7b41ee80ec openbsc: Require c-ares for the SGSN now 2015-06-26 10:20:40 +02:00
Holger Hans Peter Freyther 210921f81d c-ares: Import from meta-intel-iot-middleware
Needed by OpenBSC

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-iot-middleware/plain/recipes-connectivity/c-ares/c-ares_1.10.0.bb
2015-06-26 10:19:50 +02:00
Jan Luebbe 70993c331d ti33x: use cortexa8hf-neon tune by default
We don't use any binary only components and can avoid the performance
penalty.

[hfreyther: The ODU build had changed the tune through
the local.conf already]
2015-06-26 10:10:48 +02:00
Jan Luebbe b97e39bb9c Revert "sysmocom-odu: Barebox doesn't build anymore. Disable it for now"
We now can build barebox again (even with
DEFAULTTUNE="cortexa8hf-neon").

This reverts commit 17a8ba8c03.
2015-06-26 10:10:07 +02:00
Jan Luebbe 2df16ea744 barebox: use KERNEL_CC and KERNEL_LD
Barebox should be built like the kernel. We have to disable the target
userspace tools because they cannot be build using KERNEL_CC (which is
missing --sysroot=).
2015-06-26 10:09:56 +02:00
Jan Luebbe f7b01afb65 sysmocom-backup: make file list configurable
Move the default file list to a separate file in /etc/sysmocom/backup.d,
which is itself included in the backup. Also create a symlink to the
most recent backup.
2015-06-26 10:01:15 +02:00
Holger Hans Peter Freyther ce5e874f31 libosmo-sccp: Update as well for new function used by OpenBSC 2015-06-26 09:59:25 +02:00
Holger Hans Peter Freyther 6a7ee08532 Big Osmocom update to the latest code
* Update libosmocore with GB fixes and endian.h work
* Update libosmo-netif for rtp header changes
* Update OpenGGSN that now has libosmocore logging
* Update OpenBSC with many new features, subscriber queue
  rework and more
2015-06-26 09:39:36 +02:00
Holger Hans Peter Freyther 11808b7330 Merge commit '17a8ba8c038aac23bd7cadbc6ed786c72adbb350' into dora 2015-06-24 13:21:16 +02:00
Holger Hans Peter Freyther 17a8ba8c03 sysmocom-odu: Barebox doesn't build anymore. Disable it for now 2015-06-24 13:20:39 +02:00
Henning Heinold 576577f9c9 busybox/init-ifupdown: do not use ifplugd on master
- remove file with wrong path to ifplugd
  recipes-core/busybox/files/busybox-ifplugd.sh
  DAEMON=/usr/bin/ifplugd vs. /usr/sbin/ifplugd

- use lambda expression for sysmobts/sysmobsc-kernel to
  include busybox-ifplugd or not

- use different defconfig files between master
  and dora to enable ifplugd or not

- use different interfaces files between master
  and dora to enable auto stanza or not
  for the dhcp interface

Fixes:  SYS#868 and SYS#1535

[hfreyther: Try to pick an option less likely to break the
Dora support but allowing us to move forward. Not entirely
compile tested due IO load of the system]
2015-06-23 20:48:25 +02:00
Holger Hans Peter Freyther c09363a966 Merge commit '29faf705ed31e2bf30be8cc0064f26be1851fcc3' into dora 2015-06-23 16:36:22 +02:00
Henning Heinold 29faf705ed packagegroup-sysmobts-sob: add iproute2-misc package
Fixes: SYS#1609
2015-06-20 21:26:49 +02:00
Henning Heinold 1716d4ffae iproute2: enable lnstat and package all commands from misc into its own package
* disable arpd because db_185.h is not installed from the berkely db
  recipe

Fixes: SYS#1609
2015-06-20 21:26:36 +02:00
Jan Luebbe ffd5888c91 barebox: fix uImage booting
Also set the watchdog timeout to 60 seconds.
2015-06-15 17:21:27 +02:00
Jan Luebbe 6fdbf6bc94 sysmocom-image: build a squashfs image as well
The /boot directory is excluded from the squashfs image only, as in that
case it is stored separately. This allows booting normal sysmocom images
as rauc slots.
2015-06-15 17:18:44 +02:00
Jan Luebbe 1624c59731 barebox-sysmocom-odu-mlo: disable SPI support
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-14 12:39:23 +02:00
Jan Luebbe 2d2854e820 barebox: rebase to 2015.06 2015-06-14 12:39:23 +02:00
Jan Luebbe 66aa807866 barebox: pass CC to make
This should fix a build error with poky master.
2015-06-14 10:34:27 +02:00
Holger Hans Peter Freyther 34467d0c27 rauc: This should work on the BSC as well 2015-06-14 08:43:04 +02:00
Holger Hans Peter Freyther fd1467b902 rauc: Tell it how mksquashfs is called. 2015-06-13 21:07:05 +02:00
Holger Hans Peter Freyther 572347079f linux-sysmocom: Build with the AUFS build fix
The change of SRCREV was wrong we were supposed to build that
version but the push didn't work. It is now rebased.
2015-06-13 20:15:32 +02:00
Holger Hans Peter Freyther 8aba112988 linux-sysmocom_3.2: This is only used for the ODU remove the rest
Remove all traces of the sysmobts from this recipe as we have
not used linux-3.10 there for a very long time.
2015-06-13 19:12:15 +02:00
Holger Hans Peter Freyther e01922e39b linux-sysmocom: Correct the srcrev for 3.2.69 2015-06-13 19:10:00 +02:00
Holger Hans Peter Freyther 6a91c316f0 sysmocom-odu: Make sure we have usb2514 in all images 2015-06-13 18:49:07 +02:00
Jan Luebbe b5586ef6c9 image-rauc-slot-rescue: UBI parameters should be set by the machine
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:48:30 +02:00
Holger Hans Peter Freyther 6b93b56e9b barebox-state: Let OE figure out the architecture automatically
If we apply machine specific patches the result package will be
machine specific.
2015-06-13 18:40:22 +02:00
Jan Luebbe 54a37fcd6e barebox-state: add support for sysmocom-odu
The state data is in a different location than on the sysmobts-v2.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:38:47 +02:00
Jan Luebbe e1aa1be647 image-rauc-slot-rescue: support sysmobts
For the sysmobts we need custom ubi volume layout, so we need to
override IMAGE_CMD_ubi().

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:37:29 +02:00
Jan Luebbe 445244c528 barebox: use uImage instead of zImage
Also move to a combined branch for sysmobts and sysmocom-odu. Disable
bootloader spec support as well.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:27:44 +02:00
Jan Luebbe 99d4e91827 sysmocom-odu: use barebox-sysmocom-odu as the bootloader
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:27:22 +02:00
Jan Luebbe 988645dbe8 barebox: add support for sysmocom-odu
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:26:17 +02:00
Holger Hans Peter Freyther 67a666df1a sysmobts-v2: Build the standard barebox as well 2015-06-13 18:25:29 +02:00
Jan Luebbe d07ecd129b barebox-sysmobts: add recipe
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:24:06 +02:00
Jan Luebbe 3ddf763457 barebox-sysmocom: remove 201407 recipe
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:22:17 +02:00
Jan Luebbe dafdcb0404 initramfs-rauc-slot: pass the rootfstype kernel parameter to mount
This fixes mounting ubifs filesystems.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 18:05:18 +02:00
Holger Hans Peter Freyther 81ff4d7d75 sysmocom-bsc: Install a custom fstab file
Mount /boot rw so that grub can store/update the state for
rauc. A user can then rm -rf /boot/grub and the machine will
be dead.
2015-06-13 18:01:12 +02:00
Holger Hans Peter Freyther 681966c5e0 rauc: Depend on busybox-state or grub
Rauc is configuted to either invoke busybox-state or grub. Make
sure these are installed when rauc itself is installed.
2015-06-13 17:40:23 +02:00
Holger Hans Peter Freyther 263e63eab6 image-rauc-slot-resuce: Install rauc as well
Install rauc so a user can update/fix the normal slots
2015-06-13 17:33:56 +02:00
Holger Hans Peter Freyther b033024efe sysmocom-idu: Force the ext4/tar.gz
meta/conf/machine/include/ia32-base.inc:13 (ext3 cpio.gz live)
forces the above image formats that are not relevant to us at
all. Found and done by Jan.
2015-06-13 17:31:31 +02:00
Jan Luebbe 1dbb411e3d images: add rauc slot and rescue initramfs images
Add initramfs images for rauc slots.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 17:23:28 +02:00
Jan Luebbe 51c1b427ec initramfs-framework: override init file to reboot on error
The initramfs-framework from oe-core performs an endless loop of "sleep
3600" when fatal() is called. We need to reboot instead.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 17:21:24 +02:00
Jan Luebbe 4993c83bcb initramfs-rauc-slot: add recipe to boot a slot using aufs2
This uses the "initramfs-framework" from oe-core.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 17:19:20 +02:00
Jan Luebbe 2ec9d6401d barebox-state: support sysmobts
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 17:13:14 +02:00
Jan Luebbe 50a86a5528 rauc: add recipe
Signed-off-by: Jan Luebbe <jluebbe@debian.org>

[hfreyther: Do not use AUTOREV. Merged all follow-up commits]
2015-06-13 17:12:32 +02:00
Holger Hans Peter Freyther 28ce8b07da linux: Enable squashfs and aufs
* Disable ext2/ext3 (as ext4 can be used to mount them).
* Enable AUFS/Squshfs support
* Misc improvements (e.g. ARM optimized AES code, disable
drivers/frameworks unlikely to be used)
2015-06-13 16:56:33 +02:00
Jan Luebbe 0b5ef67cd9 linux-sysmocom: update to 3.2.69
Enable squashfs, disable OneNAND and update config.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 16:50:54 +02:00
Holger Hans Peter Freyther 74d77d1fc6 linux-sysmocom: Store the extended .config file
Jan prefers to store the fully extended .config file so we will
do it. One advantage is to more easily see what has changed between
two kernel versions.

cp ../build.sysmobts/tmp/work/sysmobts_v2-poky-linux-gnueabi/linux-sysmocom/3.10.80+gitAUTOINC+3122273386-r43/git/.config ./recipes-bsp/linux/files/sysmobts-v2/defconfig
cp ../build.sysmobts/tmp/work/sysmocom_odu-poky-linux-gnueabi/linux-sysmocom/3.2.63+gitAUTOINC+3ed283bea6-r41/git/.config ./recipes-bsp/linux/files/sysmocom-odu/defconfig
cp ../build.sysmobts/tmp/work/sysmocom_bsc-poky-linux/linux-sysmocom/3.10.80+gitAUTOINC+3122273386-r43/git/.config ./recipes-bsp/linux/files/sysmocom-bsc/defconfig
2015-06-13 16:41:28 +02:00
Holger Hans Peter Freyther b93e94b60b linux-sysmocom: Move to 3.10.80 and prepare DT/AUFS
Apply the AUFS patch for 3.10.80 and enable basic DT support
in the board file needed by our image based update system.
2015-06-13 14:52:26 +02:00
Jan Luebbe 9bd713ab35 barebox-state: add recipe
Signed-off-by: Jan Luebbe <jluebbe@debian.org>

[hfreyther: Use a fixed version of the utilities]
2015-06-13 14:52:26 +02:00
Holger Hans Peter Freyther d6bbef850f sysmobts-2050: Remove left overs from the BTS code 2015-06-13 14:52:26 +02:00
Holger Hans Peter Freyther e8989345d2 sysmobts-v1: Remove the v1 support of our old hardware config
I think the last device we sold was in 2011 and I am not aware
if anyone has used it for the last couple of years. Remove it
to lower the complexity of the builds.
2015-06-13 14:52:26 +02:00
Jan Luebbe 4aabca2c30 glib-2.0: backport 2.40 from Yocto Dizzy
Drop support for gnome-ptest to simplify backporting.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:25:17 +02:00
Holger Hans Peter Freyther e5177cd80c task-sysmocom-feed: Build python-enum as well 2015-06-09 23:37:15 +02:00
Henning Heinold 3078014afc python-enum: add recipe
* recipe was stolen from
  http://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/plain/meta-openstack/recipes-devtools/python/python-enum_0.4.4.bb

* remove the DEPENDS and RDEPENDS line, because they
  are not needed

* do not build the dev and dbg packages

Fixes: SYS#1082
2015-06-09 23:37:15 +02:00
Henning Heinold dc739f3c27 init-ifupdown: Revert - Take the force solution and make our script available
This reverts commit 9934406ade.

Fixes: SYS#1534
2015-06-09 16:59:41 +02:00
Henning Heinold b48f99da26 iproute2: add misc directory to buildline and package ss, nstat, rtacct and ifstat
Fixes: SYS#1609
2015-06-03 08:00:00 +02:00
Harald Welte 908ebc9836 perl-json: Add two missing dependencies
This resolves an error message like "Can't locate bytes.pm in @INC (@INC contains: /etc/perl /usr/lib/perl/site_perl/5.14.3/ /usr/lib/perl/site_perl/5.14.3 /usr/lib/perl/vendor_perl/5.14.3/ /usr/lib/perl/vendor_perl/5.14.3 /usr/lib/perl/5.14.3/ /usr/lib/perl/5.14.3 /usr/local/lib/site_perl /usr/lib/perl/5.14.3 .) at /usr/lib/perl/vendor_perl/5.14.3//JSON/backportPP.pm line 668."
2015-05-26 15:47:17 +02:00
Holger Hans Peter Freyther f60431c3b0 libjson-perl: Attempt to fix the LIC_FILES_CHKSUM ping-pong
Somehow master and dora generate different checksums for the
same file. Use a different file and start in the "COPYRIGHT AND
LICENSE" and hope it is stable across these two files.
2015-05-22 11:04:57 +08:00
Holger Hans Peter Freyther e9cb8049b0 ping: Provide a "flood" ping for the sob group
Related: SYS#1657
2015-05-22 00:42:23 +08:00
Harald Welte 0d60036748 Merge commit 'c9908cfd53dd4d2e71d528ba9e019325e7409d70' into dora 2015-05-21 17:52:32 +02:00
Harald Welte c9908cfd53 increment nfacct PR to force package rebuild 2015-05-21 17:52:15 +02:00
Harald Welte d57ac4e3e6 nfacct json support: add timestamp to json output 2015-05-21 17:52:15 +02:00
Holger Hans Peter Freyther 3c7a1caef2 libjson-perl: Drop the idea of using libjson-xs-perl
Drop the dependency and more modules. I don't feel like packaging
Types::Serialiser and then their dependencies and so on. The pure
perl based encoding does work and we don't want to run this code
every milli second.
2015-05-21 19:52:00 +08:00
Holger Hans Peter Freyther 27897f433a Merge commit 'b792b649e4cd2b7376af52642610b6bb5f489d5f' into dora 2015-05-21 19:38:28 +08:00
Holger Hans Peter Freyther b792b649e4 libjson-xs-perl: Add needed dependency by the same author
libjson-xs requires another module that is normally not
packaged.
2015-05-21 19:37:00 +08:00
Holger Hans Peter Freyther d454e151c3 libjson: Make the pure-perl version work
Depend on two more modules to have the following code
emit something:

 #use JSON::XS;
use JSON;

my %rec_hash = ('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
my $json = encode_json \%rec_hash;
print "$json\n";
2015-05-21 19:10:09 +08:00
Holger Hans Peter Freyther be3c19b19b Merge commit '7f9ef4ddb9a0fd454e3fff9a58bbd8fa44cb6cef' into dora 2015-05-21 18:37:50 +08:00
Holger Hans Peter Freyther 7f9ef4ddb9 libjson-perl: Fix the license file checksum
I am not exactly sure how I managed to skip this step
locally and when I broke it.
2015-05-21 18:37:06 +08:00
Holger Hans Peter Freyther 20e4089ce3 Merge commit '8161ee10f0bf148d4dff4f584d3a6c02737d0f73' into dora 2015-05-21 18:30:06 +08:00
Holger Hans Peter Freyther 8161ee10f0 libjson-perl: Fix last minute dependency issue 2015-05-21 18:29:21 +08:00
Holger Hans Peter Freyther 263ac6b27f Merge commit 'bbfff1e487037b2a60588d30e2a3851cf2c4be49' into dora 2015-05-21 18:17:59 +08:00
Holger Hans Peter Freyther bbfff1e487 task-sysmocom-feed: Build perl and include the new modules
We want these modules to be available, specially to
determine the real depedencies and then to fix them.
2015-05-21 18:15:35 +08:00
Holger Hans Peter Freyther 3f26af624b perl/json: Add two libraries needed for perl/JSON handling
Besides DBI we need the JSON module. As far as I can see
JSON can use JSON:XS as a fast encoder/decoder. This is
why both libraries need to be provided.
2015-05-21 18:12:13 +08:00
Holger Hans Peter Freyther a54fdc0570 libdbi/libdbd: Import the perl module needed for a script
We need DBI and the sqlite3 backend support for a small
monitoring application. Make it available. The files were
taken from meta-perl as of yesterday.
2015-05-21 17:34:31 +08:00
Holger Hans Peter Freyther ea9e9cc540 Merge commit '753b6db01978d37dca23176ed94f7612904bbda1' into dora 2015-05-21 15:18:46 +08:00
Holger Hans Peter Freyther 753b6db019 Create sysmobts-sob task and make sure the real ifupdown is installed
Add the new task to task-sysmocom-feed so it is being built by
default in our CI infrastructure.

make iputils available as well for people wanting to use a real
ping/traceroute/arping.

Related: SYS#1190
2015-05-21 15:17:11 +08:00
Harald Welte 5a597a3c91 Merge commit 'd3ae677639d84714602fd02e6803a7e6c5c45ecc' into dora 2015-05-20 11:01:53 +02:00
Harald Welte d3ae677639 nfacct: Add patches for direct JSON output format
Rather than parsing the existing XML or standard output of the nfacct
utility, and then piping that into a perl/python script for formatting
to JSON, we teach nfacct to generate JSON directly.  This seems like
the proper way to do it.  The patches will be submitted mainline.
2015-05-20 11:00:13 +02:00
Henning Heinold 88f39279bc sysmocom-idu: remove ifplugd from MACHINE_ESSENTIAL_EXTRA_RDEPENDS
[hfreyther: I asked henning to move forward and not test this. We
do not have dhcp/dynamic config in /etc/network/interfaces and the
link will always be up on the idu due it being connected to a switch.
ifplugd is not doing anything useful in this context]

Fixes: SYS#1535
2015-05-19 21:20:50 +02:00
Holger Hans Peter Freyther 155ee4768e Merge commit 'a89b5587e2601c6a325e7a748f392fb8025df515' into dora 2015-05-19 21:10:47 +02:00
Henning Heinold a89b5587e2 image-static-dns.bb: new image snippet to set a static dns configuration
Fixes: SYS#1126
2015-05-19 21:10:02 +02:00
Holger Hans Peter Freyther 8b5f88e80b syslog: Do not re-create the symbolic link
In SYS#659 we wanted that "file" will always log to a persistent
/var/log. After I changed the /etc/default/volatiles/00_core for
the IDU and made journald persistent we still ended up having the
symlink. It appears to be caused by this script.

* When "buffer" is used we don't need to care about /var/log as
it is not being used at all.

* When "file" is set we make sure that /var/log is not a symlink.

In case of the IDU the journald should now be persistent.

Related: SYS#659
2015-05-15 11:12:39 +02:00
Henning Heinold e374c6bc04 busybox-udhcpc: add default file to control the modification of /etc/resolv.conf
- using commit aee3a65e2a,
  which fixes the route metrics from holger for all machines

Fixes: SYS#1126
2015-05-14 15:32:11 +02:00
Holger Hans Peter Freyther 6dfbeb8cea Merge commit '8073a33e2cb0bbf3aa7ac14808e4cedebb0c20f4' into dora 2015-05-13 12:16:35 +02:00
Holger Hans Peter Freyther 8073a33e2c qtbase: Cherry-pick ioctl change from Qt 5.4
The log is spammed with:

May 03 06:24:58 kernel[221]: Loading kernel module for a netw....
May 03 06:24:59 kernel: Loading kernel module for a network ...d.

this is because of an ioctl for an invalid device which leads
to the kernel trying to load a module. This occurs many times
a minute.

I have cherry-picked 1910454fe00cce8b815b1abc0a18a04d3d387ccf which
merged without conflicts. It has not been compile tested.

Related: SYS#1610
2015-05-13 12:11:56 +02:00
Holger Hans Peter Freyther ad81ff7de9 Merge commit 'bf472b1799a81f46ef0598efd31e64618b8f0730' into dora 2015-05-13 09:33:27 +02:00
Holger Hans Peter Freyther bf472b1799 initscripts: Attempt to have /var/log on the root partition
For the IDU we currently want to have persistent log files. We
need to fork the volatiles script (installed as 00_core) and it
is already different between dora and current master of poky.

We are missing an sob-idu-qa check that verifies that /var/log
is not a symlink and that /etc/systemd/system/journald.conf is
set to persistent too.

Related: SYS#659
2015-05-13 09:31:50 +02:00
Holger Hans Peter Freyther 4dafdbcc17 systemd: Make the log persistent for the IDU
Similar to the T-ODU we would like to keep a persistent log.
This commit is completely untested, rushed and not the final
one (/etc/default/volatiles/00_core most likely needs patching
and we want to limit the size of the log as well).

Related: SYS#659
2015-05-13 09:31:50 +02:00
Harald Welte abe0c65892 idu /etc/network/interfaces: Major update
* add interface for connection to Inmarsat
* remove 'br0' and work directly with 'eth2' instead, to avoid bridges
  in vlans of bridges
* bridge the video LAN also into the backbone (for later break-out)
2015-05-12 22:29:49 +02:00
Holger Hans Peter Freyther d97e87f46b dbus: Catch up with yocto-master
dbus is now using version 1.8.16 instead of the old version.
Our patch does not depend on a specific version of dbus, so
let us use a wildcard.
2015-05-11 16:31:37 +02:00
Harald Welte d35fbc4f82 [idu] dnsmasq: Add DHCP range for video subnet 2015-05-10 11:22:49 +02:00
Jan Luebbe 5304e22ff4 busybox: create /etc/default before using it
This fixes an error during do_install for busybox when building on dora.
2015-05-06 11:23:48 +02:00
Harald Welte 35a13a17ee conntrack-tools: Dont have HTML as init script, but actual script 2015-05-05 15:32:44 +02:00
Holger Hans Peter Freyther 1a61dfc20a linux-sysmocom: Really base on 3.10.76 for our kernel
linux-sysmocom_git.bb is used for the BTS, BSC and IDU. Let's
really use 3.10.76 (from 3.10.50 just rebased and not tested
on the device yet). This should fix the Yocto-Master build
tonight.
2015-05-04 21:15:28 +02:00
Daniel Willmann 933d151e84 Merge branch 'hheinold/ntp'
Ticket: SYS#1180
2015-05-04 20:05:53 +02:00
Henning Heinold ef2c9b84d3 busybox: add package for udhcpc which can set the ntp server provided by the dhcpc-server
* the oe udhcpc calls /usr/share/udhcpc/default.script which
  calls run-parts -a "$1" /etc/udhcpc.d, so we can install
  our script as 60ntp

* using /etc/default/udhcpc-ntp to have the possibility
  to disable it on the target, its enabled per default

Related: SYS#1180
2015-05-04 20:03:57 +02:00
Henning Heinold f0278f35a9 dnsmasq: provide the ntp server running on the idu to the dhcp clients
Fixes: SYS#1180
2015-05-04 20:03:05 +02:00
Holger Hans Peter Freyther 4d76f00233 linux-sysmocom: Remove the branch from the SRC_URI
9610e792ffde7fb2599d19ca6d2a03230f2043c6 can not be found
in the linux-3.10.76 branch. Just avoid this branch game.

ERROR: Fetcher failure: Unable to find revision 9610e792ffde7fb2599d19ca6d2a03230f2043c6 in branch linux-3.10.76 even from upstream
ERROR: Function failed: Fetcher failure for URL: 'git://git.sysmocom.de/sysmo-bts/linux.git;protocol=git;branch=linux-3.10.76'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/sysmobts_v2-poky-linux-gnueabi/linux-sysmocom/3.10.76+gitAUTOINC+9610e792ff-r43/temp/log.do_fetch.16350
NOTE: recipe linux-sysmocom-3.10.76+gitAUTOINC+9610e792ff-r43: task do_fetch: Failed
ERROR: Task 126 (/home/builder/jenkins/workspace/Yocto-Master/label/OE/meta-sysmocom-bsp/recipes-bsp/linux/linux-sysmocom_git.bb, do_fetch) failed with exit code '1
2015-05-03 23:15:40 +02:00
Harald Welte bd6709ae21 Merge commit '809e9cd999f670950d250b1097a423a4f08fd8a4' into dora 2015-05-03 11:38:12 +02:00
Harald Welte 809e9cd999 ulogd: Disable building pgsql/mysql output plugins
As ulogd's configure script doesn't support this out of the box, we need
to patch it for this.
2015-05-03 11:37:57 +02:00
Holger Hans Peter Freyther 8753fbf081 yocto-master: We shouldn't need to patch pkgconfig anymore
pkg.m4 has been packaged in the main package for a long
while. We certainly don't need this in master anymore.

ERROR: No recipes available for:
 /ws/meta-sysmocom-bsp/yocto-master/pkgconfig_0.28.bbappend
2015-05-02 21:24:53 +02:00
Harald Welte 973134df36 Merge commit '3324575ef58f53ac38c59415de16a510c874200c' into dora 2015-05-02 19:23:06 +02:00
Harald Welte 3324575ef5 nfacct: RDEPENDS should be ${PN} specific 2015-05-02 19:21:31 +02:00
Harald Welte 58a8325efa Merge commit '6938804c99f4e86d917bc504701219ad978f611e' into dora 2015-05-02 17:34:47 +02:00
Harald Welte 6938804c99 nfacct: Add RDEPENDS to kernel modules
nfacct in userspace doesn't work without its kernel counterparts..
2015-05-02 17:33:40 +02:00
Harald Welte 7c6170178d ulogd: Add RDEPENS to respective kernel modules
some sub-packages of ulogd don't make sense without the corresponding
kernel modules
2015-05-02 17:31:34 +02:00
Harald Welte 864ea38cb9 Merge commit '62856a3a9b246d714d60820582dfa03b34408d6a' into dora 2015-05-02 14:19:42 +02:00
Harald Welte 62856a3a9b [idu/bsc] bump PR of linux-sysmocom_git.bb 2015-05-02 14:18:56 +02:00
Harald Welte 8b9a9895ec [bsc/idu]: keep netfilter/ipsec as modules
It seems like the kernel/package/upgrade/... proceess doesn't deal well
with the fact that some options used to be modules, which are now
built-in.  Let's keep it as modules for the time being.
2015-05-02 14:15:35 +02:00
Harald Welte 2a0308613d Merge commit '1e38dac840ad6493b68559d5878f1bb4bbe95027' into dora 2015-05-02 12:29:34 +02:00
Harald Welte 1e38dac840 update sysmobts/sysmocom-bsc/sysmocom-idu from 3.10.50 to 3.10.76 2015-05-02 12:28:33 +02:00
Harald Welte f6410166f8 bsc/apu/idu: enable more netfilter / networking features
this enables conntrack events, ipset, ebtables, tc
scheduler/classifiers/ematches and much more.

it also disables the ATM code for which I don't think we have any use
case.
2015-05-02 12:23:23 +02:00
Harald Welte 0ac57c632d Merge commit '98a3705d93d238a66110adc9082f32685ae19f05' into dora 2015-05-02 12:02:37 +02:00
Harald Welte 98a3705d93 ulogd: Import init script (from openembedded.org)
the ulogd-1.x script should simply work for ulogd-2.x
2015-05-02 11:45:46 +02:00
Harald Welte c1651f735b Merge commit 'b3923ebb690cad9ad0ca8d0c7a021cf82ea5ae59' into dora 2015-05-02 09:30:28 +02:00
Harald Welte b3923ebb69 conntrack-tools: update from 1.4.0 to 1.4.2 2015-05-02 09:29:48 +02:00
Harald Welte 35af0578bf update libnetfilter-conntrack from 1.0.2 to 1.0.4
... as there's no specific reason to use a 2012 old release.
2015-05-02 09:25:44 +02:00
Harald Welte 2a74413574 Merge commit 'ef40d4a5fd63b1477c184d2e4c50e6d7a124fd59' into dora 2015-05-02 09:21:19 +02:00
Harald Welte ef40d4a5fd add libnetfilter-queue from meta-openembedded.git 2015-05-02 09:17:00 +02:00
Harald Welte 9604d878c8 Merge commit '9c3c430ea2350ee45bf05c82b8d1333f3bf71370' into dora 2015-05-02 09:15:56 +02:00
Harald Welte 9c3c430ea2 add libnetfilter-cthelper and move all libnetfilter-* to one directory 2015-05-02 09:15:20 +02:00
Harald Welte f5860b5721 Merge commit 'fb51ce8a2e804cc0a5fd0975a00c3be44cda8767' into dora 2015-05-02 09:11:13 +02:00
Harald Welte fb51ce8a2e import libnetfilter-cttimeout from meta-openembedded.git
this is required by conntrack-tools.
2015-05-02 09:10:26 +02:00
Harald Welte 416847b66d Merge commit '66b18ff049314e3ad2c9ddd92b64ae319470ed7f' into dora 2015-05-01 23:30:14 +02:00
Harald Welte 66b18ff049 ulogd: split out some plugins in sub-packages
some plugins have external dependencies (jansson for JSON, ...) and we
dont want to pull those dependencies for all users.
2015-05-01 23:29:18 +02:00
Harald Welte 59e8120312 add jansson recipe (from meta-openembedded.git)
jansson is required for the ulogd JSON output plugin.
2015-05-01 23:08:31 +02:00
Harald Welte d22aad22df proper name for ulogd recipe (fixes build) 2015-05-01 23:07:34 +02:00
Harald Welte e31d5e8e13 Merge commit '4c6162968fc7b298bff6c06861bb287d35d0863f' into dora 2015-05-01 20:00:09 +02:00
Harald Welte 4c6162968f ulogd2: Don't intherit update-rc.d as we don't have an init script yet 2015-05-01 19:59:39 +02:00
Harald Welte 51a7495f21 [sysmocom-bsc] linux: Enable more netfilter matches/targets 2015-05-01 19:52:36 +02:00
Harald Welte 65bed443a2 Merge commit 'a3b942cdd9cb675589ac424130003b892208f371' into dora 2015-05-01 19:47:16 +02:00
Harald Welte a3b942cdd9 conntrack-tools: we don't have autotools-brokensep 2015-05-01 19:46:50 +02:00
Harald Welte 2d72c18711 Merge commit 'c2ef6813b8ffe7c60bb04404474a31bd83bea034' into dora 2015-05-01 19:38:39 +02:00
Harald Welte c2ef6813b8 first attempt at creating a ulogd2 recipe 2015-05-01 18:52:15 +02:00
Harald Welte 3de926bd8d import conntrack-tools from meta-openembedded 2015-05-01 18:45:53 +02:00
Harald Welte 75772d538b import libnetfilter-conntrack from meta-openembedded 2015-05-01 18:44:48 +02:00
Harald Welte a2064b489f import libnetfilter-log from meta-openembedded.git 2015-05-01 18:44:28 +02:00
Harald Welte 25ce796b36 import libnfnetlink from meta-openembedded.git 2015-05-01 18:44:10 +02:00
Harald Welte bcbe10686b Merge commit '8c70168d4001d029a60ab155042785ff831f3f9b' into dora 2015-05-01 17:51:49 +02:00
Harald Welte 8c70168d40 [idu] dnsmasq: Add neptune as upstream DNS resolver 2015-05-01 17:29:32 +02:00
Harald Welte 441293a2cd [idu] dnsmasq: config improvements
* we are the authoritative DHCP server for all local networks
* filter bogus windows DNS queries
* don't respect local resolv.conf (pointing to localhost)
* increase cache size to 1000 entries
2015-05-01 17:23:35 +02:00
Harald Welte 57e1184d07 [idu] dnsmasq: Advertise NTP server to DHCP clients 2015-05-01 16:54:09 +02:00
Harald Welte a9b30a9328 idu: dnsmasq.conf: Last address should be .254, as .255 is broadcast 2015-04-25 16:54:53 +02:00
Harald Welte fd275216a9 idu: Add dnsmasq configuration for WiFi networks 2015-04-25 16:54:17 +02:00
Harald Welte 7c0152141a idu: interfaces: Add VLAN 1001/1002/1003 for WiFi 2015-04-25 16:51:43 +02:00
Harald Welte e39ad31981 Merge commit '90b40a8448e773237a6d5e241c278867a7eff750' into dora 2015-04-20 20:52:15 +02:00
Harald Welte 90b40a8448 missing change from previous commit :/ 2015-04-20 20:51:37 +02:00
Harald Welte e614c9b5eb IDU: /etc/network/interfaces add host route to neptune public IP
this is taken from SYS#1513
https://projects.sysmocom.de/redmine/issues/1513
2015-04-20 20:22:51 +02:00
Holger Hans Peter Freyther bd6b673e26 Merge commit '9934406adea76c57b4f1c34cbf9dfe6e5db35515' into dora 2015-04-20 10:11:40 -04:00
Holger Hans Peter Freyther 9934406ade init-ifupdown: Take the force solution and make our script available
Related: SYS#1514
2015-04-20 10:10:18 -04:00
Holger Hans Peter Freyther d98550a233 Merge commit 'e0bcee0206fd3052fd2cf45c587957e6143fd1c7' into dora
With interfaces change from harald and the init script revert
2015-04-20 09:56:59 -04:00
Holger Hans Peter Freyther e0bcee0206 init-ifupdown: Attempt to make our init script available for everyone
Create the /run/network directory for all of our systems. The
proper way with tmpfiles.d ends with a depedency mess that has
no point in being debugged.

My local build hasn't completed yet but we need to rush. Let the
CI test this change and we will see.

Related: SYS#1514
2015-04-20 09:56:16 -04:00
Holger Hans Peter Freyther c32b0df2e3 ifupdown: Revert the tmpfiles.d change as the dir is created too late
It looks like on my tests with the sysmobts I was saved by
busybox-ifplogd executing ifup again. I couldn't figure out
the dependencies between the LSB networking service and the
tmpfiles.d interaction. So instead of winning a beauty contest
we will need to create the directory by hand.

Cause: SYS#1514

Revert "ifupdown: Package the new file as well"
This reverts commit 15dc869cda.
Revert "ifupdown: Try the workdir for the files we copied"
This reverts commit 1ef790672e.
Revert "ifupdown: Create /run/network through a tmpfiles.d"
This reverts commit e0c7f3c621.
2015-04-20 09:56:16 -04:00
Harald Welte 7843fb4085 idu /etc/network/interfaces: Add VLANs for iridium, switch mgmt 2015-04-18 22:32:58 +02:00
Holger Hans Peter Freyther aa5270f6b1 Merge commit '259e1fa468e8af48c6e3382fe5de025d10bb8fbc' into dora 2015-04-15 18:39:45 -04:00
Holger Hans Peter Freyther 259e1fa468 dnsmasq: Add DHCP for BTS in the new vlan
Fixes: SYS#1491
2015-04-15 18:37:44 -04:00
Holger Hans Peter Freyther 8d89f603d3 interface: Add Vlan #7 for all GSM basestations
Untested, simply copy and pasted from the ticket

Related: SYS#1491
2015-04-15 18:35:46 -04:00
Holger Hans Peter Freyther e2042ff291 init-ifupdown: Force manual IP configuration for Openport
Interfaces file from roh, not tested by me.

Fixes: IDU#1491
2015-04-15 18:33:17 -04:00
Holger Hans Peter Freyther 121891e463 Merge commit '9bd8feb83c1e5259ef705cc641cc968362a04fe6' into dora 2015-04-14 15:10:28 +02:00
Holger Hans Peter Freyther 9bd8feb83c linux-sysmocom: Enable VLAN modules for the ODU as well
They are available as module for the BSC/IDU and BTS.
This is why I decided to enable this as module as well
2015-04-14 15:09:06 +02:00
Holger Hans Peter Freyther ef36c3e699 busybox: Call the file correctly it is an append 2015-04-13 22:04:42 +02:00
Holger Hans Peter Freyther de697810db busybox: Move the 1.23.1 to 1.23.2 for Yocto master 2015-04-13 18:17:12 +02:00
Holger Hans Peter Freyther fc105b99dd busybox: Catch up with Yocto master 2015-04-13 18:14:45 +02:00
Holger Hans Peter Freyther 16ebad57f0 Merge commit '15dc869cdacf69bb3728ff0d47f7ff1ffbe18fca' into dora 2015-04-13 18:10:16 +02:00
Holger Hans Peter Freyther 15dc869cda ifupdown: Package the new file as well 2015-04-13 18:10:04 +02:00
Holger Hans Peter Freyther 3207d4b477 Merge commit '1ef790672e6bdb4ae7e281dcb71edb674c931474' into dora 2015-04-13 17:51:42 +02:00
Holger Hans Peter Freyther 1ef790672e ifupdown: Try the workdir for the files we copied 2015-04-13 17:51:23 +02:00
Holger Hans Peter Freyther 305ee03b28 Merge commit 'e0c7f3c62132ff7b1a9c7d2c01ef2be60c6c0ddc' into dora 2015-04-13 17:43:07 +02:00
Holger Hans Peter Freyther e0c7f3c621 ifupdown: Create /run/network through a tmpfiles.d
This way the ifupdown application will not only work
for the IDU/ODU but the BTS, BSC and any other machine
we want to build.

(untested OE modification)
2015-04-13 17:42:34 +02:00
Holger Hans Peter Freyther 1620d1e81d Merge commit 'ba8eee83bd2ac4d13a00b20d92ed2c19a20052bc' into dora 2015-04-13 17:14:32 +02:00
Holger Hans Peter Freyther ba8eee83bd ifupdown: Jesside/SID moved to 0.7.53 and the sources are gone
Instead of trying to see if 0.7.53 is working, fetch 0.7.52
from a hopefully more stable source.
2015-04-13 17:13:55 +02:00
Holger Hans Peter Freyther e7a10f014d linux_2.6.39: Remove all traces from our layer
* Move the "defconfig" back to files/sysmocom-bsc/defconfig
* Remove the linux_2.6.39 recipe
2015-04-13 17:01:19 +02:00
Holger Hans Peter Freyther e855697bcb Merge commit 'ad976e4eb3c8c531d6fe808b5d68c48e05a81877' into dora 2015-04-13 16:57:16 +02:00
Holger Hans Peter Freyther ad976e4eb3 task-sysmocom-feed: Make the python json rpc available 2015-04-13 16:55:43 +02:00
Henning Heinold 8ba007f078 jsonrpclib: add recipe for jsonrpclib
- the git version was choosen because it has
  some fixes for newer python versions

- test where done with the test file from the github
  repository and some unixsocket tests failed

Related: SYS#1082
2015-04-13 16:55:08 +02:00
Holger Hans Peter Freyther dd3b1def75 tasks-symocom-feed: Make the real ifupdown available and iproute2 2015-04-13 16:54:25 +02:00
Henning Heinold 3665ee11ce images: add snippet for writing the sysmocom.manifest
Fixes: SYS#1470
2015-04-10 19:11:15 +02:00
Holger Hans Peter Freyther 05216f5a96 Merge commit '8e95d188c5597485b54e3fac8210ea532e221870' into dora 2015-04-10 15:30:44 +02:00
Holger Hans Peter Freyther 1440b3f6ef Merge commit 'f44fee44be75a06deb85248b6e82c21a52bf34a7' into dora 2015-04-10 15:30:40 +02:00
Holger Hans Peter Freyther 8e95d188c5 interfaces: Add post-up route for the IDU
To be able to talk to the equipment we need to set a route
after the link is up. Assume that no other (e.g. 3G) equipment
is using the same IPv4 address range.

Message-ID: 55279904.9020802@sysmocom.de
2015-04-10 15:28:58 +02:00
Holger Hans Peter Freyther f5acd1801c osmo-pcu: Build new version with Jacob's changes 2015-03-31 20:15:44 +02:00
Holger Hans Peter Freyther f44fee44be libosmocore: Build libosmocore 0.8.0+git 2015-03-31 20:13:45 +02:00
Henning Heinold 1f87162b0b layerconf: changes to let the layer build on dora and master
* removes the components for dizzy, we will skip it
* simplify the mapping from DISTRO_NUMBER to DISTRO_NAME
* remove watchdog.bbappend for master
2015-03-31 20:10:12 +02:00
Holger Hans Peter Freyther 436d02dfa6 Merge commit '1f660fd4b00076baa867a75fdf766e8fe2c75b9d' into dora 2015-03-31 17:08:27 +02:00
Henning Heinold 1f660fd4b0 netbase/init-ifupdown: seperate both overrides and remove the appends of netbase for master and dizzy
* historical netbase in edison was not split and files were
  in netbase

Fixes: SYS#1142
2015-03-31 17:06:15 +02:00
Henning Heinold 456f674b22 wireless-tools: Remove the hack for dora too
Related: SYS#922
2015-03-31 17:05:17 +02:00
Henning Heinold b271d31282 ntp: add pool.ntp.org back as default ntp server for ntpdate
Fixes: SYS#1185
2015-03-20 09:41:08 +01:00
Holger Hans Peter Freyther ea1483dd5c wireless-tools: Remove our hack from the package
This is not of general interest for our users. Move the code
somewhere else.

Related: SYS#922
2015-03-18 14:16:40 +01:00
Henning Heinold 21356b7508 initrdscripts: make it possbile to secure grub with a password
* an example setup for the IDU can be found on
  https://projects.sysmocom.de/redmine/projects/sob-idu/wiki/ProvisioningSetup

Fixes: SYS#1130
2015-03-07 22:15:00 +01:00
Holger Hans Peter Freyther 88300710db systemd: Yocto master has moved to system_219.. follow 2015-02-27 11:59:28 +01:00
Holger Hans Peter Freyther a44ed4fd61 Merge commit '143a630c0239817377cb40b6173b6899d7160a7e' into dora 2015-02-27 11:47:41 +01:00
Holger Hans Peter Freyther 143a630c02 sysmocom-odu: Enable autofs for systemd
Enable autofs support to have the proc-sys-fs-binfmt_misc.automount
be able to mount/load the binfmt support.

Related: SYS#1216
2015-02-27 11:46:03 +01:00
Holger Hans Peter Freyther 70f58e7a77 Merge commit 'e4452116a837368dd385b548323822f3f90baa2b' into dora 2015-02-27 09:38:48 +01:00
Holger Hans Peter Freyther e4452116a8 cronie: Attempt to fix the bbappend for dora 2015-02-27 09:38:34 +01:00
Holger Hans Peter Freyther 8850542075 Merge commit '1241f0e762cadab0ac6d5ccb4e866286b4799d7d' into dora 2015-02-27 09:10:54 +01:00
Holger Hans Peter Freyther 1241f0e762 linux-sysmocom: Attempt to enable the nfacct module
NETFILTER_NETLINK_ACCT defaults to off. Let's enable it
in the config.
2015-02-27 08:44:23 +01:00
Holger Hans Peter Freyther e0675ada31 cronie: Install crontab that cruns daily, weekly, hourly jobs
The crontab installed by cronie doesn't actually run the daily
files. Fix that so that our logrotate application is being called.

Related: SYS#1189
2015-02-24 19:03:39 +01:00
Holger Hans Peter Freyther 20d11ba2a2 Merge commit '9f334509d84ead91d73e5ff2c44eb7d22d5a95e6' into dora 2015-02-24 14:21:09 +01:00
Holger Hans Peter Freyther 9f334509d8 ntp: Bump PR to 6 to allow online upgrades
As pointed out by Harald the PR is lower than the package
that is already on the device. Bump it to 6 then.

Current:
opkg list_installed | grep ntp
ntp - 4.2.8p1-r5.0
ntp-tickadj - 4.2.8p1-r5.0
ntpdate - 4.2.8p1-r5.0
2015-02-24 14:20:05 +01:00
Harald Welte 78a71230c3 Merge commit '7daf173e303492e1fb8400793841e305529c3852' into dora 2015-02-23 21:48:46 +01:00
Harald Welte 7daf173e30 ntp: (re-)add pps-tools dependency
otherwise the PPS driver of ntpd will not be built, even with
--enable-ATOM explicitly set during ./configure
2015-02-23 21:47:21 +01:00
Harald Welte d44da082be Import pps-tools recipe from current meta-oe master 2015-02-23 21:43:30 +01:00
Harald Welte 77bd929be1 Merge commit 'c2356c429d8cfd6c22d694f67b70de62c1bca643' into dora 2015-02-23 21:06:16 +01:00
Holger Hans Peter Freyther c2356c429d ntp: Upgrade to patch level 1 for additional security fixes
When re-importing the recipe I accidently went back to a
vulnerable version again. *sigh*.

Fixes: SYS#1211
2015-02-23 20:56:50 +01:00
Holger Hans Peter Freyther 2251e090de busybox: After renaming the the bbappend rename the configs we use 2015-02-23 20:55:43 +01:00
Harald Welte 3a5cd732a9 ntp: forgot to add ntp_4.2.8p1.bb 2015-02-23 20:54:11 +01:00
Harald Welte 4de8fd1b08 linux-sysmocom: Add PPS platform device 2015-02-23 20:26:28 +01:00
Harald Welte 1a531a35c3 ntp: Update from 4.2.8 to 4.2.8p1 (6 vulnerability fixes) 2015-02-23 20:26:11 +01:00
Harald Welte 22c055b2f1 ntp: Enable the kernel PPS driver and use it on the ODU 2015-02-23 19:54:34 +01:00
Harald Welte be1e58f0c3 Merge commit '9b377fd3a960f56e3f2dc46f3d7006ed6c8cf587' into dora 2015-02-23 16:31:04 +01:00
Harald Welte 9b377fd3a9 sysmocom-odu kernel: Enable kernel PPS support
we still need a platform device to attach it to GPIO 115.
2015-02-23 16:15:19 +01:00
Holger Hans Peter Freyther d25cb4280e Merge commit '67d4fc8d404982d5ca95a68f98005e0c2b486f28' into dora 2015-02-22 14:31:44 +01:00
Holger Hans Peter Freyther 67d4fc8d40 uucp: Add missing configuration file 2015-02-22 14:31:24 +01:00
Holger Hans Peter Freyther 59806e79f4 Merge commit '06fe8c4e401b9b8da6fd5b575899277dd37a5f0d' into dora 2015-02-22 14:26:52 +01:00
Holger Hans Peter Freyther 06fe8c4e40 uucp: Require logrotate and install a config file for UUCP
Related: SYS#1189
2015-02-22 14:25:20 +01:00
Holger Hans Peter Freyther bb52b805a1 Merge commit '675690cc52e6ec13a402472779ab37f266125c19' into dora 2015-02-22 13:35:00 +01:00
Holger Hans Peter Freyther 675690cc52 tasks-sysmocom-feed: Add logrotate to our sysmocom feed.
Related: SYS#1189
2015-02-22 13:29:55 +01:00
Holger Hans Peter Freyther 6cae788ecb Merge commit 'cf53c2b4e0f32697f9c13ae74a22d3f5e56e9b84' into dora 2015-02-22 02:13:29 +01:00
Holger Hans Peter Freyther cf53c2b4e0 ntp: Import from meta-networking
Import ntp 4.2.8 from meta-networking. Our version has some weird
dependency issues that create build breakages and more.

Remove the pps-tools dependency compared to meta-networking and
leave the ntp.conf as doneby Harald (e.g. drift on /etc and not
in /var...). Now I have not verified the upgrade path but I sadly
merged testing to stable when the ntp changes were comitted on
monday. This means I can't easily test the upgrade.
2015-02-22 02:04:28 +01:00
Holger Hans Peter Freyther be27d4cc76 busybox: Catch up with yocto-master and rename our recipe 2015-02-20 17:02:49 +01:00
Harald Welte 7fe10b247b Merge commit '4235a5776f5be9a989985048b192d2dd78ced809' into dora 2015-02-20 14:32:37 +01:00
Harald Welte 4235a5776f ntp: Fix/complete update to 4.2.8p1
This new version of ntp has quite a number of changes, e.g.
certain utilities requiring perl, and some programs are now in
/usr/sbin rather than /usr/bin.
2015-02-20 14:29:46 +01:00
Harald Welte 4a476598a3 Merge commit '42d9a2747fc9bf704e9cc3e37d70e596d2f73899' into dora 2015-02-20 12:43:19 +01:00
Harald Welte 42d9a2747f ntp: bump PR 2015-02-20 12:43:07 +01:00
Harald Welte e02115a382 Merge commit '21871fa648bfa17f00386e2b0c49946daa51706c' into dora 2015-02-20 12:40:50 +01:00
Harald Welte 21871fa648 ntp: add "--with-yielding-select=yes" requird by 4.2.8p1 2015-02-20 12:40:31 +01:00
Harald Welte 4c10771fc4 Merge commit 'f47375cb49cd2d7cd41022e116ed089c5537bc00' into dora 2015-02-20 12:36:01 +01:00
Harald Welte f47375cb49 ntp: remove tickadj.c.patch which has been merged upstream 2015-02-20 12:35:42 +01:00
Harald Welte 07f3875919 Merge commit 'b386e617120844046e46b1178ba665bb6e1f5217' into dora 2015-02-20 12:32:06 +01:00
Harald Welte b386e61712 ntp: update md5sum/sha256sum 2015-02-20 12:31:34 +01:00
Harald Welte c631f3ea01 Merge commit '823aa457c690c24ad835618a457932a1b4ab738d' into dora 2015-02-20 12:28:24 +01:00
Harald Welte f176345e8e Merge commit '979f16d1b1b522c677e1578aa7b0779805d99eb6' into dora 2015-02-20 12:27:17 +01:00
Harald Welte 823aa457c6 upgrade ntp from 4.2.6p3 to 4.2.8p1
4.2.8 has received fixes for 6 vulnerabilities, see
http://support.ntp.org/bin/view/Main/SecurityNotice#Recent_Vulnerabilities
2015-02-20 12:26:51 +01:00
Harald Welte 979f16d1b1 odu: fix typo: sysmcom -> sysmocom 2015-02-20 12:26:51 +01:00
Harald Welte db89f2037b Merge commit '74b87851e194827cc0db9dd87203bed4784fa3d0' into dora 2015-02-20 12:19:11 +01:00
Harald Welte 74b87851e1 ntp: rename sob-odu/ntp.conf to sysmocom-odu/ntp.conf
the odu specific config file was not packaged
2015-02-20 12:16:29 +01:00
Harald Welte 4998486b95 Merge commit '38d1587db55d0bad2a6cf32a7939998738a899a2' into dora 2015-02-20 11:33:48 +01:00
Harald Welte 38d1587db5 add pciutils to task-sysmocom-feed
It is handy to have it on the APU/BSC/NITB/IDU
2015-02-20 11:32:56 +01:00
Harald Welte d7e88c9356 ntp: Add systemd service files + ODU specific configuration
On the ODU, we have a local GPS/GNSS receiver as prefision time source.
2015-02-20 11:29:49 +01:00
Holger Hans Peter Freyther 5de4108c11 i2c-tools: Do not use autotootls as bbclass
The sources are not using autotools and the
build breaks.

ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/log.do_install.10782)
ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/log.do_install.10782
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_install
| NOTE: make -j 2 DESTDIR=/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/image install
| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/run.do_install.10782:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/armv5te-poky-linux-gnueabi/i2c-tools/3.1.1-r0/temp/log.do_install.10782)
NOTE: recipe i2c-tools-3.1.1-r0: task do_install: Failed
2015-02-17 19:00:17 +01:00
Holger Hans Peter Freyther 703e99dee6 linux-sysmocom: Backport nfacct patches and enable the module
I have no idea if that works or not. The integration work should
have been done by someone else.

Related: ORT#650
2015-02-17 18:40:33 +01:00
Holger Hans Peter Freyther 5d56fdb07e task-sysmocom-feed: Make sure nfacct is in our feed as well
We want to use nfacct for better monitoring/matching. Put it
into the feed to be able to experiment with it.
2015-02-16 23:42:39 +01:00
Holger Hans Peter Freyther 137b6b0d6a nfacct: Add recipe for nfacct as well
Related: ORT#650
2015-02-16 23:42:39 +01:00
Holger Hans Peter Freyther 77b2c49b65 libnetfilter-acct: Add recipe needed for nfacct
This is the second dependency of nfacct. Create a simple
recipe for it.
2015-02-16 23:34:23 +01:00
Holger Hans Peter Freyther 191503323b libmnl: Import from meta-networking
We need this for nfacct
2015-02-16 23:26:19 +01:00
Holger Hans Peter Freyther a561f17dac osmo-bts: Ignore failures on symlinking
In yocto versions before dizzy/master the build was done
in the source directory and when configure was executed
twice in the same directory we would have a build failure
due the symlink already existing. Simply assume that if
the ln fails the link is already there.

Out of disk space situations are handled more early by
OE and missing files will be found by configure.

In dizzy/master OE will clean the build directory before
calling configure so the issue does not apply there.

Fixes: SYS#1170
2015-02-16 23:15:54 +01:00
Holger Hans Peter Freyther 5ba3282e45 ca-certificates: Fix build and lower default preference
This is a late fall-out of the priority changes done by
Henning. This recipe is not using autotools and doesn't
support src != build dir builds. So let's not use the
autotools class but simply invoke install ourselves. Let's
lower the default preference so the recipe from yocto master
is picked as well.

ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890)
ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'common-linux', 'common-glibc', 'allarch-linux', 'common']
| DEBUG: Executing shell function do_install
| NOTE: make -j 2 DESTDIR=/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/image install
| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/run.do_install.16890:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890)
NOTE: recipe ca-certificates-20120623-r0: task do_install: Failed
ERROR: Task 3639 (/home/builder/jenkins/workspace/Yocto-Master/label/OE/meta-sysmocom-bsp/recipes-extra/ca-certificates/ca-certificates_20120623.bb, do_install) failed with exit code '1'
2015-02-16 08:31:08 +01:00
Holger Hans Peter Freyther aee3a65e2a simple.script/udhcpc: Do not remove someone's else default route
A lease bound/renewal could lead to the removal of a default
route set by pppd. Apply the same "dev $interface" filter that
would be used when using the "route" command.

Fixes: SYS#1163
2015-02-15 18:20:41 +01:00
Holger Hans Peter Freyther bfdac72642 Merge commit '9e6e792ec1df919d040a7f8436d03016e364a078' into dora 2015-02-15 15:03:33 +01:00
Holger Hans Peter Freyther 9e6e792ec1 systemd: Only add the service once...
Keep the journald off on all other targets
2015-02-15 15:03:08 +01:00
Holger Hans Peter Freyther 6b2acc8c39 Merge commit '592c6d7295a24cd49bbf49fcbc089d261bc286af' into dora 2015-02-15 14:43:03 +01:00
Holger Hans Peter Freyther 592c6d7295 systemd: Do not disable the journald on the IDU
The IDU is powerful enough to run the journald. This gives us
some convenienance to have additional output from our services
and we can query them at a later point in time.

This will only be useful for systems that are re-installed
from scratch.

Fixes: SYS#892
2015-02-15 14:35:53 +01:00
Holger Hans Peter Freyther 884d2dfa6f Merge commit 'd31db523c89c0fd97711e9857da003b77b822cd1' into dora 2015-02-15 12:10:18 +01:00
Holger Hans Peter Freyther d31db523c8 systemd: Modify legacy.conf to have 775 as file permission for /run/lock
UUCP (cu, uux, uu*) attempts to create locks in /run/lock and it
fails. It fails because the current permission of the directory is
0755 but the binary is owned by uucp:root. Modify the legacy.conf
and change the permission to 0775.
2015-02-15 12:02:53 +01:00
Holger Hans Peter Freyther 08011e961e systemd/legacy.conf: Add the current file for tmpfiles.d 2015-02-15 11:57:42 +01:00
Holger Hans Peter Freyther cfe0753c23 u-boot: Catch up with latest yocto master changes 2015-02-15 09:33:34 +01:00
Holger Hans Peter Freyther 8fb884727e Merge commit 'ba75c10df7fa49e8acae27df8ee7cdaf761f725a' into dora 2015-02-15 00:42:02 +01:00
Holger Hans Peter Freyther ba75c10df7 sispmctl: Add utility to control the power outlet strip
Fixes: SYS#1134
2015-02-15 00:41:02 +01:00
Holger Hans Peter Freyther 846cc6b9ab gpsdate: Add an option to not fork and use it
Fixes: SYS#1152
2015-02-14 23:33:47 +01:00
Holger Hans Peter Freyther a15ce6544e initramfs-live-install: Reboot on panic after 60 seconds
Reboot the machine after a panic.

Related: SYS#1151
2015-02-14 22:00:08 +01:00
Holger Hans Peter Freyther 08d1155752 systemd: Enable the hardware watchdog for the IDU as well
The built-in watchdog even allows setting the watchdog interval
2015-02-14 21:56:35 +01:00
Holger Hans Peter Freyther d0eaf31cec Merge commit '78d586c8910f2d66400fdeee56fe176f4de96288' into dora 2015-02-14 21:00:56 +01:00
Holger Hans Peter Freyther 78d586c891 linux-sysmocom: Attempt to force a rebuild..
Somehow a kernel was built but still with revision r39.
Atempt to to force it.
2015-02-14 21:00:00 +01:00
Holger Hans Peter Freyther 4f7eba0c66 sysmobts-2050: The machine type is gone.. remove the file
The patching of the system.conf is done as part of the post-install
action of the system.
2015-02-14 20:46:30 +01:00
Holger Hans Peter Freyther 9d376794fc Merge commit '674b7ea9894888bc2008d732135b73a22568ea89' into dora 2015-02-14 20:38:00 +01:00
Holger Hans Peter Freyther 674b7ea989 linux-sysmocom: Build the hardware watchdog available in the APU
Related: SYS#1148
2015-02-14 20:36:07 +01:00
Holger Hans Peter Freyther a5a8a18186 linux-sysmocom: Enable k10temp and i2c-piix4 in the kernel
I edited the config through make menuconfig and then used
savedefconfig but the diff from our config to a minimal
defconfig is too big. So I enabled the temp sensors and i2c
by hand.

Fixes: SYS#1148
2015-02-14 20:31:17 +01:00
Holger Hans Peter Freyther b8915da842 gpsdate: We can't leave the default empty 2015-02-14 20:31:11 +01:00
Holger Hans Peter Freyther 8f92c2b6ff Merge commit 'f1e030419861b90cd0274a71fe7180804b8ccdca' into dora 2015-02-14 19:54:39 +01:00
Holger Hans Peter Freyther f1e0304198 busybox/50default: Start with the metric of 10 for the IDU
For wlan and ppp we want to be able to install another default
route and this is only possible if we can use smaller metrics.
2015-02-14 19:39:47 +01:00
Holger Hans Peter Freyther 60ab5bff4c busybox/05default: Add the script that is used in dora
There was a bugfix in regard to broadcast addresses in
master but I decided to not take the fix as I want to
stay close to the other builds.
2015-02-14 19:38:54 +01:00
Holger Hans Peter Freyther 8d0dfc7b72 Merge commit '8c0c8b1229c2736c57e3cbe864035ae19629e940' into dora 2015-02-14 16:33:40 +01:00
Holger Hans Peter Freyther 8c0c8b1229 gpsdate: Upgrade version due machine specific change
The current 1:0.1+git1+019d2535b6-r9.2 is considered to be older
than the new gpsdate_0.1+git0+2326eee789-r10 file. Change the
PE to benefit from an upgrade.
2015-02-14 16:17:04 +01:00
Holger Hans Peter Freyther 8726e552f9 Merge commit '7b3ce0e6f739d31e42f8207f45b487d40401dc84' into dora 2015-02-14 16:05:56 +01:00
Holger Hans Peter Freyther 7b3ce0e6f7 gpsdate: Provide a default config for the ODU system
The ODU has the GPSD for GNSS/GPS listening on a different
port. In hindsight this was a stupid decision but one we can
only fix once we move to generating the config of the system
at boot time.

Fixes: SYS#906
2015-02-14 16:05:07 +01:00
Holger Hans Peter Freyther 8bff0cbee2 gpsdate: Install the service and provide an empty default config 2015-02-14 15:59:05 +01:00
Holger Hans Peter Freyther 5d1e296ec5 Merge commit '2d93f2256ad9ed45c61505c208451f9fa00245f7' into dora 2015-02-14 14:44:35 +01:00
Holger Hans Peter Freyther 2d93f2256a ifupdown: Launch udhcpc the same we way always do it
In case the port is not in a forwarding state.. don't just
give up but background and move on. This appears to be needed
for the odu to acquire a lease when STP is used.
2015-02-14 14:43:07 +01:00
Holger Hans Peter Freyther 5c4968dd70 wifi2udp: Honor the global default file for the destination address 2015-02-14 13:44:02 +01:00
Holger Hans Peter Freyther c2ee669136 Merge commit 'adbc448df6520702b697938417b53e157e26a927' into dora 2015-02-14 13:37:01 +01:00
Holger Hans Peter Freyther adbc448df6 init-ifupdown: Add the specific init file for the ODU as well
For the V-ODU we want to have vlan support as well. This requires
to use the debian ifupdown which means we need a script that creates
/run/network early enough.
2015-02-14 11:48:09 +01:00
Holger Hans Peter Freyther 34d053fbe8 sysmocom-openvpn-config: Always start but rename the config file
For the sysmoBTS (and other devices) we always enable the service
but move the config file to a name that will be ignored by the
systemd generator.
2015-02-14 11:45:22 +01:00
Holger Hans Peter Freyther 3235c311c9 barebox-sysmocom-mlo: Modernize and upgrade as well
The name of the config file was changed and so far
I was hesitant to upgrade the MLO. I think the change
in EEPROM applies to the MLO as well so we should
upgrade it. It has neither been build tested nor tested
on a device.
2015-02-14 08:47:12 +01:00
Holger Hans Peter Freyther f69c396c1d barebox-sysmocom: Update to have access to the right EEPROM 2015-02-14 08:43:48 +01:00
Henning Heinold 38cd265fbc gpsd: add systemd servcie file for the idu
Fixes: SYS#171
2015-02-14 08:31:04 +01:00
Harald Welte fbe38a755c Merge commit '9fd3aad4c9da930d3b611b400841c365fbd8ede3' into dora 2015-02-13 19:31:12 +01:00
Harald Welte 9fd3aad4c9 dnsmasq: update PR to ensure rebuild 2015-02-13 19:30:49 +01:00
Harald Welte 729ec80937 Merge commit 'f01baf4cfbdb55ac223903f14b9ab5aee3cf983a' into dora 2015-02-13 19:26:28 +01:00
Harald Welte 8805f0a8bb Merge branch 'dora' of ssh://git.sysmocom.de/customer/generic-poky into dora 2015-02-13 19:26:05 +01:00
Harald Welte f01baf4cfb [idu]: Update /etc/network/interfaces
On eth1 we should also use a network from the 172.16 block rather than
the 10.23 that we used on the sysmoBSC

Also, we now use 172.16.4.0/23 natively on the bridged onboard network,
this is a temporary measure so existing JBs will still connect and get
an IP address before their software is updated to use VLAN6.  After they
(and all APs, BTSs, etc.) have migrated, the 172.16.4.0/23 can be
removed.
2015-02-13 19:23:38 +01:00
Holger Hans Peter Freyther 0f2f51f20c Merge commit '3f2d2d338122e71b6a22f58f43e57ac8dfb3fcc1' into dora 2015-02-13 19:17:41 +01:00
Holger Hans Peter Freyther 3f2d2d3381 init-ifupdown: Make sure to create the /run/network directory
For systemd and the Debian ifupdown application we need to
have the /run/network directory. The debian init file is
creating it on the fly and we should do the same for now.
2015-02-13 19:17:16 +01:00
Holger Hans Peter Freyther 3094ddf651 init-ifupdown: Copy the init script from dora 2015-02-13 19:17:16 +01:00
Holger Hans Peter Freyther b6c7e01aee Revert "ifupdown: create a tmpfiles.d file to create /run/network"
networking.service - LSB: Raise network interfaces.
   Loaded: loaded (/etc/init.d/networking)
   Active: failed (Result: exit-code) since Fri 2015-02-13 17:59:17 UTC; 43s ago
  Process: 54 ExecStart=/etc/init.d/networking start (code=exited, status=1/FAILURE)

Feb 13 18:04:47 sysmocom-idu networking[54]: ifup: failed to open lockfile /run
/network/.ifstate.lock: No such file or directory

The creation of /run/network occurs way too late. So we need
to look for another solution.

This reverts commit 86dda7481f.
2015-02-13 19:17:16 +01:00
Harald Welte 272a3538bb dnsmasq IDU config updates
* DHCP range for 'vlan6' onboard network 172.16.2.0/23
* DHCP range for 'native' onboard network 172.16.4.0/23
* DHCP range for 'admin' port eth1 172.16.6.0/24
* domain name vessel.sob.sysmocom.de
* listen on all interfaces, not just one
* allow admin to specify static leases (ODU) in /etc/dnsmasq.dhcp-hosts
2015-02-13 19:13:35 +01:00
Harald Welte 5a09ef71ff dnsmasq: enablle tftp only on IDU 2015-02-13 19:09:20 +01:00
Harald Welte 574fa651d5 dnsmasq: Enable tftp 2015-02-13 18:33:46 +01:00
Holger Hans Peter Freyther 2a79140b6d Merge commit 'ddd36a90fca6ccd48e9981308e71e99aa976ce91' into dora 2015-02-13 18:24:18 +01:00
Holger Hans Peter Freyther ddd36a90fc ifupdown: Attempt to initiliaze the environment in all cases
$ ifup br0.6

would go throup _none_up of links.defn and never call the
set_environ for any of the files. Check for environ being
null and then call the set_environ function to initialize
the PATH. This is changing the semantic to allow the iface,
mode and phase to be NULL. I tried to add proper null checks
2015-02-13 18:19:18 +01:00
Henning Heinold 86dda7481f ifupdown: create a tmpfiles.d file to create /run/network
[hfreyther: Only mention /run/network]
2015-02-13 18:18:14 +01:00
Holger Hans Peter Freyther 38e58aca4d Merge commit '9bac297806e30162a77e34ad04ea516f7f697833' into dora 2015-02-13 17:00:00 +01:00
Holger Hans Peter Freyther 9bac297806 init-ifupdown_sysmocom: This is the file with the interfaces
I bumped netbase but that wasn't the right package, this one
has the new interfaces file in it.
2015-02-13 16:59:21 +01:00
Harald Welte b3eb45783d Merge branch 'dora' of ssh://git.sysmocom.de/customer/generic-poky into dora 2015-02-13 16:48:01 +01:00
Holger Hans Peter Freyther c1920defe6 Merge commit '5457cb39b4f48da02abb8b938a759d4fbf130381' into dora 2015-02-13 16:46:35 +01:00
Holger Hans Peter Freyther 5457cb39b4 netbase: We added a new OVERRIDE file.. bump the PR
The PR system isn't clever enough to figure out that a different
file would be picked. Update the PR right now.
2015-02-13 16:32:37 +01:00
Holger Hans Peter Freyther 396d421838 ifupdown: Always ignore errors for busybox/Poky
--exit-on-error is not supported by the busybox run-parts
and the easiest way is to make the ignore-errors option
the default.

I didn't test the change on the device but is looks sound.
2015-02-13 15:39:18 +01:00
Harald Welte f6cfc0aeb1 Merge commit '122a4cd73c49be91754cdb8cdfbaa4512a2b5a11' into dora 2015-02-13 15:30:11 +01:00
Harald Welte 122a4cd73c [idu]: br0.6:0 address should be _static_, not _manual_ 2015-02-13 15:29:46 +01:00
Holger Hans Peter Freyther 2bad279d89 Merge commit '82613a30150b564cc3f3b1a551138a38291ea61e' into dora 2015-02-13 15:24:40 +01:00
Holger Hans Peter Freyther 82613a3015 linux-backports: Rename it to linux-backports for clarity
A lot of things can be backported, we are interested in backports
for the linux kernel.
2015-02-13 15:21:08 +01:00
Henning Heinold c017956120 sysmocom-odu: add defconfig for sysmocom-odu and remove kernel modules from the machine config
Related: SYS#850
2015-02-13 15:21:08 +01:00
Henning Heinold 5297f12bc1 backports: add linux-backports driver package
* needed to copy over the oe-core kernel-module classes
  and modify them because there was no other way to use them and
  name the packages kernel-module-backports

Related: SYS#850
2015-02-13 15:21:08 +01:00
Harald Welte d771e900da Merge commit '7d5329ed5713077c7a7c8cc0fefd099e553b00a0' into dora 2015-02-13 15:18:39 +01:00
Harald Welte 7d5329ed57 bridge-utils: Add missing FILES_${PN} for ifupdown integration 2015-02-13 15:16:41 +01:00
Harald Welte c68f6ef085 [idu] Add /etc/network/interfaces specifid to the IDU 2015-02-13 15:15:24 +01:00
Holger Hans Peter Freyther ae627ba075 Merge commit '61c2d2b6d3da16a4796a7de7633aaa08715eed25' into dora 2015-02-13 15:01:14 +01:00
Harald Welte 61c2d2b6d3 bridge-utils: Add ifupdown integration from Debian packages
bridge-utils.sh was modified to use /usr/sbin/brctl rather than
/sbin/brctl, as OE seems to use the former while Debian uses the latter.
2015-02-13 14:56:30 +01:00
Holger Hans Peter Freyther fa54028224 Merge commit '485d43fcd6a577378730f6d64a4357ae4a452f07' into dora 2015-02-13 12:28:10 +01:00
Holger Hans Peter Freyther 485d43fcd6 ifupdown: Attempt to package the debian ifupdown application
This way we can manage bridges and vlans without additional
hacks. This package shouldn't clash with busybox so I need
to install all files with a ${BPN} suffix and then use the
update-alternatives to create the symlinks. The last two parts
were not tested/verified yet.
2015-02-13 12:25:02 +01:00
Holger Hans Peter Freyther 3f132fd793 Merge commit '9bcf478f7ecc4942334d1fc5126f9c536abd1636' into dora 2015-02-13 11:25:25 +01:00
Holger Hans Peter Freyther 9bcf478f7e bridge-utils: Do the broken src != builddir by hand
dora doesn't have this new bbclass yet. so let's do it
by hand.
2015-02-13 11:25:12 +01:00
Harald Welte 195c848d50 idu: BIOS default is 115200bps, so use the console at that speed, too 2015-02-13 10:48:43 +01:00
Holger Hans Peter Freyther 1ba24b998a Merge commit '8cff63899391ae081a1f66fc23158396c7600e88' into dora 2015-02-13 10:20:02 +01:00
Holger Hans Peter Freyther 8cff638993 bridge-utils: Import from meta-oe 2015-02-13 10:17:50 +01:00
Holger Hans Peter Freyther 59fb91e0dc Merge commit 'd1bca38043dbcace2e3153dd39af3446765c727d' into dora 2015-02-13 09:49:14 +01:00
Holger Hans Peter Freyther d1bca38043 dnsmasq: Initial configuration for sysmocom
This is untested but in the assembled IDU eth2 is the NJB
link and the range/netmask was taken from the ISC DHCPD
configuration file.
2015-02-13 09:48:22 +01:00
Holger Hans Peter Freyther e69ac76dc0 dnsmasq: Begin with a sysmocom-idu specific config 2015-02-13 09:45:50 +01:00
Holger Hans Peter Freyther aac57d5691 Merge commit '6059b2b27585187291bbc3a1e0911bd608e0ddf6' into dora 2015-02-13 02:04:35 +01:00
Holger Hans Peter Freyther 6059b2b275 chrpath: Do not override/replace the default chrpath
Ever since the priority of this layer was raised we shadow
some recipes of the default yocto. Now that we don't need
to target edison, remove some of the legacy work.
2015-02-13 02:01:22 +01:00
Holger Hans Peter Freyther 9b999c7cb0 Merge commit 'a090c556c59abb4c3b908428f8e6af20cb5b60e7' into dora 2015-02-13 02:00:01 +01:00
Holger Hans Peter Freyther a090c556c5 systemd-compat-units: No reason to mask out dnsmasq
dnsmasq installts a dnsmasq.service and it shouldn't be masked
by default!
2015-02-13 01:57:36 +01:00
Henning Heinold d3d30ca98a socat: update to 1.7.3.0
* the license in README has a new checksum, it now clarifies
  to GPLv2
* bump the layer priority otherwise we could not use the latest version,
  because the yocto layers have a higher priority

Related: SYS#732
2015-02-13 00:47:38 +01:00
Holger Hans Peter Freyther 8f8dae9938 edison: Remove edison support from meta-sysmocom-bsp
This means that currently only Yocto Dora and Yocto Master are
being targeted. The amount of maintenance to get it to work on
Edison again is too high and it is better to focus on a systemd
only world. Remove the symlinks for yocto-edison.

A quick look and some notes from henning pointed me to wget
which is in the default layers, the sysmobts-2050 which is now
handle dby sysmobts and some older notes that are unlikely
to be addressed.
2015-02-13 00:45:13 +01:00
Holger Hans Peter Freyther 8a71f8bb7e Merge commit '53c20998d83531081ca33a1709a5985adb83fcab' into dora 2015-02-12 16:31:46 +01:00
Holger Hans Peter Freyther 53c20998d8 task-sysmocom-feed: Add python-pyserial/python-pexpect as well 2015-02-12 16:30:33 +01:00
Holger Hans Peter Freyther 8f7cc4bd9a pythom-pexpect: Import from meta-python 2015-02-12 16:30:16 +01:00
Holger Hans Peter Freyther f5e3916424 python-pyserial: Import from meta-python 2015-02-12 16:27:02 +01:00
Holger Hans Peter Freyther a0f0c46385 tasks-symocom-feed: Make CU available 2015-02-12 16:24:16 +01:00
Holger Hans Peter Freyther 9392c54e38 Merge commit '6314605bd42e589cd0f49c9fae5bb05f9c06705b' into dora 2015-02-12 14:29:59 +01:00
Holger Hans Peter Freyther bec08f4417 Merge commit '80b3fe86f67516c6297a6c6a18db87a7b43e69f0' into dora 2015-02-12 14:29:56 +01:00
Holger Hans Peter Freyther 80b3fe86f6 openbsc: Build newer version for extended rf lock commands
Upgrade the SRCREV, bump the PV and require libpcap as the
measurement code includes pcap/pcap.h
2015-02-12 14:21:26 +01:00
Holger Hans Peter Freyther d91abc18f1 libosmo-abis: Use the latest upstream release for libosmo-abis 2015-02-12 14:06:49 +01:00
Holger Hans Peter Freyther 6314605bd4 Revert "linux-sysmocom: Add some crazy checks to debug a race"
Okay "make modules" will lead to the kernel.release file
being re-created. So kernel.bbclass of Yocto master needs
to be fixed.

This reverts commit 3cdbc49cbb.
2015-02-10 19:47:01 +01:00
Holger Hans Peter Freyther c257a57e17 dnsmasq: It might be eaisier to use dnsmasq than the monsters
dnsmasq allows us to replace bind, dhcpd and atftpd with a
very small binary. Let's do that.
2015-02-10 19:45:05 +01:00
Holger Hans Peter Freyther 3cdbc49cbb linux-sysmocom: Add some crazy checks to debug a race
Somehow the do_shared_workdir tries to access a file that
should be created by do_configure but isn't present then.
Add these items to see what happens during the build.
2015-02-10 14:59:23 +01:00
Holger Hans Peter Freyther 53d7c53805 sysmocom-idu: Listen on localhost for NMEA frames
Listen on localhost for NMEA frames. The frames will be received
on a system and then forwarded to a local gpsd.
2015-02-09 14:58:09 +01:00
Holger Hans Peter Freyther 09d5d99093 Merge commit '4514ee3671a01979aa96321dbe6f2bddc846f869' into dora 2015-02-09 13:38:09 +01:00
Holger Hans Peter Freyther e4ebd98bf6 Merge commit 'cfc0c70237a989b529346e77a8821ed61c5569a5' into dora 2015-02-09 13:38:06 +01:00
Holger Hans Peter Freyther cfc0c70237 atftp: Add files needed by the recipe 2015-02-09 07:54:04 +01:00
Holger Hans Peter Freyther b66bf237e9 atftp: Import the version from meta-networking 2015-02-09 07:47:18 +01:00
Holger Hans Peter Freyther 4514ee3671 lightning: Upgrade with store fixes and closer to 2.0.6 2015-02-07 14:48:51 +01:00
Holger Hans Peter Freyther 35c33239eb u-boot: Move the removal of the write protect to the beginning
ubi part will write to the NAND as well so we should lift the
write protect earlier.
2015-02-06 12:36:18 +01:00
Holger Hans Peter Freyther b99d5d2d50 u-boot: Build new version with "nand rem.nwp"
Now reading the command it should probably be add.nwp or
rem.wp but so is life. We can add an alias for add.nwp in a
future version. The boot, recovery and fwup command have been
changed to issue nand rem.nwp before touching the flash.
2015-02-05 20:34:20 +01:00
Holger Hans Peter Freyther d819f59649 ubl: Prepare for revision F support of the system
Update to the latest version of UBL to get revision F
support. This allows us to toggle the GPIO. It has only
been verified on revision F hardware.
2015-02-05 19:13:41 +01:00
Holger Hans Peter Freyther ef6c54fe1e Merge commit 'e0cffc2ab5cc210d8e22e07ac15b41956a3d5170' into dora 2015-02-05 16:48:49 +01:00
Holger Hans Peter Freyther 7c9cec46b8 Merge commit '0efdefba34c485168e4d94336912df17251ef6cc' into dora 2015-02-05 16:48:37 +01:00
Holger Hans Peter Freyther 0efdefba34 sysmocom-idu: Introduce another machine that optimizes for core2
Harald wants to benefit from i686, sse2 and other optimizations.
Create a new machine (that extends the sysmocom-bsc) to build for
core2.
2015-02-05 16:46:45 +01:00
Holger Hans Peter Freyther dbe4d9513a linux-sysmocom: Change defconfig to allow to use backported module
We want to use backported modules this means we need to make
some thing a module for it to work. Take Daniel's .config file,
run make savedefconfig and update our defconfig.

Related: SYS#850
2015-02-04 08:34:56 +01:00
Holger Hans Peter Freyther e0cffc2ab5 lightning: Build the latest head on the way to 2.0.6 2015-01-25 15:21:14 +01:00
Holger Hans Peter Freyther d6b62f1548 Drop our dropbear extension
* The upstream sysvinit file looks good
* We are using systemd service files anyway
* The 2014.63 version doesn't exist and there is no
  point in renaming the file.
2015-01-12 23:04:44 +01:00
Holger Hans Peter Freyther 8595fee2b2 osmo-bts: Fix the normal bts build
The sysmobts-mgr is now linking to libgps. This means we need to
DEPEND on gpsd to have this library available. The tracking build
for both dora and master is broken due this.
2015-01-11 21:32:37 +01:00
Holger Hans Peter Freyther 15dc569022 Merge commit 'c48a0a0a4d1811710259b66c86bc30fd29162083' into dora 2015-01-09 21:30:07 +01:00
Holger Hans Peter Freyther c48a0a0a4d openbsc: Build with HO fixes and dependency
Allow to have two BTS depend on each other. This is currently
needed for the sysmoBTS2050 and clocking.
2015-01-09 21:29:26 +01:00
Holger Hans Peter Freyther 0d8d969931 Merge commit 'cc7705489c8342c8c2c9f168fa404553ee1f9040' into dora 2015-01-06 19:32:37 +01:00
Holger Hans Peter Freyther cc7705489c libosmocore: Update with CBCH defines needed for osmo-bts 2015-01-06 19:31:40 +01:00
Holger Hans Peter Freyther fa1e6f6ac8 Merge commit '418db40fb60e09450153f1c368fecb0e48ac97fd' into dora 2015-01-06 19:25:21 +01:00
Holger Hans Peter Freyther 418db40fb6 osmo-bts: Build with calibration support on the BTS 2015-01-06 19:24:31 +01:00
Holger Hans Peter Freyther 2d6838b7d5 Merge commit 'aef7cf84616a6f6c8d959d89d59b41a505627a75' into dora 2015-01-02 11:55:11 +01:00
Holger Hans Peter Freyther c990d23126 Merge commit '5fac86dde424e3ac99f9cbfc756a9b71d2adeb59' into dora 2014-12-30 12:26:02 +01:00
Holger Hans Peter Freyther aef7cf8461 openvpn: Force the server to have a server certificate
This addresses the following warning of OpenVPN:

WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
2014-12-30 12:25:11 +01:00
Holger Hans Peter Freyther 5fac86dde4 osmo-bts: Fix it once again 2014-12-30 12:25:11 +01:00
Holger Hans Peter Freyther e068851a66 openvpn: Move to OpenVPN v2.3.6 and systemd service files
Systems that had OpenVPN enabled by default will be migrated
(at least that is the aim).
2014-12-30 12:25:11 +01:00
Holger Hans Peter Freyther cb72d7dfdc Merge commit '70922d86dec59a530fd3c7c5fe827d582b15a171' into dora 2014-12-30 12:21:16 +01:00
Holger Hans Peter Freyther 70922d86de libosmocore: Disable PC/SC dependency inside libosmocore 2014-12-30 12:20:41 +01:00
Holger Hans Peter Freyther 693de8aca1 Merge commit '7f2807877ca1f2f0ec0823906c359ecd772ca4f7' into dora 2014-12-30 12:19:31 +01:00
Holger Hans Peter Freyther 7f2807877c osmo-bts: Correct the OpenBSC git revision 2014-12-30 12:19:06 +01:00
Holger Hans Peter Freyther 10dfb8f141 Merge commit 'c2c4b576ffb229b2e14bcc8ada083aad73f88423' into dora 2014-12-30 12:12:39 +01:00
Holger Hans Peter Freyther c2c4b576ff osmo-bts: Build with CBCH support 2014-12-30 12:12:20 +01:00
Holger Hans Peter Freyther 706374154e Merge commit '873ae51925a67a267f42301140387ce5b854f66f' into dora 2014-12-30 12:11:52 +01:00
Holger Hans Peter Freyther 873ae51925 libosmocore: Bump version for cell broadcast
This is not a new release but the ABI has changed, force a
re-build of all dependend packages.
2014-12-30 12:07:58 +01:00
Holger Hans Peter Freyther 3e022bafcb Merge commit '70f7b22580f24797f1320006b2ab5087db691cef' into dora 2014-12-26 17:08:02 +01:00
Holger Hans Peter Freyther 49e47733b0 Merge commit '5fd8dab863e731de073ee215a1db0affdb31f892' into dora 2014-12-26 17:08:00 +01:00
Holger Hans Peter Freyther f93bec1bf8 Merge commit 'f244a25089098d0728bdf899f7109deaeac19853' into dora 2014-12-26 17:07:59 +01:00
Holger Hans Peter Freyther 5fd8dab863 osmo-bts: Build a WIP commit for the 31C3 field trial
Allow to set a unit-id from the eeprom. This way we have a
single config that still identifies a unit uniquely to the
NITB.
2014-12-26 16:30:55 +01:00
Holger Hans Peter Freyther 7d7622db40 linux-sysmocom: Support ${S} != ${B} builds of yocto master
Go back to have our own do_configure. The kernel.bbclass would
execute "oldnoconfig" where we simply executed "oldconfig". Keep
on using our old way (for the legacy of it). E.g. with the question
how we ended up having SMP enabled in the BSC build this might
be the answer.
2014-12-26 12:21:48 +01:00
Holger Hans Peter Freyther 17eb891cc1 osmo-bts: Upgrade osmo-bts to latest master
We want to have the sysmobts-mgr that will do temperature
management and protect us from overheating.
2014-12-25 18:20:25 +01:00
Holger Hans Peter Freyther 09899de8b9 osmo-pcu: Update with the TBF changes of Daniel
We really want to test it on the 31C3. Update it.
2014-12-25 18:06:37 +01:00
Holger Hans Peter Freyther 015f7bc6e8 linux-sysmocom: Catch-up with poky master
OE-Core seems to unpack the kernel sources into another
directory now (e.g. to share the sources with builds for
modules). Use the kernel.bbclass kernel_do_configure and
copy the .config to the build directory.

The kernel is now built in a dedicated build directory.
2014-12-25 14:16:52 +01:00
Holger Hans Peter Freyther 8f84c9539d barebox: Add a git revision to the recipe as well
Make sure that the source version changes so new code is being
fetched. This should fix the build breakaage for the ODU build.
2014-12-25 09:51:14 +01:00
Holger Hans Peter Freyther f244a25089 openbsc: Do not enable any of the services by default
We don't want to enable any of these services by default. E.g.
specially with the BSC/NITB selection we want someone else to
take that decision.
2014-12-24 15:24:57 +01:00
Holger Hans Peter Freyther 5c2c0db842 sdk: Put gpsd-dev into the sdk as well
This will pull ncurses and python into the SDK as well but for
the sysmobts-mgr we need to use libgps and don't have much of
an option.
2014-12-22 15:19:06 +01:00
Holger Hans Peter Freyther 1e2ecae72c linux-sysmocom: Force building a new kernel after the last commit
After the defconfig was changed we should build a new kernel. Bump
the PR to force a build.
2014-12-22 15:14:18 +01:00
Holger Hans Peter Freyther 70f7b22580 lightning: Build a newer version with ARMv5t fixes 2014-12-22 15:11:13 +01:00
Harald Welte 440a7ed004 Merge commit 'c19888095e11b5ea8d88148f709888b80a52a8f9' into dora 2014-12-20 21:31:41 +01:00
Harald Welte c19888095e ODU: remove RTC driver for AM335x internal RTC
We actually only use the PMIC (TPS65910) RTC in the hardware,
and not the AM335x RTC.  Having a driver for a hardware that doesn't
receive actual backup voltage doesn't make sense.
2014-12-20 21:30:24 +01:00
Harald Welte 01faf1badd Merge commit '6bd60417a189510058d18abda71d51edaadd949e' into dora 2014-12-20 16:14:27 +01:00
Harald Welte 6bd60417a1 update gpsdate to version permitting non-standard gpsd ports 2014-12-20 16:13:41 +01:00
Holger Hans Peter Freyther 51402da9e6 Merge commit '626c0f32564f9f37e8a3d9d4632c2f6a9da6b886' into dora 2014-12-20 13:00:15 +01:00
Holger Hans Peter Freyther 835d09b4b3 Merge commit '121196bbd418e173ddc0c2a220d1efc0ba919990' into dora 2014-12-20 13:00:09 +01:00
Holger Hans Peter Freyther e29b04fc51 Merge commit '2c75d4a418b168bfe4f90bad5cbec2803ea909fa' into dora 2014-12-20 13:00:02 +01:00
Harald Welte 121196bbd4 ODU: add new odu-gpiotool script
The odu-gpiotool is a small script created by roh to selectively reset
individual peripherals of the system by the administrator. It originates
from ticket https://projects.sysmocom.de/ortelius/issues/655
2014-12-19 18:09:39 +01:00
Harald Welte 45ed0caa79 update to recent sob-odu kernel, including v3 hardware support 2014-12-18 23:55:37 +01:00
Harald Welte 53f89ad74d usb2514: skip gpio script on kernels that export GPIOs themselves 2014-12-18 23:29:06 +01:00
Harald Welte eefee096cd usb2514: Support for board v3+
We use the new sysfs file to obtain the board version number and
configure the port swapping accordingly.  If the board_version sysfs
attribute is not present, we default to v2.

We also integrate resetting the hub chip from within this tool right
befeore writing the new register values via I2C.
2014-12-18 23:22:57 +01:00
Henning Heinold 5c189003c5 openvpn: clean update from sysv-rc to systemd for the startup files
[hfreyther: We assume that the user might install OpenVPN with
a different priority but that it will always be available in the
runlevel two (e.g. even if the user changed the default runlevel)]

Related: SYS#517
2014-12-16 17:23:36 +01:00
Henning Heinold 078c48f8f1 openvpn: update 2.3.4 to 2.3.6
Fixes: SYS#836
2014-12-16 09:26:03 +01:00
Henning Heinold 1ed9350964 sysmocom-udhcpd-config: start the udhcpd on the sysmocom-bsc only when eth1 is present
* the change affects the config file, so the package number
  is bumped

Related: SYS#735
2014-12-12 18:49:38 +01:00
Henning Heinold 036d66a47c odu-static-devicenames: rename static-devicenames-odu to odu-static-devicenames
[hfreyther: I asked to follow machine-name pattern]

Related: SYS#732
2014-12-12 17:10:13 +01:00
Holger Hans Peter Freyther 1c59f2af08 dbus: Catch up with master changes of Poky tonight 2014-12-04 19:46:38 +01:00
Holger Hans Peter Freyther 74c9120eeb master/dizzy: Catch up with upstream renames
Latest upstream has moved to newer version of netbase and opkg.
Catch up with these renames.
2014-11-26 21:00:24 +01:00
Holger Hans Peter Freyther 52f8db743c sysmobts: Simplify and work with all versions of 1.5
Similiae to the layer code we simplify the machine include to work
for all versions of a 1.5 release. Poky 1.5.4 has been released and
we don't want to continue to play this game.
2014-11-26 20:57:58 +01:00
Holger Hans Peter Freyther d43fa5e76f openvpn: I have no idea who creates the /run/openvpn directory
I have no idea who creates the /run/openvpn directory on Debian.
The path is not in a tmpfiles.d and I don't see the generator
creating it or the service file indicating that it needs to be
created. Place the file with openvpn.NAME.status into the /run
directory which appears to work on the device.
2014-11-22 21:50:24 +01:00
Holger Hans Peter Freyther 37deb6091c libspatialite: Upgrade to version 4.2.0
Package the new sqlite3 plugin into a new package and skip
the dev-so qa issue. Add some extra depends that are now used
by the library.
2014-11-22 15:13:04 +01:00
Holger Hans Peter Freyther 188f5fc60c Import from meta-oe to have a spatial enabled sqlite 2014-11-22 13:54:17 +01:00
Holger Hans Peter Freyther f7004f3315 openvpn: Always restart the OpenVPN service
We want the OpenVPN service to be always restarted. I am not sure
how "forking" and restart will work together but we will need to
give it a try.
2014-11-22 00:05:29 +01:00
Holger Hans Peter Freyther 6909960948 openvpn: Use the debian generator and service files for OpenVPN
We want to use systemd for managing the lifetime of OpenVPN. Take
the debian generator (which should work with busybox ash) and the
openvpn.service (to inhibit the sysvinit script) and the target
file and install it.

On systems that have ran "update-rc.d openvpn defaults" one need
to manually execute a systemctl enable openvpn.service. This is
not done through a post-inst script and I am not sure if we should
do it. This means there is a danger of ending with a unit that
doesn't start OpenVPN automatically after upgrade!

The scripts/packages have not been tested on a device yet.
2014-11-22 00:02:03 +01:00
Holger Hans Peter Freyther 812eceaea3 openvpn: Add OpenVPN 2.3.4 recipe from upstream OpenEmbedded
We should use a more recent version of the OpenVPN client. Import
it from the meta-networking layer like we did before. The sysvinit
script has just minor whitespace differences and wasn't imported.

We need to test opkg upgrades of OpenVPN through the VPN. We don't
want to kill the tunnel on such upgrade.
2014-11-21 23:42:42 +01:00
Holger Hans Peter Freyther 626c0f3256 lightning: Upgrade with LDR* fixes on ARMv5te or later ISAs
The code mixed the source/dest registers and violated the
ISA of needing an even register as the start. Some other
fixes as well.
2014-11-21 16:59:18 +01:00
Holger Hans Peter Freyther d5e3023c8f smalltalk: Fix the library name, it is sqlite3
Fixes:
ERROR: Nothing PROVIDES 'libsqlite3' (but /home/builder/jenkins/workspace/Yocto-Dora/label/OE/meta-smalltalk/recipes-smalltalk/smalltalk/smalltalk_3.2.91.1.bb DEPENDS on or otherwise requires it). Close matches:
  sqlite3
2014-11-20 23:30:21 +01:00
Holger Hans Peter Freyther 122936e1be openbsc: Fix the non-confirming SDP file
There must be a session name inside the SDP file, build a newer
version of OpenBSC to fix that.
2014-11-20 23:26:53 +01:00
Holger Hans Peter Freyther 2c75d4a418 openbsc: Fix the non-confirming SDP file
There must be a session name inside the SDP file, build a newer
version of OpenBSC to fix that.
2014-11-20 23:20:44 +01:00
Holger Hans Peter Freyther dbb3fa65cd barebox-sysmocom: Upgrade to send LLDP frame during boot
One might need to erase the environment but with a default
environment barebox will now send a LLDP during boot up. This
way we can see if a device is on a local link or not.

Fixes: SYS#488
2014-11-20 21:51:33 +01:00
Holger Hans Peter Freyther e7ed2b458e barebox-sysmocom: Update with password propmpt
Change the name of the config, bump the SRCREV. The new default
password is "odu-stop".

Fixes: SYS#487
2014-11-20 20:04:32 +01:00
Henning Heinold 7ff5c445d1 apu: add networking support the new apu
* split out rtl-nic firmware from the big
  linux-firmware package

[hfreyther: For whatever reasons the NIC works without
additional firmware as well. I couldn't see in the driver
source when that is the case and which features are missing]
2014-11-20 17:47:26 +01:00
Henning Heinold 164cd1af2b static-devicenames-odu: add stable device names for the gsm-modems on the odu
Fixes: SYS#732

[hfreyther: I removed the MACHINE_ESSENTIAL_EXTRA_RDEPENDS as applications
that use the symlinks should rdepend on the package]
[hfreyther: Changed mismatch of tabs/spaces]
2014-11-20 17:45:34 +01:00
Holger Hans Peter Freyther 29294fa7d1 linux-sysmocom: Build the watchdog into the kernel
We want to enable the watchdog in the bootloader already and
for this to be failsafe we need to have a kernel that can boot
and get ethernet without any additional modules. Now systemd
would not be able to trigger the watchdog and the system would
reboot within 60 seconds. I am not sure how the kernel upgrade
will go and we need to try this.

Related: SYS#374
2014-11-20 17:43:24 +01:00
Holger Hans Peter Freyther 9a8ec5cbb5 Merge commit '73bf1752259145bc512a9f11f353f4e54413b5e6' into dora 2014-11-19 16:25:38 +01:00
Holger Hans Peter Freyther fa0ef8d774 Merge commit 'dff7d234e34da6fb4974d87d3159a8dbf3ec88b1' into dora 2014-11-19 16:25:35 +01:00
Holger Hans Peter Freyther 36db2bd7d4 Merge commit '60ade1ce5680486e33ee110786b60cbf83a311af' into dora 2014-11-19 16:25:32 +01:00
Holger Hans Peter Freyther 60ade1ce56 openbsc: Upgrade for AudioCodes workaround
Mostly SGSN fixes, one OML correctness fix. The reason for the
upgrade is the audio codes work around we added.
2014-11-19 16:24:23 +01:00
Holger Hans Peter Freyther 73bf175225 lightning: Build without binutils dependency
GNU lightning can link to binutils to benefit from the built-in
disassembler. We do not want this dependency right now and just
disable it.
2014-11-19 16:20:21 +01:00
Holger Hans Peter Freyther 3f165fa232 lightning: Allow it to be built for the native system 2014-11-19 10:28:01 +01:00
Holger Hans Peter Freyther a0d473e869 smalltalk: We are using sqlite3, depend on it 2014-11-19 10:27:36 +01:00
Holger Hans Peter Freyther dff7d234e3 linux: Enable FHANDLE needed for newer udev
Without fhandle the getty for ttyS0 will not work.

http://lists.freedesktop.org/archives/systemd-devel/2014-February/016927.html
2014-11-18 15:26:46 +01:00
Holger Hans Peter Freyther c05702b766 Merge commit 'e1298b0b9ddba34f4ac1a54735942d42a54eb3ef' into dora 2014-11-18 09:43:00 +01:00
Holger Hans Peter Freyther c0a4618671 Merge commit 'bef17822a767b74449baf7cf69e7cb09e7f0ebd1' into dora 2014-11-18 09:42:54 +01:00
Holger Hans Peter Freyther e1298b0b9d wireless-tools: Attempt to fix memory leak
We would leak all the results for all the scans. At some point in
time the kernel OOM would kick-in and kill the process. Enable
building with -ggdb3 for debug symbols and remmeber the old list
head so we can free it.

==32240== 756 bytes in 3 blocks are definitely lost in loss record 7 of 8
==32240==    at 0x40291CC: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==32240==    by 0x804BCF5: iw_process_scanning_token (iwlib.c:3059)
==32240==    by 0x804BCF5: iw_process_scan (iwlib.c:3255)
==32240==    by 0x804BEAF: iw_scan (iwlib.c:3310)
==32240==    by 0x8048FD8: scan_wifi (wifi2udp.c:72)
==32240==    by 0x8048DB2: main (wifi2udp.c:143)
2014-11-18 09:37:53 +01:00
Holger Hans Peter Freyther 43d3a03b72 packagegroup: Catch up and rename the bbappend as well 2014-11-14 14:39:33 +01:00
Holger Hans Peter Freyther ffdbc76ae8 misc: Start using "packagegroup-osmocom"
The notion of "task" has been deprecated for a long time because
the word is used for different things. The new word is "packagegroup"
which describes the usage of "task-*" in a more obvious way. Dora
and master builds can fully use packagegroup-* for everything and
for edison we would need to spend some time to add a provides for
packagegroup-* to the task- group. I don't intend to work on the
edison part right now.
2014-11-14 14:16:31 +01:00
Holger Hans Peter Freyther bef17822a7 misc: Modernize and call it packagegroup-
The notion of task- has been deprecated a long time ago. Call
it packagegroup now and for "packagegroup-osmocom" provide the
compability. This has not been compile tested.

The edison build will require a bbappend to provide packagegroup
now but I will do this once I need to build for Edison again.
2014-11-14 14:14:14 +01:00
Holger Hans Peter Freyther e7e42a79ae u-boot: Catch up with upstream version bump and rename
Not build tested yet.
2014-11-14 13:58:10 +01:00
Henning Heinold 682ec7043f gpsd: RSUGGESTS the gpsd-udev
* switching gpsd-udev to RSUGGESTS on udev, makes
  it possible to not install gpsd-udev by default

* increase minor PR

FIXES: SYS#756
2014-11-11 21:53:40 +01:00
Holger Hans Peter Freyther 98c407d28c linux-sysmocom: Another speculative compile/fetch fix for dizzy
Not specifying a branch leads to "master" being fetched. This
means we now need to specify the rightbranch. Do that depending
on what we build.
2014-11-10 09:58:03 +01:00
Holger Hans Peter Freyther cf35573837 linux-sysmocom: Remove the branch name as it breaks on dizzy
IIRC the branch name is not used in edison and it breaks in
dizzy as the commit is noth within the branch.
2014-11-10 08:50:11 +01:00
Holger Hans Peter Freyther e38684d612 watchdog: Catch up with upstream changes 2014-11-09 15:19:31 +01:00
Holger Hans Peter Freyther b747310508 Merge commit '96977638a1c7b2253c7aed0f420117ebd087bf7d' into dora 2014-11-09 14:40:43 +01:00
Holger Hans Peter Freyther c125714cfc Merge commit '338900b6303993c42d6bf4831c361db831e34eeb' into dora 2014-11-09 14:40:39 +01:00
Holger Hans Peter Freyther 4760757960 Merge commit '07c37e9902a278779a0312b4ac2b2437424ec38d' into dora 2014-11-09 14:40:36 +01:00
Holger Hans Peter Freyther 338900b630 sysmobts: Reduce the number of images we build
We need a jffs2/ubi depending on the age of the hardware and
maybe a tar.bz2 so we can easily inspect an image without
playing with mtdram. We almost never need a ubifs and certainly
not a cpio.
2014-11-09 14:35:57 +01:00
Holger Hans Peter Freyther d75837883d busybox: Only apply the patch on busybox 1.21
The ifplugd patch was backported and doesn't need to be applied
on later versions.
2014-11-09 14:02:56 +01:00
Holger Hans Peter Freyther 380d53ece8 systemd: DISTRO_FEATURES_INITMAN is gone in master
The DISTRO_FEATURES_INITMAN variable has been removed, use
VIRTUAL-RUNTIME_init_manager which is still present. We have
already defined the later in our poky builds
2014-11-09 14:02:09 +01:00
Holger Hans Peter Freyther c5a267a946 systemd: Make it work for dora and master
systemd-compat-units does not install any files anymore and
the machineid and other scripts are gone. We want to continue
to install the alignment file though.

This has not been tested on dora systemd yet.
2014-11-09 14:00:05 +01:00
Holger Hans Peter Freyther 050a39766e sbts2050-util: Add checksum in case it is fetched through http 2014-11-09 02:34:51 +01:00
Holger Hans Peter Freyther 2e2d464894 tcpdump: Speculative fix for dora
In dora there is no autotools-brokensep bbclass. So let's just
set the build directory to the source directory ourselves. I have
not built the package for dora though/
2014-11-08 19:55:22 +01:00
Holger Hans Peter Freyther 0755723dd8 sysmobts-firmware: When fetching using http include needed checksum
When using HTTP to fetch the firmware we need to have a checksum
in our recipe. Add it.
2014-11-08 19:53:58 +01:00
Holger Hans Peter Freyther 240b08dde9 tcpdump: Upgrade to version 4.6.1 to fix cross-builds
Poky dizzy is more strict with -I/usr/include and the old
tcpdump could pick-up "/usr/bin/pcap-config" from the host
and fail. Just upgrade to a newer version of tcpdump and be
done with it.
2014-11-08 14:44:45 +01:00
Holger Hans Peter Freyther da06a847b5 misc: poky/LICENSE has changed.. reference a hopefully more stable file
Only reference the COPYING.MIT as it is unlikely to change in
the next upgrade.
2014-11-08 14:44:34 +01:00
Holger Hans Peter Freyther 3e709b24b6 interfaces: Remove eth1 configuration from the file
While the phytec devboard has multiple external ethernet interfaces
the odu has only one to the outside. Remove it from the config.

Fixes: ORT#653
2014-11-08 14:23:34 +01:00
Henning Heinold 4fb99f81c4 sysmocom-udhcpd-config: fix network mask
* the entry "option	subnet" takes the
  subnet mask not the subnet address,
  while the busybox dhcp-client was
  fine with it, the isc-dhcp-client complained with
  Error: an inet prefix is expected rather than "10.23.24.113/10.23.24.0".
2014-11-04 23:51:13 +01:00
Henning Heinold 8800a441a1 sysmocom-udhcpd-config: add systemd startup file
Fixes: SYS#735
2014-11-04 23:50:25 +01:00
Holger Hans Peter Freyther 00578db05d ubl: Make sure we pass in the real compiler
Starting with gcc-4.9.1 we will need to pass the --sysroot
variable as otherwise the "stdint.h" of glibc will not be
found.
2014-11-04 23:49:41 +01:00
Holger Hans Peter Freyther 07c37e9902 ortp: Fix DEPENDS based on QA issue
WARNING: QA Issue: ortp rdepends on libcrypto, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: ortp rdepends on libssl, but it isn't a build dependency? [build-deps]
2014-11-03 08:03:13 +01:00
Holger Hans Peter Freyther 96977638a1 lightning: Add GNU lightning 2.0.x needed for GNU Smalltalk
GNU lightning is a macro-assembler/jit that is used by GNU
Smalltalk. It supports x86 and ARM backends.
2014-11-02 12:46:14 +01:00
Holger Hans Peter Freyther c665acff46 lcr: inherit pkgconfig to have autoreconf have PKG_CHECK_MODULES
lcr/1.14+gitrAUTOINC+38fce218f8-r4/git/configure: line 16440: `PKG_CHECK_MODULES(OPENCORE_AMRNB, opencore-amrnb >= 0.1.0, , found_opencore_amrnb=no)'
2014-11-02 11:58:22 +01:00
Holger Hans Peter Freyther b2daa5e888 asterisk: Drop the very old version from meta-telephony
We used asterisk to be able to speak SIP with the outside. LCR
has gained this capability in the past and we haven't used asterisk
in more than two years.

Asterisk doesn't seem to compile with master/dizzy and there is
little point in figuring out why.
2014-11-02 11:04:21 +01:00
Holger Hans Peter Freyther 563dd4e6e3 misc: poky/LICENSE has changed.. reference a hopefully more stable file
Only reference the COPYING.MIT as it is unlikely to change in
the next upgrade.
2014-11-02 09:53:32 +01:00
Holger Hans Peter Freyther 8d200f2fc3 misc: poky/LICENSE has changed.. reference a hopefully more stable file
Only reference the COPYING.MIT as it is unlikely to change in
the next upgrade.
2014-11-02 09:47:12 +01:00
Holger Hans Peter Freyther 3fec3c1c58 Merge commit 'e292b907610659f13261a7e4cf9f426128b364ce' into dora 2014-10-29 10:23:23 +01:00
Holger Hans Peter Freyther e292b90761 openbsc: Upgrade with SGSN, GBproxy and BSC ping/pong changes
Related: SYS#713
2014-10-29 10:21:39 +01:00
Holger Hans Peter Freyther 7e9fa46a9a Merge commit '074b580797a148df769dea571db8508ed889710b' into dora 2014-10-28 19:30:12 +01:00
Henning 074b580797 busybox: make it possible to have permanent logfiles
* bump the PRINC

[holger: Depending on some global settings /var/log will be a
symlink to "volatile". But when we log to a file we want it to
be persistent. So make sure /var/log is not pointing to volatile
but a real directory]
2014-10-28 15:28:51 +01:00
Henning Heinold db14ffd17b i2c-tools: add the i2c-tools
* use the recipe from oe-core master
* add it to task-sysmocom-feed

Fixes: SYS#692
2014-10-28 15:23:03 +01:00
Holger Hans Peter Freyther 566df70ba8 Merge commit '39cbb4ee5117281e73bf116cee0bbf4676c0c39b' into dora 2014-10-26 20:22:06 +01:00
Daniel Willmann 39cbb4ee51 meta-sysmocom-bsp: Update sysmocom-odu to build wireless-tools and wifi drivers 2014-10-26 20:21:33 +01:00
Holger Hans Peter Freyther 24c26bf0f4 Merge commit '0fe05716831f895f45f4e22ac911ec1d50744b6d' into dora 2014-10-26 20:14:50 +01:00
Holger Hans Peter Freyther 0fe0571683 misc-images: Remove images we are rarely/not using
The concept of directdisk image is overhauled as we are now
having a initramfs that can flash the next image through USB.
The dedicated E1/IP images are rarely to never used and did
probably bit-rot. For the next time we provide such a system
we can simply (write a script to) install the additional feed.
2014-10-24 20:16:44 +02:00
Harald Welte 0f9508c924 linux for ODU: Enable second I2C bus on UEXT connector
.. which is needed for the light sensor daughterboard.
2014-10-24 15:05:06 +02:00
Harald Welte 286c8a1166 busybox: Make sure we keep re-trying to obtain a lease
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS was set to '-n' which means
"Exit with failure if lease cannot be immediately negotiated."

What we'd rather want is for udhcpc to continue to run until a lease can
finally obtain.  Otherwise we have a race condition in case the DHCP
server is not reachable for a few seconds during system boot, and end up
having a system that is permanently without an IP address.

This fixes ORT#639
2014-10-17 19:58:53 +02:00
Holger Hans Peter Freyther 39a927390d linux-sysmocom: Enable netfilter and advanced routing for the odu
Allow to use netfilter on the ODU.
2014-10-14 11:44:47 +02:00
Holger Hans Peter Freyther be040d7322 linux-sysmocom: Fix the building of the kernel (or hope I do) 2014-10-07 21:30:22 +02:00
Holger Hans Peter Freyther 35ec4c11d9 task-sysmocom-feed: Provide a real "ip" as well 2014-10-07 21:21:10 +02:00
Holger Hans Peter Freyther c9da6c1e1a linux-sysmocom: Fix pinmux on the ODU kernel 2014-10-07 21:18:38 +02:00
Holger Hans Peter Freyther 4cb109a0d5 Merge commit 'b28405e6a0706fe560bb29efc2691df9e22d092b' into dora 2014-10-07 17:04:33 +02:00
Holger Hans Peter Freyther b28405e6a0 libosmo-abis: Revert parts of the multi-TRX support in libosmo-abis
The line doesn't have the signalling type set yet. It will be set
_after_ the rsl connection is considered up. This is addressing
RSL Connection failures like:

<0001> oml.c:1026 Rx IPA RSL CONNECT IP=1.2.3.4 PORT=3003 STREAM=0x00
<000f> input/ipaccess.c:921 cannot create RSL BTS link: trx_nr (0) does not refer to a signalling link
<0001> oml.c:1030 Error in abis_open(RSL): -22
<0001> oml.c:341 Sending FOM NACK with cause Message cannot be performed.
2014-10-07 17:04:21 +02:00
Henning Heinold 5e186d3d1f meta-toolchain-osmo: create symlink similar to images 2014-10-07 17:03:38 +02:00
Holger Hans Peter Freyther 0cca6ebca0 Merge commit '65238f85305f3179491e5e4be8152ea35454ac84' into dora 2014-10-07 17:01:37 +02:00
Holger Hans Peter Freyther f0404d19b6 Merge commit 'e00e9ba06cecbc83fc1c959ac1baad03ef58fa0a' into dora 2014-10-07 17:00:40 +02:00
Holger Hans Peter Freyther 91ca9d8230 Merge commit 'c9952b51550cd45959a5ead741e99bb40ef61f03' into dora 2014-10-07 17:00:32 +02:00
Holger Hans Peter Freyther c9952b5155 task-sysmocom-feed: Provide cronie as a cron implementation 2014-10-07 16:59:48 +02:00
Holger Hans Peter Freyther bd9745bf40 meta-telephony: Gitorious doesn't work anymore move to github
The website of gitorious was unusable and we had to move. Update
the URL here. Existing "clones" need to update the git url for
the remote.
2014-10-07 16:56:13 +02:00
Holger Hans Peter Freyther f0be486171 systemd: Make sure we install our custom copy of system.conf
We had a system.conf for the ODU but it was never installed. Fix
it by adding the file to SRC_URI.

Fixes: ORT#612
2014-09-26 11:28:48 +02:00
Holger Hans Peter Freyther c44d0265ee osmo-bts/osmo-pcu: Use autotools and pkgconfig to fix the build
Without inheriting pkgconfig the PKG_CHECK_MODULES macro can not
be expanded in dizzy. Fix it. While being there use "autotools"
for the pcu and not autotools_stage.
2014-09-26 11:24:49 +02:00
Holger Hans Peter Freyther 40c70870b7 osmo-bts/osmo-pcu: Specify the right branch for dizzy
With a wrong branch name the commit can not be found. Fix it.
2014-09-26 11:24:16 +02:00
Holger Hans Peter Freyther f028093d92 sysmobts-2050: These files were never used with edison, remove 2050
We have changed the strategy to support multiple BTS with a single
build but don't remove support from files that are used with Edison.
Linux 3.10 and systemd were not used with edison though. So we can
remove it. As the sysmobts-2050 extended the sysmobts-v2 build most
of the -sysmobts-2050 changes are not needed anyway.
2014-09-25 20:59:19 +02:00
Holger Hans Peter Freyther e00e9ba06c osmo-st-sip: This requires digest for authentication handling 2014-09-25 20:44:04 +02:00
Holger Hans Peter Freyther 59f7705056 smalltalk: Make it compile with srcdir!=builddir
Don't use S but use the build directory to patch the generated
makefile.
2014-09-25 20:38:49 +02:00
Holger Hans Peter Freyther 65238f8530 Osmocom: Upgrade to latest master versions of the software
Build a new ABI release, build the latest libosmo-abis and
libosmo-netif versions and upgrade to OpenBSC master
2014-09-25 20:31:44 +02:00
Holger Hans Peter Freyther 1cafeaaa86 libsmpp34: Fix build with srcdir!=builddir for dizzy
Fix the build by using a newer version and change the PR to be
a proper version number. I havent' checked if upgrading is possible
but is not a big concern right now.
2014-09-25 20:31:44 +02:00
Holger Hans Peter Freyther 3884c62b79 openbsc: We are using pkg-config and need to inherit the bbclass
Without this the configure step will fail on dizzy.
2014-09-25 20:31:44 +02:00
Holger Hans Peter Freyther 592c8ab374 bcg729: Inherit pkgconfig to have PKG_CHECK_MODULES expand
Make sure pkgconfig-native is staged as otherwise autoconf can not
replace the PKG_CHECK_MODULES variable.
2014-09-25 20:00:50 +02:00
Holger Hans Peter Freyther 8e6355d9df packagegroup-core-boot: Continue to provide the old name
We are not ready for the task -> packagegroup rename and provide
the old.
2014-09-25 18:02:31 +02:00
Holger Hans Peter Freyther 79f4f896ae Merge remote-tracking branch 'origin/hheinold/image_improvements' 2014-09-25 17:47:26 +02:00
Henning Heinold d6aabdf6b9 recipes-images: add fragement to install sshkeys
Fixes: partly SYS#518
2014-09-25 17:43:58 +02:00
Henning Heinold 7aba3280c5 recipes: add functions for generating a rootpasswd
The rootpassword can be set via the
enviroment variable ROOT_PASS either in
the local.conf or on the cmdline
before bitbake.

Fixes: partly SYS#518
2014-09-25 17:43:57 +02:00
Holger Hans Peter Freyther 0172c5958a linux-sysmocom: Use the KERNEL_MODULE_PROBECONF on dizzy
This variable doesn't exist on dora and will not break things.

Fixes:
ERROR: Please ensure module rtfifo is listed in KERNEL_MODULE_PROBECONF since module_conf_rtfifo is set
2014-09-25 16:34:42 +02:00
Holger Hans Peter Freyther a04f801241 linux: Select the 3.10 kernel for dizzy as well
We need to provide the right name of the branch as otherwise we
are not able to find the object in the clone.
2014-09-25 16:16:51 +02:00
Holger Hans Peter Freyther 906bdccd4f watchdog: Fix the FILESEXTRAPATHS_prepend
We need to end our string with a ':' to not interfere with other
recipes adding things.
2014-09-25 16:15:53 +02:00
Holger Hans Peter Freyther 20b1decdd2 dizzy: Begin with the Poky/Yocto 1.7 release
We are currently using 1.5 (dora). Copy the bbappends to the
yocto-dizzy directory and update the version numbers. For busybox
enable all features that were enabled between dora and origin/master.

For opkg_svn.bbapend. In dizzy there is a version attached to it.
This means we need to remove it from the yocto-shared directory
and keep it everywhere else.
2014-09-24 18:26:10 +02:00
Holger Hans Peter Freyther 12a661314b update-rc.d: Use _prepend to add to the extras
WARNING: FILESEXTRAPATHS-variable, must always use _prepend (or _append)
type of assignment, and don't forget the colon.
Please assign it with the format of:
  FILESEXTRAPATHS_append := ":${THISDIR}/Your_Files_Path" or
  FILESEXTRAPATHS_prepend := "${THISDIR}/Your_Files_Path:"
in your bbappend file
2014-09-24 18:24:09 +02:00
572 changed files with 30438 additions and 8914 deletions

View File

@ -2,7 +2,7 @@
merge()
{
git subtree pull --prefix=$1 rem-$1 master
git subtree pull --prefix=$1 rem-$1 201310
}
merge meta-telephony

View File

@ -10,7 +10,7 @@ merge()
}
merge meta-telephony git://gitorious.org/sysmocom-openembedded/meta-telephony.git
merge meta-telephony git://github.com/sysmocom/meta-telephony.git
merge meta-sysmocom-bsp git://git.sysmocom.de/poky/meta-sysmocom-bsp
merge meta-smalltalk git://github.com/sysmocom/meta-smalltalk.git
merge meta-qt5 git://github.com/sysmocom/meta-qt5.git

View File

@ -14,6 +14,11 @@ BBPATH .= ":${LAYERDIR}"
# We have a recipes directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
# Add hacks for dora or master..
BBFILES_META_QT5 = "${LAYERDIR}/yocto-${@dict([('1.5', 'dora')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'master')}/*.bbappend"
BBFILES += "{BBFILES_META_QT5}"
BBFILE_COLLECTIONS += "qt5-layer"
BBFILE_PATTERN_qt5-layer := "^${LAYERDIR}/"

View File

@ -0,0 +1,84 @@
From bcca9b3cd8a7699b68a296a8b606df8a4065e527 Mon Sep 17 00:00:00 2001
From: Tom Hirst <tom.hirst@ipe-systems.co.uk>
Date: Fri, 10 Oct 2014 17:02:17 +0100
Subject: [PATCH] prevent if_nametoindex being called with empty string
Calling if_nametoindex with an empty string will always return 0, but
on ARM linux platforms this call seems to be very expensive (~30ms),
adding a large overhead to calls such as QUdpSocket::writeDatagram()
Task-number: QTBUG-37092
Change-Id: Iad00867585d9534af1ddaee936dd4e4dc5e03611
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
---
src/network/socket/qnativesocketengine_unix.cpp | 33 ++++++++++++++++---------
1 file changed, 22 insertions(+), 11 deletions(-)
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp
index e076f2b..88ef5a0 100644
--- a/src/network/socket/qnativesocketengine_unix.cpp
+++ b/src/network/socket/qnativesocketengine_unix.cpp
@@ -378,12 +378,15 @@ bool QNativeSocketEnginePrivate::nativeConnect(const QHostAddress &addr, quint16
sockAddrIPv6.sin6_port = htons(port);
QString scopeid = addr.scopeId();
- bool ok;
- sockAddrIPv6.sin6_scope_id = scopeid.toInt(&ok);
+
+ if (!scopeid.isEmpty()) {
+ bool ok;
+ sockAddrIPv6.sin6_scope_id = scopeid.toInt(&ok);
#ifndef QT_NO_IPV6IFNAME
- if (!ok)
- sockAddrIPv6.sin6_scope_id = ::if_nametoindex(scopeid.toLatin1());
+ if (!ok)
+ sockAddrIPv6.sin6_scope_id = ::if_nametoindex(scopeid.toLatin1());
#endif
+ }
Q_IPV6ADDR ip6 = addr.toIPv6Address();
memcpy(&sockAddrIPv6.sin6_addr.s6_addr, &ip6, sizeof(ip6));
@@ -489,11 +492,16 @@ bool QNativeSocketEnginePrivate::nativeBind(const QHostAddress &address, quint16
memset(&sockAddrIPv6, 0, sizeof(sockAddrIPv6));
sockAddrIPv6.sin6_family = AF_INET6;
sockAddrIPv6.sin6_port = htons(port);
+ QString scopeid = address.scopeId();
+
+ if (!scopeid.isEmpty()) {
+ bool ok;
+ sockAddrIPv6.sin6_scope_id = scopeid.toInt(&ok);
#ifndef QT_NO_IPV6IFNAME
- sockAddrIPv6.sin6_scope_id = ::if_nametoindex(address.scopeId().toLatin1().data());
-#else
- sockAddrIPv6.sin6_scope_id = address.scopeId().toInt();
+ if (!ok)
+ sockAddrIPv6.sin6_scope_id = ::if_nametoindex(scopeid.toLatin1());
#endif
+ }
Q_IPV6ADDR tmp = address.toIPv6Address();
memcpy(&sockAddrIPv6.sin6_addr.s6_addr, &tmp, sizeof(tmp));
sockAddrSize = sizeof(sockAddrIPv6);
@@ -902,12 +910,15 @@ qint64 QNativeSocketEnginePrivate::nativeSendDatagram(const char *data, qint64 l
Q_IPV6ADDR tmp = host.toIPv6Address();
memcpy(&sockAddrIPv6.sin6_addr.s6_addr, &tmp, sizeof(tmp));
QString scopeid = host.scopeId();
- bool ok;
- sockAddrIPv6.sin6_scope_id = scopeid.toInt(&ok);
+
+ if (!scopeid.isEmpty()) {
+ bool ok;
+ sockAddrIPv6.sin6_scope_id = scopeid.toInt(&ok);
#ifndef QT_NO_IPV6IFNAME
- if (!ok)
- sockAddrIPv6.sin6_scope_id = ::if_nametoindex(scopeid.toLatin1());
+ if (!ok)
+ sockAddrIPv6.sin6_scope_id = ::if_nametoindex(scopeid.toLatin1());
#endif
+ }
sockAddrSize = sizeof(sockAddrIPv6);
sockAddrPtr = (struct sockaddr *)&sockAddrIPv6;
} else if (host.protocol() == QAbstractSocket::IPv4Protocol) {
--
2.3.5

View File

@ -1,7 +1,8 @@
require qt5-${PV}.inc
require ${PN}.inc
SRC_URI += "file://0015-Fix-linuxfb-argument-mmsize-parsing.patch"
SRC_URI += "file://0015-Fix-linuxfb-argument-mmsize-parsing.patch \
file://0017-prevent-if_nametoindex-being-called-with-empty-strin.patch"
SRC_URI[md5sum] = "fa005301a2000b92b61b63edc042567b"
SRC_URI[sha256sum] = "acdfd1aa2548ebea1d922e8e24e5c59f5fc3b2beae7c8003ba47d773bfcc94c0"

View File

@ -0,0 +1,26 @@
DESCRIPTION = "Macro-Assembler for various backends"
HOMEPAGE = "http://www.gnu.org/software/lightning/"
DEPENDS = "libtool-native zlib"
LICENSE = "LGPLv3+"
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=6a6a8e020838b23406c81b19c1d46df6"
SRC_URI = "git://git.sv.gnu.org/lightning.git;protocol=git"
SRCREV= "f6970c62cf1be6df44b04890f800fbdd2626d1b3"
S = "${WORKDIR}/git"
PR = "r3"
EXTRA_OECONF = "--disable-disassembler"
inherit autotools
# Make some default assumptions that disable some tests
CACHED_CONFIGUREVARS += " \
ac_cv_test_x86_x87=no \
ac_cv_test_arm_arm=no \
ac_cv_test_arm_swf=no \
"
BBCLASSEXTEND = "native"

View File

@ -2,7 +2,7 @@ DESCRIPTION = "Grease compability layer"
HOMEPAGE = "http://github.com/NicolasPetton/grease"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
S = "${WORKDIR}/git"

View File

@ -2,7 +2,7 @@ DESCRIPTION = "Iliad webframework"
HOMEPAGE = "http://www.iliadproject.org/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
S = "${WORKDIR}/git"

View File

@ -1,7 +1,7 @@
DESCRIPTION = "ASN1 Code to work on TCAP/MAP/Camel..."
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,7 +1,7 @@
DESCRIPTION = ""
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,7 +1,7 @@
DESCRIPTION = "GSM utilities based on osmo-network for SCCP,BSSAP,BSSMAP,GSM48"
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,7 +1,7 @@
DESCRIPTION = "A Smalltalk logging framework inspired by libosmocore's logging facilities"
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,7 +1,7 @@
DESCRIPTION = "This is a MGCP CallAgent written in Smalltalk"
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,7 +1,7 @@
DESCRIPTION = "This is a simple MSC done in Smalltalk"
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,6 +1,6 @@
DESCRIPTION = "osmo-network a module for networking (SCCP, M3UA, IPA) protocol handling"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
HOMEPAGE = "http://osmocom.org"

View File

@ -1,15 +1,15 @@
DESCRIPTION = ""
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc
RDEPENDS_${PN} += "osmo-st-core osmo-st-logging petitparser"
RDEPENDS_${PN} += "osmo-st-core osmo-st-logging petitparser smalltalk-digest"
S = "${WORKDIR}/git"
SRC_URI = "git://git.osmocom.org/smalltalk/osmo-st-sip;protocol=git;branch=master"
SRCREV = "88c800559736a39edc67fda0506460dcbf4976cf"
PV = "0.0.1+gitr${SRCPV}"
PR = "${INC_PR}.1"
PR = "${INC_PR}.2"

View File

@ -1,7 +1,7 @@
DESCRIPTION = "A simple test phone to do a LU and place a call"
HOMEPAGE = "http://osmocom.org"
LICENSE = "AGPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,7 +1,7 @@
DESCRIPTION = ""
HOMEPAGE = "https://gitorious.org/gnu-smalltalk-ports/petitparser"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

View File

@ -1,7 +1,7 @@
DESCRIPTION = ""
HOMEPAGE = "https://gitorious.org/gnu-smalltalk-ports/petitparser"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -4,8 +4,8 @@ LICENSE = "GPLv2+"
INC_PR = "12"
DEPENDS = "smalltalk-native gnutls readline libsigsegv libtool libffi zip-native expat "
DEPENDS_virtclass-native = "gnutls-native libffi-native libsigsegv-native"
DEPENDS = "smalltalk-native gnutls readline libsigsegv libtool libffi zip-native expat sqlite3 zip-native"
DEPENDS_virtclass-native = "gnutls-native libffi-native libsigsegv-native zip-native readline-native"
EXTRA_OECONF = "--disable-static --disable-gtk --without-x --without-opengl --with-tcl=/bin/false --with-tk=/bin/false --without-emacs gst_cv_libc_dlopen_works=hacked gst_cv_readline_libs='-lreadline'"
PACKAGES =+ "${PN}-digest ${PN}-expat ${PN}-iconv ${PN}-i18n ${PN}-gdbm ${PN}-sdl \
@ -63,7 +63,7 @@ do_configure() {
do_configure_virtclass-native() {
autotools_do_configure
sed -i -e 's/^module_DATA.*$//' ${S}/Makefile
sed -i -e 's/^module_DATA.*$//' ${B}/Makefile
}
do_install_append() {

View File

@ -1,7 +1,7 @@
DESCRIPTION = ""
HOMEPAGE = "https://gitorious.org/gnu-smalltalk-ports/soapopera"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require smalltalk-package.inc

View File

@ -1,4 +1,3 @@
# This will set BTS_HW_VERSION depending on the machine
PACKAGE_ARCH = "${MACHINE_ARCH}"
BTS_HW_VERSION_sysmobts-v1 = "-DHW_SYSMOBTS_V1"
BTS_HW_VERSION_sysmobts-v2 = "-DHW_SYSMOBTS_V2"

View File

@ -7,6 +7,10 @@ ARCHIVE_TYPE ?= "TAR SRPM"
DISTRO ?= "poky"
PATCHES_ARCHIVE_WITH_SERIES = 'TRUE'
def compat_cmp(a, b):
return (a>b)-(a<b)
def get_bb_inc(d):
'''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}'''
import re
@ -20,8 +24,14 @@ def get_bb_inc(d):
bbdir = os.path.dirname(bbfile)
script_logs = os.path.join(work_dir,'script-logs')
bb_inc = os.path.join(script_logs,'bb_inc')
bb.mkdirhier(script_logs)
bb.mkdirhier(bb_inc)
try:
bb.mkdirhier(script_logs)
except:
bb.utils.mkdirhier(script_logs)
try:
bb.mkdirhier(bb_inc)
except:
bb.utils.mkdirhier(bb_inc)
def find_file(dir,file):
for root, dirs, files in os.walk(dir):
@ -49,7 +59,10 @@ def get_bb_inc(d):
shutil.copy(bbincfile,bb_inc)
try:
bb.mkdirhier(os.path.join(script_logs,'temp'))
try:
bb.mkdirhier(os.path.join(script_logs,'temp'))
except:
bb.utils.mkdirhier(os.path.join(script_logs,'temp'))
oe.path.copytree(os.path.join(work_dir,'temp'), os.path.join(script_logs,'temp'))
except (IOError,AttributeError):
pass
@ -65,14 +78,16 @@ def get_series(d):
s = d.getVar('S',True)
dest = os.path.join(work_dir, pf + '-series')
shutil.rmtree(dest, ignore_errors=True)
bb.mkdirhier(dest)
try:
bb.mkdirhier(dest)
except:
bb.utils.mkdirhier(dest)
src_uri = d.getVar('SRC_URI', True).split()
fetch = bb.fetch2.Fetch(src_uri, d)
locals = (fetch.localpath(url) for url in fetch.urls)
for local in locals:
src_patches.append(local)
if not cmp(work_dir,s):
if not compat_cmp(work_dir,s):
tmp_list = src_patches
else:
tmp_list = src_patches[1:]
@ -82,7 +97,10 @@ def get_series(d):
shutil.copy(patch,dest)
except IOError:
if os.path.isdir(patch):
bb.mkdirhier(os.path.join(dest,patch))
try:
bb.mkdirhier(os.path.join(dest,patch))
except:
bb.utils.mkdirhier(os.path.join(dest,patch))
oe.path.copytree(patch, os.path.join(dest,patch))
return dest
@ -96,8 +114,10 @@ def get_applying_patches(d):
work_dir = d.getVar('WORKDIR', True)
dest = os.path.join(work_dir, pf + '-patches')
shutil.rmtree(dest, ignore_errors=True)
bb.mkdirhier(dest)
try:
bb.mkdirhier(dest)
except:
bb.utils.mkdirhier(dest)
patches = src_patches(d)
for patch in patches:
@ -113,7 +133,7 @@ def not_tarball(d):
workdir = d.getVar('WORKDIR',True)
s = d.getVar('S',True)
if 'work-shared' in s or 'task-' in workdir or 'native' in workdir:
pn = bb.data.getVar('PN', d , True)
pn = d.getVar('PN', True)
if pn == 'gcc-cross':
return False
return True
@ -162,7 +182,7 @@ def archive_sources_from_directory(d,stage_name):
try:
source_dir = os.path.join(work_dir,[ i for i in s.replace(work_dir,'').split('/') if i][0])
except IndexError:
if not cmp(s,work_dir):
if not compat_cmp(s,work_dir):
return ''
else:
return ''
@ -248,7 +268,10 @@ def move_tarball_deploy(d,tarball_list):
work_dir = d.getVar('WORKDIR',True)
tar_sources = d.getVar('DEPLOY_DIR', True) + '/sources/' + target_sys + '/' + licenses + '/' + pf
if not os.path.exists(tar_sources):
bb.mkdirhier(tar_sources)
try:
bb.mkdirhier(tar_sources)
except:
bb.utils.mkdirhier(tar_sources)
for source in tarball_list:
if source:
if os.path.exists(os.path.join(tar_sources, source)):
@ -337,15 +360,18 @@ def archive_scripts_logs(d):
def dumpdata(d):
'''dump environment to "${P}-${PR}.showdata.dump" including all kinds of variables and functions when running a task'''
workdir = bb.data.getVar('WORKDIR', d, 1)
distro = bb.data.getVar('DISTRO', d, 1)
workdir = d.getVar('WORKDIR', 1)
distro = d.getVar('DISTRO', 1)
s = d.getVar('S', True)
pf = d.getVar('PF', True)
target_sys = d.getVar('TARGET_SYS', True)
licenses = get_licenses(d)
dumpdir = d.getVar('DEPLOY_DIR', True) + '/sources/' + target_sys + '/' + licenses + '/' + pf
if not os.path.exists(dumpdir):
bb.mkdirhier(dumpdir)
try:
bb.mkdirhier(dumpdir)
except:
bb.utils.mkdirhier(dumpdir)
dumpfile = os.path.join(dumpdir, bb.data.expand("${P}-${PR}.showdata.dump",d))
@ -355,8 +381,8 @@ def dumpdata(d):
bb.data.emit_env(f, d, True)
# emit the metadata which isnt valid shell
for e in d.keys():
if bb.data.getVarFlag(e, 'python', d):
f.write("\npython %s () {\n%s}\n" % (e, bb.data.getVar(e, d, 1)))
if d.getVarFlag(e, 'python'):
f.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, 1)))
f.close()
def create_diff_gz(d):
@ -381,7 +407,10 @@ def create_diff_gz(d):
distro = d.getVar('DISTRO',True)
dest = s + '/' + distro + '/files'
if not os.path.exists(dest):
bb.mkdirhier(dest)
try:
bb.mkdirhier(dest)
except:
bb.utils.mkdirhier(dest)
for i in os.listdir(os.getcwd()):
if os.path.isfile(i):
try:

View File

@ -0,0 +1,188 @@
pkg_postinst_modules () {
if [ -z "$D" ]; then
depmod -a ${KERNEL_VERSION}
else
depmodwrapper -a -b $D ${KERNEL_VERSION}
fi
}
pkg_postrm_modules () {
if [ -z "$D" ]; then
depmod -a ${KERNEL_VERSION}
else
depmodwrapper -a -b $D ${KERNEL_VERSION}
fi
}
autoload_postinst_fragment() {
if [ x"$D" = "x" ]; then
modprobe %s || true
fi
}
do_install_append() {
install -d ${D}${sysconfdir}/modules-load.d/ ${D}${sysconfdir}/modprobe.d/
}
PACKAGESPLITFUNCS_prepend = "split_kernel_module_packages "
KERNEL_MODULES_META_PACKAGE ?= "kernel-modules"
KERNEL_MODULES_PACKAGE_PREFIX ?= "kernel-module-%s"
python split_kernel_module_packages () {
import re
modinfoexp = re.compile("([^=]+)=(.*)")
kerverrexp = re.compile('^(.*-hh.*)[\.\+].*$')
depmodpat0 = re.compile("^(.*\.k?o):..*$")
depmodpat1 = re.compile("^(.*\.k?o):\s*(.*\.k?o)\s*$")
depmodpat2 = re.compile("^(.*\.k?o):\s*(.*\.k?o)\s*\\\$")
depmodpat3 = re.compile("^\t(.*\.k?o)\s*\\\$")
depmodpat4 = re.compile("^\t(.*\.k?o)\s*$")
def extract_modinfo(file):
import tempfile, subprocess
tempfile.tempdir = d.getVar("WORKDIR", True)
tf = tempfile.mkstemp()
tmpfile = tf[1]
cmd = "%sobjcopy -j .modinfo -O binary %s %s" % (d.getVar("HOST_PREFIX", True) or "", file, tmpfile)
subprocess.call(cmd, shell=True)
f = open(tmpfile)
l = f.read().split("\000")
f.close()
os.close(tf[0])
os.unlink(tmpfile)
vals = {}
for i in l:
m = modinfoexp.match(i)
if not m:
continue
vals[m.group(1)] = m.group(2)
return vals
def parse_depmod():
dvar = d.getVar('PKGD', True)
kernelver = d.getVar('KERNEL_VERSION', True)
kernelver_stripped = kernelver
m = kerverrexp.match(kernelver)
if m:
kernelver_stripped = m.group(1)
kernel_build_dir = ['STAGING_KERNEL_BUILDDIR', 'STAGING_KERNEL_DIR'][d.getVar('DISTRO_VERSION', True)[0:3] == '1.5']
staging_kernel_dir = d.getVar(kernel_build_dir, True)
system_map_file = "%s/boot/System.map-%s" % (dvar, kernelver)
if not os.path.exists(system_map_file):
system_map_file = "%s/System.map-%s" % (staging_kernel_dir, kernelver)
if not os.path.exists(system_map_file):
bb.fatal("System.map-%s does not exist in '%s/boot' nor STAGING_KERNEL_DIR '%s'" % (kernelver, dvar, staging_kernel_dir))
cmd = "depmod -n -a -b %s -F %s %s" % (dvar, system_map_file, kernelver_stripped)
f = os.popen(cmd, 'r')
deps = {}
line = f.readline()
while line:
if not depmodpat0.match(line):
line = f.readline()
continue
m1 = depmodpat1.match(line)
if m1:
deps[m1.group(1)] = m1.group(2).split()
else:
m2 = depmodpat2.match(line)
if m2:
deps[m2.group(1)] = m2.group(2).split()
line = f.readline()
m3 = depmodpat3.match(line)
while m3:
deps[m2.group(1)].extend(m3.group(1).split())
line = f.readline()
m3 = depmodpat3.match(line)
m4 = depmodpat4.match(line)
deps[m2.group(1)].extend(m4.group(1).split())
line = f.readline()
f.close()
return deps
def get_dependencies(file, pattern, format):
# file no longer includes PKGD
file = file.replace(d.getVar('PKGD', True) or '', '', 1)
# instead is prefixed with /lib/modules/${KERNEL_VERSION}
file = file.replace("/lib/modules/%s/" % d.getVar('KERNEL_VERSION', True) or '', '', 1)
if file in module_deps:
dependencies = []
for i in module_deps[file]:
m = re.match(pattern, os.path.basename(i))
if not m:
continue
on = legitimize_package_name(m.group(1))
dependency_pkg = format % on
dependencies.append(dependency_pkg)
return dependencies
return []
def frob_metadata(file, pkg, pattern, format, basename):
vals = extract_modinfo(file)
dvar = d.getVar('PKGD', True)
# If autoloading is requested, output /etc/modules-load.d/<name>.conf and append
# appropriate modprobe commands to the postinst
autoload = d.getVar('module_autoload_%s' % basename, True)
if autoload:
name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename)
f = open(name, 'w')
for m in autoload.split():
f.write('%s\n' % m)
f.close()
postinst = d.getVar('pkg_postinst_%s' % pkg, True)
if not postinst:
bb.fatal("pkg_postinst_%s not defined" % pkg)
postinst += d.getVar('autoload_postinst_fragment', True) % autoload
d.setVar('pkg_postinst_%s' % pkg, postinst)
# Write out any modconf fragment
modconf = d.getVar('module_conf_%s' % basename, True)
if modconf:
name = '%s/etc/modprobe.d/%s.conf' % (dvar, basename)
f = open(name, 'w')
f.write("%s\n" % modconf)
f.close()
files = d.getVar('FILES_%s' % pkg, True)
files = "%s /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (files, basename, basename)
d.setVar('FILES_%s' % pkg, files)
if "description" in vals:
old_desc = d.getVar('DESCRIPTION_' + pkg, True) or ""
d.setVar('DESCRIPTION_' + pkg, old_desc + "; " + vals["description"])
rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg, True) or "")
for dep in get_dependencies(file, pattern, format):
if not dep in rdepends:
rdepends[dep] = []
d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
module_deps = parse_depmod()
module_regex = '^(.*)\.k?o$'
module_pattern = d.getVar("KERNEL_MODULES_PACKAGE_PREFIX", True) or "kernel-module-%s"
postinst = d.getVar('pkg_postinst_modules', True)
postrm = d.getVar('pkg_postrm_modules', True)
modules = do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='kernel-%s' % (d.getVar("KERNEL_VERSION", True)))
if modules:
metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE', True)
d.appendVar('RDEPENDS_' + metapkg, ' '+' '.join(modules))
# If modules-load.d and modprobe.d are empty at this point, remove them to
# avoid warnings. removedirs only raises an OSError if an empty
# directory cannot be removed.
dvar = d.getVar('PKGD', True)
for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]:
if len(os.listdir(dir)) == 0:
os.rmdir(dir)
}

View File

@ -0,0 +1,12 @@
DEPENDS += "virtual/kernel"
inherit module-base sysmocom-kernel-module-split
addtask make_scripts after do_patch before do_compile
do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
do_make_scripts[deptask] = "do_populate_sysroot"
# add all splitted modules to PN RDEPENDS, PN can be empty now
KERNEL_MODULES_META_PACKAGE = "${PN}"
FILES_${PN} = ""
ALLOW_EMPTY_${PN} = "1"

View File

@ -0,0 +1,41 @@
# Default to systemd
DISTRO_FEATURES_append = " systemd "
VIRTUAL-RUNTIME_init_manager = "systemd"
# Maybe only for the sysmoBTS kind of hardware?
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
# Do not put the sourcecode into the debug packages
PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
# Enable the prserver host
PRSERV_HOST = "localhost:0"
# Delete stuff
#INHERIT += "rm_work"
# Create patched source tarballs
SOURCE_ARCHIVE_PACKAGE_TYPE = "tar"
INHERIT += " sysmocom-archive-patched-source"
# We use opkg and not rpm/smart
PACKAGE_CLASSES ?= "package_ipk"
# When using uclibc/musl.. avoid pulling in gettext. We do
# not need i18n in our tools right now.
USE_NLS = "no"
# We don't need x11, nfc, selinux, pam in our builds
DISTRO_FEATURES_remove = "x11 nfc selinux pam"
# Get rid off XZ, xkbcommon, pam, selinux for systemd and many more now
PACKAGECONFIG_pn-systemd = "compat ldconfig binfmt sysusers randomseed myhostname firstboot utmp"
# From fido on.. build curl with libssl to avoid gnutls
PACKAGECONFIG_pn-curl="ipv6 ssl zlib"
# disable libsolv as it is broken Yocto Bug #11427
PACKAGECONFIG_pn-opkg = ""
PACKAGECONFIG_pn-opkg-native = ""

View File

@ -8,10 +8,11 @@ BBFILES += "${LAYERDIR}/yocto-shared/*.bbappend"
# Now we will need to include the matching fixes for a yocto version
BBFILES += "${BBFILES_SYSMOCOM_BSP}"
# selects specific distro or master when DISTRO_VERSION contains SNAPSHOT
BBFILES_SYSMOCOM_BSP = "${LAYERDIR}/yocto-${@ [dict([('1.5', 'dora'), ('1.1','edison')])[d.getVar('DISTRO_VERSION', True)[0:3]], 'master']['SNAPSHOT' in d.getVar('DISTRO_VERSION', True)]}/*.bbappend"
# selects specific distro or master when DISTRO_VERSION contains snapshot
BBFILES_SYSMOCOM_BSP = "${LAYERDIR}/yocto-${@dict([('1.5', 'dora')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'master')}/*.bbappend"
BBFILES_SYSMOCOM_BSP += "${LAYERDIR}/yocto-${@dict([('1.5', 'dora')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'master')}/*/*.bb"
BBFILE_COLLECTIONS += "sysmocom-bsp"
BBFILE_PATTERN_sysmocom-bsp := "^${LAYERDIR}/"
BBFILE_PRIORITY_sysmocom-bsp = "1"
BBFILE_PRIORITY_sysmocom-bsp = "6"

View File

@ -0,0 +1,41 @@
#@TYPE: Machine
#@NAME: gsmk-owhw
#@DESCRIPTION: Machine configuration for the GSMK OWHW
require conf/machine/include/ti33x.inc
IMAGE_FSTYPES += "ubifs"
SERIAL_CONSOLE = "115200 ttyO0"
# UBI information. Note that this is board and kernel specific. Changes
# in your kernel port may require changes in these variables. For more
# details about this board please see
# http://processors.wiki.ti.com/index.php/UBIFS_Support
# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
# From dmesg:
# UBI: smallest flash I/O unit: 2048
# UBI: logical eraseblock size: 126976 bytes
# from ubiattach stdout:
# UBI device number 0, total 1988 LEBs
MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 3836"
# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
# from dmesg:
# UBI: smallest flash I/O unit: 2048
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
# UBI: sub-page size: 512
# UBI: VID header offset: 2048 (aligned 2048)
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
# Go back to prefer our kernel
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
KERNEL_IMAGETYPE = "uImage"
PREFERRED_PROVIDER_virtual/bootloader = "barebox-gsmk-owhw"
EXTRA_IMAGEDEPENDS += "barebox-gsmk-owhw"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
kernel usb2514 mtd-utils-ubifs bossa \
"

View File

@ -1,7 +1,7 @@
TARGET_ARCH = "arm"
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
PREFERRED_VERSION_linux-sysmocom = "${@ dict([('1.5','3.10.50+git%'), ('1.5.1','3.10.50+git%'), ('1.5.2','3.10.50+git%'), ('1.5.3','3.10.50+git%'), ('1.1.2','')])[d.getVar('DISTRO_VERSION', True)]}"
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
PREFERRED_VERSION_u-boot = "git"
@ -19,10 +19,9 @@ EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n"
MACHINE_FEATURES = "kernel26 serial"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
busybox-ifplugd \
${@['watchdog', ''][d.getVar('DISTRO_FEATURES_INITMAN', True) == 'systemd']} \
${@['', 'busybox-ifplugd'][d.getVar('DISTRO_VERSION', True)[0:3] == '1.5']} \
${@['watchdog', ''][d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd']} \
kernel \
kernel-module-davinci-wdt \
kernel-module-dspdl \
kernel-module-dspdl-dm644x \
kernel-module-fpgadl \
@ -33,14 +32,15 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
kernel-module-nls-utf8 \
kernel-module-rtfifo "
IMAGE_FSTYPES ?= "tar.bz2 cpio.gz ubifs ubi jffs2"
MACHINE_EXTRA_RDEPENDS = "\
task-sysmocom-bts \
sysmobts-firmware \
${@['watchdog', ''][d.getVar('DISTRO_FEATURES_INITMAN', True) == 'systemd']} \
${@['watchdog', ''][d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd']} \
"
#MACHINE_EXTRA_RRECOMMENDS = "dsplink-module"
require conf/machine/include/tune-arm926ejs.inc
require conf/machine/include/dm6446.inc
# we tune for armv5te but it ends up as armv5e on pyro and probably earlier. Help it.
ARMPKGSFX_THUMB="t"

View File

@ -1,6 +1,7 @@
SOC_FAMILY = "ti33x"
require conf/machine/include/soc-family.inc
DEFAULTTUNE ?= "cortexa8hf-neon"
require conf/machine/include/tune-cortexa8.inc
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
@ -31,5 +32,5 @@ UBOOT_LOADADDRESS = "0x80008000"
UBI_VOLNAME = "rootfs"
# List common SoC features, may need to add touchscreen for specific machines
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet sgx"
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet"

View File

@ -1,18 +0,0 @@
#@TYPE: Machine
#@NAME: sysmoBTS 2050
#@DESCRIPTION: sysmocom GmbH sysmoBTS 2050 family
require sysmobts-v2.conf
MACHINEOVERRIDES = "${MACHINE}:sysmobts-v2"
# TODO: Remove this file once edison support is dropped from this layer
# we are disabling the serial console for now, as it may interfere with
# the MSP430 service processor communication until proper filtering/splitting
# of the serial stream is implemented in the kernel
SERIAL_CONSOLE = ""
# we don't want a different UBIfs volume name, as this is compiled into u-boot,
# and thus would require a different u-boot image in turn.
UBI_VOLNAME="sysmobts-v2-rootfs"

View File

@ -1,14 +0,0 @@
#@TYPE: Machine
#@NAME: sysmocom - systems for mobile communications GmbH GSM BTS
#@DESCRIPTION: sysmocom - systems for mobile communications GmbH GSM BTS
# Make sure we build these too
EXTRA_IMAGEDEPENDS = "dvnixload-native ubl u-boot sysmobts-firmware"
EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pagesize=0x800 --no-cleanmarkers --pad=0x2000000 -n"
# ubifs config
MKUBIFS_ARGS = "-m 2048 -e 129024 -c 400"
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
require conf/machine/include/sysmobts.inc

View File

@ -3,7 +3,7 @@
#@DESCRIPTION: sysmocom - systems for mobile communications GmbH GSM Superfemto
# Make sure we build these too
EXTRA_IMAGEDEPENDS = "dvnixload-native ubl u-boot sysmobts-firmware"
EXTRA_IMAGEDEPENDS = "dvnixload-native ubl u-boot sysmobts-firmware barebox-sysmobts"
EXTRA_IMAGECMD_jffs2 = "--little-endian --eraseblock=0x20000 --pagesize=0x800 --no-cleanmarkers --pad=0x2000000 -n"
# ubifs config
@ -11,4 +11,5 @@ MKUBIFS_ARGS ?= "-m 2048 -e 129024 -c 999"
UBINIZE_ARGS ?= "-m 2048 -p 128KiB -s 512"
IMAGE_FSTYPES ?= "tar.bz2 ubi"
require conf/machine/include/sysmobts.inc

View File

@ -0,0 +1,43 @@
#@TYPE: Machine
#@NAME: common_pc
#@DESCRIPTION: Machine configuration for running a common x86
require conf/machine/include/tune-core2.inc
require conf/machine/include/genericx86-common.inc
PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
MACHINE_FEATURES += "kernel26 x86 usbhost pci acpi"
KERNEL_IMAGETYPE = "bzImage"
IMAGE_FSTYPES = "ext4"
# After dora core2 got renamed to core2-32
# After dora core2 got renamed to core2-32
DEFAULTTUNE := "${@['core2', 'core2-32']['core2-32' in d.getVar('AVAILTUNES', True)]}"
SERIAL_CONSOLE = "115200 ttyS0"
MACHINE_CONSOLE = "console=ttyS0,115200n8"
# We bypass swrast but we need it to be present for X to load correctly
XSERVER ?= "xserver-xf86-dri-lite \
mesa-dri-driver-swrast \
xf86-input-vmmouse \
xf86-input-keyboard \
xf86-input-evdev \
xf86-video-vmware"
GLIBC_ADDONS = "nptl"
GLIBC_EXTRA_OECONF = "--with-tls"
#MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "linux-firmware-rtl-nic"
MACHINEOVERRIDES = "${MACHINE}:sysmocom-bsc"

View File

@ -5,10 +5,11 @@
TARGET_ARCH = "i586"
PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
PREFERRED_PROVIDER_virtual/kernel = "${@['linux-sysmocom', 'linux']['1.1' in d.getVar('DISTRO_VERSION', True)]}"
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
require conf/machine/include/tune-geode.inc
@ -34,4 +35,5 @@ GLIBC_EXTRA_OECONF = "--with-tls"
#MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
busybox-ifplugd "
${@['', 'busybox-ifplugd'][d.getVar('DISTRO_VERSION', True)[0:3] == '1.5']} \
linux-firmware-rtl-nic "

View File

@ -0,0 +1,43 @@
#@TYPE: Machine
#@NAME: common_pc
#@DESCRIPTION: Machine configuration for running a common x86
require conf/machine/include/tune-core2.inc
require conf/machine/include/genericx86-common.inc
PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-diet"
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
PREFERRED_VERSION_linux-sysmocom = "${@dict([('1.5', '3.10.84+git%')]).get(d.getVar('DISTRO_VERSION', True)[0:3],'4.9.14+git%')}"
MACHINE_FEATURES += "kernel26 x86 usbhost pci acpi"
KERNEL_IMAGETYPE = "bzImage"
IMAGE_FSTYPES = "ext4"
# After dora core2 got renamed to core2-32
# After dora core2 got renamed to core2-32
DEFAULTTUNE := "${@['core2', 'core2-32']['core2-32' in d.getVar('AVAILTUNES', True)]}"
SERIAL_CONSOLE = "115200 ttyS0"
MACHINE_CONSOLE = "console=ttyS0,115200n8"
# We bypass swrast but we need it to be present for X to load correctly
XSERVER ?= "xserver-xf86-dri-lite \
mesa-dri-driver-swrast \
xf86-input-vmmouse \
xf86-input-keyboard \
xf86-input-evdev \
xf86-video-vmware"
GLIBC_ADDONS = "nptl"
GLIBC_EXTRA_OECONF = "--with-tls"
#MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "linux-firmware-rtl-nic"
MACHINEOVERRIDES = "${MACHINE}:sysmocom-bsc"

View File

@ -4,7 +4,8 @@
require conf/machine/include/ti33x.inc
IMAGE_FSTYPES += "ubi tar.gz"
IMAGE_FSTYPES += "ubifs"
DEFAULTTUNE = "cortexa8hf-neon"
SERIAL_CONSOLE = "115200 ttyO0"
@ -33,9 +34,9 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
PREFERRED_PROVIDER_virtual/kernel = "linux-sysmocom"
KERNEL_IMAGETYPE = "uImage"
PREFERRED_PROVIDER_virtual/bootloader = "barebox-sysmocom"
EXTRA_IMAGEDEPENDS += "barebox-sysmocom"
PREFERRED_PROVIDER_virtual/bootloader = "barebox-sysmocom-odu"
EXTRA_IMAGEDEPENDS += "barebox-sysmocom-odu"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
kernel \
kernel usb2514 \
"

View File

@ -0,0 +1,18 @@
DESCRIPTION = "autossh"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://autossh.c;endline=22;md5=b2b08187a92c97723e1d882a9fe657ac"
SRC_URI = "http://www.harding.motd.ca/autossh/autossh-${PV}.tgz \
file://020_use_destdir_makefile.diff \
file://022_pass_ldflags.diff"
SRC_URI[md5sum] = "f86684b96e99d22b2e9d35dc63b0aa29"
SRC_URI[sha256sum] = "9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156"
inherit autotools
B = "${S}"
PACKAGES += "${PN}-examples"
FILES_${PN}-examples = "${datadir}/examples/*"

View File

@ -0,0 +1,25 @@
Support for $DESTDIR in the Makefile.
From debian
Index: autossh-1.4e/Makefile.in
===================================================================
--- autossh-1.4e.orig/Makefile.in 2015-02-10 05:41:58.000000000 +0100
+++ autossh-1.4e/Makefile.in 2015-07-12 11:44:41.979659656 +0200
@@ -6,11 +6,11 @@
SSH= @path_ssh@
-prefix= @prefix@
-exec_prefix= @exec_prefix@
-bindir= @bindir@
-datadir= @datadir@
-mandir= @mandir@
+prefix= ${DESTDIR}@prefix@
+exec_prefix= ${DESTDIR}@exec_prefix@
+bindir= ${DESTDIR}@bindir@
+datadir= ${DESTDIR}@datadir@
+mandir= ${DESTDIR}@mandir@
SRCDIR= @srcdir@
VPATH= @srcdir@

View File

@ -0,0 +1,17 @@
Description: Properly pass LDFLAGS. Fixes lintian warning hardening-no-relro
Author: Axel Beckert <abe@debian.org>
Index: autossh/Makefile.in
===================================================================
--- autossh.orig/Makefile.in 2013-05-16 14:51:47.000000000 +0200
+++ autossh/Makefile.in 2013-05-16 14:53:19.000000000 +0200
@@ -31,7 +31,7 @@
$(TARGET): $(OFILES)
- $(CC) $(CPPFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
+ $(CC) $(CPPFLAGS) $(LDFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
clean:
- /bin/rm -f *.o *.a *.core *~

View File

@ -0,0 +1,10 @@
create_manifest() {
printf "Build_Date: %s\n" "`date -R`" > ${IMAGE_ROOTFS}/etc/sysmocom.manifest
printf "UUID: %s\n" "`uuidgen -r`" >> ${IMAGE_ROOTFS}/etc/sysmocom.manifest
printf "Machine: %s\n" "${MACHINE}" >> ${IMAGE_ROOTFS}/etc/sysmocom.manifest
printf "Image: %s\n" "${IMAGE_BASENAME}" >> ${IMAGE_ROOTFS}/etc/sysmocom.manifest
printf "Distro: %s\n" "${DISTRO}" >> ${IMAGE_ROOTFS}/etc/sysmocom.manifest
printf "Distro_Version: %s\n" "${DISTRO_VERSION}" >> ${IMAGE_ROOTFS}/etc/sysmocom.manifest
}
IMAGE_PREPROCESS_COMMAND += "create_manifest; "

View File

@ -0,0 +1,16 @@
DEPENDS += "openssl-native"
rootpasswd = "${@d.getVar('ROOT_PASS', True) or ""}"
ROOTFS_POSTPROCESS_COMMAND += "set_root_passwd;"
set_root_passwd() {
if [ -n "${rootpasswd}" ]; then
HASHED_PASS=`openssl passwd -1 ${rootpasswd}`
if [ -n "${HASHED_PASS}" ]; then
sed -e "s%^root:[^:]*:%root:${HASHED_PASS}:%" \
-i ${IMAGE_ROOTFS}/etc/shadow
echo "Generated new root-passwd"
fi
fi
}

View File

@ -0,0 +1,18 @@
hostsshkeysfile = "${@d.getVar('SSH_KEYS_FILE', True) or ''}"
ROOTFS_POSTPROCESS_COMMAND += "copy_ssh_keys;"
copy_ssh_keys() {
if [ -n "${hostsshkeysfile}" ]; then
if [ -r "${hostsshkeysfile}" ]; then
echo "Installing sshkeys from ${hostsshkeysfile}"
mkdir -p ${IMAGE_ROOTFS}/home/root/.ssh/
cat ${hostsshkeysfile} >> ${IMAGE_ROOTFS}/home/root/.ssh/authorized_keys
chown root:root ${IMAGE_ROOTFS}/home/root/.ssh/authorized_keys
chmod 0600 ${IMAGE_ROOTFS}/home/root/.ssh/authorized_keys
else
echo "Could not install sshkeys from ${hostsshkeysfile}"
fi
fi
}

View File

@ -0,0 +1,44 @@
# set the variables DNS_SERVER, DNS_DOMAIN or DNS_SEARCH in your image file
# and require this file afterwards
DNSSERVER = "${@d.getVar('DNS_SERVER', True) or ''}"
DNSDOMAIN = "${@d.getVar('DNS_DOMAIN', True) or ''}"
DNSSEARCH = "${@d.getVar('DNS_SEARCH', True) or ''}"
ROOTFS_POSTPROCESS_COMMAND += "set_static_dns;"
set_static_dns() {
printf "Replacing /etc/resolv.conf\n"
printf "#This default-file was generated by the image-static-dns hook\n \
in the post-image setup.\n\n" > ${IMAGE_ROOTFS}/etc/resolv.conf
if [ -n "${DNSSERVER}" ]; then
printf "setting DNS-server\n"
printf "nameserver %s\n" "${DNSSERVER}" >> ${IMAGE_ROOTFS}/etc/resolv.conf
fi
if [ -n "${DNSDOMAIN}" ]; then
printf "setting DNS-domain\n"
printf "domain %s\n" "${DNSDOMAIN}" >> ${IMAGE_ROOTFS}/etc/resolv.conf
fi
if [ -n "${DNSSEARCH}" ]; then
printf "setting DNS-search\n"
printf "search %s\n" "${DNSSEARCH}" >> ${IMAGE_ROOTFS}/etc/resolv.conf
fi
if [ -w ${IMAGE_ROOTFS}/etc/default/udhcpc ]; then
printf "Configure the installed udhcpc for static DNS\n"
STATIC_DNS_TEXT="# The static-dns configuration was generated by the image-static-dns hook."
sed -i -e "s/^#.*\(STATIC_DNS\).*$/${STATIC_DNS_TEXT}\n\1=\"yes\"/g" ${IMAGE_ROOTFS}/etc/default/udhcpc
else
printf "Configure the not installed udhcpc for static DNS\n"
mkdir -p ${IMAGE_ROOTFS}/etc/default
cat << EOF > ${IMAGE_ROOTFS}/etc/default/udhcpc
#This default-file was generated by the image-static-dns hook,
#in the post-image setup.
#
#When udhcpc is installed one setup needs to be chosen.
STATIC_DNS="yes"
EOF
fi
}

View File

@ -1,13 +0,0 @@
DESCRIPTION = "sysmocom BSC/E1 image"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
LICENSE = "MIT"
inherit boot-directdisk
ROOTFS = "${DEPLOY_DIR_IMAGE}/sysmocom-bsc-e1-image-${MACHINE}.ext3"
do_bootdirectdisk[depends] += "sysmocom-bsc-e1-image:do_rootfs"

View File

@ -1,10 +0,0 @@
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${ROOTFS_PKGMANAGE} task-osmocom task-sysmocom \
task-sysmocom-debug task-sysmocom-tools task-sysmocom-e1 task-gprscore \
e2fsprogs-mke2fs e2fsprogs-tune2fs e2fsprogs-e2fsck e2fsprogs-fsck \
kernel-module-nls-iso8859-1 kernel-module-nls-cp437"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
IMAGE_ROOTFS_SIZE = "524288"

View File

@ -1,6 +1,7 @@
require sysmocom-image.inc
IMAGE_LINGUAS = " "
IMAGE_INSTALL_append = " dnsmasq "
# This variant of the image will run osmo-bts and osmo-bsc
activate_bsc() {

View File

@ -1,10 +0,0 @@
DESCRIPTION = "sysmocom BSC/IP image"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
LICENSE = "MIT"
inherit boot-directdisk
ROOTFS = "${DEPLOY_DIR_IMAGE}/sysmocom-bsc-ip-image-${MACHINE}.ext4"
do_bootdirectdisk[depends] += "sysmocom-bsc-ip-image:do_rootfs"

View File

@ -1,7 +0,0 @@
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${ROOTFS_PKGMANAGE} task-osmocom task-sysmocom task-sysmocom-debug task-sysmocom-tools task-gprscore sysmocom-udhcpd-config busybox-udhcpd"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
IMAGE_ROOTFS_SIZE = "262144"

View File

@ -1,8 +1,9 @@
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} task-osmocom task-sysmocom"
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} packagegroup-osmocom task-sysmocom"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
require recipes-apps/images/image-manifest.inc
IMAGE_ROOTFS_SIZE = "8192"

View File

@ -1,13 +1,16 @@
DEPENDS = "${MACHINE_EXTRA_RDEPENDS}"
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${ROOTFS_PKGMANAGE} task-osmocom task-sysmocom task-sysmocom-debug task-sysmocom-tools ${MACHINE_EXTRA_RDEPENDS} "
DEPENDS = "${MACHINE_EXTRA_RDEPENDS} util-linux-native"
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${ROOTFS_PKGMANAGE} packagegroup-osmocom task-sysmocom task-sysmocom-debug task-sysmocom-tools ${MACHINE_EXTRA_RDEPENDS} "
IMAGE_LINGUAS = " "
IMAGE_FEATURES += " package-management "
LICENSE = "MIT"
inherit core-image
require recipes-apps/images/image-manifest.inc
IMAGE_ROOTFS_SIZE = "32768"
IMAGE_FSTYPES += "squashfs"
IMAGE_CMD_squashfs += "-e boot"
link_uimage() {
echo "Linking the current uImage to /boot/uImage"

View File

@ -0,0 +1,2 @@
require sysmocom-nitb-image.bb
require sysmocom-rauc-slot.inc

View File

@ -0,0 +1,26 @@
require recipes-apps/images/sysmocom-image.inc
require recipes-apps/images/image-passwd.inc
require recipes-apps/images/image-sshkey.inc
# have enough space for log files and db
IMAGE_INSTALL = "task-core-boot ${ROOTFS_PKGMANAGE} \
task-owhw-image task-sysmocom-debug \
task-sysmocom-tools"
# vim: tabstop=8 shiftwidth=8 noexpandtab
# create what the rauc slots expect...
link_kernel() {
echo "Linking the current uImage to /kernel"
OLD_PWD=$PWD
cd ${IMAGE_ROOTFS}/
ln ./boot/uImage-* ./kernel || true
echo "Copying devicetree to /devicetree"
cp "${DEPLOY_DIR_IMAGE}/uImage-am335x-gsmk-owhw.dtb" ./devicetree
cd $OLD_PWD
}
IMAGE_PREPROCESS_COMMAND += "link_kernel; "

View File

@ -0,0 +1,2 @@
require sysmocom-owhw-image.bb
require sysmocom-rauc-slot.inc

View File

@ -0,0 +1,5 @@
IMAGE_INSTALL_append = " packagegroup-rauc-slot "
# force it to a squashfs
IMAGE_FSTYPES = "squashfs"

View File

@ -0,0 +1,7 @@
[Unit]
Description=/data
[Mount]
What=ubi0:data
Where=/data
Type=ubifs

View File

@ -0,0 +1,7 @@
[Unit]
Description=/data
[Mount]
What=ubi0:data
Where=/data
Type=ubifs

View File

@ -0,0 +1,80 @@
#!/bin/sh
# Make sure to look at sysmocom-restore to check if the file would
# be restored right. Currently only some dirs get restored.
FILES="etc/sysmocom/backup.d"
# Pick some extra files
if [ -e /etc/sysmocom/backup.d/ ]; then
for extra in `ls /etc/sysmocom/backup.d/*.files`;
do
echo "Add extras from $extra."
FILES="$FILES `cat $extra`"
done
fi
DATE=`date +%Y%m%d`
# Called for a file. Compare with the content in /ro-root
# if this file has been modified and only take it then. In
# case the file is not present it in /ro-root it will be
# added to the backup set
backup_file() {
cmp -s /$2 /ro-root/$2
if [ $? -ne 0 ]; then
echo "Adding $2"
tar -rf $1 --transform='s,^,content/,' -C / $2
fi
}
# Check if this is a file, otherwise descend
handle_file() {
if [ -f "/$2" -a -e "/$2" ]; then
backup_file $1 $2
fi
if [ -d "/$2" -a -e "/$2" ]; then
for file in /$2/*;
do
# Construct to have no leading /
handle_file $1 $2/`basename $file`
done
fi
}
do_backup_files() {
BACKUP_FILE="/data/sysmocom-backup_$DATE.tar"
# 0. Sanity checking
if [ -e $BACKUP_FILE ]; then
echo "The backup file '$BACKUP_FILE' already exists. Exiting!"
exit 1
fi
# 1. Create an empty archive..
tar -cf $BACKUP_FILE --files-from=/dev/null
# 2. Add all the files... we need
for file in $FILES;
do
handle_file $BACKUP_FILE $file
done
# 4. Generate more information
NAME="/tmp/backup.$$"
mkdir $NAME
opkg list_installed > $NAME/installed_packages
/sbin/ifconfig | grep HWaddr | cut -d ' ' -f 11 > $NAME/mac_addr
# 5. Add the more information
tar -rf $BACKUP_FILE --transform='s,^,info/,' -C $NAME installed_packages mac_addr
# 6. Create stable link
cd /data/
ln -sf `basename $BACKUP_FILE` sysmocom-backup.tar
# 76
echo "The backup was stored to $BACKUP_FILE"
}
do_backup_files

View File

@ -0,0 +1,7 @@
[Unit]
Description=/data
[Mount]
What=/dev/sda4
Where=/data
Type=ext4

View File

@ -0,0 +1,7 @@
[Unit]
Description=/data
[Mount]
What=ubi0:data
Where=/data
Type=ubifs

View File

@ -0,0 +1,25 @@
#!/bin/sh
do_extract() {
# List the files and check if grep hits something
SEARCH=`tar -tvf $1 | grep $2`
RES=$?
if [ $RES = 0 ]; then
tar --transform='s,^content/,,' -C / -xvf $1 $2
else
echo "Directory '$2' is not in backup '$1'."
fi
}
do_restore_files() {
BACKUP_FILE=$1
if [ ! -e "$BACKUP_FILE" ] ; then
echo "The backup file '$BACKUP_FILE' does not exist. Exiting!"
exit 1
fi
echo "Going to extract files from the backup '$BACKUP_FILE'"
do_extract $BACKUP_FILE content/
}
do_restore_files $1

View File

@ -0,0 +1,12 @@
[Unit]
Description=Restore Configuration Backup
Requires=data.mount
After=data.mount
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/sbin/sysmocom-restore-data /data/sysmocom-backup.tar
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,29 @@
DESCRIPTION = "sysmocom config backup and restore scripts"
LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r13"
SRC_URI = " \
file://sysmocom-backup-data \
file://sysmocom-restore-data \
file://data.mount \
file://sysmocom-restore.service \
"
RDEPENDS_${PN} = "tar"
RCONFLICTS_${PN} = "symocom-backup"
inherit systemd
do_install() {
install -d ${D}${sbindir}
install -m 0755 ${WORKDIR}/sysmocom-backup-data ${D}${sbindir}/
install -m 0755 ${WORKDIR}/sysmocom-restore-data ${D}${sbindir}/
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/data.mount ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/sysmocom-restore.service ${D}${systemd_unitdir}/system/
}
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "data.mount sysmocom-restore.service"
SYSTEMD_AUTO_ENABLE_${PN} = "disable"

View File

@ -0,0 +1,23 @@
etc/hostname
etc/ifplugd.sh
etc/network/interfaces
etc/openvpn
etc/opkg/sysmocom-config.conf
etc/osmocom/osmo-bsc-mgcp.cfg
etc/osmocom/osmo-bsc.cfg
etc/osmocom/osmo-bts.cfg
etc/osmocom/osmo-nitb.cfg
etc/osmocom/osmo-pcu.cfg
etc/osmocom/osmo-sgsn.cfg
etc/systemd/system/multi-user.target.wants/osmo-nitb.service
etc/systemd/system/multi-user.target.wants/osmo-bsc.service
etc/systemd/system/multi-user.target.wants/osmo-sgsn.service
etc/ggsn.conf
etc/default
var/lib/osmocom/hlr.sqlite3
etc/lcr
etc/udhcpd.conf
etc/sysmocom/backup.d
etc/machine-id
etc/dropbear/dropbear_rsa_host_key
etc/uucp

View File

@ -3,32 +3,11 @@
# Make sure to look at sysmocom-restore to check if the file would
# be restored right. Currently only some dirs get restored.
FILES="\
etc/hostname \
etc/ifplugd.sh \
etc/network/interfaces \
etc/openvpn \
etc/opkg/sysmocom-config.conf \
etc/osmocom/osmo-bsc-mgcp.cfg \
etc/osmocom/osmo-bsc.cfg \
etc/osmocom/osmo-bts.cfg \
etc/osmocom/osmo-nitb.cfg \
etc/osmocom/osmo-pcu.cfg \
etc/osmocom/osmo-sgsn.cfg \
etc/systemd/system/multi-user.target.wants/osmo-nitb.service \
etc/systemd/system/multi-user.target.wants/osmo-bsc.service \
etc/systemd/system/multi-user.target.wants/osmo-sgsn.service \
etc/ggsn.conf \
etc/default \
var/lib/osmocom/hlr.sqlite3 \
etc/lcr \
etc/udhcpd.conf \
etc/sysmocom/backup.d \
"
FILES="etc/sysmocom/backup.d"
# Pick some extra files
if [ -e /etc/sysmocom/backup.d/ ]; then
for extra in `ls /etc/sysmocom/backup.d/*.backup`;
for extra in `ls /etc/sysmocom/backup.d/*.files`;
do
echo "Add extras from $extra."
FILES="$FILES `cat $extra`"
@ -67,7 +46,10 @@ do_backup_files() {
# 4. Add the more information
tar -rf $BACKUP_FILE --transform='s,^,info/,' -C $NAME installed_packages mac_addr
# 5.
# 5. Create stable link
ln -sf $BACKUP_FILE /home/root/sysmocom-backup.tar
# 6.
echo "The backup was stored to $BACKUP_FILE"
}

View File

@ -1,13 +1,24 @@
DESCRIPTION = "sysmocom config backup and restore scripts"
LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
PR = "r12"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r13"
SRC_URI = "file://sysmocom-backup file://sysmocom-restore"
SRC_URI = " \
file://sysmocom-backup \
file://sysmocom-restore \
file://default.files \
"
RDEPENDS_${PN} = "tar"
do_install() {
install -d ${D}${sbindir}
install -m 0755 ${WORKDIR}/sysmocom-backup ${D}${sbindir}/
install -m 0755 ${WORKDIR}/sysmocom-restore ${D}${sbindir}/
install -d ${D}${sysconfdir}/sysmocom/backup.d
install -m 0644 ${WORKDIR}/default.files ${D}${sysconfdir}/sysmocom/backup.d/
}
PACKAGES =+ "${PN}-default"
FILES_${PN}-default = "${sysconfdir}/sysmocom/backup.d/"

View File

@ -3,7 +3,7 @@ end 10.23.24.254
interface eth1
option subnet 10.23.24.0
option router 10.23.24.1
option subnet 255.255.255.0
option broadcast 10.23.24.255
option dns 8.8.8.8

View File

@ -0,0 +1,11 @@
[Unit]
Description=UDHCPD
Requires=sys-subsystem-net-devices-eth1.device
After=sys-subsystem-net-devices-eth1.device
[Service]
Type=simple
ExecStart=/usr/sbin/udhcpd -fS /etc/udhcpd.conf
[Install]
WantedBy=multi-user.target

View File

@ -1,14 +0,0 @@
DESCRIPTION = "Task for sysmocom external tools"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://udhcpd.conf"
PR = "r3"
CONFFILES_${PN} = "${sysconfdir}/udhcpd.conf"
do_install() {
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}/
}

View File

@ -0,0 +1,20 @@
DESCRIPTION = "Task for sysmocom external tools"
LICENSE = "MIT"
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://udhcpd.conf \
file://udhcpd.service \
"
PR = "r0"
CONFFILES_${PN} = "${sysconfdir}/udhcpd.conf"
FILES_${PN} += "${systemd_unitdir}"
do_install() {
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}/
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
install -m 0644 /${WORKDIR}/udhcpd.service ${D}${systemd_unitdir}/system/
ln -sf ../udhcpd.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
}

View File

@ -0,0 +1,12 @@
DESCRIPTION = "Package group for SOB"
LICENSE = "MIT"
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
ALLOW_EMPTY_${PN} = "1"
PR = "r2"
RDEPENDS_${PN} = "\
ifupdown vlan iproute2 iproute2-misc iputils \
"

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Task for GPRS core network"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = "virtual/kernel"
ALLOW_EMPTY_${PN} = "1"

View File

@ -0,0 +1,21 @@
DESCRIPTION = "Task for OWHW hardware"
LICENSE = "MIT"
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
ALLOW_EMPTY_${PN} = "1"
PR = "r2"
RDEPENDS_${PN} = "usbutils openvpn gpsd gps-utils dropbear \
wget ntp ca-cacert-rootcert early-date i2c-tools \
wireless-tools iw crda gpsdate \
kernel-module-cfg80211 \
kernel-module-mac80211 \
kernel-module-rt2x00lib \
kernel-module-rt2x00usb \
kernel-module-rt2800lib \
kernel-module-rt2800usb \
linux-firmware-ralink \
procps iputils \
"
# vim: tabstop=8 shiftwidth=8 noexpandtab

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Task for sysmoBTS"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = "virtual/kernel"
ALLOW_EMPTY_${PN} = "1"

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Task for sysmocom development/debugging"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = "virtual/kernel"
ALLOW_EMPTY_${PN} = "1"

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Task for E1 based sysmocom"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
ALLOW_EMPTY_${PN} = "1"
PR = "r2"

View File

@ -1,13 +1,19 @@
DESCRIPTION = "Package to force building everything we want to provide"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
ALLOW_EMPTY_${PN} = "1"
PR = "r10"
PR = "r21"
RDEPENDS_${PN} = "\
task-sysmocom-tools \
task-sysmocom-debug \
minicom vlan patch procps psmisc \
ppp rsync sed usbutils openvpn iperf \
lcr"
lcr cronie iproute2 i2c-tools cu \
python-pyserial python-pexpect bridge-utils \
pciutils nfacct logrotate dnsmasq ifupdown \
logrotate python-jsonrpclib python-enum iputils \
packagegroup-sysmobts-sob rtl8169-eeprom autossh \
perl libdbd-sqlite-perl libdbi-perl libjson-perl \
netcat-openbsd perf lksctp-tools task-gprscore"

View File

@ -1,9 +1,9 @@
DESCRIPTION = "Task for sysmocom external tools"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
ALLOW_EMPTY_${PN} = "1"
PR = "r7"
PR = "r10"
RDEPENDS_${PN} = "\
lmsensors-scripts \
@ -15,4 +15,7 @@ RDEPENDS_${PN} = "\
wget \
ca-cacert-rootcert \
sysmocom-backup \
sysmocom-backup-default \
sysmocom-systemd \
sysmocom-configure \
"

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Task for sysmocom"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
LIC_FILES_CHKSUM = " \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = "virtual/kernel"
ALLOW_EMPTY_${PN} = "1"

View File

@ -0,0 +1,329 @@
#
# Automatically generated file; DO NOT EDIT.
# Barebox/arm 2015.06.0 Configuration
#
CONFIG_ARM=y
#
# System Type
#
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_BCM2835 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_DAVINCI is not set
# CONFIG_ARCH_DIGIC is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_HIGHBANK is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_MVEBU is not set
# CONFIG_ARCH_MXS is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_NOMADIK is not set
CONFIG_ARCH_OMAP=y
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_ARCH_SOCFPGA is not set
# CONFIG_ARCH_S3C24xx is not set
# CONFIG_ARCH_S5PCxx is not set
# CONFIG_ARCH_S3C64xx is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_VEXPRESS is not set
# CONFIG_ARCH_TEGRA is not set
# CONFIG_ARCH_UEMD is not set
# CONFIG_ARCH_ZYNQ is not set
#
# Processor Type
#
CONFIG_CPU_32=y
CONFIG_CPU_V7=y
CONFIG_CPU_32v7=y
#
# processor features
#
# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
#
# OMAP Features
#
CONFIG_ARCH_AM33XX=y
CONFIG_OMAP_CLOCK_SOURCE_DMTIMER0=y
CONFIG_OMAP_GPMC=y
CONFIG_OMAP_BUILD_IFT=y
# CONFIG_OMAP_BUILD_SPI is not set
# CONFIG_OMAP_SERIALBOOT is not set
CONFIG_OMAP_MULTI_BOARDS=y
# CONFIG_MACH_AFI_GF is not set
# CONFIG_MACH_BEAGLEBONE is not set
CONFIG_MACH_PHYTEC_SOM_AM335X=y
CONFIG_ARM_ASM_UNIFIED=y
CONFIG_AEABI=y
CONFIG_THUMB2_BAREBOX=y
#
# ARM specific settings
#
# CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS is not set
CONFIG_ARM_EXCEPTIONS=y
# CONFIG_ARM_UNWIND is not set
CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
CONFIG_HAS_KALLSYMS=y
CONFIG_HAS_MODULES=y
CONFIG_HAS_CACHE=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_GPIO=y
CONFIG_BLOCK=y
CONFIG_FILETYPE=y
#
# General Settings
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BANNER=y
# CONFIG_MEMINFO is not set
# CONFIG_ENVIRONMENT_VARIABLES is not set
#
# memory layout
#
CONFIG_HAVE_PBL_IMAGE=y
CONFIG_HAVE_PBL_MULTI_IMAGES=y
CONFIG_HAVE_IMAGE_COMPRESSION=y
CONFIG_PBL_IMAGE=y
CONFIG_PBL_MULTI_IMAGES=y
CONFIG_PBL_RELOCATABLE=y
CONFIG_IMAGE_COMPRESSION=y
# CONFIG_IMAGE_COMPRESSION_LZ4 is not set
CONFIG_IMAGE_COMPRESSION_LZO=y
# CONFIG_IMAGE_COMPRESSION_GZIP is not set
# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
# CONFIG_IMAGE_COMPRESSION_NONE is not set
CONFIG_MMU=y
CONFIG_MMU_EARLY=y
CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
CONFIG_TEXT_BASE=0x0
CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
CONFIG_STACK_SIZE=0x8000
CONFIG_MALLOC_SIZE=0x0
# CONFIG_EXPERIMENTAL is not set
# CONFIG_MALLOC_DLMALLOC is not set
CONFIG_MALLOC_TLSF=y
# CONFIG_MALLOC_DUMMY is not set
# CONFIG_KALLSYMS is not set
CONFIG_RELOCATABLE=y
# CONFIG_PANIC_HANG is not set
CONFIG_PROMPT="MLO>"
CONFIG_BAUDRATE=115200
CONFIG_SIMPLE_READLINE=y
CONFIG_CBSIZE=1024
# CONFIG_SHELL_HUSH is not set
# CONFIG_SHELL_SIMPLE is not set
CONFIG_SHELL_NONE=y
# CONFIG_GLOB is not set
# CONFIG_PASSWORD is not set
# CONFIG_ERRNO_MESSAGES is not set
# CONFIG_TIMESTAMP is not set
CONFIG_IMD=y
# CONFIG_IMD_TARGET is not set
# CONFIG_KERNEL_INSTALL_TARGET is not set
CONFIG_CONSOLE_FULL=y
# CONFIG_CONSOLE_SIMPLE is not set
# CONFIG_CONSOLE_NONE is not set
# CONFIG_CONSOLE_ACTIVATE_FIRST is not set
# CONFIG_CONSOLE_ACTIVATE_ALL is not set
CONFIG_CONSOLE_ACTIVATE_NONE=y
CONFIG_PARTITION=y
CONFIG_PARTITION_DISK=y
CONFIG_PARTITION_DISK_DOS=y
# CONFIG_PARTITION_DISK_EFI is not set
# CONFIG_DEFAULT_ENVIRONMENT is not set
CONFIG_DEFAULT_COMPRESSION_NONE=y
CONFIG_HAVE_DEFAULT_ENVIRONMENT_NEW=y
# CONFIG_BAREBOXENV_TARGET is not set
# CONFIG_BAREBOXCRC32_TARGET is not set
# CONFIG_POLLER is not set
#
# Debugging
#
CONFIG_COMPILE_LOGLEVEL=6
CONFIG_DEFAULT_LOGLEVEL=7
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_LL is not set
CONFIG_DEBUG_OMAP_UART_PORT=1
# CONFIG_DEBUG_INITCALLS is not set
CONFIG_HAS_DEBUG_LL=y
# CONFIG_HAS_POWEROFF is not set
# CONFIG_NET is not set
#
# Drivers
#
CONFIG_OFTREE=y
CONFIG_OFTREE_MEM_GENERIC=y
CONFIG_DTC=y
CONFIG_OFDEVICE=y
CONFIG_OF_GPIO=y
#
# serial drivers
#
# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
CONFIG_DRIVER_SERIAL_NS16550=y
CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
# CONFIG_DRIVER_SERIAL_CADENCE is not set
#
# SPI drivers
#
# CONFIG_SPI is not set
# CONFIG_I2C is not set
CONFIG_MTD=y
# CONFIG_MTD_WRITE is not set
# CONFIG_MTD_OOB_DEVICE is not set
# CONFIG_MTD_RAW_DEVICE is not set
#
# Self contained MTD devices
#
# CONFIG_MTD_DOCG3 is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_DRIVER_CFI is not set
CONFIG_NAND=y
# CONFIG_NAND_ECC_SOFT is not set
# CONFIG_NAND_ECC_BCH is not set
CONFIG_NAND_ECC_HW=y
# CONFIG_NAND_ECC_HW_OOB_FIRST is not set
# CONFIG_NAND_ECC_HW_SYNDROME is not set
# CONFIG_NAND_ECC_HW_NONE is not set
# CONFIG_NAND_INFO is not set
# CONFIG_NAND_BBT is not set
CONFIG_NAND_OMAP_GPMC=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_UBI is not set
CONFIG_DISK=y
# CONFIG_DISK_WRITE is not set
#
# drive types
#
# CONFIG_DISK_ATA is not set
# CONFIG_DISK_AHCI is not set
#
# interface types
#
# CONFIG_DISK_INTF_PLATFORM_IDE is not set
# CONFIG_USB_HOST is not set
# CONFIG_USB_GADGET is not set
# CONFIG_USB_MUSB is not set
# CONFIG_VIDEO is not set
CONFIG_MCI=y
#
# --- Feature list ---
#
CONFIG_MCI_STARTUP=y
# CONFIG_MCI_WRITE is not set
# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
#
# --- MCI host drivers ---
#
# CONFIG_MCI_DW is not set
CONFIG_MCI_OMAP_HSMMC=y
CONFIG_CLOCKSOURCE_DUMMY_RATE=1000
#
# MFD
#
# CONFIG_MFD_SYSCON is not set
#
# Misc devices
#
# CONFIG_JTAG is not set
# CONFIG_SRAM is not set
# CONFIG_BOOTSTATE_DRV is not set
# CONFIG_LED is not set
#
# EEPROM support
#
#
# Input device support
#
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_WATCHDOG is not set
# CONFIG_PWM is not set
#
# DMA support
#
CONFIG_GPIOLIB=y
#
# GPIO
#
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_IMX is not set
# CONFIG_GPIO_MXS is not set
CONFIG_GPIO_OMAP=y
# CONFIG_GPIO_DESIGNWARE is not set
# CONFIG_W1 is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL_SINGLE=y
#
# Bus devices
#
CONFIG_BUS_OMAP_GPMC=y
# CONFIG_REGULATOR is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_RTC_CLASS is not set
#
# Firmware Drivers
#
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
#
# Filesystem support
#
CONFIG_FS=y
# CONFIG_FS_CRAMFS is not set
# CONFIG_FS_EXT4 is not set
# CONFIG_FS_RAMFS is not set
# CONFIG_FS_DEVFS is not set
CONFIG_FS_FAT=y
# CONFIG_FS_FAT_WRITE is not set
CONFIG_FS_FAT_LFN=y
# CONFIG_FS_BPKFS is not set
# CONFIG_FS_UIMAGEFS is not set
#
# Library routines
#
# CONFIG_ZLIB is not set
# CONFIG_BZLIB is not set
# CONFIG_LZ4_DECOMPRESS is not set
# CONFIG_XZ_DECOMPRESS is not set
# CONFIG_GENERIC_FIND_NEXT_BIT is not set
# CONFIG_PROCESS_ESCAPE_SEQUENCE is not set
# CONFIG_LZO_DECOMPRESS is not set
#
# Library gui routines
#
# CONFIG_BOOTSTRAP is not set
# CONFIG_DIGEST is not set

View File

@ -0,0 +1,21 @@
require barebox.inc
SRCREV = "ce8849b03a40718fdaa9d7fc30312eeeb0fafcac"
SRC_URI = " \
git://git.sysmocom.de/barebox.git;branch=v2015.06 \
file://defconfig \
"
PV = "v2015.06+git${SRCPV}"
S = "${WORKDIR}/git"
BAREBOX_IMAGE ?= "barebox-${MACHINE}-mlo-${PKGV}-${PKGR}.img"
BAREBOX_SYMLINK ?= "barebox-${MACHINE}-mlo.img"
do_deploy () {
install -d ${DEPLOYDIR}
install ${S}/images/barebox-am33xx-gsmk-owhw-mlo.img ${DEPLOYDIR}/${BAREBOX_IMAGE}
cd ${DEPLOYDIR}
rm -f ${BAREBOX_SYMLINK}
ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK}
}

View File

@ -0,0 +1,29 @@
From 5661d2be63f55e5cbaa72e1da1dae32e7a5c3071 Mon Sep 17 00:00:00 2001
From: Harald Welte <laforge@gnumonks.org>
Date: Mon, 22 Feb 2016 23:42:44 +0100
Subject: [PATCH] OWHW HACK: hard-code the bootstate backend-node
this is required as the spi controller used in barebox is spi-gpio,
while on Linux we use the hardware spi controller of the am335x,
resulting in different devicetree paths.
---
common/state.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/state.c b/common/state.c
index 9c0b218..1571b53 100644
--- a/common/state.c
+++ b/common/state.c
@@ -758,7 +758,8 @@ static int of_state_fixup(struct device_node *root, void *ctx)
}
/* backend phandle */
- backend_node = of_find_node_by_path_from(root, state->backend->of_path);
+ //backend_node = of_find_node_by_path_from(root, state->backend->of_path);
+ backend_node = of_find_node_by_path_from(root, "/ocp/spi@481a0000/m95m02@0");
if (!backend_node) {
ret = -ENODEV;
goto out;
--
2.7.0

View File

@ -0,0 +1,615 @@
#
# Automatically generated file; DO NOT EDIT.
# Barebox/arm 2015.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
#
# System Type
#
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_BCM2835 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_DAVINCI is not set
# CONFIG_ARCH_DIGIC is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_HIGHBANK is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_MVEBU is not set
# CONFIG_ARCH_MXS is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_NOMADIK is not set
CONFIG_ARCH_OMAP=y
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_ARCH_SOCFPGA is not set
# CONFIG_ARCH_S3C24xx is not set
# CONFIG_ARCH_S5PCxx is not set
# CONFIG_ARCH_S3C64xx is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_VEXPRESS is not set
# CONFIG_ARCH_TEGRA is not set
# CONFIG_ARCH_UEMD is not set
# CONFIG_ARCH_ZYNQ is not set
#
# Processor Type
#
CONFIG_CPU_32=y
CONFIG_CPU_V7=y
CONFIG_CPU_32v7=y
#
# processor features
#
# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
#
# OMAP Features
#
CONFIG_ARCH_AM33XX=y
CONFIG_OMAP_CLOCK_SOURCE_DMTIMER0=y
CONFIG_OMAP_GPMC=y
# CONFIG_OMAP_BUILD_IFT is not set
# CONFIG_OMAP_BUILD_SPI is not set
# CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO is not set
CONFIG_BAREBOX_UPDATE_AM33XX_NAND=y
CONFIG_OMAP_MULTI_BOARDS=y
# CONFIG_MACH_AFI_GF is not set
# CONFIG_MACH_BEAGLEBONE is not set
CONFIG_MACH_PHYTEC_SOM_AM335X=y
CONFIG_ARM_ASM_UNIFIED=y
CONFIG_AEABI=y
CONFIG_THUMB2_BAREBOX=y
CONFIG_ARM_BOARD_APPEND_ATAG=y
#
# ARM specific settings
#
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
CONFIG_ARM_EXCEPTIONS=y
CONFIG_ARM_UNWIND=y
CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
CONFIG_HAS_KALLSYMS=y
CONFIG_HAS_MODULES=y
CONFIG_ENV_HANDLING=y
CONFIG_HAS_CACHE=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_GPIO=y
CONFIG_BOOTM=y
CONFIG_FILETYPE=y
CONFIG_BINFMT=y
CONFIG_UIMAGE=y
CONFIG_LOGBUF=y
CONFIG_GLOBALVAR=y
CONFIG_STDDEV=y
CONFIG_BAREBOX_UPDATE=y
CONFIG_MENUTREE=y
CONFIG_FILE_LIST=y
#
# General Settings
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BANNER=y
CONFIG_MEMINFO=y
CONFIG_ENVIRONMENT_VARIABLES=y
#
# memory layout
#
CONFIG_HAVE_PBL_IMAGE=y
CONFIG_HAVE_PBL_MULTI_IMAGES=y
CONFIG_HAVE_IMAGE_COMPRESSION=y
CONFIG_PBL_IMAGE=y
CONFIG_PBL_MULTI_IMAGES=y
CONFIG_PBL_RELOCATABLE=y
CONFIG_IMAGE_COMPRESSION=y
# CONFIG_IMAGE_COMPRESSION_LZ4 is not set
CONFIG_IMAGE_COMPRESSION_LZO=y
# CONFIG_IMAGE_COMPRESSION_GZIP is not set
# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
# CONFIG_IMAGE_COMPRESSION_NONE is not set
CONFIG_MMU=y
CONFIG_MMU_EARLY=y
CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
CONFIG_TEXT_BASE=0x0
CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
CONFIG_STACK_SIZE=0x8000
CONFIG_MALLOC_SIZE=0x0
# CONFIG_EXPERIMENTAL is not set
# CONFIG_MALLOC_DLMALLOC is not set
CONFIG_MALLOC_TLSF=y
CONFIG_KALLSYMS=y
CONFIG_RELOCATABLE=y
# CONFIG_PANIC_HANG is not set
CONFIG_PROMPT="barebox> "
CONFIG_BAUDRATE=115200
CONFIG_CBSIZE=1024
CONFIG_SHELL_HUSH=y
# CONFIG_SHELL_SIMPLE is not set
# CONFIG_SHELL_NONE is not set
CONFIG_GLOB=y
CONFIG_GLOB_SORT=y
CONFIG_PROMPT_HUSH_PS2="> "
CONFIG_HUSH_FANCY_PROMPT=y
CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=y
CONFIG_MENU=y
CONFIG_PASSWORD=y
CONFIG_PASSWORD_DEFAULT=""
# CONFIG_PASSWD_SUM_MD5 is not set
CONFIG_PASSWD_SUM_SHA1=y
# CONFIG_PASSWD_SUM_SHA256 is not set
# CONFIG_PASSWD_SUM_SHA512 is not set
# CONFIG_PASSWD_CRYPTO_PBKDF2 is not set
CONFIG_DYNAMIC_CRC_TABLE=y
CONFIG_ERRNO_MESSAGES=y
# CONFIG_TIMESTAMP is not set
CONFIG_IMD=y
CONFIG_IMD_TARGET=y
# CONFIG_KERNEL_INSTALL_TARGET is not set
CONFIG_CONSOLE_FULL=y
# CONFIG_CONSOLE_SIMPLE is not set
# CONFIG_CONSOLE_NONE is not set
# CONFIG_CONSOLE_ACTIVATE_FIRST is not set
CONFIG_CONSOLE_ACTIVATE_ALL=y
# CONFIG_CONSOLE_ACTIVATE_NONE is not set
# CONFIG_PARTITION is not set
CONFIG_DEFAULT_ENVIRONMENT=y
# CONFIG_DEFAULT_COMPRESSION_GZIP is not set
# CONFIG_DEFAULT_COMPRESSION_LZO is not set
CONFIG_DEFAULT_COMPRESSION_NONE=y
CONFIG_HAVE_DEFAULT_ENVIRONMENT_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_DFU=y
CONFIG_DEFAULT_ENVIRONMENT_PATH=""
CONFIG_BAREBOXENV_TARGET=y
# CONFIG_BAREBOXCRC32_TARGET is not set
CONFIG_POLLER=y
CONFIG_STATE=y
CONFIG_BOOTSTATE=y
CONFIG_RESET_SOURCE=y
#
# Debugging
#
CONFIG_COMPILE_LOGLEVEL=6
CONFIG_DEFAULT_LOGLEVEL=7
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_LL is not set
CONFIG_DEBUG_OMAP_UART_PORT=1
# CONFIG_DEBUG_INITCALLS is not set
CONFIG_HAS_DEBUG_LL=y
CONFIG_COMMAND_SUPPORT=y
# CONFIG_HAS_POWEROFF is not set
CONFIG_COMPILE_HASH=y
CONFIG_COMPILE_MEMORY=y
#
# Commands
#
#
# Information
#
CONFIG_CMD_ARM_CPUINFO=y
CONFIG_CMD_DEVINFO=y
CONFIG_CMD_DMESG=y
CONFIG_CMD_DRVINFO=y
CONFIG_CMD_HELP=y
CONFIG_LONGHELP=y
CONFIG_CMD_IOMEM=y
CONFIG_CMD_IMD=y
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_ARM_MMUINFO=y
CONFIG_CMD_VERSION=y
#
# Boot
#
CONFIG_FLEXIBLE_BOOTARGS=y
CONFIG_CMD_BOOT=y
CONFIG_CMD_BOOTM=y
CONFIG_CMD_BOOTM_SHOW_TYPE=y
CONFIG_CMD_BOOTM_VERBOSE=y
CONFIG_CMD_BOOTM_INITRD=y
CONFIG_CMD_BOOTM_OFTREE=y
# CONFIG_CMD_BOOTM_OFTREE_UIMAGE is not set
# CONFIG_CMD_BOOTM_AIMAGE is not set
# CONFIG_CMD_BOOTU is not set
# CONFIG_CMD_BOOTZ is not set
CONFIG_CMD_GO=y
CONFIG_CMD_LOADB=y
# CONFIG_CMD_LOADS is not set
# CONFIG_CMD_LOADY is not set
CONFIG_CMD_RESET=y
# CONFIG_CMD_UIMAGE is not set
#
# Partition
#
CONFIG_CMD_PARTITION=y
CONFIG_CMD_AUTOMOUNT=y
CONFIG_CMD_MOUNT=y
CONFIG_CMD_UBI=y
CONFIG_CMD_UBIFORMAT=y
CONFIG_CMD_UMOUNT=y
#
# Environment
#
CONFIG_CMD_NV=y
CONFIG_CMD_EXPORT=y
CONFIG_CMD_DEFAULTENV=y
CONFIG_CMD_GLOBAL=y
CONFIG_CMD_LOADENV=y
CONFIG_CMD_PRINTENV=y
CONFIG_CMD_MAGICVAR=y
CONFIG_CMD_MAGICVAR_HELP=y
CONFIG_CMD_SAVEENV=y
#
# File
#
CONFIG_CMD_BASENAME=y
CONFIG_CMD_CAT=y
CONFIG_CMD_CD=y
CONFIG_CMD_CP=y
# CONFIG_CMD_CMP is not set
CONFIG_CMD_DIGEST=y
CONFIG_CMD_DIRNAME=y
CONFIG_CMD_FILETYPE=y
CONFIG_CMD_LN=y
CONFIG_CMD_LS=y
CONFIG_CMD_MD5SUM=y
CONFIG_CMD_MKDIR=y
CONFIG_CMD_PWD=y
CONFIG_CMD_READLINK=y
CONFIG_CMD_RM=y
CONFIG_CMD_RMDIR=y
# CONFIG_CMD_SHA1SUM is not set
# CONFIG_CMD_SHA224SUM is not set
# CONFIG_CMD_SHA256SUM is not set
# CONFIG_CMD_SHA384SUM is not set
# CONFIG_CMD_SHA512SUM is not set
CONFIG_CMD_UNCOMPRESS=y
#
# Shell scripting
#
CONFIG_CMD_FALSE=y
CONFIG_CMD_GETOPT=y
CONFIG_CMD_LET=y
CONFIG_CMD_MSLEEP=y
CONFIG_CMD_READF=y
CONFIG_CMD_SLEEP=y
CONFIG_CMD_TEST=y
CONFIG_CMD_TRUE=y
#
# Network
#
CONFIG_CMD_DHCP=y
# CONFIG_CMD_HOST is not set
CONFIG_NET_CMD_IFUP=y
CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
#
# Console and Framebuffer interaction
#
CONFIG_CMD_CLEAR=y
CONFIG_CMD_ECHO=y
CONFIG_CMD_ECHO_E=y
CONFIG_CMD_EDIT=y
CONFIG_CMD_LOGIN=y
CONFIG_CMD_MENU=y
# CONFIG_CMD_MENU_MANAGEMENT is not set
CONFIG_CMD_MENUTREE=y
CONFIG_CMD_PASSWD=y
# CONFIG_PASSWD_MODE_HIDE is not set
CONFIG_PASSWD_MODE_STAR=y
# CONFIG_PASSWD_MODE_CLEAR is not set
# CONFIG_CMD_SPLASH is not set
CONFIG_CMD_READLINE=y
CONFIG_CMD_TIMEOUT=y
#
# Memory
#
CONFIG_CMD_CRC=y
CONFIG_CMD_CRC_CMP=y
CONFIG_CMD_MD=y
CONFIG_CMD_MEMCMP=y
CONFIG_CMD_MEMCPY=y
CONFIG_CMD_MEMSET=y
CONFIG_CMD_MEMTEST=y
CONFIG_CMD_MM=y
CONFIG_CMD_MW=y
#
# Hardware manipulation
#
CONFIG_CMD_DETECT=y
CONFIG_CMD_FLASH=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_I2C=y
CONFIG_CMD_LED=y
CONFIG_CMD_NAND=y
CONFIG_CMD_SPI=y
CONFIG_CMD_LED_TRIGGER=y
CONFIG_CMD_USBGADGET=y
#
# Miscellaneous
#
# CONFIG_CMD_2048 is not set
CONFIG_CMD_BAREBOX_UPDATE=y
# CONFIG_CMD_FIRMWARELOAD is not set
CONFIG_CMD_OF_DUMP=y
CONFIG_CMD_OF_NODE=y
CONFIG_CMD_OF_PROPERTY=y
CONFIG_CMD_OF_DISPLAY_TIMINGS=y
CONFIG_CMD_OFTREE=y
CONFIG_CMD_TIME=y
CONFIG_CMD_STATE=y
CONFIG_CMD_BOOTCHOOSER=y
CONFIG_NET=y
CONFIG_NET_NFS=y
CONFIG_NET_NETCONSOLE=y
CONFIG_NET_RESOLV=y
CONFIG_NET_IFUP=y
#
# Drivers
#
CONFIG_OFTREE=y
CONFIG_OFTREE_MEM_GENERIC=y
CONFIG_DTC=y
CONFIG_OFDEVICE=y
CONFIG_OF_NET=y
CONFIG_OF_GPIO=y
CONFIG_OF_BAREBOX_DRIVERS=y
#
# serial drivers
#
# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
CONFIG_DRIVER_SERIAL_NS16550=y
CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
# CONFIG_DRIVER_SERIAL_CADENCE is not set
CONFIG_PHYLIB=y
#
# Network drivers
#
# CONFIG_DRIVER_NET_ARC_EMAC is not set
# CONFIG_DRIVER_NET_CALXEDA_XGMAC is not set
CONFIG_DRIVER_NET_CPSW=y
# CONFIG_DRIVER_NET_DESIGNWARE is not set
# CONFIG_DRIVER_NET_ENC28J60 is not set
# CONFIG_DRIVER_NET_KS8851_MLL is not set
# CONFIG_DRIVER_NET_MICREL is not set
# CONFIG_DRIVER_NET_SMC911X is not set
# CONFIG_DRIVER_NET_SMC91111 is not set
#
# phylib
#
#
# MII PHY device drivers
#
# CONFIG_AT803X_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
CONFIG_MICREL_PHY=y
# CONFIG_NATIONAL_PHY is not set
# CONFIG_SMSC_PHY is not set
#
# MII bus device drivers
#
#
# SPI drivers
#
CONFIG_SPI=y
CONFIG_DRIVER_SPI_GPIO=y
CONFIG_DRIVER_SPI_OMAP3=y
CONFIG_I2C=y
CONFIG_I2C_ALGOBIT=y
#
# I2C Hardware Bus support
#
CONFIG_I2C_GPIO=y
CONFIG_I2C_OMAP=y
CONFIG_MTD=y
CONFIG_MTD_WRITE=y
CONFIG_MTD_OOB_DEVICE=y
# CONFIG_MTD_RAW_DEVICE is not set
#
# Self contained MTD devices
#
# CONFIG_MTD_DATAFLASH is not set
# CONFIG_MTD_M25P80 is not set
# CONFIG_MTD_DOCG3 is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_DRIVER_CFI is not set
CONFIG_NAND=y
CONFIG_NAND_ECC_SOFT=y
# CONFIG_NAND_ECC_BCH is not set
CONFIG_NAND_ECC_HW=y
# CONFIG_NAND_ECC_HW_OOB_FIRST is not set
CONFIG_NAND_ECC_HW_SYNDROME=y
CONFIG_NAND_ECC_HW_NONE=y
CONFIG_NAND_INFO=y
CONFIG_NAND_READ_OOB=y
CONFIG_NAND_BBT=y
# CONFIG_NAND_ALLOW_ERASE_BAD is not set
CONFIG_NAND_OMAP_GPMC=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_DISK is not set
CONFIG_USB=y
# CONFIG_USB_HOST is not set
CONFIG_USB_GADGET=y
#
# USB Gadget drivers
#
CONFIG_USB_GADGET_DFU=y
CONFIG_USB_GADGET_SERIAL=y
# CONFIG_USB_GADGET_FASTBOOT is not set
CONFIG_USB_MUSB=y
CONFIG_USB_MUSB_DSPS=y
CONFIG_USB_MUSB_AM335X=y
CONFIG_USB_MUSB_GADGET=y
# CONFIG_VIDEO is not set
# CONFIG_MCI is not set
CONFIG_CLOCKSOURCE_DUMMY_RATE=1000
#
# MFD
#
# CONFIG_MFD_ACT8846 is not set
# CONFIG_MFD_LP3972 is not set
# CONFIG_MFD_MC13XXX is not set
# CONFIG_MFD_MC34704 is not set
# CONFIG_MFD_MC9SDZ60 is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TWL4030 is not set
# CONFIG_MFD_TWL6030 is not set
#
# Misc devices
#
# CONFIG_JTAG is not set
# CONFIG_SRAM is not set
CONFIG_STATE_DRV=y
CONFIG_BOOTSTATE_DRV=y
CONFIG_LED=y
CONFIG_LED_GPIO=y
CONFIG_LED_GPIO_OF=y
# CONFIG_LED_GPIO_RGB is not set
# CONFIG_LED_GPIO_BICOLOR is not set
CONFIG_LED_TRIGGERS=y
#
# EEPROM support
#
CONFIG_EEPROM_AT25=y
# CONFIG_EEPROM_AT24 is not set
#
# Input device support
#
CONFIG_KEYBOARD_GPIO=y
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_WATCHDOG is not set
# CONFIG_PWM is not set
#
# DMA support
#
CONFIG_GPIOLIB=y
#
# GPIO
#
CONFIG_GPIO_GENERIC=y
# CONFIG_GPIO_74164 is not set
CONFIG_GPIO_GENERIC_PLATFORM=y
# CONFIG_GPIO_IMX is not set
# CONFIG_GPIO_MXS is not set
CONFIG_GPIO_OMAP=y
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_DESIGNWARE is not set
# CONFIG_W1 is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL_SINGLE=y
#
# Bus devices
#
CONFIG_BUS_OMAP_GPMC=y
# CONFIG_REGULATOR is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_RTC_CLASS is not set
#
# Firmware Drivers
#
# CONFIG_FIRMWARE_ALTERA_SERIAL is not set
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
#
# Filesystem support
#
CONFIG_FS=y
CONFIG_FS_AUTOMOUNT=y
# CONFIG_FS_CRAMFS is not set
# CONFIG_FS_EXT4 is not set
CONFIG_FS_RAMFS=y
CONFIG_FS_DEVFS=y
CONFIG_FS_TFTP=y
CONFIG_FS_NFS=y
# CONFIG_FS_FAT is not set
CONFIG_FS_UBIFS=y
CONFIG_FS_UBIFS_COMPRESSION_LZO=y
CONFIG_FS_UBIFS_COMPRESSION_ZLIB=y
# CONFIG_FS_BPKFS is not set
# CONFIG_FS_UIMAGEFS is not set
#
# Library routines
#
CONFIG_PARAMETER=y
CONFIG_UNCOMPRESS=y
CONFIG_ZLIB=y
# CONFIG_BZLIB is not set
# CONFIG_LZ4_DECOMPRESS is not set
# CONFIG_XZ_DECOMPRESS is not set
# CONFIG_GENERIC_FIND_NEXT_BIT is not set
CONFIG_PROCESS_ESCAPE_SEQUENCE=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_QSORT=y
CONFIG_LIBSCAN=y
CONFIG_LIBUBIGEN=y
CONFIG_LIBMTD=y
#
# Library gui routines
#
CONFIG_CRC32=y
CONFIG_CRC16=y
CONFIG_DIGEST=y
CONFIG_MD5=y
CONFIG_SHA1=y
# CONFIG_DIGEST_MD5_GENERIC is not set
CONFIG_DIGEST_SHA1_GENERIC=y
# CONFIG_DIGEST_SHA224_GENERIC is not set
# CONFIG_DIGEST_SHA256_GENERIC is not set
# CONFIG_DIGEST_SHA384_GENERIC is not set
# CONFIG_DIGEST_SHA512_GENERIC is not set
# CONFIG_DIGEST_HMAC_GENERIC is not set
# CONFIG_DIGEST_SHA1_ARM is not set
# CONFIG_DIGEST_SHA256_ARM is not set

View File

@ -0,0 +1,32 @@
require barebox.inc
RDEPENDS_${PN} += "${PN}-mlo"
SRCREV = "ec82959f054af3e4a27267290905cfd895f75331"
SRC_URI = " \
git://git.sysmocom.de/barebox.git;branch=v2015.06 \
file://0001-OWHW-HACK-hard-code-the-bootstate-backend-node.patch \
file://defconfig \
"
PV = "v2015.06+git${SRCPV}"
S = "${WORKDIR}/git"
BAREBOX_IMAGE ?= "barebox-${MACHINE}-${PKGV}-${PKGR}.img"
BAREBOX_SYMLINK ?= "barebox-${MACHINE}.img"
# generated using echo -n 'owhw-stop' | sha1sum
BAREBOX_PASSWORD = "d797c986b04cdcb86206a990908e27f8c3ae96b4"
do_configure_append () {
mkdir -p ${WORKDIR}/env/nv
echo 5 > ${WORKDIR}/env/nv/login.timeout
}
do_deploy_append () {
install -d ${DEPLOYDIR}
install ${S}/images/barebox-am33xx-gsmk-owhw.img ${DEPLOYDIR}/${BAREBOX_IMAGE}
cd ${DEPLOYDIR}
rm -f ${BAREBOX_SYMLINK}
ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK}
}

View File

@ -0,0 +1,573 @@
#
# Automatically generated file; DO NOT EDIT.
# Barebox/arm 2015.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
#
# System Type
#
CONFIG_BUILTIN_DTB=y
CONFIG_BUILTIN_DTB_NAME="dm6442-sysmobts"
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_BCM2835 is not set
# CONFIG_ARCH_CLPS711X is not set
CONFIG_ARCH_DAVINCI=y
# CONFIG_ARCH_DIGIC is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_HIGHBANK is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_MVEBU is not set
# CONFIG_ARCH_MXS is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_NOMADIK is not set
# CONFIG_ARCH_OMAP is not set
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_ARCH_SOCFPGA is not set
# CONFIG_ARCH_S3C24xx is not set
# CONFIG_ARCH_S5PCxx is not set
# CONFIG_ARCH_S3C64xx is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_VEXPRESS is not set
# CONFIG_ARCH_TEGRA is not set
# CONFIG_ARCH_UEMD is not set
# CONFIG_ARCH_ZYNQ is not set
#
# Processor Type
#
CONFIG_CPU_32=y
CONFIG_CPU_ARM926T=y
CONFIG_CPU_32v5=y
#
# processor features
#
# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
CONFIG_ARCH_TEXT_BASE=0x82000000
CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
CONFIG_ARCH_DAVINCI_DM644x=y
CONFIG_MACH_SYSMOBTS=y
# CONFIG_MACH_VIRT2REAL is not set
CONFIG_AEABI=y
# CONFIG_ARM_BOARD_APPEND_ATAG is not set
#
# ARM specific settings
#
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
CONFIG_ARM_EXCEPTIONS=y
CONFIG_ARM_UNWIND=y
CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
CONFIG_GREGORIAN_CALENDER=y
CONFIG_HAS_KALLSYMS=y
CONFIG_HAS_MODULES=y
CONFIG_ENV_HANDLING=y
CONFIG_HAS_CACHE=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_GPIO=y
CONFIG_BOOTM=y
CONFIG_FILETYPE=y
CONFIG_BINFMT=y
CONFIG_UIMAGE=y
CONFIG_LOGBUF=y
CONFIG_GLOBALVAR=y
CONFIG_STDDEV=y
#
# General Settings
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BANNER=y
CONFIG_MEMINFO=y
CONFIG_ENVIRONMENT_VARIABLES=y
#
# memory layout
#
CONFIG_HAVE_PBL_IMAGE=y
CONFIG_HAVE_IMAGE_COMPRESSION=y
CONFIG_PBL_IMAGE=y
CONFIG_PBL_SINGLE_IMAGE=y
# CONFIG_PBL_RELOCATABLE is not set
CONFIG_IMAGE_COMPRESSION=y
# CONFIG_IMAGE_COMPRESSION_LZ4 is not set
CONFIG_IMAGE_COMPRESSION_LZO=y
# CONFIG_IMAGE_COMPRESSION_GZIP is not set
# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
# CONFIG_IMAGE_COMPRESSION_NONE is not set
CONFIG_MMU=y
CONFIG_MMU_EARLY=y
CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
CONFIG_TEXT_BASE=0x82000000
CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
CONFIG_STACK_SIZE=0x8000
CONFIG_MALLOC_SIZE=0x1000000
# CONFIG_EXPERIMENTAL is not set
CONFIG_MALLOC_DLMALLOC=y
# CONFIG_MALLOC_TLSF is not set
CONFIG_KALLSYMS=y
CONFIG_RELOCATABLE=y
# CONFIG_PANIC_HANG is not set
CONFIG_PROMPT="barebox:"
CONFIG_BAUDRATE=115200
CONFIG_CBSIZE=1024
CONFIG_SHELL_HUSH=y
# CONFIG_SHELL_SIMPLE is not set
# CONFIG_SHELL_NONE is not set
CONFIG_GLOB=y
CONFIG_GLOB_SORT=y
CONFIG_PROMPT_HUSH_PS2="> "
CONFIG_HUSH_FANCY_PROMPT=y
CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=y
# CONFIG_MENU is not set
CONFIG_PASSWORD=y
CONFIG_PASSWORD_DEFAULT=""
# CONFIG_PASSWD_SUM_MD5 is not set
CONFIG_PASSWD_SUM_SHA1=y
# CONFIG_PASSWD_SUM_SHA256 is not set
# CONFIG_PASSWD_SUM_SHA512 is not set
# CONFIG_PASSWD_CRYPTO_PBKDF2 is not set
CONFIG_DYNAMIC_CRC_TABLE=y
CONFIG_ERRNO_MESSAGES=y
CONFIG_TIMESTAMP=y
CONFIG_IMD=y
# CONFIG_IMD_TARGET is not set
# CONFIG_KERNEL_INSTALL_TARGET is not set
CONFIG_CONSOLE_FULL=y
# CONFIG_CONSOLE_SIMPLE is not set
# CONFIG_CONSOLE_NONE is not set
CONFIG_CONSOLE_ACTIVATE_FIRST=y
# CONFIG_CONSOLE_ACTIVATE_ALL is not set
# CONFIG_CONSOLE_ACTIVATE_NONE is not set
CONFIG_PARTITION=y
CONFIG_DEFAULT_ENVIRONMENT=y
# CONFIG_DEFAULT_COMPRESSION_GZIP is not set
# CONFIG_DEFAULT_COMPRESSION_LZO is not set
CONFIG_DEFAULT_COMPRESSION_NONE=y
CONFIG_HAVE_DEFAULT_ENVIRONMENT_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_PATH=""
# CONFIG_BAREBOXENV_TARGET is not set
# CONFIG_BAREBOXCRC32_TARGET is not set
CONFIG_POLLER=y
CONFIG_STATE=y
CONFIG_BOOTSTATE=y
# CONFIG_RESET_SOURCE is not set
#
# Debugging
#
CONFIG_COMPILE_LOGLEVEL=6
CONFIG_DEFAULT_LOGLEVEL=7
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_LL is not set
# CONFIG_DEBUG_INITCALLS is not set
CONFIG_HAS_DEBUG_LL=y
CONFIG_COMMAND_SUPPORT=y
# CONFIG_HAS_POWEROFF is not set
CONFIG_COMPILE_HASH=y
CONFIG_COMPILE_MEMORY=y
#
# Commands
#
#
# Information
#
CONFIG_CMD_ARM_CPUINFO=y
CONFIG_CMD_DEVINFO=y
CONFIG_CMD_DMESG=y
CONFIG_CMD_DRVINFO=y
CONFIG_CMD_HELP=y
CONFIG_LONGHELP=y
CONFIG_CMD_IOMEM=y
CONFIG_CMD_IMD=y
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_VERSION=y
#
# Boot
#
CONFIG_FLEXIBLE_BOOTARGS=y
CONFIG_CMD_BOOT=y
CONFIG_CMD_BOOTM=y
CONFIG_CMD_BOOTM_SHOW_TYPE=y
CONFIG_CMD_BOOTM_VERBOSE=y
CONFIG_CMD_BOOTM_INITRD=y
CONFIG_CMD_BOOTM_OFTREE=y
# CONFIG_CMD_BOOTM_OFTREE_UIMAGE is not set
# CONFIG_CMD_BOOTM_AIMAGE is not set
# CONFIG_CMD_BOOTU is not set
# CONFIG_CMD_BOOTZ is not set
CONFIG_CMD_GO=y
# CONFIG_CMD_LOADB is not set
# CONFIG_CMD_LOADS is not set
# CONFIG_CMD_LOADY is not set
CONFIG_CMD_RESET=y
# CONFIG_CMD_UIMAGE is not set
#
# Partition
#
CONFIG_CMD_PARTITION=y
CONFIG_CMD_AUTOMOUNT=y
CONFIG_CMD_MOUNT=y
CONFIG_CMD_UBI=y
CONFIG_CMD_UBIFORMAT=y
CONFIG_CMD_UMOUNT=y
#
# Environment
#
CONFIG_CMD_NV=y
CONFIG_CMD_EXPORT=y
CONFIG_CMD_DEFAULTENV=y
CONFIG_CMD_GLOBAL=y
CONFIG_CMD_LOADENV=y
# CONFIG_CMD_PRINTENV is not set
CONFIG_CMD_MAGICVAR=y
CONFIG_CMD_MAGICVAR_HELP=y
CONFIG_CMD_SAVEENV=y
#
# File
#
CONFIG_CMD_BASENAME=y
CONFIG_CMD_CAT=y
CONFIG_CMD_CD=y
CONFIG_CMD_CP=y
# CONFIG_CMD_CMP is not set
CONFIG_CMD_DIGEST=y
CONFIG_CMD_DIRNAME=y
# CONFIG_CMD_FILETYPE is not set
# CONFIG_CMD_LN is not set
CONFIG_CMD_LS=y
# CONFIG_CMD_MD5SUM is not set
CONFIG_CMD_MKDIR=y
CONFIG_CMD_PWD=y
CONFIG_CMD_READLINK=y
CONFIG_CMD_RM=y
CONFIG_CMD_RMDIR=y
# CONFIG_CMD_SHA1SUM is not set
# CONFIG_CMD_SHA224SUM is not set
# CONFIG_CMD_SHA256SUM is not set
# CONFIG_CMD_SHA384SUM is not set
# CONFIG_CMD_SHA512SUM is not set
# CONFIG_CMD_UNCOMPRESS is not set
#
# Shell scripting
#
CONFIG_CMD_FALSE=y
CONFIG_CMD_GETOPT=y
# CONFIG_CMD_LET is not set
# CONFIG_CMD_MSLEEP is not set
# CONFIG_CMD_READF is not set
CONFIG_CMD_SLEEP=y
CONFIG_CMD_TEST=y
CONFIG_CMD_TRUE=y
#
# Network
#
CONFIG_CMD_DHCP=y
# CONFIG_CMD_HOST is not set
CONFIG_NET_CMD_IFUP=y
CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
# CONFIG_CMD_TFTP is not set
#
# Console and Framebuffer interaction
#
CONFIG_CMD_CLEAR=y
CONFIG_CMD_ECHO=y
CONFIG_CMD_ECHO_E=y
CONFIG_CMD_EDIT=y
CONFIG_CMD_LOGIN=y
CONFIG_CMD_PASSWD=y
# CONFIG_PASSWD_MODE_HIDE is not set
CONFIG_PASSWD_MODE_STAR=y
# CONFIG_PASSWD_MODE_CLEAR is not set
# CONFIG_CMD_SPLASH is not set
CONFIG_CMD_READLINE=y
CONFIG_CMD_TIMEOUT=y
#
# Memory
#
CONFIG_CMD_CRC=y
CONFIG_CMD_CRC_CMP=y
CONFIG_CMD_MD=y
CONFIG_CMD_MEMCMP=y
CONFIG_CMD_MEMCPY=y
CONFIG_CMD_MEMSET=y
CONFIG_CMD_MEMTEST=y
CONFIG_CMD_MM=y
CONFIG_CMD_MW=y
#
# Hardware manipulation
#
# CONFIG_CMD_DETECT is not set
CONFIG_CMD_FLASH=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_I2C=y
CONFIG_CMD_LED=y
CONFIG_CMD_NAND=y
# CONFIG_CMD_NANDTEST is not set
CONFIG_CMD_LED_TRIGGER=y
CONFIG_CMD_WD=y
CONFIG_CMD_WD_DEFAULT_TIMOUT=60
#
# Miscellaneous
#
# CONFIG_CMD_2048 is not set
# CONFIG_CMD_BAREBOX_UPDATE is not set
# CONFIG_CMD_FIRMWARELOAD is not set
CONFIG_CMD_OF_DUMP=y
CONFIG_CMD_OF_NODE=y
CONFIG_CMD_OF_PROPERTY=y
# CONFIG_CMD_OF_DISPLAY_TIMINGS is not set
CONFIG_CMD_OFTREE=y
CONFIG_CMD_TIME=y
CONFIG_CMD_STATE=y
CONFIG_CMD_BOOTCHOOSER=y
CONFIG_NET=y
# CONFIG_NET_NFS is not set
# CONFIG_NET_NETCONSOLE is not set
# CONFIG_NET_RESOLV is not set
CONFIG_NET_IFUP=y
#
# Drivers
#
CONFIG_OFTREE=y
CONFIG_OFTREE_MEM_GENERIC=y
CONFIG_DTC=y
CONFIG_OFDEVICE=y
CONFIG_OF_NET=y
CONFIG_OF_GPIO=y
CONFIG_OF_BAREBOX_DRIVERS=y
#
# serial drivers
#
# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
CONFIG_DRIVER_SERIAL_NS16550=y
# CONFIG_DRIVER_SERIAL_CADENCE is not set
CONFIG_PHYLIB=y
#
# Network drivers
#
# CONFIG_DRIVER_NET_ARC_EMAC is not set
# CONFIG_DRIVER_NET_CALXEDA_XGMAC is not set
CONFIG_DRIVER_NET_DAVINCI_EMAC=y
# CONFIG_DRIVER_NET_DESIGNWARE is not set
# CONFIG_DRIVER_NET_KS8851_MLL is not set
# CONFIG_DRIVER_NET_SMC911X is not set
# CONFIG_DRIVER_NET_SMC91111 is not set
#
# phylib
#
#
# MII PHY device drivers
#
# CONFIG_AT803X_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_SMSC_PHY is not set
#
# MII bus device drivers
#
#
# SPI drivers
#
# CONFIG_SPI is not set
CONFIG_I2C=y
CONFIG_I2C_ALGOBIT=y
#
# I2C Hardware Bus support
#
CONFIG_I2C_GPIO=y
# CONFIG_I2C_MV64XXX is not set
CONFIG_MTD=y
CONFIG_MTD_WRITE=y
CONFIG_MTD_OOB_DEVICE=y
CONFIG_MTD_RAW_DEVICE=y
#
# Self contained MTD devices
#
# CONFIG_MTD_DOCG3 is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_DRIVER_CFI is not set
CONFIG_NAND=y
# CONFIG_NAND_ECC_SOFT is not set
# CONFIG_NAND_ECC_BCH is not set
CONFIG_NAND_ECC_HW=y
# CONFIG_NAND_ECC_HW_OOB_FIRST is not set
# CONFIG_NAND_ECC_HW_SYNDROME is not set
# CONFIG_NAND_ECC_HW_NONE is not set
CONFIG_NAND_INFO=y
CONFIG_NAND_READ_OOB=y
CONFIG_NAND_BBT=y
# CONFIG_NAND_ALLOW_ERASE_BAD is not set
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
CONFIG_MTD_NAND_DAVINCI=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_DISK is not set
# CONFIG_USB_HOST is not set
# CONFIG_USB_GADGET is not set
# CONFIG_USB_MUSB is not set
# CONFIG_VIDEO is not set
# CONFIG_MCI is not set
CONFIG_HAVE_CLK=y
CONFIG_CLKDEV_LOOKUP=y
CONFIG_CLOCKSOURCE_DUMMY_RATE=1000
#
# MFD
#
# CONFIG_MFD_ACT8846 is not set
# CONFIG_MFD_LP3972 is not set
# CONFIG_MFD_MC13XXX is not set
# CONFIG_MFD_MC34704 is not set
# CONFIG_MFD_MC9SDZ60 is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TWL4030 is not set
# CONFIG_MFD_TWL6030 is not set
#
# Misc devices
#
# CONFIG_JTAG is not set
# CONFIG_SRAM is not set
CONFIG_STATE_DRV=y
CONFIG_BOOTSTATE_DRV=y
CONFIG_LED=y
CONFIG_LED_GPIO=y
CONFIG_LED_GPIO_OF=y
# CONFIG_LED_GPIO_RGB is not set
# CONFIG_LED_GPIO_BICOLOR is not set
CONFIG_LED_TRIGGERS=y
#
# EEPROM support
#
CONFIG_EEPROM_AT24=y
#
# Input device support
#
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_QT1070 is not set
CONFIG_WATCHDOG=y
CONFIG_WATCHDOG_DAVINCI=y
# CONFIG_PWM is not set
#
# DMA support
#
CONFIG_GPIOLIB=y
#
# GPIO
#
CONFIG_GPIO_DAVINCI=y
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_IMX is not set
# CONFIG_GPIO_MXS is not set
# CONFIG_GPIO_OMAP is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_DESIGNWARE is not set
# CONFIG_W1 is not set
# CONFIG_PINCTRL is not set
#
# Bus devices
#
# CONFIG_REGULATOR is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_RTC_CLASS is not set
#
# Firmware Drivers
#
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
#
# Filesystem support
#
CONFIG_FS=y
CONFIG_FS_AUTOMOUNT=y
# CONFIG_FS_CRAMFS is not set
# CONFIG_FS_EXT4 is not set
CONFIG_FS_RAMFS=y
CONFIG_FS_DEVFS=y
CONFIG_FS_TFTP=y
CONFIG_FS_NFS=y
# CONFIG_FS_FAT is not set
CONFIG_FS_UBIFS=y
CONFIG_FS_UBIFS_COMPRESSION_LZO=y
CONFIG_FS_UBIFS_COMPRESSION_ZLIB=y
# CONFIG_FS_BPKFS is not set
# CONFIG_FS_UIMAGEFS is not set
#
# Library routines
#
CONFIG_PARAMETER=y
CONFIG_UNCOMPRESS=y
CONFIG_ZLIB=y
# CONFIG_BZLIB is not set
# CONFIG_LZ4_DECOMPRESS is not set
# CONFIG_XZ_DECOMPRESS is not set
# CONFIG_GENERIC_FIND_NEXT_BIT is not set
CONFIG_PROCESS_ESCAPE_SEQUENCE=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_QSORT=y
CONFIG_LIBSCAN=y
CONFIG_LIBUBIGEN=y
CONFIG_LIBMTD=y
#
# Library gui routines
#
CONFIG_CRC32=y
CONFIG_DIGEST=y
CONFIG_SHA1=y
# CONFIG_DIGEST_MD5_GENERIC is not set
CONFIG_DIGEST_SHA1_GENERIC=y
# CONFIG_DIGEST_SHA224_GENERIC is not set
# CONFIG_DIGEST_SHA256_GENERIC is not set
# CONFIG_DIGEST_SHA384_GENERIC is not set
# CONFIG_DIGEST_SHA512_GENERIC is not set
# CONFIG_DIGEST_HMAC_GENERIC is not set
# CONFIG_DIGEST_SHA1_ARM is not set
# CONFIG_DIGEST_SHA256_ARM is not set

View File

@ -0,0 +1,37 @@
require barebox.inc
SRCREV = "1d8bdd6f226df2ecbde3776b52fbc228158293fd"
SRC_URI = " \
git://git.sysmocom.de/barebox.git;branch=v2015.06 \
file://defconfig \
"
PV = "v2015.06+git${SRCPV}"
S = "${WORKDIR}/git"
BAREBOX_ELF_IMAGE ?= "barebox-${MACHINE}-${PKGV}-${PKGR}.elf"
BAREBOX_ELF_SYMLINK ?= "barebox-${MACHINE}.elf"
BAREBOX_BIN_IMAGE ?= "barebox-${MACHINE}-${PKGV}-${PKGR}.bin"
BAREBOX_BIN_SYMLINK ?= "barebox-${MACHINE}.bin"
# generated using echo -n 'bts-stop' | sha1sum
BAREBOX_PASSWORD = "5a7ef8875df28cb95a0f833906f94df8573bcc5d"
# Provide a replacement for calling whoami
export KBUILD_BUILD_USER="poky"
do_configure_append () {
mkdir -p ${WORKDIR}/env/nv
echo 5 > ${WORKDIR}/env/nv/login.timeout
}
do_deploy_append () {
install -d ${DEPLOYDIR}
install ${S}/arch/arm/pbl/zbarebox ${DEPLOYDIR}/${BAREBOX_ELF_IMAGE}
install ${S}/arch/arm/pbl/zbarebox.bin ${DEPLOYDIR}/${BAREBOX_BIN_IMAGE}
cd ${DEPLOYDIR}
rm -f ${BAREBOX_ELF_SYMLINK}
rm -f ${BAREBOX_BIN_SYMLINK}
ln -sf ${BAREBOX_ELF_IMAGE} ${BAREBOX_ELF_SYMLINK}
ln -sf ${BAREBOX_BIN_IMAGE} ${BAREBOX_BIN_SYMLINK}
}

View File

@ -0,0 +1,329 @@
#
# Automatically generated file; DO NOT EDIT.
# Barebox/arm 2015.06.0 Configuration
#
CONFIG_ARM=y
#
# System Type
#
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_BCM2835 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_DAVINCI is not set
# CONFIG_ARCH_DIGIC is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_HIGHBANK is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_MVEBU is not set
# CONFIG_ARCH_MXS is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_NOMADIK is not set
CONFIG_ARCH_OMAP=y
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_ARCH_SOCFPGA is not set
# CONFIG_ARCH_S3C24xx is not set
# CONFIG_ARCH_S5PCxx is not set
# CONFIG_ARCH_S3C64xx is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_VEXPRESS is not set
# CONFIG_ARCH_TEGRA is not set
# CONFIG_ARCH_UEMD is not set
# CONFIG_ARCH_ZYNQ is not set
#
# Processor Type
#
CONFIG_CPU_32=y
CONFIG_CPU_V7=y
CONFIG_CPU_32v7=y
#
# processor features
#
# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
#
# OMAP Features
#
CONFIG_ARCH_AM33XX=y
CONFIG_OMAP_CLOCK_SOURCE_DMTIMER0=y
CONFIG_OMAP_GPMC=y
CONFIG_OMAP_BUILD_IFT=y
# CONFIG_OMAP_BUILD_SPI is not set
# CONFIG_OMAP_SERIALBOOT is not set
CONFIG_OMAP_MULTI_BOARDS=y
# CONFIG_MACH_AFI_GF is not set
# CONFIG_MACH_BEAGLEBONE is not set
CONFIG_MACH_PHYTEC_SOM_AM335X=y
CONFIG_ARM_ASM_UNIFIED=y
CONFIG_AEABI=y
CONFIG_THUMB2_BAREBOX=y
#
# ARM specific settings
#
# CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS is not set
CONFIG_ARM_EXCEPTIONS=y
# CONFIG_ARM_UNWIND is not set
CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
CONFIG_HAS_KALLSYMS=y
CONFIG_HAS_MODULES=y
CONFIG_HAS_CACHE=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_GPIO=y
CONFIG_BLOCK=y
CONFIG_FILETYPE=y
#
# General Settings
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BANNER=y
# CONFIG_MEMINFO is not set
# CONFIG_ENVIRONMENT_VARIABLES is not set
#
# memory layout
#
CONFIG_HAVE_PBL_IMAGE=y
CONFIG_HAVE_PBL_MULTI_IMAGES=y
CONFIG_HAVE_IMAGE_COMPRESSION=y
CONFIG_PBL_IMAGE=y
CONFIG_PBL_MULTI_IMAGES=y
CONFIG_PBL_RELOCATABLE=y
CONFIG_IMAGE_COMPRESSION=y
# CONFIG_IMAGE_COMPRESSION_LZ4 is not set
CONFIG_IMAGE_COMPRESSION_LZO=y
# CONFIG_IMAGE_COMPRESSION_GZIP is not set
# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
# CONFIG_IMAGE_COMPRESSION_NONE is not set
CONFIG_MMU=y
CONFIG_MMU_EARLY=y
CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
CONFIG_TEXT_BASE=0x0
CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
CONFIG_STACK_SIZE=0x8000
CONFIG_MALLOC_SIZE=0x0
# CONFIG_EXPERIMENTAL is not set
# CONFIG_MALLOC_DLMALLOC is not set
CONFIG_MALLOC_TLSF=y
# CONFIG_MALLOC_DUMMY is not set
# CONFIG_KALLSYMS is not set
CONFIG_RELOCATABLE=y
# CONFIG_PANIC_HANG is not set
CONFIG_PROMPT="MLO>"
CONFIG_BAUDRATE=115200
CONFIG_SIMPLE_READLINE=y
CONFIG_CBSIZE=1024
# CONFIG_SHELL_HUSH is not set
# CONFIG_SHELL_SIMPLE is not set
CONFIG_SHELL_NONE=y
# CONFIG_GLOB is not set
# CONFIG_PASSWORD is not set
# CONFIG_ERRNO_MESSAGES is not set
# CONFIG_TIMESTAMP is not set
CONFIG_IMD=y
# CONFIG_IMD_TARGET is not set
# CONFIG_KERNEL_INSTALL_TARGET is not set
CONFIG_CONSOLE_FULL=y
# CONFIG_CONSOLE_SIMPLE is not set
# CONFIG_CONSOLE_NONE is not set
# CONFIG_CONSOLE_ACTIVATE_FIRST is not set
# CONFIG_CONSOLE_ACTIVATE_ALL is not set
CONFIG_CONSOLE_ACTIVATE_NONE=y
CONFIG_PARTITION=y
CONFIG_PARTITION_DISK=y
CONFIG_PARTITION_DISK_DOS=y
# CONFIG_PARTITION_DISK_EFI is not set
# CONFIG_DEFAULT_ENVIRONMENT is not set
CONFIG_DEFAULT_COMPRESSION_NONE=y
CONFIG_HAVE_DEFAULT_ENVIRONMENT_NEW=y
# CONFIG_BAREBOXENV_TARGET is not set
# CONFIG_BAREBOXCRC32_TARGET is not set
# CONFIG_POLLER is not set
#
# Debugging
#
CONFIG_COMPILE_LOGLEVEL=6
CONFIG_DEFAULT_LOGLEVEL=7
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_LL is not set
CONFIG_DEBUG_OMAP_UART_PORT=1
# CONFIG_DEBUG_INITCALLS is not set
CONFIG_HAS_DEBUG_LL=y
# CONFIG_HAS_POWEROFF is not set
# CONFIG_NET is not set
#
# Drivers
#
CONFIG_OFTREE=y
CONFIG_OFTREE_MEM_GENERIC=y
CONFIG_DTC=y
CONFIG_OFDEVICE=y
CONFIG_OF_GPIO=y
#
# serial drivers
#
# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
CONFIG_DRIVER_SERIAL_NS16550=y
CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
# CONFIG_DRIVER_SERIAL_CADENCE is not set
#
# SPI drivers
#
# CONFIG_SPI is not set
# CONFIG_I2C is not set
CONFIG_MTD=y
# CONFIG_MTD_WRITE is not set
# CONFIG_MTD_OOB_DEVICE is not set
# CONFIG_MTD_RAW_DEVICE is not set
#
# Self contained MTD devices
#
# CONFIG_MTD_DOCG3 is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_DRIVER_CFI is not set
CONFIG_NAND=y
# CONFIG_NAND_ECC_SOFT is not set
# CONFIG_NAND_ECC_BCH is not set
CONFIG_NAND_ECC_HW=y
# CONFIG_NAND_ECC_HW_OOB_FIRST is not set
# CONFIG_NAND_ECC_HW_SYNDROME is not set
# CONFIG_NAND_ECC_HW_NONE is not set
# CONFIG_NAND_INFO is not set
# CONFIG_NAND_BBT is not set
CONFIG_NAND_OMAP_GPMC=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_UBI is not set
CONFIG_DISK=y
# CONFIG_DISK_WRITE is not set
#
# drive types
#
# CONFIG_DISK_ATA is not set
# CONFIG_DISK_AHCI is not set
#
# interface types
#
# CONFIG_DISK_INTF_PLATFORM_IDE is not set
# CONFIG_USB_HOST is not set
# CONFIG_USB_GADGET is not set
# CONFIG_USB_MUSB is not set
# CONFIG_VIDEO is not set
CONFIG_MCI=y
#
# --- Feature list ---
#
CONFIG_MCI_STARTUP=y
# CONFIG_MCI_WRITE is not set
# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
#
# --- MCI host drivers ---
#
# CONFIG_MCI_DW is not set
CONFIG_MCI_OMAP_HSMMC=y
CONFIG_CLOCKSOURCE_DUMMY_RATE=1000
#
# MFD
#
# CONFIG_MFD_SYSCON is not set
#
# Misc devices
#
# CONFIG_JTAG is not set
# CONFIG_SRAM is not set
# CONFIG_BOOTSTATE_DRV is not set
# CONFIG_LED is not set
#
# EEPROM support
#
#
# Input device support
#
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_WATCHDOG is not set
# CONFIG_PWM is not set
#
# DMA support
#
CONFIG_GPIOLIB=y
#
# GPIO
#
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_IMX is not set
# CONFIG_GPIO_MXS is not set
CONFIG_GPIO_OMAP=y
# CONFIG_GPIO_DESIGNWARE is not set
# CONFIG_W1 is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL_SINGLE=y
#
# Bus devices
#
CONFIG_BUS_OMAP_GPMC=y
# CONFIG_REGULATOR is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_RTC_CLASS is not set
#
# Firmware Drivers
#
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
#
# Filesystem support
#
CONFIG_FS=y
# CONFIG_FS_CRAMFS is not set
# CONFIG_FS_EXT4 is not set
# CONFIG_FS_RAMFS is not set
# CONFIG_FS_DEVFS is not set
CONFIG_FS_FAT=y
# CONFIG_FS_FAT_WRITE is not set
CONFIG_FS_FAT_LFN=y
# CONFIG_FS_BPKFS is not set
# CONFIG_FS_UIMAGEFS is not set
#
# Library routines
#
# CONFIG_ZLIB is not set
# CONFIG_BZLIB is not set
# CONFIG_LZ4_DECOMPRESS is not set
# CONFIG_XZ_DECOMPRESS is not set
# CONFIG_GENERIC_FIND_NEXT_BIT is not set
# CONFIG_PROCESS_ESCAPE_SEQUENCE is not set
# CONFIG_LZO_DECOMPRESS is not set
#
# Library gui routines
#
# CONFIG_BOOTSTRAP is not set
# CONFIG_DIGEST is not set

View File

@ -0,0 +1,21 @@
require barebox.inc
SRCREV = "34a48171a699560d8a41d00d2c07ed37a79c00d8"
SRC_URI = " \
git://git.sysmocom.de/barebox.git;branch=v2015.06 \
file://defconfig \
"
PV = "v2015.06+git${SRCPV}"
S = "${WORKDIR}/git"
BAREBOX_IMAGE ?= "barebox-${MACHINE}-mlo-${PKGV}-${PKGR}.img"
BAREBOX_SYMLINK ?= "barebox-${MACHINE}-mlo.img"
do_deploy () {
install -d ${DEPLOYDIR}
install ${S}/images/barebox-am33xx-sysmocom-odu-mlo.img ${DEPLOYDIR}/${BAREBOX_IMAGE}
cd ${DEPLOYDIR}
rm -f ${BAREBOX_SYMLINK}
ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK}
}

View File

@ -0,0 +1,625 @@
#
# Automatically generated file; DO NOT EDIT.
# Barebox/arm 2015.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
#
# System Type
#
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_BCM2835 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_DAVINCI is not set
# CONFIG_ARCH_DIGIC is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_HIGHBANK is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_MVEBU is not set
# CONFIG_ARCH_MXS is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_NOMADIK is not set
CONFIG_ARCH_OMAP=y
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_ARCH_SOCFPGA is not set
# CONFIG_ARCH_S3C24xx is not set
# CONFIG_ARCH_S5PCxx is not set
# CONFIG_ARCH_S3C64xx is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_VEXPRESS is not set
# CONFIG_ARCH_TEGRA is not set
# CONFIG_ARCH_UEMD is not set
# CONFIG_ARCH_ZYNQ is not set
#
# Processor Type
#
CONFIG_CPU_32=y
CONFIG_CPU_V7=y
CONFIG_CPU_32v7=y
#
# processor features
#
# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
#
# OMAP Features
#
CONFIG_ARCH_AM33XX=y
CONFIG_OMAP_CLOCK_SOURCE_DMTIMER0=y
CONFIG_OMAP_GPMC=y
# CONFIG_OMAP_BUILD_IFT is not set
# CONFIG_OMAP_BUILD_SPI is not set
# CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO is not set
CONFIG_BAREBOX_UPDATE_AM33XX_NAND=y
CONFIG_OMAP_MULTI_BOARDS=y
# CONFIG_MACH_AFI_GF is not set
# CONFIG_MACH_BEAGLEBONE is not set
CONFIG_MACH_PHYTEC_SOM_AM335X=y
CONFIG_ARM_ASM_UNIFIED=y
CONFIG_AEABI=y
CONFIG_THUMB2_BAREBOX=y
CONFIG_ARM_BOARD_APPEND_ATAG=y
#
# ARM specific settings
#
CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
CONFIG_ARM_EXCEPTIONS=y
CONFIG_ARM_UNWIND=y
CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
CONFIG_HAS_KALLSYMS=y
CONFIG_HAS_MODULES=y
CONFIG_ENV_HANDLING=y
CONFIG_HAS_CACHE=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_GPIO=y
CONFIG_BOOTM=y
CONFIG_BLOCK=y
CONFIG_BLOCK_WRITE=y
CONFIG_FILETYPE=y
CONFIG_BINFMT=y
CONFIG_UIMAGE=y
CONFIG_LOGBUF=y
CONFIG_GLOBALVAR=y
CONFIG_STDDEV=y
CONFIG_BAREBOX_UPDATE=y
CONFIG_MENUTREE=y
#
# General Settings
#
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BANNER=y
CONFIG_MEMINFO=y
CONFIG_ENVIRONMENT_VARIABLES=y
#
# memory layout
#
CONFIG_HAVE_PBL_IMAGE=y
CONFIG_HAVE_PBL_MULTI_IMAGES=y
CONFIG_HAVE_IMAGE_COMPRESSION=y
CONFIG_PBL_IMAGE=y
CONFIG_PBL_MULTI_IMAGES=y
CONFIG_PBL_RELOCATABLE=y
CONFIG_IMAGE_COMPRESSION=y
# CONFIG_IMAGE_COMPRESSION_LZ4 is not set
CONFIG_IMAGE_COMPRESSION_LZO=y
# CONFIG_IMAGE_COMPRESSION_GZIP is not set
# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
# CONFIG_IMAGE_COMPRESSION_NONE is not set
CONFIG_MMU=y
CONFIG_MMU_EARLY=y
CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
CONFIG_TEXT_BASE=0x0
CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
CONFIG_STACK_SIZE=0x8000
CONFIG_MALLOC_SIZE=0x0
# CONFIG_EXPERIMENTAL is not set
# CONFIG_MALLOC_DLMALLOC is not set
CONFIG_MALLOC_TLSF=y
CONFIG_KALLSYMS=y
CONFIG_RELOCATABLE=y
# CONFIG_PANIC_HANG is not set
CONFIG_PROMPT="barebox> "
CONFIG_BAUDRATE=115200
CONFIG_CBSIZE=1024
CONFIG_SHELL_HUSH=y
# CONFIG_SHELL_SIMPLE is not set
# CONFIG_SHELL_NONE is not set
CONFIG_GLOB=y
CONFIG_GLOB_SORT=y
CONFIG_PROMPT_HUSH_PS2="> "
CONFIG_HUSH_FANCY_PROMPT=y
CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=y
CONFIG_MENU=y
CONFIG_PASSWORD=y
CONFIG_PASSWORD_DEFAULT=""
# CONFIG_PASSWD_SUM_MD5 is not set
CONFIG_PASSWD_SUM_SHA1=y
# CONFIG_PASSWD_SUM_SHA256 is not set
# CONFIG_PASSWD_SUM_SHA512 is not set
# CONFIG_PASSWD_CRYPTO_PBKDF2 is not set
CONFIG_DYNAMIC_CRC_TABLE=y
CONFIG_ERRNO_MESSAGES=y
# CONFIG_TIMESTAMP is not set
# CONFIG_BLSPEC is not set
CONFIG_IMD=y
CONFIG_IMD_TARGET=y
# CONFIG_KERNEL_INSTALL_TARGET is not set
CONFIG_CONSOLE_FULL=y
# CONFIG_CONSOLE_SIMPLE is not set
# CONFIG_CONSOLE_NONE is not set
# CONFIG_CONSOLE_ACTIVATE_FIRST is not set
CONFIG_CONSOLE_ACTIVATE_ALL=y
# CONFIG_CONSOLE_ACTIVATE_NONE is not set
CONFIG_PARTITION=y
CONFIG_PARTITION_DISK=y
CONFIG_PARTITION_DISK_DOS=y
# CONFIG_PARTITION_DISK_EFI is not set
CONFIG_DEFAULT_ENVIRONMENT=y
# CONFIG_DEFAULT_COMPRESSION_GZIP is not set
# CONFIG_DEFAULT_COMPRESSION_LZO is not set
CONFIG_DEFAULT_COMPRESSION_NONE=y
CONFIG_HAVE_DEFAULT_ENVIRONMENT_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU=y
CONFIG_DEFAULT_ENVIRONMENT_PATH=""
CONFIG_BAREBOXENV_TARGET=y
# CONFIG_BAREBOXCRC32_TARGET is not set
CONFIG_POLLER=y
CONFIG_STATE=y
CONFIG_BOOTSTATE=y
CONFIG_RESET_SOURCE=y
#
# Debugging
#
CONFIG_COMPILE_LOGLEVEL=6
CONFIG_DEFAULT_LOGLEVEL=7
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_LL is not set
CONFIG_DEBUG_OMAP_UART_PORT=1
# CONFIG_DEBUG_INITCALLS is not set
CONFIG_HAS_DEBUG_LL=y
CONFIG_COMMAND_SUPPORT=y
# CONFIG_HAS_POWEROFF is not set
CONFIG_COMPILE_HASH=y
CONFIG_COMPILE_MEMORY=y
#
# Commands
#
#
# Information
#
CONFIG_CMD_ARM_CPUINFO=y
CONFIG_CMD_DEVINFO=y
CONFIG_CMD_DMESG=y
CONFIG_CMD_DRVINFO=y
CONFIG_CMD_HELP=y
CONFIG_LONGHELP=y
CONFIG_CMD_IOMEM=y
CONFIG_CMD_IMD=y
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_ARM_MMUINFO=y
CONFIG_CMD_VERSION=y
#
# Boot
#
CONFIG_FLEXIBLE_BOOTARGS=y
CONFIG_CMD_BOOT=y
CONFIG_CMD_BOOTM=y
CONFIG_CMD_BOOTM_SHOW_TYPE=y
CONFIG_CMD_BOOTM_VERBOSE=y
CONFIG_CMD_BOOTM_INITRD=y
CONFIG_CMD_BOOTM_OFTREE=y
# CONFIG_CMD_BOOTM_OFTREE_UIMAGE is not set
# CONFIG_CMD_BOOTM_AIMAGE is not set
# CONFIG_CMD_BOOTU is not set
# CONFIG_CMD_BOOTZ is not set
CONFIG_CMD_GO=y
CONFIG_CMD_LOADB=y
# CONFIG_CMD_LOADS is not set
# CONFIG_CMD_LOADY is not set
CONFIG_CMD_RESET=y
# CONFIG_CMD_UIMAGE is not set
#
# Partition
#
CONFIG_CMD_PARTITION=y
CONFIG_CMD_AUTOMOUNT=y
CONFIG_CMD_MOUNT=y
CONFIG_CMD_UBI=y
CONFIG_CMD_UBIFORMAT=y
CONFIG_CMD_UMOUNT=y
#
# Environment
#
CONFIG_CMD_NV=y
CONFIG_CMD_EXPORT=y
CONFIG_CMD_DEFAULTENV=y
CONFIG_CMD_GLOBAL=y
CONFIG_CMD_LOADENV=y
CONFIG_CMD_PRINTENV=y
CONFIG_CMD_MAGICVAR=y
CONFIG_CMD_MAGICVAR_HELP=y
CONFIG_CMD_SAVEENV=y
#
# File
#
CONFIG_CMD_BASENAME=y
CONFIG_CMD_CAT=y
CONFIG_CMD_CD=y
CONFIG_CMD_CP=y
# CONFIG_CMD_CMP is not set
CONFIG_CMD_DIGEST=y
CONFIG_CMD_DIRNAME=y
CONFIG_CMD_FILETYPE=y
CONFIG_CMD_LN=y
CONFIG_CMD_LS=y
CONFIG_CMD_MD5SUM=y
CONFIG_CMD_MKDIR=y
CONFIG_CMD_PWD=y
CONFIG_CMD_READLINK=y
CONFIG_CMD_RM=y
CONFIG_CMD_RMDIR=y
# CONFIG_CMD_SHA1SUM is not set
# CONFIG_CMD_SHA224SUM is not set
# CONFIG_CMD_SHA256SUM is not set
# CONFIG_CMD_SHA384SUM is not set
# CONFIG_CMD_SHA512SUM is not set
CONFIG_CMD_UNCOMPRESS=y
#
# Shell scripting
#
CONFIG_CMD_FALSE=y
CONFIG_CMD_GETOPT=y
CONFIG_CMD_LET=y
CONFIG_CMD_MSLEEP=y
CONFIG_CMD_READF=y
CONFIG_CMD_SLEEP=y
CONFIG_CMD_TEST=y
CONFIG_CMD_TRUE=y
#
# Network
#
CONFIG_CMD_DHCP=y
# CONFIG_CMD_HOST is not set
CONFIG_NET_CMD_IFUP=y
CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
#
# Console and Framebuffer interaction
#
CONFIG_CMD_CLEAR=y
CONFIG_CMD_ECHO=y
CONFIG_CMD_ECHO_E=y
CONFIG_CMD_EDIT=y
CONFIG_CMD_LOGIN=y
CONFIG_CMD_MENU=y
# CONFIG_CMD_MENU_MANAGEMENT is not set
CONFIG_CMD_MENUTREE=y
CONFIG_CMD_PASSWD=y
# CONFIG_PASSWD_MODE_HIDE is not set
CONFIG_PASSWD_MODE_STAR=y
# CONFIG_PASSWD_MODE_CLEAR is not set
# CONFIG_CMD_SPLASH is not set
CONFIG_CMD_READLINE=y
CONFIG_CMD_TIMEOUT=y
#
# Memory
#
CONFIG_CMD_CRC=y
CONFIG_CMD_CRC_CMP=y
CONFIG_CMD_MD=y
CONFIG_CMD_MEMCMP=y
CONFIG_CMD_MEMCPY=y
CONFIG_CMD_MEMSET=y
CONFIG_CMD_MEMTEST=y
CONFIG_CMD_MM=y
CONFIG_CMD_MW=y
#
# Hardware manipulation
#
CONFIG_CMD_DETECT=y
CONFIG_CMD_FLASH=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_I2C=y
CONFIG_CMD_LED=y
CONFIG_CMD_NAND=y
# CONFIG_CMD_NANDTEST is not set
CONFIG_CMD_LED_TRIGGER=y
#
# Miscellaneous
#
# CONFIG_CMD_2048 is not set
CONFIG_CMD_BAREBOX_UPDATE=y
# CONFIG_CMD_FIRMWARELOAD is not set
CONFIG_CMD_OF_DUMP=y
CONFIG_CMD_OF_NODE=y
CONFIG_CMD_OF_PROPERTY=y
CONFIG_CMD_OF_DISPLAY_TIMINGS=y
CONFIG_CMD_OFTREE=y
CONFIG_CMD_TIME=y
CONFIG_CMD_STATE=y
CONFIG_CMD_BOOTCHOOSER=y
CONFIG_NET=y
CONFIG_NET_NFS=y
CONFIG_NET_NETCONSOLE=y
CONFIG_NET_RESOLV=y
CONFIG_NET_IFUP=y
#
# Drivers
#
CONFIG_OFTREE=y
CONFIG_OFTREE_MEM_GENERIC=y
CONFIG_DTC=y
CONFIG_OFDEVICE=y
CONFIG_OF_NET=y
CONFIG_OF_GPIO=y
CONFIG_OF_BAREBOX_DRIVERS=y
#
# serial drivers
#
# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
CONFIG_DRIVER_SERIAL_NS16550=y
CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
# CONFIG_DRIVER_SERIAL_CADENCE is not set
CONFIG_PHYLIB=y
#
# Network drivers
#
# CONFIG_DRIVER_NET_ARC_EMAC is not set
# CONFIG_DRIVER_NET_CALXEDA_XGMAC is not set
CONFIG_DRIVER_NET_CPSW=y
# CONFIG_DRIVER_NET_DESIGNWARE is not set
# CONFIG_DRIVER_NET_KS8851_MLL is not set
# CONFIG_DRIVER_NET_SMC911X is not set
# CONFIG_DRIVER_NET_SMC91111 is not set
#
# phylib
#
#
# MII PHY device drivers
#
# CONFIG_AT803X_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
CONFIG_MICREL_PHY=y
# CONFIG_NATIONAL_PHY is not set
# CONFIG_SMSC_PHY is not set
#
# MII bus device drivers
#
#
# SPI drivers
#
# CONFIG_SPI is not set
CONFIG_I2C=y
#
# I2C Hardware Bus support
#
# CONFIG_I2C_GPIO is not set
CONFIG_I2C_OMAP=y
CONFIG_MTD=y
CONFIG_MTD_WRITE=y
CONFIG_MTD_OOB_DEVICE=y
# CONFIG_MTD_RAW_DEVICE is not set
#
# Self contained MTD devices
#
# CONFIG_MTD_DOCG3 is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_DRIVER_CFI is not set
CONFIG_NAND=y
CONFIG_NAND_ECC_SOFT=y
# CONFIG_NAND_ECC_BCH is not set
CONFIG_NAND_ECC_HW=y
# CONFIG_NAND_ECC_HW_OOB_FIRST is not set
CONFIG_NAND_ECC_HW_SYNDROME=y
CONFIG_NAND_ECC_HW_NONE=y
CONFIG_NAND_INFO=y
CONFIG_NAND_READ_OOB=y
CONFIG_NAND_BBT=y
# CONFIG_NAND_ALLOW_ERASE_BAD is not set
CONFIG_NAND_OMAP_GPMC=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
CONFIG_DISK=y
CONFIG_DISK_WRITE=y
#
# drive types
#
# CONFIG_DISK_ATA is not set
# CONFIG_DISK_AHCI is not set
#
# interface types
#
# CONFIG_DISK_INTF_PLATFORM_IDE is not set
# CONFIG_USB_HOST is not set
# CONFIG_USB_GADGET is not set
# CONFIG_USB_MUSB is not set
# CONFIG_VIDEO is not set
CONFIG_MCI=y
#
# --- Feature list ---
#
CONFIG_MCI_STARTUP=y
CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
#
# --- MCI host drivers ---
#
# CONFIG_MCI_DW is not set
CONFIG_MCI_OMAP_HSMMC=y
CONFIG_CLOCKSOURCE_DUMMY_RATE=1000
#
# MFD
#
# CONFIG_MFD_ACT8846 is not set
# CONFIG_MFD_LP3972 is not set
# CONFIG_MFD_MC13XXX is not set
# CONFIG_MFD_MC34704 is not set
# CONFIG_MFD_MC9SDZ60 is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TWL4030 is not set
# CONFIG_MFD_TWL6030 is not set
#
# Misc devices
#
# CONFIG_JTAG is not set
# CONFIG_SRAM is not set
CONFIG_STATE_DRV=y
CONFIG_BOOTSTATE_DRV=y
CONFIG_LED=y
CONFIG_LED_GPIO=y
CONFIG_LED_GPIO_OF=y
# CONFIG_LED_GPIO_RGB is not set
# CONFIG_LED_GPIO_BICOLOR is not set
CONFIG_LED_TRIGGERS=y
#
# EEPROM support
#
CONFIG_EEPROM_AT24=y
#
# Input device support
#
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_WATCHDOG is not set
# CONFIG_PWM is not set
#
# DMA support
#
CONFIG_GPIOLIB=y
#
# GPIO
#
CONFIG_GPIO_GENERIC=y
CONFIG_GPIO_GENERIC_PLATFORM=y
# CONFIG_GPIO_IMX is not set
# CONFIG_GPIO_MXS is not set
CONFIG_GPIO_OMAP=y
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_DESIGNWARE is not set
# CONFIG_W1 is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL_SINGLE=y
#
# Bus devices
#
CONFIG_BUS_OMAP_GPMC=y
# CONFIG_REGULATOR is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_RTC_CLASS is not set
#
# Firmware Drivers
#
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
#
# Filesystem support
#
CONFIG_FS=y
CONFIG_FS_AUTOMOUNT=y
# CONFIG_FS_CRAMFS is not set
CONFIG_FS_EXT4=y
CONFIG_FS_RAMFS=y
CONFIG_FS_DEVFS=y
CONFIG_FS_TFTP=y
CONFIG_FS_NFS=y
CONFIG_FS_FAT=y
CONFIG_FS_FAT_WRITE=y
CONFIG_FS_FAT_LFN=y
CONFIG_FS_UBIFS=y
CONFIG_FS_UBIFS_COMPRESSION_LZO=y
CONFIG_FS_UBIFS_COMPRESSION_ZLIB=y
# CONFIG_FS_BPKFS is not set
# CONFIG_FS_UIMAGEFS is not set
#
# Library routines
#
CONFIG_PARAMETER=y
CONFIG_UNCOMPRESS=y
CONFIG_ZLIB=y
# CONFIG_BZLIB is not set
# CONFIG_LZ4_DECOMPRESS is not set
# CONFIG_XZ_DECOMPRESS is not set
# CONFIG_GENERIC_FIND_NEXT_BIT is not set
CONFIG_PROCESS_ESCAPE_SEQUENCE=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_QSORT=y
CONFIG_LIBSCAN=y
CONFIG_LIBUBIGEN=y
CONFIG_LIBMTD=y
#
# Library gui routines
#
CONFIG_CRC32=y
CONFIG_CRC16=y
CONFIG_DIGEST=y
CONFIG_MD5=y
CONFIG_SHA1=y
# CONFIG_DIGEST_MD5_GENERIC is not set
CONFIG_DIGEST_SHA1_GENERIC=y
# CONFIG_DIGEST_SHA224_GENERIC is not set
# CONFIG_DIGEST_SHA256_GENERIC is not set
# CONFIG_DIGEST_SHA384_GENERIC is not set
# CONFIG_DIGEST_SHA512_GENERIC is not set
# CONFIG_DIGEST_HMAC_GENERIC is not set
# CONFIG_DIGEST_SHA1_ARM is not set
# CONFIG_DIGEST_SHA256_ARM is not set

View File

@ -0,0 +1,31 @@
require barebox.inc
RDEPENDS_${PN} += "${PN}-mlo"
SRCREV = "34a48171a699560d8a41d00d2c07ed37a79c00d8"
SRC_URI = " \
git://git.sysmocom.de/barebox.git;branch=v2015.06 \
file://defconfig \
"
PV = "v2015.06+git${SRCPV}"
S = "${WORKDIR}/git"
BAREBOX_IMAGE ?= "barebox-${MACHINE}-${PKGV}-${PKGR}.img"
BAREBOX_SYMLINK ?= "barebox-${MACHINE}.img"
# generated using echo -n 'odu-stop' | sha1sum
BAREBOX_PASSWORD = "45cd62a2c4b834d6f8077db04f024aec070801db"
do_configure_append () {
mkdir -p ${WORKDIR}/env/nv
echo 5 > ${WORKDIR}/env/nv/login.timeout
}
do_deploy_append () {
install -d ${DEPLOYDIR}
install ${S}/images/barebox-am33xx-sysmocom-odu.img ${DEPLOYDIR}/${BAREBOX_IMAGE}
cd ${DEPLOYDIR}
rm -f ${BAREBOX_SYMLINK}
ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK}
}

View File

@ -0,0 +1,50 @@
SUMMARY = "Barebox - a bootloader that inherits the best of U-Boot and the Linux kernel"
HOMEPAGE = "http://www.barebox.org/"
SECTION = "bootloaders"
PROVIDES ?= "virtual/bootloader"
DEPENDS += "lzop-native"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=057bf9e50e1ca857d0eb97bfe4ba8e5d"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit kernel-arch deploy
EXTRA_OEMAKE = "ARCH=arm CROSS_COMPILE=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}"
do_configure_prepend() {
cp ${WORKDIR}/defconfig ${S}/.config
# do not compile tools when using KERNEL_CC/KERNEL_LD
echo CONFIG_BAREBOXENV_TARGET=n >> ${S}/.config
echo CONFIG_BAREBOXCRC32_TARGET=n >> ${S}/.config
echo CONFIG_KERNEL_INSTALL_TARGET=n >> ${S}/.config
echo CONFIG_IMD_TARGET=n >> ${S}/.config
# password
if [ -n "${BAREBOX_PASSWORD}" ]; then
echo -n "${BAREBOX_PASSWORD}" > ${S}/.password
echo CONFIG_PASSWORD_DEFAULT=\".password\" >> ${S}/.config
fi
# extra environment files
sed -i -e 's,^\(CONFIG_DEFAULT_ENVIRONMENT_PATH=.*\)\"$,\1 ../env\",' ${S}/.config
oe_runmake oldconfig
}
do_compile () {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}"
}
do_deploy () {
install -d ${DEPLOY_DIR_TOOLS}
if [ -f ${S}/scripts/mkimage ]; then
install -m 755 ${S}/scripts/mkimage ${DEPLOY_DIR_TOOLS}/mkimage-${PV}
ln -sf mkimage-${PV} ${DEPLOY_DIR_TOOLS}/mkimage
fi
if [ -f ${S}/scripts/bareboxenv ]; then
install -m 755 ${S}/scripts/bareboxenv ${DEPLOY_DIR_TOOLS}/bareboxenv-${PV}
ln -sf bareboxenv-${PV} ${DEPLOY_DIR_TOOLS}/bareboxenv
fi
}
addtask deploy before do_build after do_compile

View File

@ -1,4 +1,4 @@
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
THISDIR := "${@os.path.dirname(d.getVar('FILE', True))}"
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
PRINC="3"

View File

@ -1,11 +0,0 @@
Welcome to
____ _______ _____
| _ \\__ __/ ____|
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
__/ |
|___/ by sysmocom GmbH

View File

@ -1,11 +0,0 @@
Welcome to
____ _______ _____
| _ \\__ __/ ____|
___ _ _ ___ _ __ ___ ___ | |_) | | | | (___
/ __| | | / __| '_ ` _ \\ / _ \\| _ < | | \\___ \\
\\__ \\ |_| \\__ \\ | | | | | (_) | |_) | | | ____) |
|___/\\__, |___/_| |_| |_|\\___/|____/ |_| |_____/
__/ |
|___/ by sysmocom GmbH

View File

@ -0,0 +1,8 @@
rootfs / auto defaults 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
tmpfs /var/volatile tmpfs defaults 0 0
/dev/sda1 /boot ext4 defaults,nofail 0 2

View File

@ -0,0 +1,23 @@
SUMMARY = "flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers"
HOMEPAGE = "http://sourceforge.net/projects/b-o-s-s-a/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d32239bcb673463ab874e80d47fae504"
SRCREV = "05bfcc39bc0453c3028b1161175b95a81af7a901"
SRC_URI = "git://git.code.sf.net/p/b-o-s-s-a/code"
DEPENDS = "readline"
PV = "v0.0+git${SRCPV}"
PR = "r2"
S = "${WORKDIR}/git"
do_compile() {
mkdir -p obj/arm-dis
oe_runmake -f Makefile bin/bossac bin/bossash
}
do_install() {
install -d ${D}${bindir}/
install -m 0755 ${S}/bin/bossac ${D}${bindir}/bossac
install -m 0755 ${S}/bin/bossash ${D}${bindir}/bossash
}

View File

@ -1,6 +1,6 @@
DESCRIPTION = "Set an early date on RTC less systems"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "\
file://early-date \

View File

@ -4,7 +4,8 @@
auto lo
iface lo inet loopback
#eth0 is our gateway to the network. ifplugd will run ifup/ifdown for us
#eth0 is our gateway to the network.
auto eth0
iface eth0 inet dhcp
#eth0 will provide dhcp to clients

Some files were not shown because too many files have changed in this diff Show More