Commit Graph

480 Commits (7eeb254cc49c4e9f837c980826ec112b9404f341)

Author SHA1 Message Date
Felix Fietkau 91c8b109db uci: update to the latest version, fixes delta path / savedir issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45189
9 years ago
John Crispin fd91040704 rpcd: properly handle return codes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45152
9 years ago
John Crispin d6af8e2175 ubox: properly handle return codes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45151
9 years ago
John Crispin 2268d15948 procd: properly handle return codes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45150
9 years ago
John Crispin 08b882fbae fstools: properly handle return codes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45149
9 years ago
John Crispin 530e70c753 ubox: update to latest git HEAD
the return code of a pipe() was not checked properly

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45141
9 years ago
John Crispin 8d8f01088a ubox: update to latest git HEAD
fixes log levels

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45139
9 years ago
John Crispin 6484aa1d28 procd: remove superflous @ in depends line
the @ syntax is not required by Kbuild

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45070
9 years ago
John Crispin 23b24d43ae procd: disable jail for uml builds
probiere den mal bitte

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45066
9 years ago
John Crispin 3dde74b24b procd: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45057
9 years ago
Felix Fietkau 137c0cc434 uci: update to the latest version
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45040
9 years ago
John Crispin 8ef68a2005 procd: fix jail/seccomp build depenedencies
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45032
9 years ago
John Crispin e85b93d9b8 procd: add jail support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45010
9 years ago
Felix Fietkau 889e1e4bff fstools: update to the latest version, makes interrupted first boot more reliable
Use xattr to store the filesystem initialization state of the overlay.
As long as the filesystem is not marked as initialized yet (happens in
/etc/init.d/done), all overlay data (except for sysupgrade.tgz) will be
discarded before the system is allowed to boot

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44942
9 years ago
John Crispin 8fd3227a95 procd: update to latest git HEAD
fixes parameter handling in askfirst tool

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44879
9 years ago
Nicolas Thill 4b382a440b packages: some (e)glibc fixes after r44701
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 44842
9 years ago
John Crispin a7d6427796 fstools: bump to latest git HEAD
this makes fstools compile with latest glibc

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44699
9 years ago
John Crispin 0164cf9742 procd: bump to latest git HEAD
this makes procd compile with latest glibc

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44698
9 years ago
John Crispin 931b0f6e8a rpcd: update to latest git HEAD
adds 3 fixes from luka

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44666
9 years ago
John Crispin 59c20174f8 json-c: update to 0.12 and bump all depending services
Version 0.12 deprecates json_object_object_get and moves the header files around

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44657
9 years ago
John Crispin b48b7a7689 mtd: fix md5sum error checking
In mtd_verify(), the return value of md5sum() has been
interpreted as error if nonzero, while the function
returns number of processed bytes, which caused
mtd_verify() to always fail.

This patch fixes error checking to interpret only
negative values as errors.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>

SVN-Revision: 44605
9 years ago
Jonas Gorski 92eb27f56d package: mtd: move bcm963xx_tag definition into source code
Remove the need for the header file to be exported - we don't need most
of it anyway; all we care about are the offset of the rootfs length and
header crc fields.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44557
9 years ago
Felix Fietkau 1a3028b2fc procd: update to the latest version, fixes musl compile error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44552
9 years ago
Jo-Philipp Wich 03db988eaa ubox: fix segmentation fault in insmod
Fix segfault in kmodloader insmod mode due to uninitialized module
directory list.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44549
9 years ago
Jo-Philipp Wich fd670d2756 procd: add support for relaying daemon stdio to syslog
Procd enabled init scripts can now specify:

  procd_set_param stdout 1
  procd_set_param stderr 1

... to relay their respective standard IO streams to the system log.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44547
9 years ago
Jo-Philipp Wich 46432b13b6 fstools: switch to ulog api
Update to git head in order to switch the block, mount_root etc. logging to
the common ulog() api for putting early boot messages into dmesg.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44545
9 years ago
Jo-Philipp Wich cf6c1e5d26 ubox: switch to ulog api
Update to git head in order to switch the kmodloader logging to the common
ulog() api for putting early boot messages into dmesg.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44544
9 years ago
Jo-Philipp Wich 9e28fe285b procd: switch to ulog api
Update to git head in order to switch the procd logging to the common ulog()
api for putting early boot messages into dmesg.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44543
9 years ago
Jo-Philipp Wich ff009fb74c fstools: fix build with enabled ubifs extroot support
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44538
9 years ago
Jo-Philipp Wich b2eb77089b fstools: fix multiple extroot problems
- Support external overlays on non-MTD systems again
- Account for new directory structure of overlayfs partitions (additional upper/ component)
- Support executing block from either overlay or rom
- Support loading fstab from either overlay or rom
- Log extroot failures to dmesg

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44535
9 years ago
Jo-Philipp Wich 979e6ca857 ubox: kmodloader: support loading kmods from multiple directories
This is required during early boot in the extroot setup phase to support
loading kmods from the overlay that depend on kmods on the rom partition.

The subsequent mount_root updates will use the LD_LIBRARY_PATH env
variable to pass kmod directories to kmodloader.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44533
9 years ago
Nicolas Thill 4b8ebb5d50 packages: remove uneeded PKG_BUILD_DIR overrides
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 44498
9 years ago
John Crispin fb57efa79e procd: fix PKG_CONFIG_DEPENDS
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44457
9 years ago
Jo-Philipp Wich ba2d7b9c2b rpcd: fix session.{login,list,destroy} method signatures
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44362
9 years ago
Jo-Philipp Wich 772a664571 fstools: fix exit code of uci-defaults script
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44180
9 years ago
John Crispin 25a1cb4e16 procd: update to latest git HEAD
adds a zram size calculation bug fix

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44177
9 years ago
Jo-Philipp Wich 2d523f7d59 procd: make build of upgraded optional
Update to latest git head in order to support disabling the build
of upgraded which causes linker errors on avr32.

This also adds some fixes to the ubus system.info and system.board
methods.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44134
9 years ago
Felix Fietkau d7274cf747 ubus: update to the latest version
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44081
9 years ago
Steven Barth 4fde177b7a procd: fix console bringup on UML (again...)
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43890
10 years ago
Rafał Miłecki 3e0817d606 fstools: update to the latest git HEAD
This allows using UBIFS volume as overlay and adds support for Btrfs.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43868
10 years ago
John Crispin 40e2dbf9c6 fstools: update to latest git HEAD
adds a few cleanups and extroot/ubi support

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43717
10 years ago
John Crispin f310e02ab3 procd: update to latest git HEAD
fixes a bug where wdt write happened with no valid fd available
--> procd: WDT failed to write: Bad file descriptor

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43711
10 years ago
John Crispin ac09fd9a13 opkg: make PKG_UPGRADE available during preinst hook
https://dev.openwrt.org/ticket/18479

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43581
10 years ago
John Crispin 19a6f3dd11 procd: more nand takeover fixes
if the initramfs kernel and payload were flashed in one block, the payload might not be at the start of the ubi partition due to bad blocks inside the kernel partition.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43513
10 years ago
John Crispin c3bb3906ee mtd: make the dump commnd honour the -o option
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43512
10 years ago
John Crispin 68909fb081 procd: firstboot nand/ubi takeover support
it is now possible to flash a initramfs kernel and a sysupgrade tar file inside the ubi partition. on first boot, the takeover script will find the tar file, extract and finally sysupgrade it. this allows us to flash owrt/ubi images in a 2 phase setup using ODM webuis that are not ubi aware. this is needed by some mediatek and brokencom devices.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43505
10 years ago
John Crispin ff02ea36e0 mtd: make the mtd dump call run properly on nand flash
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43503
10 years ago
John Crispin da988d582f mtd: add ability to dump a mtd device
this can be used on nand flashes and will skip bad blocks and run ecc on the
read data before dumping it.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43500
10 years ago
John Crispin 5698e62ecb opkg: the PKG_UPGRADE env was not set properly
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43493
10 years ago
John Crispin 3b1b3c5067 procd: drop the zram dependencies, theu caused a recursive deps warning
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43492
10 years ago
John Crispin b1bc985d57 procd: reintroduce /sys/fs/cgroup mount
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43490
10 years ago
John Crispin 43131d62a8 procd: add support for zram compressed /tmp
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43489
10 years ago
Felix Fietkau b8dd6bb189 fstools: update to the latest version, fixes sysupgrade on linux 3.18
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43485
10 years ago
John Crispin 4c044e8118 fstools: make the block tool ignore case when comparing uuid strings
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43480
10 years ago
Rafał Miłecki 15355dd212 procd: fix typo in nand.sh s/TRX/TAR/
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43423
10 years ago
John Crispin 9a70c8ef9b mtd: fix 2 compiler warnings
mtd.c:544:7: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘ssize_t’ [-Wformat]
mtd.c:602:1: warning: label ‘done’ defined but not used [-Wunused-label]

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43383
10 years ago
John Crispin db69761f94 procd: fix/clean some conditions in nand.sh
1) nand_upgrade_tar: use a simpler condition that matches if () { }
   logic and fix check of $kernel_length variable
2) nand_do_upgrade_stage2: use case, otherwise one could believe we
   always call nand_upgrade_tar

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43373
10 years ago
John Crispin 19c18eba93 procd: document nand.sh a bit
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43372
10 years ago
Felix Fietkau 623f3bda54 fstools: update to the latest version, fixes overlayfs mount on 3.18
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43368
10 years ago
Felix Fietkau 226f330bcf procd: update to the latest version, fixes ubus service list
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43327
10 years ago
John Crispin 79475ee880 procd: update to latest git HEAD
make sure /sys/fs/cgroup is mounted on boot

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43257
10 years ago
Felix Fietkau 061f1bf326 procd: update to the latest version, fixes job control on the console shell
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43220
10 years ago
John Crispin 74e94df8eb procd: update to latest git
setsid is called fixing the pgrp issue
trigger the wdt while modules are being inserted

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43193
10 years ago
Steven Barth e06033d028 procd: fix kernel command-line argument parsing
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43184
10 years ago
Steven Barth 425dec78c5 procd: Make askconsole work again when no tty is specified in inittab
Thanks to Michel Stam

Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43179
10 years ago
Steven Barth de64db7ee4 procd: fix serial console login (#18278)
Many thanks to Michel Stam for his work.

Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43178
10 years ago
John Crispin 74a3a77bcd license info - revert r43155
turns out that r43155 adds duplicate info.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43167
10 years ago
John Crispin c10d97484a Add more license tags with SPDX identifiers
Note, that licensing stuff is a nightmare: many packages does not clearly
state their licenses, and often multiple source files are simply copied
together - each with different licensing information in the file headers.

I tried hard to ensure, that the license information extracted into the OpenWRT's
makefiles fit the "spirit" of the packages, e.g. such small packages which
come without a dedicated source archive "inherites" the OpenWRT's own license
in my opinion.

However, I can not garantee that I always picked the correct information
and/or did not miss license information.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 43155
10 years ago
Steven Barth bec9d38fa4 Add a few SPDX tags
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43151
10 years ago
Steven Barth 16ef92770b procd: revert some changes breaking console on UML
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43147
10 years ago
John Crispin 4654319964 procd: Allow boot messages to be sent to console
update to latest git HEAD, adds "log to console"

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43118
10 years ago
John Crispin 9205c6da4b ca-certificates: Update to Version 20141019
Update to Version 20141019

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

SVN-Revision: 43111
10 years ago
John Crispin 51f8a1cfc5 fstools: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43090
10 years ago
Felix Fietkau 2abd1b817e rpcd: add 802.11ac for iwinfo
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43005
10 years ago
Felix Fietkau e759974c9b mountd: explicitly link libubox (needed by libuci)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42972
10 years ago
Felix Fietkau 78e333ae20 rpcd: update to the latest version, fixes build after libubox update
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42959
10 years ago
Jo-Philipp Wich 4f73613c26 build: improve feed handling for opkg.conf
- Consider not installed feeds as well
 - Add option to decide whether to comment disabled feeds

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42931
10 years ago
John Crispin a08f4367c0 procd: update to latest git
this adds the remaining patches that Michel Stam sent

Signed-off-by: Michel Stam <m.stam@fugro.nl>

SVN-Revision: 42918
10 years ago
John Crispin 13dce9817e udev/Config.in: help format, and fix spelling mistake
Formatting and spelling fixes.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

SVN-Revision: 42913
10 years ago
John Crispin 20940138ac scripts: fix wrong usage of '==' operator
[base-files] shell-scripting: fix wrong usage of '==' operator

normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.

this patch does not change the behavior/logic of the scripts.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 42911
10 years ago
John Crispin 80a54ef804 fstools: update to latest git HEAD
this adds support for overlayfs v23

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42890
10 years ago
Felix Fietkau 4c490c79b2 procd: fix initial nand sysupgrade
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42884
10 years ago
Felix Fietkau 41363b1ecb procd: fix parsing of the has_env parameter
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42883
10 years ago
John Crispin e28c5f86f3 procd: handle hotplug events for the usbmisc subsystem
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42831
10 years ago
John Crispin 550ded7b8a procd: r42814 added a bad git version
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42826
10 years ago
John Crispin 9f2a5ace84 procd: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42814
10 years ago
John Crispin c53de497f8 ubox: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42813
10 years ago
John Crispin 635c9d7a25 fstools: update to latest git
adds support for /dev/vd* virtual io

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42812
10 years ago
Felix Fietkau d282ccf383 ca-certificates: create symbolic link for certificate hashes
Implementing "add-cert.sh" functionality described at
http://wiki.openwrt.org/doc/howto/wget-ssl-certs into Makefile
otherwise you need to create symbolic links for certificate hashes
yourself.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

SVN-Revision: 42660
10 years ago
Hauke Mehrtens c977fad4fd bcm53xx: add fixtrx
Without running fixtrx the image will not boot at the second time,
because the CRC the boot loader check is invalid at that time.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 42639
10 years ago
Felix Fietkau 9a30ee9c2c ubus: update to latest version, adds various fixes and improvements
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42594
10 years ago
John Crispin 5f16859bff ubox: update to latest git
make the remote logging feature RFC3164 compliant

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42572
10 years ago
John Crispin ac01f2b9d6 fs-tools: dont use mips16
this causes problems on 47xx/74k

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42570
10 years ago
John Crispin 1d9620a0b4 procd: update to latest git HEAD
fixed timeout on shutdown and cmdline param parsing

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42545
10 years ago
John Crispin f81614594f procd: update to latest git
add support for starting services as !root

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42471
10 years ago
John Crispin b05c2aad3c opkg: indicate upgrade vs install
when running the postinst trigger we set PKG_UPGRADE=1 if this is an upgrade
and not an install.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42468
10 years ago
Felix Fietkau 2dabf3a775 procd: allow adding empty strings to arrays
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42456
10 years ago
Felix Fietkau 833c5aab7e mtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42405
10 years ago
Felix Fietkau 766dff7445 mtd: Fix trx check after partition rename ("linux" to "firmware")
On brcm47xx (Huawei E970), I noticed that sysupgrade now tries to flash trx images which don't fit into the flash, resulting in non-booting system.

I found that mtd does trx size checking only when flashing to a partition called "linux". This patch changes this to be "firmware".

This matches the following patch which changed partition name in bcm47xxpart.c driver to "firmware":

commit 86b4d5ef68ca77ff6724ebb9bddd6b93239c87fc
Author: hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
 Date:   Sun Dec 1 16:32:32 2013 +0000

    brcm47xx: use "firmware" partition name
    ...
    Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

    SVN-Revision: 38973

Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de>

SVN-Revision: 42403
10 years ago
John Crispin c23e0ed691 procd: run the mdns register outside the sub shell container
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42327
10 years ago
John Crispin b0d9dcf84d procd: update to latest git HEAD
this adds a interafce.update trigger and mdns service registration helpers

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42324
10 years ago
John Crispin 2ae05c57f8 package/*: remove useless explicit set of function returncode
somebody started to set a function returncode in the validation
stuff and everybody copies it, e.g.

myfunction()
{
	fire_command

	return $?
}

a function automatically returns with the last returncode,
so we can safely remove the command 'return $?'. reference:

http://tldp.org/LDP/abs/html/exit-status.html
"The last command executed in the function or script determines the exit status."

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 42278
10 years ago
Jo-Philipp Wich 960b7643c9 build: add new option to add disabled feeds commented out to opkg.conf
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42004
10 years ago
Jo-Philipp Wich a720dd209f build: introduce per feed repository support
This changeset implements a new menuconfig option to generate separate
repositories for each enabled package feed instead of one monolithic one.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42002
10 years ago
Felix Fietkau 5743a89fb5 procd: update to the latest version, fixes parsing of /etc/openwrt_release
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41891
10 years ago
Steven Barth c0ad075472 procd: work around some docker architecture quirks
SVN-Revision: 41867
10 years ago
Felix Fietkau caeb675a46 procd: check output of "uci show" instead of raw config files in order to track uncommitted changes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41865
10 years ago
Felix Fietkau 5ce02632d1 procd: update to the latest version, fixes hotplug firmware loading issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41735
10 years ago
Imre Kaloz ecb68ba6b4 allow overriding the kernel partition's name
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 41646
10 years ago
Imre Kaloz 2ddcf5dd8a we already have a get_magic_long() in common.sh for sysupgrade, don't break it
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 41628
10 years ago
John Crispin 72efa88b64 procd: correctly identify ubifs in tar file
A missing path prevents the rootfs type contained in a SysupgradeNAND
tar file from being determined correctly.

This fixes it, and also corrects a minor spelling mistake.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 41564
10 years ago
Jo-Philipp Wich 4f4faa92c0 rpcd: fix parsing of executable plugin output
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 41502
10 years ago
Felix Fietkau 1ef92a0065 ubus: update to the latest version, fixes compile error regressions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41496
10 years ago
Felix Fietkau 361215b186 ubus: update to the latest version, increases maximum message size and adds a few fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41492
10 years ago
Felix Fietkau 5aef137f9e procd: add a shell helper function to emit a config.change event
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41482
10 years ago
Felix Fietkau 2baf4d4fb0 procd: add shell functions to add instance data
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41481
10 years ago
Felix Fietkau b4059dea7f procd: update to the latest version, adds support for dumping per-instance service data with an optional type filter
also fixes a crash on stopping a service with triggers after reloading it

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41478
10 years ago
John Crispin f63bb0adbd ubox: fix remote logging
in r41439 a flag for enabling remote logging was added,
but the actual check was done on a different variable.

Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>

SVN-Revision: 41467
10 years ago
John Crispin ea535a9565 ubox: add a flag that allows us to disable remote log while keeping the ip settings inside uci
this makes webui foo a lot easier

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41439
10 years ago
John Crispin 9912d02fa1 procd: fix uci_validation
Regardles of the return code from validate_data _error variable will be 0 due
to 'local' command in the previous line. With this patch we are able to catch
the return code from validate_data tool.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 41414
10 years ago
John Crispin a7863b1368 ubox: update to latest git
this adds validation fixes

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41413
10 years ago
Felix Fietkau b3b55de395 build: disable the PKG_CHECK_FORMAT_SECURITY check for the failing packages
The idea is to gradually fix the packages

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

SVN-Revision: 41411
10 years ago
Felix Fietkau 94b41e9aa5 rpcd: update to the latest version, fixes build with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41403
10 years ago
Felix Fietkau bf90d46933 ubox: add explicit dependency on libubus to catch ABI changes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41389
10 years ago
Felix Fietkau 35f05693f1 ubus: update to the latest version, fixes netifd related crashes on ubus calls during reload
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41337
10 years ago
John Crispin 9b714b6e7b procd: fix nand.sh kernel_length typo
sysupgrade otherwise skips kernel part on devices which got
kernel in ubi due to kern_length being undefined, kernel_length
is being used instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41327
10 years ago
John Crispin c2d95d4106 fstools: fix factory reset on ubifs overlay
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41315
10 years ago
John Crispin bce52219fa procd: update to latest git head
this fixes the upgraded linking issue on arm.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41279
10 years ago
John Crispin 54faeadb07 procd: various improvements to nand.sh
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41278
10 years ago
John Crispin 42f450b722 procd: forgot to update the git id in the last commit
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41239
10 years ago
John Crispin 0cf34cee5e procd: make upgarded depend on mips, the static linking on arm fails
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41238
10 years ago
John Crispin 1a3ebd51ad procd: some cleanup for SysupgradeNAND
Removed unused ubi file file from template as ubinized images are
passed directly and not inside the tarball.
Also removed left-over white-space.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41237
10 years ago
John Crispin 3dca5a158d procd: various cleanups to /lib/upgrade/nand.sh
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41222
10 years ago
John Crispin 21eac7a7db procd: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41221
10 years ago
John Crispin 91d82d7b36 procd: rename procd_add_network_trigger
i got complaints about the bad naming of the api. lets rename it while there are no users yet.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41220
10 years ago
Felix Fietkau b30b59773b procd: update to the latest version, fixes static linking of upgraded
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41148
10 years ago
Felix Fietkau 79bbc4fbfb procd: allow passing multiple config files to procd_add_reload_trigger
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41146
10 years ago
Steven Barth 12cdfef54c procd: fix overflow in hotplug socket on certain targets
SVN-Revision: 41142
10 years ago
John Crispin 1e876b4191 procd: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41129
10 years ago
John Crispin 3417834ffc fstools: the ubi flash tool is obselete now
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41128
10 years ago
Felix Fietkau 35d703c8a6 mountd: remove a bogus include to fix compile with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41062
10 years ago
Felix Fietkau 71cda6a1e0 procd: Fix USB cellular modems hotplug events
Without this patch, /etc/hotplug.d/tty/30-3g won't be called when you insert or remove a USB-serial cellular modem.

(see Ticket #14117)

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>

SVN-Revision: 41039
10 years ago
John Crispin bd179b2610 procd: service instances can now report an error of why they failed to start.
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41031
10 years ago
Felix Fietkau e4cc5c1edf procd: update to the latest version, fixes a crash on early boot
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41020
10 years ago
John Crispin e1e5f21b2f procd: add wrapper calls for interface triggers
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41008
10 years ago
John Crispin ad3c2701b6 procd: update to latest git head
adds support for ubus event based triggers

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41007
10 years ago
John Crispin 59c8b70839 procd: rename local variable in uci_validate_section
Allow to use "package", "type", "name", "error" and "result"
as config option names:

package some_service
config section 'foo'
    option name 'bar'
    option type 'unknown'

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>

SVN-Revision: 41006
10 years ago
John Crispin 85b8897d1a fstools: stage libubi-utils static library and headers
Use InstallDev to make libubi-utils available for linking in
uboot-envtools.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 40928
10 years ago
Felix Fietkau 118eec12e8 fstools: update to latest version, fixes build on x86_64
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40902
10 years ago
Steven Barth e9ff251ca6 ca-certificates: bump to 20140325
SVN-Revision: 40894
10 years ago
Felix Fietkau 11462369af fstools: update to the latest version, fixes build for 64 bit targets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40889
10 years ago
Felix Fietkau df9f29c47d ubox: update to latest version, fixes kmodloader issues with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40869
10 years ago
Felix Fietkau 2898951c9c ubox: update to the latest version, reduces binary library dependencies
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40857
10 years ago
Felix Fietkau 0c383776df procd: update, fixes a bunch of memleaks
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40856
10 years ago
Felix Fietkau 039dca04b8 procd: update to the latest version, fixes some musl compatibility issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40854
10 years ago
Felix Fietkau 962575f201 mtd: fix compile error with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40819
10 years ago
Luka Perkov a1038db845 fstools: update to the latest version
Fixes RO mounts on imx6 target.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 40818
10 years ago
Felix Fietkau 00776714ac fstools: update to the latest version, adds ubifs support and ubi/mtd fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40781
10 years ago
Jo-Philipp Wich 1f3a36b9c3 opkg: introduce a --force-checksum cmdline flag to be ale to ignore mismatching md5sums
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 40766
10 years ago
Felix Fietkau 93d8170084 procd: add explicit libubox dependency to force rebuild on ABI changes (#16300)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40740
10 years ago
Felix Fietkau 3b2643c92c ubus: update to the latest version, adds lua binding fixes and adds support for the cli command wait_for (waits for objects to appear, with timeout)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40710
10 years ago
Jo-Philipp Wich 7bfcbab875 fstools: fix extroot with opkg-installed block-mount (#15550)
The /sbin/block binary now requires and additional shared library, therfore set
LD_LIBRARY_PATH accordingly when invoking it from the temporary overlay.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 40526
10 years ago
John Crispin fca3f32fe8 rpcd: update to the latest version
This is required to make object "session" procedure "access" dump ACLs
when no "object" or no "function" parameters are passed.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 40496
10 years ago
Jo-Philipp Wich 38c4e4cc02 uci: fix import with not yet existing packages, preserve config permissions on commit, fix Lua detection in cmake
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 40458
10 years ago
John Crispin eb19a65bd2 fstools: update to latest git HEAD
this adds the /sbin/ubi tool that can be used for sysupgrading ubi volumes

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40415
10 years ago
John Crispin 306e0fd866 fstools: scripts should propagate the cmdline
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 40383
10 years ago
John Crispin 69519ed75f fstools: update to latest git
this fixes ubifs and ubi overlay support

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40366
10 years ago
John Crispin 4001a1ee15 firmware: create a new folder for holfing firmware blobs
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40307
10 years ago
John Crispin 00d7e84af6 mtd: improve mtd detection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40301
10 years ago
John Crispin 95a14e1dcd ubox: fix logd (hopefully)
https://dev.openwrt.org/ticket/15357

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40295
10 years ago
Felix Fietkau 608f4fe3b0 mtd: add support for bad blocks in NAND flash
NAND flash is very likely to contain bad blocks.

Currently, mtd and therefore sysupgrade fails when it encounters a single bad block, potentially leaving an unbootable system.

This patch allows the mtd utility to skip bad blocks in NAND flash and complete sysupgrade successfully.

Patch by: Matthew Redfearn <matt.redfearn@nxp.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40021
10 years ago
John Crispin ec44a0f11e fs-tools: add back mount_root, jffs2reset and ffs2mark functionality
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 40018
10 years ago
Imre Kaloz 3f5749e292 add the TI AM335x PM firmware package
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 40016
10 years ago
Felix Fietkau c295f65da9 ca-certificates: install to /etc/ssl/certs/ directly instead of installing a symlink (fixes #15351)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40007
10 years ago
Felix Fietkau 02373252ba ca-certificates: add system CA certificates package (based on the debian one)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39984
10 years ago
Felix Fietkau 84c3487e5a procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts to stderr
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39983
10 years ago
Felix Fietkau f2689dba28 ubus: update to latest version, blocks unrelated uloop calls on synchronous requests
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39954
10 years ago
John Crispin ca4078c110 ubox: update to latest git head
logread now shows the right time.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39951
10 years ago
Felix Fietkau 0060005bd8 procd: update to latest version, fixes a format string bug in processing init script output (#15169)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39945
10 years ago
John Crispin bc6223666e ubox: update to latest git head
use the fd handover api of ubus to transfer log data
the uci option log_buffer_size can be used to override the default size of 16k

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39898
10 years ago
John Crispin 086f522108 ubus: update to latest git HEAD
add fd handover inside ubus replies

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39897
10 years ago
John Crispin 0dc9d8d6ff fstools: add the new fstools package
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39895
10 years ago
Felix Fietkau a70282720d ubus: update to latest version, fixes lua binding issues and adds fd passing support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39726
10 years ago
Felix Fietkau a42b421c79 procd: depend on libubox directly to rebuild on ABI changes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39724
10 years ago
Felix Fietkau 01c4775116 ubus: declare main version as ABI version for libubus
Reorder BuildPackage calls, as libubox needs to come first for ABI
version handling to work

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39722
10 years ago
John Crispin f9f8948c6e ubox: logd did not register its config.reload trigger properly
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39616
10 years ago
John Crispin 97ee2bc616 procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39613
10 years ago
John Crispin b71eb4b5df procd: the helper script did not export all functions properly
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39612
10 years ago
Felix Fietkau 27d9aa182c uci: update to latest version, adds preparation for validation support and blobmsg int64 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39606
10 years ago
John Crispin 5dcb4cc7d1 libubox: ubox: procd: ubus: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39425
10 years ago
John Crispin eceea6d6e1 ubox: revert log buffer size changes
the fix horribly broke existing setups

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39366
10 years ago
John Crispin 9dc6030316 ubox: update to latest git head
make sure log buffer size is not bigger than the ubus message size

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39365
11 years ago
John Crispin 58dc9f593b procd: update to latest git head
Fixes OpenWrt bug #14832

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39352
11 years ago
John Crispin 1de0eac947 ubox: update to latest git head
adds option to set internal buffer size

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39333
11 years ago
John Crispin cd90b6242c ubox: update to latest git
- fix duplicate device wildcard
- fix elf 64bit elf parsing

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39316
11 years ago
John Crispin c990d04026 ubox: welcome to 2014
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39246
11 years ago
John Crispin 09a06d937e ubox: update to latest git - fixes error reporting Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39244
11 years ago
Jo-Philipp Wich f126298a7c rpcd: build, uci and session api fixes
- fix CMakeFile to support rpcd out of tree builds
	- fix a possible file descriptor leak in the session deserialization code
	- add uci.state call which is equivalent to uci -P /var/state get ...
	- make uci.changes "config" argument optional to allow listing all deltas in one go
	- fix inverted check in uci.commit and uci.revert, resulting in eroorneous permission denied responses
	- only trigger config change events if libuci was able to parse the config
	- rename misleading "commit" argument of uci.apply to the more appropriate name "rollback"

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 39224
11 years ago
Jo-Philipp Wich df57b8dcb6 opkg: switch to git repository (#14655)
Upstream development now takes place in a git repository which was clone
from the old svn repository. Switch the source location to the git tree
using the commit that corresponds to the old svn r618 revision.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 39153
11 years ago
Jo-Philipp Wich de5d9827ef procd: fix service file tracking
The instance_config_move() function in the procd instance managing code is
missing a blobmsg_list_move() call to update the tracked file items with the
newly calculated checksums in case of a file change.

Without that change, services are always reloaded after the first change to
a tracked file regardless of whether there are any subsequent changes or not.

Add a missing instance of blobmsg_list_free() as well.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 39132
11 years ago