Closed flomo29 closed 7 years ago
I will look into this later (not at my desk now), do you have console output from the UART2 you could share?
4.11 to 12 changed the postinstall scripts enough to reject the patch. I've tested it,
https://github.com/armbian/build/commit/7e07d7b194e8c0eb84347c68ed186252e475c245
Try to build now, if successful on your side we can close this.
@Tonymac32, I've said this already on the forums, but I'll say it again here, thanks for getting Armbian working on the Tinkerboard.
Here's the log from the build process
Displaying message: Command line: setting RELEASE to stretch info
Displaying message: Preparing host info
Displaying message: Build host OS release xenial info
Displaying message: Syncing clock host info
## BUILD SCRIPT ENVIRONMENT
Version: 4f08c97d745892b6d664b96f8a4f84f48ee1f53f
## BUILD CONFIGURATION
Build target:
Board: tinkerboard
Branch: next
Desktop: no
Kernel configuration:
Repository: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Branch: branch:linux-4.12.y
Config file: linux-rockchip-next
U-boot configuration:
Repository: git://git.denx.de/u-boot.git
Branch: branch:master
Config file: tinker-rk3288_defconfig
Partitioning configuration:
Root partition type: ext4
Boot partition type: (none)
User provided boot partition size: 0
Offset: 1
CPU configuration:
600000 - 1900000 with conservative
Displaying message: Downloading sources info
Displaying message: Checking git sources u-boot master info
Displaying message: Creating local copy
Displaying message: Fetching updates
Displaying message: Checking out
Displaying message: Checking git sources linux-mainline linux-4.12.y info
Displaying message: Fetching updates
Displaying message: Checking out
Displaying message: Checking git sources sunxi-tools master info
Displaying message: Up to date
Displaying message: Checking git sources armbian-config dev info
Displaying message: Fetching updates
Displaying message: Checking out
Displaying message: Checking git sources rkbin-tools master info
Displaying message: Up to date
Displaying message: Cleaning output/debs for tinkerboard next info
Displaying message: Cleaning u-boot/master info
Displaying message: Compiling u-boot 2017.09-rc2 info
Displaying message: Compiler version arm-linux-gnueabihf-gcc 6.3.1 info
Displaying message: Checking out sources
Displaying message: Cleaning u-boot/master info
Displaying message: Started patching process for u-boot rockchip-tinkerboard-next info
Displaying message: Looking for user patches in userpatches/u-boot/u-boot-rockchip info
Displaying message: Building deb linux-u-boot-next-tinkerboard_5.32_armhf.deb info
Displaying message: Cleaning linux-mainline/linux-4.12.y info
Displaying message: Patching kernel for compiler support
Reversed (or previously applied) patch detected! Assuming -R.
Displaying message: Started patching process for kernel rockchip-next info
Displaying message: Looking for user patches in userpatches/kernel/rockchip-next info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0000-mali-r16p0-00rel0.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0001-ARM-dts-rockchip-fix-the-regulator-s-voltage-range-o.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0001-Readaptation-of-Rockchip-DRM-patches-provided-by-ARM.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0002-Integrate-the-Mali-GPU-address-to-the-rk3288-and-rk3.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0003-ARM-dts-rockchip-add-the-MiQi-board-s-fan-definition.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0003-Post-Mali-Kernel-device-drivers-modifications.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0004-ARM-dts-rockchip-add-support-for-1800-MHz-operation-.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0005-ARM-dts-rockchip-miqi-throttle-only-at-92-degrees.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0005-Post-Mali-UMP-integration.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0006-clk-rockchip-add-all-known-operating-points-to-the-a.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0007-ARM-dts-rockchip-miqi-add-turbo-mode-operating-point.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0012-arm-dts-Adding-and-enabling-VPU-services-addresses-f.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 0013-Export-rockchip_pmu_set_idle_request-for-out-of-tree.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 2001-Midgard-daptation-to-Linux-4.10.0-rcX-signatures.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 2002-UMP-Adapt-get_user_pages-calls.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 2003-Renamed-Kernel-DMA-Fence-structures-and-functions.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 2004-Few-modifications-after-v4.11-headers-and-signatures.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 2005-Using-the-new-header-on-4.12-kernels-for-copy_-_user.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 9000-Add-Tinkerboard-DTS.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 9001ARM-dts-rockchip-add-missing-grf-phandle-for-rk3288.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 9002_dts_rk3288_updates.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 9101-First-Mali-integration-test-for-ASUS-Tinkerboards.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 9200_DTS_tinkerboard_wifi.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 9210_DTS_update.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] 9300_Tinker_Reboot_Hacks.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] bash_to_afterinstall.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] increasing_DMA_block_memory_allocation_to_2048.patch succeeded info
Displaying message: ... [\e[32ml\e[0m][\e[32mc\e[0m] packaging-4.x-NEXT-with-postinstall-scripts.patch succeeded info
Displaying message: ... [\e[33mu\e[0m][\e[32mc\e[0m] xboxtuner-1.patch succeeded info
Displaying message: ... [\e[33mu\e[0m][\e[32mc\e[0m] xboxtuner-2.patch succeeded info
Displaying message: ... [\e[33mu\e[0m][\e[32mc\e[0m] xboxtuner-3.patch succeeded info
Displaying message: ... [\e[33mu\e[0m][\e[32mc\e[0m] xboxtuner-4.patch succeeded info
Displaying message: Compressing sources for the linux-source package
Displaying message: Compiling next kernel 4.12.9 info
Displaying message: Compiler version arm-linux-gnueabihf-gcc 5.4.0 info
Displaying message: Using kernel config file lib/config/kernel/linux-rockchip-next.config info
Displaying message: Creating packages
Displaying message: Creating board support package tinkerboard next info
Displaying message: Fingerprinting
Displaying message: Building package linux-stretch-root-next-tinkerboard info
Displaying message: Starting rootfs and image building process for tinkerboard stretch info
Displaying message: Extracting stretch-ng-armhf.3bb...1dc.tar.lz4 4 days old info
Displaying message: Applying distribution specific tweaks for stretch info
Displaying message: Applying common tweaks info
Displaying message: Installing kernel linux-image-next-rockchip info
Displaying message: Installing u-boot linux-u-boot-next-tinkerboard info
Displaying message: Installing generic firmware armbian-firmware info
Displaying message: Installing DTB linux-dtb-next-rockchip info
Displaying message: Installing board support package tinkerboard info
Displaying message: Installing extra applications and drivers info
Displaying message: Installing linux firmware 5.32 info
Displaying message: Installing armbian-tools-stretch_5.32_armhf.deb info
Displaying message: Installing additional packages EXTERNAL_NEW
Displaying message: Calling image customization script customize-image.sh info
Displaying message: Preparing image file for rootfs tinkerboard stretch info
Displaying message: Current rootfs size 718 MiB info
Displaying message: Creating blank image for rootfs 1136 MiB info
Displaying message: Creating partitions root: ext4 info
Displaying message: Creating rootfs ext4
Displaying message: Copying files to root directory
Displaying message: Copying files to /boot directory
Displaying message: Free space: SD card info
Displaying message: Writing U-boot bootloader /dev/loop5 info
Displaying message: Done building /media/mark/c8f825a8-c3a9-4e7b-a9fa-4cfb2b6d432b/Stuff/Documents/Development/armbian/output/images/Armbian_5.32_Tinkerboard_Debian_stretch_next_4.12.9.img info
Displaying message: Runtime 21 min info
It appears to be running OK, however I'm getting a load of messages in dmesg about the wifi. You can see the full armbian log here http://sprunge.us/OTSL
Having just checked the cpu usage while writing this message, the CPU currently appears to be under load from NetworkManager O.O
Tasks: 131 total, 1 running, 130 sleeping, 0 stopped, 0 zombie
%Cpu(s): 9.6 us, 4.7 sy, 0.0 ni, 83.8 id, 1.7 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem : 2055380 total, 1883912 free, 50572 used, 120896 buff/cache
KiB Swap: 131068 total, 131068 free, 0 used. 1907876 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
702 root 20 0 87312 13072 10784 S 73.7 0.6 6:28.08 NetworkManager
2699 root 20 0 7212 2812 2284 R 21.1 0.1 0:00.09 top
687 message+ 20 0 5320 2748 2352 S 15.8 0.1 1:16.78 dbus-daemon
918 root 20 0 7892 4868 4368 S 10.5 0.2 1:04.96 wpa_supplicant
913 root 20 0 0 0 0 S 5.3 0.0 0:27.94 RTW_CMD_THREAD
1 root 20 0 25444 4964 3808 S 0.0 0.2 0:04.02 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
6 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 mm_percpu_wq
7 root 20 0 0 0 0 S 0.0 0.0 0:01.51 ksoftirqd/0
8 root 20 0 0 0 0 S 0.0 0.0 0:02.55 rcu_preempt
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_sched
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
11 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
12 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
15 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
16 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
17 root 20 0 0 0 0 S 0.0 0.0 0:00.25 ksoftirqd/1
19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H
20 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
21 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/2
22 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/2
23 root 20 0 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/2
25 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/2:0H
26 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/3
27 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/3
28 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/3
29 root 20 0 0 0 0 S 0.0 0.0 0:00.19 ksoftirqd/3
31 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/3:0H
32 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kdevtmpfs
33 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
35 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
36 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
37 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback
38 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto
39 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd
40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
41 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd
42 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 devfreq_wq
43 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 cfg80211
44 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 rpciod
45 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 xprtiod
46 root 20 0 0 0 0 S 0.0 0.0 0:00.66 kworker/2:1
47 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
48 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
49 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ecryptfs-kthrea
For the sake of it, here's armbianmonitor -m.
Time CPU load %cpu %sys %usr %nice %io %irq CPU
19:30:58: 600MHz 1.21 16% 4% 9% 0% 1% 0% 33.2°C
19:31:03: 600MHz 1.27 16% 4% 9% 0% 1% 0% 32.7°C
19:31:08: 600MHz 1.25 16% 4% 9% 0% 1% 0% 32.7°C
19:31:13: 600MHz 1.29 16% 4% 9% 0% 1% 0% 33.2°C
19:31:18: 600MHz 1.34 16% 4% 9% 0% 1% 0% 33.2°C
19:31:23: 600MHz 1.24 16% 4% 9% 0% 1% 0% 33.6°C^C
If you want me to Test anything let me know, I'm more than happy to test anything if required as I won't be using this board fully until it's fully stable under armbian :).
EDIT:
I've just halted the board, which it has, but the fan and 3G dongle I've connected to it are still active, haha, interesting, any ideas?
The 5V on the board never shuts down, so that will always be the case. The processor and derived voltages shut down, but not the main 5V.
For the wifi, does it still do that on reboot? It looks like your hardware is not powering up. I'll check my build from last night, but I did not notice anything out of the ordinary. Can you see what Tinker OS does on your particular board?
Spoke too soon, I see it entering/leaving powersave in the log. Did you set a script of some kind that needs the interface? I haven't done a console-only build, I'll have to do that to see if the management is buggy. If I confirm I'd say open a different issue, we can close this one if the build error is fixed, waiting for confirmation from @flomo29
@Tonymac32 The only thing I added was the xbox tuner patches as shown in the log, nothing else. :) will open another issue with the armbian log link attached.
Yeah I shouldn't have hijacked his issue, my apologies!
No worries, it at least showed the build system appears to be working as far as build --> boot goes.
I've built 5 images since the patch, and @mpmc has built a few as well, I am closing this.
Hi. Before building the kernel for "board: tinkerboard, branch: next, distr.: xenial" and everything else are left on default, there was a failure applying the "packaging-4.x-NEXT-with-postinstall-scripts.patch". But building the armbian image run successfully.
When i boot the tinkerboard, the boot process stuck in the middle, before activation of the ethernet part. I thing it could be an error in this file, because of the large "dtb"-part.