Commit Graph

29407 Commits (436f87b02911529846347178dccef21fda28c005)

Author SHA1 Message Date
Gabor Juhos 8ed16ce49a ar71xx: WNR2200: fix mounting root fs problem
Solves ticket #14356 <https://dev.openwrt.org/ticket/14356>

Without this patch, UART output will show only 4 partitions:
  [    0.740000] 4 cmdlinepart partitions found on MTD device spi0.0
  [    0.750000] Creating 4 MTD partitions on "spi0.0":
  [    0.750000] 0x000000000000-0x000000050000 : "u-boot"
  [    0.760000] 0x000000050000-0x000000070000 : "u-boot-env"
  [    0.770000] 0x000000070000-0x0000007f0000 : "firmware"
  [    0.790000] 0x0000007f0000-0x000000800000 : "art"
and then linux complains :VFS: Cannot open root device "(null)"

With this patch, UART out will show 7 partitions:
  [    0.740000] 4 cmdlinepart partitions found on MTD device spi0.0
  [    0.750000] Creating 4 MTD partitions on "spi0.0":
  [    0.750000] 0x000000000000-0x000000040000 : "u-boot"
  [    0.760000] 0x000000040000-0x000000050000 : "u-boot-env"
  [    0.770000] 0x000000050000-0x0000007f0000 : "firmware"
  [    0.780000] 2 netgear-fw partitions found on MTD device firmware
  [    0.780000] 0x000000050000-0x00000014b440 : "kernel"
  [    0.790000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
  [    0.800000] 0x00000014b440-0x0000007f0000 : "rootfs"
  [    0.810000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
  [    0.820000] mtd: device 4 (rootfs) set to be root filesystem
  [    0.830000] 1 squashfs-split partitions found on MTD device rootfs
  [    0.830000] 0x000000340000-0x0000007f0000 : "rootfs_data"
  [    0.840000] 0x0000007f0000-0x000000800000 : "art"

This patch is tested against r39502 of trunk.

Signed-off-by: Jonathan Chang <changcs@santos.ee.ntu.edu.tw>
Patchwork: http://patchwork.openwrt.org/patch/4870/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39625 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 17:34:16 +00:00
John Crispin 216641d3c0 odhcp6c: add validation rules to proto handler
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39624 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:34:16 +00:00
John Crispin 7e90362903 relayd: add uci validation
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39623 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:34:12 +00:00
John Crispin ceda071dfb mac80211: add validation rules
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39622 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:34:08 +00:00
John Crispin 49f77e8016 netifd: add validation support
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39621 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:34:04 +00:00
John Crispin 9450ebce2b hostapd: add validation rules to wireless handler
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39620 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:59 +00:00
John Crispin 4aff5a4e3d ppp: add validation rules to proto handler
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:56 +00:00
John Crispin 47e0e9ed2f comgt: add validation rules to proto handler
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39618 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:52 +00:00
John Crispin 7027da552c firewall3: update init.d script to make use of procd
add validation data

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39617 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:47 +00:00
John Crispin 3854547a4a ubox: logd did not register its config.reload trigger properly
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39616 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:43 +00:00
John Crispin 6cd00fa25c base-files: split /etc/init.d/boot into 2 files
this allows us to bind a procd trigger to system.@system[-1]

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39615 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:40 +00:00
John Crispin e2af138349 netifd: update to latest git head
this adds support for proto and wireless handler adding uci validation rules

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39614 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:36 +00:00
John Crispin f815a8c108 procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39613 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:32 +00:00
John Crispin f97a3cfbe8 procd: the helper script did not export all functions properly
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39612 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:29 +00:00
John Crispin 36cfff4072 ralink: add support for na930
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39611 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:25 +00:00
John Crispin d6515b152d ralink: add gpio_uartf mux group
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39610 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:20 +00:00
John Crispin 1cd43bd476 ralink: fix the gpio mode mapping
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39609 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:16 +00:00
John Crispin bed28742bc authsae: update to latest version
Signed-off-by: Stefan May <smay@4finger.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39608 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:13 +00:00
John Crispin f2b9871a1d openssl: fix up PKG_DEPENDS. there are 2 missing CONFIG_ prefixe
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39607 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:08 +00:00
Felix Fietkau 3eeb6bd12e uci: update to latest version, adds preparation for validation support and blobmsg int64 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39606 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 12:27:11 +00:00
Steven Barth 9f824dff49 odhcp6c: send reconfigure-accept again to be compliant
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39605 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-17 20:31:21 +00:00
Steven Barth e828e7aaf3 odhcpd: Fix RA interval + add support for prefixes > 64 and < 97
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39604 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-17 20:30:29 +00:00
Zoltan HERPAI 72b9591102 3.13: revert r39601 as the symbol is already there
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39602 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-17 11:49:34 +00:00
Zoltan HERPAI 456243fa21 3.13: add missing NF_TABLES symbol - until someone packages it
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39601 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-17 10:57:11 +00:00
Zoltan HERPAI e6614d92a7 3.13: add missing symbol
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39600 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-17 10:20:53 +00:00
Luka Perkov 13b5408461 [tools] cmake: upgrade to 2.8.12.2
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39598 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-16 21:51:10 +00:00
Steven Barth d91939cd82 netifd: work around dangling prefix kernel-routes (fixes #14963)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39597 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-16 11:20:22 +00:00
Luka Perkov c179a14ce3 kirkwood: dockstar: remove sata from packages
The dockstar doesn't have any sata ports.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39596 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-16 00:14:29 +00:00
Luka Perkov 2d49e9d8ac kirkwood: add support for Seagate GoFlexNet
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-16 00:14:27 +00:00
Luka Perkov 55db723f0b [package] uboot-kirkwood: add support for Seagate GoFlexNet
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-16 00:14:26 +00:00
Luka Perkov 9ca49930ba kirkwood: update support for dockstar
The board is optimized for ubi(fs) and boots OpenWrt without changes to uboot
environment if OpenWrt's uboot package is used. In order to flash the image run
following commands in uboot shell:

nand erase 0x200000 0xfe00000
ubi part root ; ubi remove rootfs ; ubi create rootfs
tftpboot 0x800000 openwrt-kirkwood-dockstar-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize} ; reset

Signed-off-by: Luka Perkov <luka@openwrt.org>
Tested-by: Alexander Couzens <lynxis@fe80.eu>
CC: Imre Kaloz <kaloz@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39593 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-15 23:53:10 +00:00
Luka Perkov bf26a4d174 kirkwood: update support for ib62x0
The board is optimized for ubi(fs) and boots OpenWrt without changes to uboot
environment if OpenWrt's uboot package is used. In order to flash the image run
following commands in uboot shell:

nand erase 0x200000 0xfe00000
ubi part root ; ubi remove rootfs ; ubi create rootfs
tftpboot 0x800000 openwrt-kirkwood-ib62x0-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize} ; reset

Signed-off-by: Luka Perkov <luka@openwrt.org>
Tested-by: Luka Perkov <luka@openwrt.org>
CC: Imre Kaloz <kaloz@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39592 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-15 23:53:09 +00:00
Luka Perkov b24acf0794 kirkwood: update support for iconnect
Previous patch was pushed due to false user report. While at it fix alphabetic
ordering.

The board is optimized for ubi(fs) and boots OpenWrt without changes to uboot
environment if OpenWrt's uboot package is used. In order to flash the image run
following commands in uboot shell:

nand erase 0x200000 0x1fe00000
ubi part root ; ubi remove rootfs ; ubi create rootfs
tftpboot 0x800000 openwrt-kirkwood-iconnect-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize} ; reset

Signed-off-by: Luka Perkov <luka@openwrt.org>
CC: Imre Kaloz <kaloz@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39591 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-15 23:53:08 +00:00
Luka Perkov 8cc29e4be3 [package] uboot-kirkwood: update to 2013.10
Tested on:

 * Cloud Engines Pogoplug E02
 * RaidSonic ICY BOX IB-NAS62x0
 * Iomega Iconnect

Some users are avoiding to replace their bootloader, because of that add
support for second stage u-boot image. Having ubifs capable bootloader is
required in order to boot current OpenWrt trunk.

Sample ib62x0 commands for running second stage bootloader:

tftpboot 0x800000 uboot-kirkwood-ib62x0_second_stage/openwrt-kirkwood-ib62x0_second_stage-u-boot.img
bootm 0x800000

Sample ib62x0 commands for flashing second stage bootloader:

tftpboot 0x800000 uboot-kirkwood-ib62x0_second_stage/openwrt-kirkwood-ib62x0_second_stage-u-boot.img
nand erase 0x100000 0x100000 ; nand write 0x800000 0x100000 0x${filesize}
nand read 0x800000 0x100000 0x100000 ; bootm 0x800000

While at it include parallel build support, use alphabetic order of the boards
and introduce common OpenWrt configuration.

Signed-off-by: Luka Perkov <luka@openwrt.org>
Tested-by (on ib62x0): Luka Perkov <luka@openwrt.org>
Tested-by (on dockstar): Alexander Couzens <lynxis@fe80.eu>
Tested-by (on iconnect): Wojciech Dubowik <wojciech.dubowik@neratec.com>
CC: Felix Kaechele <heffer@fedoraproject.org>
CC: Wojciech Dubowik <wojciech.dubowik@neratec.com>
CC: Alexander Couzens <lynxis@fe80.eu>
CC: Daniel Engberg <daniel.engberg@pyret.net>
CC: Imre Kaloz <kaloz@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39590 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-15 23:53:07 +00:00
Luka Perkov bf883b3ca2 kernel: rtl8306: update reset function
Signed-off-by: Antonios Vamporakis <ant@area128.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39589 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-15 22:54:35 +00:00
Luka Perkov c3ad61d1fb lantiq: fix typo in pinctl driver
Signed-off-by: Antonios Vamporakis <ant@area128.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-15 22:54:34 +00:00
Luka Perkov 86f4b429dd lantiq: fix PCI problems on ARV4510PW
Some ARV4510PW units seem to have unstable PCI due to missing pull-up
resistors. This patch makes sure that the GPIO lines are driven properly.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39587 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-15 22:54:32 +00:00
Steven Barth 2c64b38a6b netifd: fix source-routing breaking 6in4 + others
6in4 historically allowed an ip6addr without a mask however the newly
introduced source-routing segfaulted in this scenario (#14958 + #14858).

Fixes include: "Fix ubus route src mask printing" and
"Disable netlink auto ack" (thanks to Hans Dedecker)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-14 21:21:44 +00:00
Imre Kaloz abe243f240 [omap]: use the default package set
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39584 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-14 10:09:07 +00:00
Jo-Philipp Wich 731543f24d ar71xx: fix mtdpartsize macro in image Makefile (#14961)
The mtdpartsize macro triggers shell errors on various Linux distributions
when the partname argument $(1) does not appear within the partmap $(2).

Change the sed pattern to only emit anything if a successful substitution
occured and only evaluate the arithmetic expression if something was printed
by the sed program.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39583 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-13 21:19:00 +00:00
Imre Kaloz 2aeabcb857 upgrade 3.13 targets to 3.13.2, refresh patches
Signed-off-by: Imre Kaloz <kaloz@openwrt.org


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39582 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-13 13:27:14 +00:00
Imre Kaloz 87573f9583 [generic]: upgrade 3.12 to 3.12.10
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39581 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-13 12:57:36 +00:00
Imre Kaloz 23122cc26e [omap]: change image generation logic
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-13 10:43:32 +00:00
Imre Kaloz 9a2f69609c handle "neon" fpu type
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39579 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-12 15:43:14 +00:00
Imre Kaloz f8a6d9d74e [omap]: handle some CONFIG_TARGET_ROOTFS_INCLUDE_ foo
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39578 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-12 15:38:08 +00:00
Imre Kaloz 9a9b0be97b [omap]: copy initramfs zImage to the bin dir as well
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39577 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-12 10:51:46 +00:00
Imre Kaloz 80cef23aaf [omap]: generate ubifs images
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39576 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-12 10:48:33 +00:00
Steven Barth 1cb05cbff9 odhcp6c: remove source-restriction from local routes again (broke relaying)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39575 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-12 08:54:43 +00:00
Luka Perkov d11b0ffc19 imx6: drop 3.12 support
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39574 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-12 00:46:02 +00:00
Luka Perkov 601386d76d imx6: add initial 3.13 support
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39573 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-12 00:46:00 +00:00