aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/base-files
Commit message (Collapse)AuthorAgeFilesLines
* base-files: export x86 platform upgrade functions to common.shYousong Zhou2017-01-052-96/+5
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* x86: move sysupgrade.tgz only if it existsYousong Zhou2017-01-051-3/+6
| | | | | | | | To squash error messages at boot time mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* x86: use sysfs DMI information to populate sysinfoJo-Philipp Wich2016-06-061-0/+28
| | | | | | | | | | | | | | | | | | Use the DMI data available in sysfs to extract manufacturer and model info and write it to /tmp/sysinfo/. The data will be picked up by board_detect and can be used by e.g. LuCI to display a more appropriate model description. On an APU board the files will contain the following values: # cat /tmp/sysinfo/model PC Engines APU # cat /tmp/sysinfo/board_name pc-engines-apu Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* x86: generalize partition discovery for sysupgradeJo-Philipp Wich2016-05-242-25/+54
| | | | | | | | | | | | | | | Generalize the partition discovery in sysupgrade in order to fix sysupgrade and config backup/recovery on MMC block devices which use a different naming scheme compared to mtdblock or sd* devices. The change also adds the find applet to the ramdisk utilities so that upgrade code can rely on it. The commit is based on the initial submission by Russell Senior at http://patchwork.ozlabs.org/patch/625440/ . Signed-off-by: Russell Senior <russell@personaltelco.net> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* image / basefiles: make console password configurableJohn Crispin2016-04-181-2/+2
| | | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> Signed-off-by: John Crispin <john@phrozen.org>
* x86: search PARTUUID in any block deviceJo-Philipp Wich2016-03-301-1/+2
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* x86: make sysupgrade work without partxJo-Philipp Wich2016-03-301-6/+28
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* x86: fix platform_export_bootpart() for Xen virtual disksHauke Mehrtens2016-04-171-1/+1
| | | | | | | | | | | | | Virtual disk devices in a Xen virtual machine (DomU) can be /dev/xvda, /dev/xvdb and so on with partitions like /dev/xdva1. Devices named like this where not considered before. This resulted in a non working sysupgrade, because the boot partition could not be found. Signed-off-by: Alexander Dahl <alex@netz39.de> Suggested-by: Matthias Schiffer <mschiffer@universe-factory.net> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49190
* x86: preserve partition table on sysupgradeJo-Philipp Wich2016-02-091-2/+49
| | | | | | | | | | | | | | With this patch sysupgrade will write directly to the partitions instead of to the main disk. The UUID is copied from the image to the MBR as well. This prevents the mbr from being completely overwritten and losing the partition table. The -p option has been added to maintain the original behavior and overwite the entire disk with the new image. Tests have been added to ensure that the image partitions match up with the active partitions. Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net> SVN-Revision: 48682
* x86: remove redundant default network configFelix Fietkau2016-01-281-26/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48530
* x86: use PARTUUID instead explicitly specifying the device by defaultJo-Philipp Wich2015-03-242-38/+53
| | | | | | | | | | | | | This changes the x86 image generation to match x86_64, using the PARTUUID for the rootfs instead of explicitly configuring the device. It unbreaks KVM with VirtIO, which uses /dev/vda2 instead of /dev/sda2. Tested in QEMU/KVM with VirtIO, VirtualBox and VMware. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 44966
* x86: remove old soekris config hacks, install a more appropriate default ↵Felix Fietkau2014-10-124-56/+7
| | | | | | | | /etc/config/network with lan+wan Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42888
* network: Unbind DHCPv6 from underlying interfacesSteven Barth2014-10-081-1/+1
| | | | | | | | | 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
* target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGCJohn Crispin2014-06-021-1/+1
| | | | | | | | | | | | | | | | | | | 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
* x86: fix sysupgradeFelix Fietkau2014-03-211-1/+1
| | | | | | | | | | | | | | | | | | | Function move_config should be called after or during preinit_mount_root hook in do_mount_root function. At this state sysupgrade.tgz is not in its place during that time when do_mount_root is called. Function move_config is called later so the sysupgrade.tgz stays in root directory to the second restart when it is unpacked properly. This patch adds move_config function to preinit_mount_root hook instead of preinit_main and changes the filename of script to be called before 80_mount_root is called. It will prepare the sysupgrade archive for do_mount_root within preinit_mount_root hook. This patch solves ticket #15042 and #14088. Signed-off-by: Jiri Slachta <slachta@cesnet.cz> SVN-Revision: 39996
* x86: change /dev/console to tty to fix job controlJohn Crispin2013-08-041-0/+4
| | | | | | | | | | | | Job control is turned off because it cannot obtain controlling terminal on /dev/console, so it is impossible to do any job control operation behind real x86 device (keyboard+monitor or virtualized). This patch switches /dev/console to tty devices for ash on x86 generic target. Signed-off-by: Jiri Slachta <slachta@cesnet.cz> SVN-Revision: 37693
* kernel/base-files: clean up old code related to refreshing mtd partitions, ↵Felix Fietkau2013-07-141-6/+0
| | | | | | | | it is no longer used anywhere Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37282
* preinit: move cmdline failsafe= handling ot the generic codeJohn Crispin2013-04-251-13/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36430
* Change default IPv6 config to enable DHCPv6-PDSteven Barth2013-04-221-1/+1
| | | | SVN-Revision: 36384
* Adapt default network configuration for IPv6Steven Barth2013-04-091-0/+8
| | | | SVN-Revision: 36278
* Do not overload mount-call - trying to reduce confusionMirko Vogt2012-12-191-1/+1
| | | | | | | | | | | The behaviour of calling 'mount' differed depending on whether it called the busybox-mount, the mount of util-linux, the mount defined in /lib/functions.sh and /lib/functions/boot.sh /etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh, both re-defining 'mount'. SVN-Revision: 34792
* x86: allow both old and new grub signatures in sysupgradeJo-Philipp Wich2012-10-231-1/+1
| | | | SVN-Revision: 33898
* x86: correct image magic for grub2 imagesFelix Fietkau2012-10-221-1/+1
| | | | | | | | | Sysupgrade broke on x86 when grub2 superceded grub. This patch corrects tha magic_word to be expected in grub2 combined images. Signed-off-by: Russell Senior <russell@personaltelco.net> SVN-Revision: 33890
* x86: add grub2 iso supportFelix Fietkau2012-10-071-0/+5
| | | | SVN-Revision: 33639
* Fix sysupgrade for squashfs, jffs2 and ext4 imagesVasilis Tsiligiannis2012-06-192-16/+55
| | | | | | | * use 'fsync' with 'dd' for image writing * save config to boot partition SVN-Revision: 32465
* x86/soekris: Add defconfig for soekris net4801 and net4826Felix Fietkau2011-01-263-0/+48
| | | | | | | | | Add default config file for net4801 and 4826 and initial script to copy config file like it is done for other platforms. Patch from: kentarou matsuyama <matsuyama@thinktube.com> SVN-Revision: 25103
* x86/soekris: Add script to detect soekris modelFelix Fietkau2011-01-261-0/+19
| | | | | | | | Add script to detect soekris board of net4801 and net4826. Patch from: kentarou matsuyama <matsuyama@thinktube.com> SVN-Revision: 25102
* sysupgrade: fix typo in platform_do_upgrade() on x86 (closes: #7068), thanks ↵Nicolas Thill2010-04-041-1/+1
| | | | | | to acinonyx SVN-Revision: 20703
* sysupgrade: Get target device from kernel cmdline, patch from acinonyxFlorian Fainelli2010-03-281-1/+5
| | | | SVN-Revision: 20538
* sysupgrade: Dump image to sda device instead of hda (patch by Acinonyx)Jo-Philipp Wich2010-03-271-1/+1
| | | | SVN-Revision: 20514
* base-files: remove redundant "Press " when writing enter failsafe messageJo-Philipp Wich2010-03-231-1/+0
| | | | SVN-Revision: 20393
* preinit: use grep -q where applicableJo-Philipp Wich2010-02-011-1/+1
| | | | SVN-Revision: 19479
* preinit: Remove Ctrl-C prompt...impossible on /dev/console (patch by cshore)Felix Fietkau2010-01-281-1/+1
| | | | SVN-Revision: 19367
* add preinit modularization work by Daniel Dickinson (cshore)Felix Fietkau2010-01-253-2/+22
| | | | SVN-Revision: 19331
* sysupgrade-ext2 sync before writing image, not after Sysupgrade for ext2 ↵Jo-Philipp Wich2009-07-161-1/+1
| | | | | | currently flushes the filesystem buffers after an image is written to the disk. This should happen before the image is written. SVN-Revision: 16867
* fix small logic error in x86 sysupgrade script, which prevented upgrades ↵Felix Fietkau2008-09-231-1/+1
| | | | | | from jffs2 to squashfs (#3321) SVN-Revision: 12672
* fix sysupgrade support for brcm-2.4 and brcm47xx make mtd refresh based ↵Felix Fietkau2008-09-231-0/+2
| | | | | | config append optional (leave enabled on x86) SVN-Revision: 12657
* fix sysupgrade endian issuesTravis Kemen2008-07-221-1/+1
| | | | SVN-Revision: 11900
* silence a bogus preinit messageFelix Fietkau2007-10-241-1/+1
| | | | SVN-Revision: 9429
* get rid of per-profile base-filesGabor Juhos2007-09-292-0/+0
| | | | SVN-Revision: 9069
* made HOME=/root global instead of x86 specificJohn Crispin2007-09-192-16/+0
| | | | SVN-Revision: 8845
* root users folder is now in the fs and no longer /tmpJohn Crispin2007-09-192-0/+16
| | | | SVN-Revision: 8844
* strip the kernel version suffix from target directories, except for brcm-2.4 ↵Felix Fietkau2007-09-062-0/+29
(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