Commit Graph

89 Commits

Author SHA1 Message Date
chwe17
a040785d42 Tinkerboard camera support (#1482)
* fix kernelcrash with config_of_overlay combined with isp1 camera driver,based on:
30a8401c2f

* add basic dtbo infrastucture

* set ov5647 (RPi cam rev 1.3) as default, imx219 (RPi cam V2.1) outputs a blurry green videostream at the moment

* maybe fix powering for camera

* adjust mainline dtbo patch to bsp kernel

* got you! little.. dtbo's are properly built and applied during boot.

* add imx219 overlay to switch between cameras & add ae/awb fix for ov 5647 from asus tinker repo

* patch imx219 up to 96396323fa

* bring back wireguard, otherwise igor gets grumpy :D

* fix camera status
2019-08-04 18:05:50 -04:00
Igor Pecovnik
49983682b4
Enable CONFIG_SQUASHFS_XZ where not enabled. Closes https://github.com/armbian/build/issues/1483
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-07-29 17:58:17 +02:00
Igor Pečovnik
633242e835
Changes to build script and patches adjustment (#1423)
- change console welcome text
- changed display manager to lightdm by default and remove nodm completly
- desktop login manager enabled by default, toogle can be done with armbian-config
- added URL to the build script and commit hash to /etc/armbian-release file
- added debconf-utils,html2text,mmc-utils,sunxi-tools to the base and additional pkg list
- added synaptic package manager and onboard keyboard to the desktop base
- changed motd console welcome text to: Welcome to Debian Stretch with Armbian Linux 5.1.6-sunxi
- added "logout" to the panel/menu
- added normal users to additional groups: disk tty users games
* Adjust tabs and alter displaying build options at the end - hide empty ones
* Fix wrong MOTD message, adjust logic to autologin by default and request login for both notebooks
* Making fs cache naming more intuitive, rename script
* Move additional kernel drivers into separate file. Add AUFS for K5.1 this way, attach wireguard sources to last known working tag. master is broken atm
* Add two more extra wireless drivers 88x2BU, (improved) 8811EU and introduce switch EXTRAWIFI which is enabled by default
* Move 8812AU to the same version we have now. More recent has some performance issues in AP mode. Adjust configuration, add mvebut-dev 5.1.y kernel
* Enable Wireguard also on 3.10.y since it was fixed upstream. Attach bach to master branch since its working now
* Rockchip64 & RK3399 - upstream patches and remove deprecated patches, mvebu64 add DEV kernel attached to 5.1.y
* Enable BT on Tinkerboard CLI images as well
* cubox-i move to 5.1.y and enable missing HDMI
* Bugfixes for adding wireless driver to Kconfig. Adjusted RK3399 kernel due to upstream changes at FriendlyARM - does not boot yet. Changes has to be extract from their commits. Removed patches with RTL8188EU since we add more recent driver with a new precedure. Small fixes mvebu-default, udoo-next, s56818-next, ... remove deprecated patches.
* Boot-able RK3399-default config, add upstream patches for K4.4.y mvebu-default/udoo-next
* Adjust overclocking patch to meet upstream changes
* Odroid XU4 - remove deprecated kernel patches
2019-06-26 07:31:11 +02:00
Igor Pecovnik
626fd3561c [ rockchip default ] upstream patches 2019-06-11 16:42:47 +02:00
Thomas McKahan
6b7db69d17 [ rockchip ] [ meson64 ] add ADS7846 touchscreen support 2019-05-27 01:00:58 -04:00
Igor Pecovnik
75b20f5d7d [ kernels general ] Support PPS via GPIO and Serial as LKM, add to https://github.com/armbian/build/pull/1349 2019-04-16 21:22:50 +02:00
sergey
f44708703c linux kernel add netfilter modules 2019-02-24 23:42:46 +03:00
Leonidas P
f4e6e2ffd9 Upstream patches [K 4.4]
4.4.175 -> 4.4.176
2019-02-23 16:51:14 +02:00
Leonidas P
e08c9a9e46
Upstream patches [K 4.4] (#1291) 2019-02-21 03:36:47 +02:00
Igor Pecovnik
53fcb9852c [ Wireguard fix ] adding a patch for K4.4.y and enabling it back on those previously broken ones 2019-02-07 19:42:31 +01:00
Igor Pecovnik
9758711ed4 [ general ] Attach Realtek 8811, 8812, 8814 and 8821 drivers source, remove our old patches, adjust configs, tested on all combinations 2019-02-07 15:24:06 +01:00
Igor Pecovnik
7468eb23ab [ wireguard ] add to config, move Tinkerboard to stable branch, add upstream patches 2019-01-28 20:47:37 +01:00
Paolo
60b4166a8a Add rk3288 xt-q8l-v10 CSC board (#1158)
This merge request contains various files which add support for xt-q8l-v10 boards (TVBox) equipped with Rockchip RK3288 SoC, AP6330 WiSoC (BCM4330 WiFi + Bluetooth), 2 GB DRAM (LPDDR2 or DDR3), 8 Gb eMMC, Gigabit Ethernet, 3 USB (1 OTG), 1 microSD slot, SPDIF optical output, 1 HDMI.

Kernel patches:

This thouches all three linux-rockchip-* kernelconfigs, just adds brcmfmac and brcmutil modules and remote controller support. default flavor activates rockchip own remote controller driver, next and dev use the mainline GPIO CIR driver (dev has lirc userland support activated too).

About the remote controller, an additional kernel module is added to the existing keymaps which is activated via device tree.

About possibly clashing patches assert-phy-reset-when-waking-up-in-rk3288-platform.patch should be checked against other rk3288 boards because it addresses an errata in rk3288 which causes the USB Host ports to stop responding when exiting from autosleep. On my device if I connect the first USB device when the system is already running, the USB Host gets stuck without this patch. Probably to work correctly on other platforms the device tree should include the proper reset lines of the USB PHYs (for reference, check patch/kernel/rockchip-dev/xt-q8l-v10-add-device-tree.patch starting from line 869).

Patch 1-2-regulator-act8865-add-restart-handler-for-act8846.patch adds a restart handler which allows reboot using SIPC bit on act8846 power regulator. Possibly MiQi board is affected (is reboot working there?), others (tinkerboard) should not care.

Patch brcmfmac-add-ap6330-firmware.patch adds firmware file names for ap6330 , should be harmless in other cases.

Patch 0010-GPU-Mali-Midgard-remove-rcu_read_lock-references.patch is from Miouyouyou. It should be harmless, it was suggested by him to do some tests with devfreq

Other patches just add the proper device trees, Kconfig and bits for supporting the board as a regular kernel supported board and should not interfere with anything else

U-Boot patches:

All the patches for u-boot are per-board, so nothing is added which may interfere with other existing boards here. They include the device tree and u-boot config and also a couple of patches to support the silergy power regulators driving current to CPU and GPU

* Initial commit to provide kernel and u-boot configuration and device trees for xt-q8-v10 as patches
Modification to rockchip config to add initialization bits for xt-q8-v10

* Committing correct path for rk3288_ddr_400Mhz... rockchip blob, moved assembling into another section to produce
immediately an u-boot working binary

* Enabled broadcom fmac driver in rockchip-next config

* Changed name definition of rk3288-xt-q8-v10 board to "TVBox"
Added bits to include support AP6330 and binary firmwares into the final image

* Fixed device tree file name in related patch, added patching of Makefile to produce the device tree binary accordingly

* Fixed xt-q8-v10 device tree patch
Added brcmfmac driver to rockchip dev and default kernel configs

* Syncing with upstream

* Splitted add-xt-q8... kernel patches into two separate patches

* Fixed bad extension while adding dtb in makefile for rockchip-default configuration
Updated device tree patches for all rockchip confs

* Enable mmc0 and usb in u-boot config
Fixed again makefile patch for kernel next

* Adding patches to reset the USB phy when kernel requires a reset, fixes autosuspend issue

* Changed xt-q8-v10 to proper xt-q8l-v10 in every string and every filename
Added power hold to u-boot, so now the device will boot and stay turned on without the need for the OTG cable anymore

* Changed names from 'Q8' to proper 'XT-Q8L-V10' in device tree patch files

* Legacy kernel device tree:
Fixed bluetooth gpio pin clashing
Fixed HDMI gpio pin clashing
Added support for PWM-based IR-Receiver, added driver in kernel default config too
Various other fixes to avoid some complaints from the kernel

* Added booting bluetooth systemd service for AP6330 (xt-q8l-v10) that loads patchram and invokes hciattach
Minor fixes to -next and -dev device trees for xt-q8l-v10

* Disabled OTG USB port in u-boot due to long timeout during initialization
Fixed warning during u-boot dts compilation
Added emmc as second boot device in dts

* Adding myself to licensing

* Committing modifications to device trees

* Fixed dmac_bus_s explicitly set to unused dmac, restored right dmac in xt-q8l-v10 dts only
Change PLL_CPLL frequency in device tree to 408 Mhz to avoid fractional divisor warnings

* Added proper xt-q8l-v10_rk3288 configuration to u-boot, now appearing in config menu and
correctly selectable as a real target
Fixed typo in device tree from rockchip

* Fixed missing semicolon in device tree for default configuration
Fixed patch files for u-boot appending themselves to files on each compilation

* Added bits to enable power to USB ports in u-boot, thus enabling booting from USB devices (only USB host port for now)

* Changed u-boot binary creation using the rockchip SPL properly

* Added boot order for xt-q8l-v10: sdcard, usb0, eMMC, network

* Added bionic:next in beta config for xt-q8l-v10 board

* Changed some minor bits in xt-q8l-v10 device tree files, added missing bits to dev flavour
Added patches to introduce fairchild fan53555/silergy82x regulators to u-boot and enabled in xt-q8l-v10 device tree

* Updated u-boot to version v2018.03 for xt-q8l-v10. Other rk3288 boards will gain v2018.05 from main armbian fork
Removed pre-reloc labels in u-boot device tree because they are not necessary since we don't use u-boot SPL for xt-q8l-v10
Removed vmmc-supply and vqmmc-supply in u-boot device tree to avoid hang on boot

* Tidied up a bit device trees, in particular some modifications are made to power regulator properties comparing them against the original q8l device tree
Removed unnecessary dummy regulator, removed unnecessary capacities to embedded eMMC
Disabled unused USB host
Removed vmmc-supply and vqmmc-supply from emmc section because it causes hang in u-boot v2018.03 and newer

* Restored previous regulator in u-boot dts
removed assert phy reset USB patch from rockchip-dev because of some upstream incompatible changes

* Added patch to enable IRQ for Midgard drivers which caused massive slowdown on dev kernel
Changed u-boot if-code for xt-q8l-v10 in rockchip.conf
Removed references to rk3288-linux.dtsi in xt-q8l-v10 device tree for default kernel

* Committing effective removal of USB reset assert for dev kernel
Committing changes to u-boot device tree

* Added patch to disable USB power down for rockchip devices broken on latest kernel

* Removed usb dwc2 patch to reinject it from specific branch

* Reverting some voltage changes for xt-q8l-v10 device in rockchip-dev

* Reverting some voltage changes for xt-q8l-v10 in u-boot section

* Added patch to make USB ports working again on rockchip devices with mainline
kernel >= 4.18

* Changed the 0 into false

* Moved xt-q8l-v10 u-boot patches into board_xt-q8l-v10 directory

* Changed some minor things in rockchip-dev dts for xt-q8l-v10, added mali midgard driver to dev kernel config

* Added devfreq support for Mali in rockchip-next flavour

* Remove manually applied patch (0007-drivers-drm...) because it has been
added to armbian main repo

* Removed duplicate patch which has added to main armbian repository

* Tidied up regulators for default/next/dev rockchip flavours for xt-q8l-v10, disabling those regulators which are not tied to anything
Enabled voltage regulator to make SPDIF connector work (thus not tested because I have no DAC)
Changed rockchip-dev and rockchip-next config files to enable gpio-ir-receiver module to enable bundled remote IR controller, including kernel patch for keymap

* Enabled back regulator REG7 to allow propert bluetooth functionaly

* Minor changes to u-boot device tree for xt-q8l-v10
Added patch to set act8846 SIPC to correctly reboot the device (thus require some power-hold at reboot to make reboot fully working)

* Fixed u-boot device tree

* Added configuration bits to support TPL in u-boot for xt-q8l-v10 (TPL is thrown away though) to allow faster reboot times and achieve a working reset feature activating power hold gpio pin as soon as possible. gpio pin is hardwired into spl_board_init() u-boot code because it is not possible to let it work via device tree
Fixed OTG USB port in u-boot, allowing devices detection and booting
Added proper vbus-supply properties for USB controllers in u-boot dts, so u-boot activates USB vbus itself

* Fixed dts makefile patching for next and dev rockchip kernel

* Fixed fdt_file renamed to fdtfile in armbianEnv.txt

* Changed xt-q8l-v10 board config as per recomendations

* Moved xt-q8l-v10 configuration to CSC
Restored linux-rockchip-* configurations, enabled brcmfmac driver, GPIO remote controller driver and lirc kernel compatibility interface
Polished a bit rockchip.conf

* Add patch to brcmfmac driver to search for ap6330 firmware
Removed copy-work from rockchip.conf about ap6330 firmware for xt-q8l-v10 and tidied up
Avoid using brcm_patchram_plus in ap6330-bluetooth-service putting proper firmware file in /etc/firmware for hciattach do firmware uploading itself

* Fixed bcm4330 bluetooth firmware linking for hciattach used by ap6330-bluetooth.service

* Removed foreign test patches from xt-q8l-v10 u-boot directory
2018-11-22 07:04:19 +01:00
ThomasKaiser
7334104818 Use CONFIG_HZ=250 where applicable
Closes #1142
2018-10-27 10:38:35 +02:00
Igor Pecovnik
ca99f8d0b7 [Rockchip/Rockchip64] Adjusting sources tags with most recent ones and tested on Rock64. Upstream patches for Rockchip, tested on Tinkerboard. Regeression: CONFIG_BT_HCIUART_3WIRE is gone from BSP Rockchip sources and we lost BT on Tinkerboard :( For the record: last know working BT is on 5.60 / 4.4.157 2018-10-24 11:59:03 +02:00
Igor Pecovnik
9dbc69e0ed [Tinkerboard/MiQi] Fix eMMC boot problem on MiQi by reverting back to old u-boot, fix console that both are present, HDMI and serial, adjust boot script that we don't need hardcode DTB. U-boot variable is set to RK3288-tinker so adding symlink to RK3288-miniarm which represent the board in a legacy kernel. Added upstream patch, tested on MiQi and Tinkerboard S, default and dev, upgrades still need to be tested ... 2018-10-12 14:10:42 +02:00
Thomas McKahan
4a53253536 rockchip-default config update 2018-10-03 00:12:57 -04:00
Igor Pečovnik
881ceb2ffb
enable canbus 2018-10-01 21:51:41 +02:00
Igor Pecovnik
ef6847e647 Small bugfix regarding removing old swap files, K4.4 upstream patches, bump with a version 2018-09-30 15:22:44 +02:00
Igor Pecovnik
7a831f2a70 Bump with version and K4.4 upstream patches 2018-09-26 11:55:44 +02:00
Igor Pecovnik
8ea0b98845 Rockchip default, remove deprecated patches 2018-09-13 06:49:27 +02:00
Igor Pecovnik
93ae28f78d Rockchip/Tinkerboard default patches fixes. It compiles now but haven't check in details wheather disabled are still needed. 2018-09-08 08:16:45 +02:00
Igor Pecovnik
83a534f732 Kernel configs adjustements, adding what is added automatically + ath9k drivers https://github.com/armbian/build/issues/1095 2018-09-05 10:14:31 +02:00
ThomasKaiser
dc9ad0e1e5 Consolidate CEPH and CIFS settings 2018-09-04 22:04:13 +02:00
Igor Pecovnik
18a68ec9b2 Add and fix kernel 4.4 upstream patches 2018-08-24 17:33:24 +02:00
Igor Pecovnik
c542b8fee0 Hostapd bump version to override Bionic stock build, Tinkerboard upstream patches 2018-08-23 18:54:54 +02:00
Thomas McKahan
03da085d95 tinker board re-enable RPi touchscreen
- only known bug so far:  Somehow the entire screen has been rotated 180 degrees, making the touch screen not align with the graphics (can rotate in settings)
	- probably an easy fix, but finished for tonight.
2018-08-22 02:02:19 -04:00
Thomas McKahan
96135c6065 Rockchip-default update patches
-- Thanks again to @ntemis for bringing these together and letting me know about it

- Tinker reboot now seemingly solved by a proper method, should no longer require OF workarounds
- various fixes from various sources, see patches for complete information.
- boots, still needs debugging of BT/touchscreen/sound
- some patch warnings exist, again WIP update for those willing to take a look. (@chwe17 perhaps?)
2018-08-21 00:17:16 -04:00
Thomas McKahan
04795aef26 rockchip default u-boot bump small config update
- Tinker Board now boots to console without issue
- MiQi locks at "loading environment from EXT4..." (uncertain if a new issue)

Thanks to @Ntemis
2018-08-20 01:35:20 -04:00
Thomas McKahan
89672da39d RK3288 default bootable at last
Missing:

 - touchscreen
 - framebuffer console
2018-08-16 01:24:30 -04:00
Igor Pecovnik
de41d3dbce Rockchip default cleanup. (Temporally) moving back to Rockchip upstream. This source builds but doesn't boot ... 2018-08-10 10:33:42 +02:00
ThomasKaiser
37b167429c Consolidate cpufreq driver/statistics 2018-08-01 11:59:45 +02:00
ThomasKaiser
0a54d03ed8 Consolidate timer frequency settings accross all kernels
...skipping default 3.x kernels
2018-07-16 16:41:45 +02:00
Igor Pečovnik
fab979feea Move rockchip-default (tinkerboard & miqi) to self-hosted source). Original patches are left under subdir rockchip-branch and source defintions commented out. To make it back in a simple manner, when it will become more stable. 2018-07-08 12:06:01 +00:00
Igor Pečovnik
cf40fda60a Add OMV 4 module dependencies and a workaround for ram2log that OMV can make use ZRAM powered ramlog. It is also helpful in case of sudden crash. Nginx can't start without log places into its subdir. We create them on start. 2018-07-04 14:19:50 +00:00
Sergey Zinchenko
0f1ddb7d68 (default kernel) Iotop requires this module to be set 2018-07-04 13:29:57 +03:00
Sergey Zinchenko
f47fbff0ef (default kernel) CONFIG_NETFILTER_XT_TARGET_CT is required for iptables CT target 2018-07-04 13:29:57 +03:00
Tony
fafd26db7e
Rockchip default merge (#1026)
* Initial commit, cleanup of Rockchip default

* clean up patches:
- 100_DTS_Tinker_opp_LED was splitted into 3 patches
	- 100_DTS_opp for opp (adjusted to RKs 3 point description of opp Voltage)
	- 110_DTS_8723bs for the wifi driver
		-rename of 270-dts-tinker-bluetooth.patch -> 111_DTS_disable_AP6212_bluetooth.patch to keep wifi-chip stuff together
	- 120_DTS_led1_heartbeat
- 190_dts_tinker_s_emmc was reworked and splitted
	- gpiomem node was removed and has its own patch (260_DTS_gpiomem_node)
	- i2c1 node was removed and has its own patch 270_DTS_activate_i2c1
	- spi2 part was removed (defined in rk3288.dtsi), default CS will now be CS0 not 1 (no reason to change this)
	- vdd_log regulator is removed (the counterpart is missing anyway, and actually disabled in ASUS and Rockchips branch) --> own patch in case it gets activated
- 120_workaround_tinker_board_reboot -> 130_workaround_tinker_board_reboot to get some free numbers... ;)

* Renamed 190_DTS_tinker_s_emmc and splitted into DTS-Part and driver part (191_driver_mmc_adjustment)

* Boots, Still no hdmi console

* Rockchip Kernel config updates

Thanks to @Ntemis for the config options, they fixed the framebuffer

Still have runtime GPU errors related to power model
2018-06-28 22:11:59 -04:00
Igor Pecovnik
3e3efab8b9 Rockchip default patches update 2018-06-12 08:47:09 +02:00
Igor Pecovnik
332ce2fa9d Rockchip / Tinkerboard. Upstream changes broke lcd, disabling broken patches, added upstream patches 2018-06-02 08:05:07 +02:00
Igor Pecovnik
f3fcea2358 Stretch bugfix and Tinkerboard upstream patch 2018-05-29 16:50:30 +00:00
zador-blood-stained
ed4f633402 Enable all HID modules for rockchip-default
Closes #976
2018-05-28 16:42:49 +03:00
Igor Pecovnik
7d2f3af08f Merging Rockchip family 2018-05-24 15:44:15 +02:00
Tony
2a1d686d41
Update Rockchip default conifg 2018-04-13 01:15:11 -04:00
tonymac32
48946ddcfa Rockchip default remove deprecated patches
Upstream includes UART4 pin definition fix and maintenance patches
2018-04-13 00:49:08 -04:00
Tony
71d911ef97
Rockchip default fix Mali devfreq 2018-03-19 23:19:18 -04:00
Igor Pecovnik
d40ee81f9d Disable excessive debugging on Tinkerboard WiFi, added RTL8188EU driver, upstream patches and kernel config updates 2018-03-01 12:04:00 +01:00
tonymac32
f88fabbe0d Update Rockchip default config 2018-02-24 16:49:26 -05:00
tonymac32
bcc77d314a rockchip default config update 2018-02-07 22:15:42 -05:00
tonymac32
6e8da746c9 Merge branch 'master' of git://github.com/armbian/build 2018-02-05 22:52:11 -05:00