Commit Graph

33 Commits (5a8e9846af689be7bc3b1fb4a356c3e3c711b94a)

Author SHA1 Message Date
Mathias Kresin ac3e05c5d7 treewide: populate boardname and model earlier
For targets using the generic board detection and board specific
settings in diag.sh, the board name is still unset at the time the
set_state() provided by diag.sh is called by 10_indicate_preinit.

Change the execution order to ensure the boardname is populated before
required the first time. Do the target specific board detection as
early as possible, directly followed by the generic one to allow a
seamless switch to the generic function for populating /tmp/sysinfo/.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago
Jo-Philipp Wich 82768561c4 adm5120: remove target specific /etc/config/system
Now that deviations to the default /etc/config/system are registered via
board.d we can drop the target specific copy.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 4f65b6f567 adm5120: convert LED setup to board.d
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
John Crispin dc92917409 image / basefiles: make console password configurable
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Luka Perkov 81db848656 targets: base-files: diag.sh does not need to be executable
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44305
9 years ago
John Crispin 019ea725aa add "preinit_regular" diag.sh set_state argument
This new argument is used right after starting regular preinit (which
happens if failsafe wasn't triggered). The main purpose of "preinit"
argument is to indicate that failsafe can be triggered, however we were
missing a way to inform user that we don't wait for a trigger anymore.
With this change it's clear when failsafe mode can be triggered.

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

SVN-Revision: 43715
10 years ago
Steven Barth c118e5edf4 network: Unbind DHCPv6 from underlying interfaces
This allows IPv6 to set up without IPv4 being up thus
IPv6-only or IPv6+DS-Lite working with the default config.

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

SVN-Revision: 42848
10 years ago
John Crispin f933a741a9 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct
var $# (=number of args) here. under normal conditions this had no impact,
but we should at least correct it. the error was observable like this:

root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh
root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh
root@box:~ . /lib/upgrade/platform.sh
root@box:~ . /lib/upgrade/common.sh
root@box:~ platform_check_image /tmp/myfirmware.bin
ash: bad number
root@box:~ echo $?
0

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

SVN-Revision: 40915
10 years ago
John Crispin 67f5f188b1 base-files: input/button drivers get loaded before preinit by procd
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37000
11 years ago
John Crispin e6ef318802 base-files: diag does not need to insmod any drivers, procd already did it for us
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 36999
11 years ago
Steven Barth 4e8f7f37ed Change default IPv6 config to enable DHCPv6-PD
SVN-Revision: 36384
11 years ago
Steven Barth ea94d66b0f Adapt default network configuration for IPv6
SVN-Revision: 36278
11 years ago
Gabor Juhos 546b336d2d adm5120: migrate to common led helper functions
[juhosg: migrate to status_led_blink_{preinit,failsafe} helpers]

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35649
11 years ago
Florian Fainelli d3cda51994 do no longer rename amba-pl010 serial devices names
Back in the days when we could not override /etc/inittab, it made a lot
of sense to rename ttyAM to ttyS since this was the only supported
serial device(s), we can now just put in an appropriate /etc/inittab file
now.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34469
12 years ago
Jo-Philipp Wich be49daffc8 base-files, target: assign name to system timeserver section, makes it easier to set servers on the cli
SVN-Revision: 28933
13 years ago
Jo-Philipp Wich d6f02b62d4 add timeserver config to target specific system configs as well
SVN-Revision: 28750
13 years ago
Travis Kemen e9fdc5c981 sysupgrade works on the wp54
SVN-Revision: 26257
13 years ago
Florian Fainelli 6ec329be64 add default network/leds config (#6759)
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com>

SVN-Revision: 25171
14 years ago
Florian Fainelli 370e1f64de add support for generic eb214a, thanks cezary (#7027)
SVN-Revision: 22275
14 years ago
Daniel Dickinson abb91e135f adm5120: Added preinit script to set vars based on cpuinfo during preinit main; This fixes a bug in which the per-board vars were not set due to cpuinfo not being mounted when the adm5120.sh was run
SVN-Revision: 21633
14 years ago
Daniel Dickinson 50a5ef1200 adm5120: Fixed name of preinit_iface scriptlet
SVN-Revision: 21632
14 years ago
Felix Fietkau 0e84ed29ea preinit: fix mixup between led and reset button enable on some platforms (thx, cshore)
SVN-Revision: 19370
15 years ago
Felix Fietkau 56bc02a305 add preinit modularization work by Daniel Dickinson (cshore)
SVN-Revision: 19331
15 years ago
Gabor Juhos d256f20adc adm5120: improve sysupgrade support
SVN-Revision: 19016
15 years ago
Gabor Juhos 87d1ab25af adm5120: fix board detection
SVN-Revision: 19015
15 years ago
Gabor Juhos 466e84e144 adm5120: add kmod-leds-gpio and kmod-ledtrig-adm5120-switch to the default packages
SVN-Revision: 19001
15 years ago
Felix Fietkau 34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
15 years ago
Felix Fietkau 71b68efe91 sysupgrade for adm5120
Sysupgrade adapted from the bcm47xx one.

Add a hook to disable watchdog before upgrading.

Signed-off-by: Frédéric Moulins <ffrrrr@gmail.com>

SVN-Revision: 12694
16 years ago
Gabor Juhos e5ad400330 add initial failsafe support
SVN-Revision: 11403
16 years ago
Gabor Juhos 438dfe5c6f get rid of per-profile base-files
SVN-Revision: 9069
17 years ago
Gabor Juhos e1ad9ef270 add initial diagnostic support
SVN-Revision: 9048
17 years ago
Felix Fietkau a9d683ca91 major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets
SVN-Revision: 8694
17 years ago
Felix Fietkau 56231056ea strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
SVN-Revision: 8653
17 years ago