aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/base-files
Commit message (Collapse)AuthorAgeFilesLines
* treewide: use new procd sysupgrade $UPGRADE_BACKUP variableRafał Miłecki2019-09-051-1/+1
| | | | | | | | | | It's a variable set by procd that should replace hardcoded /tmp/sysupgrade.tgz. This change requires the most recent procd with the commit 0f3c136 ("sysupgrade: set UPGRADE_BACKUP env variable"). Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* treewide: when copying a backup file always specify dest nameRafał Miłecki2019-09-051-1/+1
| | | | | | | $CONF_TAR shouldn't be assumed to always point to the sysupgrade.tgz. This change makes code more generic and allows refactoring $CONF_TAR. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* treewide: don't hardcode "sysupgrade.tgz" file nameRafał Miłecki2019-09-051-2/+2
| | | | | | | | 1) Add BACKUP_FILE and use it when copying an archive to be restored after sysupgrade (on the next preinit). 2) Use CONF_TAR for copying backup prepared by the /sbin/sysupgrade Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" methodRafał Miłecki2019-08-221-1/+1
| | | | | | | This explicitly lets stage2 know if partitions should be preserved. No more "touch /tmp/sysupgrade.always.overwrite.bootdisk.partmap" hack. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* base-files: improve lib/upgrade/common.shKlaus Kudielka2019-05-112-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recently, upgrade device autodetection has been added to the mvebu target. This exposes some shortcomings of the generic export_bootdevice function, e.g. on the Turris Omnia: export_bootdevice silently reports the root partition to be the boot device. This makes the sysupgrade process fail at several places. Fix this by clearly distinguishing between /proc/cmdline arguments which specify the boot disk, and those which specify the root partition. Only in the latter case, strip off the partition, and do it consistently. root=PARTUUID=<pseudo PARTUUID for MBR> (any partition) and root=/dev/* (any partition) are accepted. The root of the problem is that the *existing* export_bootdevice in /lib/upgrade/common.sh behaves differently, if the kernel is booted with root=/dev/..., or if it is booted with root=PARTUUID=... In the former case, it reports back major/minor of the root partition, in the latter case it reports back major/minor of the complete boot disk. Targets, which boot with root=/dev/... *and* use export_bootdevice / export_partdevice, have added workarounds to this behaviour, by specifying *negative* increments to the export_partdevice function. Consequently, those targets have to be adapted to use positive increments, otherwise they are broken by the change to export_bootdevice. Fixes: 4e8345ff68 ("mvebu: base-files: autodetect upgrade device") Signed-off-by: Klaus Kudielka <klaus.kudielka@gmail.com> Tested-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
* sunxi: add support for Sinovoip Banana Pi M2 PlusPawel Dembicki2019-02-171-0/+1
| | | | | | | | | | | | | | | | | | | CPU: H3 Quad-core Cortex-A7 H.265/HEVC 4K @ 1.2 Ghz GPU: Mali400MP2 GPU @ 600MHz (supports OpenGL ES 2.0) Memory: 1GB DDR3 (shared with GPU) Onboard: Storage TF card (Max. 64GB) / MMC card slot Onboard: Network 10/100M Ethernet RJ45 (Realtek RTL8211E) Onboard: Network BT4.0/WiFi 802.11 b/g/n (Ampak AP6212) Onboard header: SPI, I2C, GPIO, UART USB 2.0: Two USB 2.0 HOST, One USB 2.0 OTG Untested: Audio, Video Not working: Bluetooth Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
* sunxi: Orange Pi R1: configure USB Ethernet controller.Hauke Mehrtens2018-01-221-0/+3
| | | | | | Now the USB port is the WAN port. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* sunxi: base files: add AP6212 (brcm43430) NVRAMLuis Araneda2017-11-171-0/+53
| | | | | | Used by the NanoPi M1 Plus board Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* treewide: drop target board_name functionsMathias Kresin2017-07-151-10/+0
| | | | | | They are not used any longer. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: use the generic board_name functionMathias Kresin2017-07-152-4/+4
| | | | | | Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
* sunix: run b53_hack laterMathias Kresin2017-07-151-0/+0
| | | | | | | The script relies on the board name but runs prior the generic sysinfo script which sets the board name. Signed-off-by: Mathias Kresin <dev@kresin.me>
* sunxi: sysupgrade: sync with x86Matthias Schiffer2017-05-291-49/+71
| | | | | | | | | | | | sunxi sysupgrade was based on the x86 implementation; sync fixes and other changes from the current x86 version: x86: fix sysupgrades on disks with 4k block size x86: sysupgrade: move partition table change check to platform_check_image x86: sysupgrade: refactor platform_do_upgrade x86: sysupgrade: explicitly rescan disk after writing partition table Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* sunxi: sysupgrade: don't write partitions twiceMatthias Schiffer2017-05-291-1/+1
| | | | | | | | | | | | | | When existing partitions are retained, the dd call writing the uboot image in the space before the first partition was accidentally writing the whole image, making the code for individual partitions redundant. Limit the copy to 1016KiB (the first 8KiB are skipped, and the first partition starts at 1024KiB). In addition, conv=notrunc is replaced with conv=fsync. It seems this was an oversight, as notrunc doesn't make sense for block devices and all other dd commands use conv=fsync. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* sunxi: use fwtool for checking sdcard imagesYousong Zhou2017-01-054-152/+3
| | | | | | | | | | | | | | To achieve this, device tree compatible string was used as boardname and the value of it will be checked against supported_devices list. It should be noted that we do not distinguish between sun5i-a13-olimex-som and sun5i-a13-olinuxino as they share the same dts file. The other thing is that we need to gunzip the generated firmware to do fwtool check. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* sunxi: add sysupgrade supportYousong Zhou2017-01-052-0/+87
| | | | | | | Enalbe builtin support for FAT filesystem as we need to mount boot partition to store sysupgrade.tgz there Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* image / basefiles: make console password configurableJohn Crispin2016-04-181-3/+3
| | | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> Signed-off-by: John Crispin <john@phrozen.org>
* sunxi: add descriptor files for wifi+bt modules (AP6181/6210), add brcmfmac ↵Zoltan Herpai2016-02-242-0/+108
| | | | | | | | to bananapro profile Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 48757
* sunxi: fix Lamobo R1 board detectionZoltan Herpai2016-01-041-1/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 48130
* all: drop old uci-defaults.shJo-Philipp Wich2015-12-111-1/+1
| | | | | | | | | Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one and update all users accordingly. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47867
* sunxi: fix Lamobo Banana Pi R1 detectionJo-Philipp Wich2015-12-111-1/+1
| | | | | | | | | Change the case switch to reflect the value used in the corresponding device tree file. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47833
* sunxi: fix board.d permissionsJo-Philipp Wich2015-12-041-0/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47760
* sunxi: switch from uci-defaults to board.dJo-Philipp Wich2015-12-042-32/+26
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47758
* sunxi: fix networking on Olimex A20 MicroZoltan Herpai2015-07-311-1/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 46536
* sunxi: workaround switch being uninitialized on netifd startupZoltan Herpai2015-01-301-0/+17
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44215
* sunxi: add support for Lamobo R1Zoltan Herpai2015-01-302-0/+10
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44214
* sunxi: use sunxi_board_name when generating default network settingsZoltan Herpai2015-01-301-15/+6
| | | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 44213
* sunxi: introduce sunxi_board_name() in /lib/sunxi.shZoltan Herpai2015-01-301-0/+9
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44212
* sunxi: implement board_detect for device-tree kernelsZoltan Herpai2015-01-301-38/+130
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44211
* sunxi: bump kernel to 3.18 - refresh patches - add bananapro, cubietruck, ↵Zoltan Herpai2015-01-091-0/+2
| | | | | | | | mele_m9 support Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 43900
* sunxi: fix network config on A20-OLinuXino-LIMENicolas Thill2014-11-061-1/+2
| | | | | | Signed-off-by: Nicolas Thill <nico@openwrt.org> SVN-Revision: 43190
* sunxi: update devtree name in network setup for pcduino3 as preparing for 3.18Zoltan Herpai2014-11-021-0/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 43149
* sunxi: add default interface for bananaPiZoltan Herpai2014-09-171-0/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 42606
* sunxi: fix typo in uci-defaults network configZoltan Herpai2014-06-011-1/+1
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 40895
* sunxi: various a13 changes - add rtl8192cu into A13 Olinuxino profile - make ↵Zoltan Herpai2014-05-011-0/+3
| | | | | | | | wlan0 the default interface Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 40617
* sunxi: add default network config for missing boardsZoltan Herpai2014-04-301-0/+3
| | | | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 40612
* sunxi: init eth0 as lan instead of wan, add a couple boardsZoltan Herpai2014-03-201-2/+4
| | | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39973
* sunxi: rework target - update kernel to 3.12 - add patches for clocks, i2c, ↵Zoltan Herpai2013-11-143-0/+59
| | | | | | | | usb, sid, rtc - support common image for A10/A13/A20 - add support for a couple boards - most drivers are configured into the kernel as of now Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 38811
* sunxi: add new targetLuka Perkov2013-11-051-0/+22
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38651