Commit graph

149 commits

Author SHA1 Message Date
Thomas McKahan
3792d8ee59 [ rockchip default ] fix spidev compatible string 2019-07-19 16:53:35 -04: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
c05db3a9ef [ rockchip default ] adjust ALSA
https://github.com/armbian/build/issues/1367
2019-06-09 00:40:29 -04:00
Thomas McKahan
ceebba63a9 [ rockchip default ] patch adjustment and cleaning 2019-04-20 22:39:36 -04:00
Thomas McKahan
5fa8d688c3 [ rockchip ] clean up default patches, fix board info 2019-03-27 22:57:02 -04:00
Thomas McKahan
ff9a0a3bbe [ rockchip ] re-enable patch for general video parameters 2019-03-27 21:44:33 -04:00
Kirill Zhumarin
591da62568
Return some changes from 01-linux-0001-rockchip
Fixes 1366x768 and others resolutions for HDMI.
2019-03-19 16:48:32 +02: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
dc5c903f23 [ K4.4 upstream patches ] and a small change to CSC board config 2019-02-09 19:31:03 +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
Leonidas P
a4d2b0f870
Fix rockchip-default mali patch 2019-01-31 19:54:49 +02: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
868d7390fc Disabled dma for serial ports in xt-q8l-v10 dev kernel device tree due to changes in kernel 4.19
Removed date and time from xt-q8l-v10 patches for /dev/null source diffs
2018-12-15 10:44:00 +00:00
paolo
a818f64885 Changed minor bits in xt-q8l-v10 device tree patch for dev flavour 2018-12-15 10:43:59 +00:00
Igor Pečovnik
bdfe77447f
Merge pull request #1173 from paolosabatino/xt-q8l-v10
Reworked and enabled usb phy reset patch when waking up for rk3288 devices
2018-12-01 20:31:26 +01:00
Igor Pecovnik
367f04f791 [ K4.4 ] upstream patches 2018-12-01 19:39:21 +01:00
paolo
88467bad9d Modified xt-q8l-v10 device tree patches to properly source from /dev/null
Reworked assert-phy-reset-when-waking-up patch to fit into 4.19 kernel DWC2 USB driver
Adding usbphy reset lines patch for rk3288.dtsi in both rockchip next and dev kernels
Removed same reset lines from xt-q8l-v10 next and dev device trees
2018-11-30 11:16:50 +00: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
Igor Pecovnik
2ceaa6e8bd [bugfix] This commit fixes Bluetooth on Tinkerboard (tested) and most likely on z28Pro. Thanks to @Staars 2018-11-04 13:29:48 +01: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
1c4340b421 [Rockchip and general] Add upstream patch for K4.4, adjust config to cover https://github.com/armbian/build/issues/1133 and add htoprc to support https://github.com/avafinger/htop-2.1.1_enhanced-version with showing CPU temp out of the box. 2018-10-14 11:20:25 +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
Igor Pecovnik
28ac7a3683 Realtek 881xAU patch cleanup and adjustement for 4.19.y 2018-10-10 17:03:21 +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
546c30dd13 Kernel 4.4 upstream patches 2018-09-15 17:33:06 +02:00
Igor Pecovnik
8ea0b98845 Rockchip default, remove deprecated patches 2018-09-13 06:49:27 +02:00
Igor Pecovnik
a0448ac987 Add eMMC support for Nanopi Neo Core on NEXT kernel and upstream patch for Rockchip 2018-09-12 10:39:04 +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
0d50d3b432 Add upstream patches for K4.4 and adjust Odroid XU4 NEXT / DEV kernel configuration 2018-08-30 18:48:06 +02:00
Tony
f4dda6c8c9
rockchip - tinkerboard correct UART for terminal 2018-08-27 00:52:33 -04: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
f64f031e74 rockchip-default Bluetooth fix 2018-08-21 01:40:50 -04:00
Tony
5ae6269521
rockchip-default remove outdated patch
Entire method of reboot changed.
2018-08-21 01:18:55 -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
Thomas McKahan
10b60f3112 RK3288 revert packaging script patch 2018-08-14 00:01:42 -04:00
Igor Pecovnik
6d82a89748 Initial support for RK3399 Firefly and FriendlyARM PC T4
Based on work of David Huang https://github.com/hjc4869 Changed in the transition:
- firefly family was renamed to rk3399, which we actually never started to use. It was made for Odroid N1, which will never be sold
- adjusted compiler toolchain2 parameter
- added standard wireless drivers
- kernel config with the following changes: Docker dependencies, ZRAM, CPUfreq info, ...
- added upstream patches
- made test Ubuntu Bionic desktop and CLI Stretch build, bootlog: http://ix.io/1jVu

TBD: wifi and BT support, mainline kernel, ...
2018-08-11 23:12:58 +02: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
Igor Pečovnik
ba6b764702 Enable concurrent AP/STA mode on Tinkerboard. Testing needed 2018-07-27 14:10:03 +00:00
Igor Pečovnik
94abeef059
Merge pull request #1039 from rabits/fb-_rockchip_gpio_i2c_udev_rules
ASUS Tinkerboard: Added gpio & i2c groups with udev rules to devices
2018-07-09 07:22:10 +02:00
Rabit
1066859065 ASUS Tinkerboard: Added gpio & i2c groups with udev rules to devices 2018-07-08 14:12:15 -07:00
Rabit
96e78c102f ASUS Tinkerboard: Restore justice - author of the gpiomem port
According to:
* e7ebaf5917/rk3288-gpiomem.c (L42-L44)
* https://forum.armbian.com/topic/4792-tinker-board-gpio/?do=findComment&comment=53472
2018-07-08 13:19:07 -07: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
c20367f025 Enable Three-wire UART (H5) protocol support needed for Z28 Pro and upstream patches for Rockchip default 2018-07-02 17:22:30 +00:00