tkaiser Posted January 17, 2016 Posted January 17, 2016 Hi, I thought about the situation with the yet announced Orange Pi One (H3 based, $10, Fast Ethernet) that should start shipping on Jan 25th. The PCB is smaller, it features less USB ports than the Orange Pi PC and has a different voltage regulator switching between 1.1V and 1.3V (adjusted through GPIO): http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=895&page=4#lastpost Igor already prepared a test image for Orange Pi Plus based on kernel 4.4.0-rc5 last year (which I used to setup a NAS with an Orange Pi PC in the meantime ) and I would believe mainline kernel support for these H3 devices will improve pretty fast in 2016. It seems loboris disappeared from orangepi.org forums so chances are great that the new board comes without useable OS images. So I thought about (but won't do it due to lack of spare time) supporting all H3 based Orange Pi even with the old lichee 3.4 kernel: Orange Pi PC, Orange Pi Plus, Orange Pi 2, Orange Pi One and Orange Pi Lite since there are just a few things to adjust to differentiate between the many boards. We could use mainline u-boot (2 boards already supported), rely on ssvb's kernel fork and apply the usual set of patches necessary (to get GMAC working on the Plus, 1-Wire and so on): http://irclog.whitequark.org/linux-sunxi/2016-01-13#15179910; Creating the missing fex files shouldn't be that hard (relying also on ssvb's fex for the Orange Pi PC. And all that's needed to support the 2 new boards properly is the code to adjust Vcore voltage through GPIO instead of I2C. The aforementioned stuff is just a wild guess collecting some already available information sources. I won't spend time on this but maybe someone else wants to play with it? Since there's also some progress regarding HW acceleration for H3 (both video and Mali400) maybe someone experienced in this area will take over?
Igor Posted January 28, 2016 Posted January 28, 2016 https://github.com/igorpecovnik/lib/commit/4c7a6b15e34a4f792ab7fd09898cadd332e4dd40 I added legacy, next and dev H3 building ... image is not booting but kernel building works. It's prepared but untested ... 4.5 might work with 2016.01 1
Igor Posted January 31, 2016 Posted January 31, 2016 Legacy kernel is booting but it fails to recognize boot arguments ... what am I missing? I am using this board: http://linux-sunxi.org/Xunlong_Orange_Pi_Plus Using machid 0x1029 from environmentStarting kernel ...[sun8i_fixup]: From boot, get meminfo:Start: 0x40000000Size: 1024MBion_carveout reserve: 160m@0 256m@0 130m@1 200m@1ion_reserve_common: ion reserve: [0x70000000, 0x80000000]![ 0.000000] Booting Linux on physical CPU 0[ 0.000000] Initializing cgroup subsys cpuset[ 0.000000] Initializing cgroup subsys cpu[ 0.000000] Linux version 3.4.39-sun8i (root@kitchen) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #6 SMP PREEMPT Sun Jan 31 12:16:00 CET 2016[ 0.000000] Ignoring tag cmdline (using the default kernel command line)[ 0.000000] bootconsole [earlycon0] enabled[ 0.000000] cma: CMA: reserved 256 MiB at 70000000[ 0.000000] Memory policy: ECC disabled, Data cache writealloc[ 0.000000] On node 0 totalpages: 262144[ 0.000000] free_area_init_node: node 0, pgdat c0a4c8c0, node_mem_map c0b2c000[ 0.000000] Normal zone: 1710 pages used for memmap[ 0.000000] Normal zone: 0 pages reserved[ 0.000000] Normal zone: 192850 pages, LIFO batch:31[ 0.000000] HighMem zone: 594 pages used for memmap[ 0.000000] HighMem zone: 66990 pages, LIFO batch:15[ 0.000000] script_init enter![ 0.000000] script_init exit![ 0.000000] PERCPU: Embedded 8 pages/cpu @c1443000 s11840 r8192 d12736 u32768[ 0.000000] pcpu-alloc: s11840 r8192 d12736 u32768 alloc=8*4096[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259840[ 0.000000] Kernel command line: earlyprintk=ttyS0,115200 root=/dev/mmcblk0p1 loglevel=8 initcall_debug=0 console=ttyS0,115200 console=tty0 init=/init[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)[ 0.000000] allocated 2097152 bytes of page_cgroup[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups[ 0.000000] Memory: 1024MB = 1024MB total[ 0.000000] Memory: 762456k/762456k available, 286120k reserved, 8192K highmem[ 0.000000] Virtual kernel memory layout:[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)[ 0.000000] .text : 0xc0008000 - 0xc0980c28 (9700 kB)[ 0.000000] .init : 0xc0981000 - 0xc09d0e40 ( 320 kB)[ 0.000000] .data : 0xc09d2000 - 0xc0a516f8 ( 510 kB)[ 0.000000] .bss : 0xc0a51eac - 0xc0b2ba48 ( 871 kB)[ 0.000000] Preemptible hierarchical RCU implementation.[ 0.000000] Additional per-CPU info printed with stalls.[ 0.000000] NR_IRQS:544[ 0.000000] Architected local timer running at 24.00MHz.[ 0.000000] Switching to timer-based delay loop[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms[ 0.000000] Console: colour dummy device 80x30[ 0.000000] console [tty0] enabled, bootconsole disabled[ 0.000000] Booting Linux on physical CPU 0[ 0.000000] Initializing cgroup subsys cpuset[ 0.000000] Initializing cgroup subsys cpu[ 0.000000] Linux version 3.4.39-sun8i (root@kitchen) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #6 SMP PREEMPT Sun Jan 31 12:16:00 CET 2016[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache[ 0.000000] Machine: sun8i[ 0.000000] Ignoring tag cmdline (using the default kernel command line)[ 0.000000] bootconsole [earlycon0] enabled[ 0.000000] cma: CMA: reserved 256 MiB at 70000000[ 0.000000] Memory policy: ECC disabled, Data cache writealloc[ 0.000000] On node 0 totalpages: 262144[ 0.000000] free_area_init_node: node 0, pgdat c0a4c8c0, node_mem_map c0b2c000[ 0.000000] Normal zone: 1710 pages used for memmap[ 0.000000] Normal zone: 0 pages reserved[ 0.000000] Normal zone: 192850 pages, LIFO batch:31[ 0.000000] HighMem zone: 594 pages used for memmap[ 0.000000] HighMem zone: 66990 pages, LIFO batch:15[ 0.000000] script_init enter![ 0.000000] script_init exit![ 0.000000] PERCPU: Embedded 8 pages/cpu @c1443000 s11840 r8192 d12736 u32768[ 0.000000] pcpu-alloc: s11840 r8192 d12736 u32768 alloc=8*4096[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259840[ 0.000000] Kernel command line: earlyprintk=ttyS0,115200 root=/dev/mmcblk0p1 loglevel=8 initcall_debug=0 console=ttyS0,115200 console=tty0 init=/init[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)[ 0.000000] allocated 2097152 bytes of page_cgroup[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups[ 0.000000] Memory: 1024MB = 1024MB total[ 0.000000] Memory: 762456k/762456k available, 286120k reserved, 8192K highmem[ 0.000000] Virtual kernel memory layout:[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)[ 0.000000] .text : 0xc0008000 - 0xc0980c28 (9700 kB)[ 0.000000] .init : 0xc0981000 - 0xc09d0e40 ( 320 kB)[ 0.000000] .data : 0xc09d2000 - 0xc0a516f8 ( 510 kB)[ 0.000000] .bss : 0xc0a51eac - 0xc0b2ba48 ( 871 kB)[ 0.000000] Preemptible hierarchical RCU implementation.[ 0.000000] Additional per-CPU info printed with stalls.[ 0.000000] NR_IRQS:544[ 0.000000] Architected local timer running at 24.00MHz.[ 0.000000] Switching to timer-based delay loop[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms[ 0.000000] Console: colour dummy device 80x30[ 0.000000] console [tty0] enabled, bootconsole disabled[ 0.019922] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)[ 0.019987] pid_max: default: 32768 minimum: 301[ 0.020312] Mount-cache hash table entries: 512[ 0.021349] Initializing cgroup subsys cpuacct[ 0.021384] Initializing cgroup subsys memory[ 0.021448] Initializing cgroup subsys devices[ 0.021477] Initializing cgroup subsys freezer[ 0.021505] Initializing cgroup subsys blkio[ 0.021545] Initializing cgroup subsys perf_event[ 0.021619] CPU: Testing write buffer coherency: ok[ 0.021681] ftrace: allocating 26526 entries in 78 pages[ 0.050290] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000[ 0.050330] [sunxi_smp_prepare_cpus] enter[ 0.050376] Setting up static identity map for 0x406d5a70 - 0x406d5ac8[ 0.051334] CPU1: Booted secondary processor[ 0.051334] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001[ 0.051465] CPU2: Booted secondary processor[ 0.051465] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002[ 0.051465] CPU3: Booted secondary processor[ 0.051465] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003[ 0.060196] Brought up 4 CPUs[ 0.060292] SMP: Total of 4 processors activated (19200.00 BogoMIPS).[ 0.061025] devtmpfs: initialized[ 0.063905] wakeup src cnt is : 1.[ 0.063927] [exstandby]leave extended_standby_enable_wakeup_src : event 0x800000[ 0.063956] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_map 0x0[ 0.063990] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_group 0x40[ 0.064024] sunxi pm init[ 0.064169] pinctrl core: initialized pinctrl subsystem[ 0.077331] NET: Registered protocol family 16[ 0.078084] DMA: preallocated 2048 KiB pool for atomic coherent allocations[ 0.078084] script_sysfs_init success[ 0.078084] sunxi_dump_init success[ 0.078084] gpiochip_add: registered GPIOs 0 to 383 on device: sunxi-pinctrl[ 0.078084] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver[ 0.078084] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.[ 0.078084] hw-breakpoint: maximum watchpoint size is 8 bytes.[ 0.078084] script config pll_video to 297 Mhz[ 0.078084] script config pll_de to 864 Mhz[ 0.078084] script config pll_ve to 402 Mhz[ 0.078084] sunxi_default_clk_init[ 0.078084] try to set pll6ahb1 to 200000000[ 0.078084] try to set ahb clk source to pll6ahb1[ 0.078084] set ahb clk source to pll6ahb1[ 0.078084] try to set ahb1 to 200000000[ 0.078084] try to set apb1 to 100000000[ 0.078084] ===fe3o4==== sunxi_root_procfs_attach ret:0[ 0.090251] bio: create slab at 0[ 0.090424] [ARISC] :sunxi-arisc driver v1.04[ 0.100548] [ARISC] :arisc version: [v0.1.34][ 0.182705] [ARISC] :sunxi-arisc driver v1.04 startup succeeded[ 0.190448] SCSI subsystem initialized[ 0.190669] usbcore: registered new interface driver usbfs[ 0.190763] usbcore: registered new interface driver hub[ 0.190811] usbcore: registered new device driver usb[ 0.190811] twi_chan_cfg()335 - [twi0] has no twi_regulator.[ 0.190811] twi_chan_cfg()335 - [twi1] has no twi_regulator.[ 0.190811] twi_chan_cfg()335 - [twi2] has no twi_regulator.[ 0.190863] Linux video capture interface: v2.00[ 0.191097] Advanced Linux Sound Architecture Driver Version 1.0.25.[ 0.191658] Bluetooth: Core ver 2.16[ 0.191714] NET: Registered protocol family 31[ 0.191736] Bluetooth: HCI device and connection manager initialized[ 0.191765] Bluetooth: HCI socket layer initialized[ 0.191788] Bluetooth: L2CAP socket layer initialized[ 0.191836] Bluetooth: SCO socket layer initialized[ 0.192079] cfg80211: Calling CRDA to update world regulatory domain[ 0.192172] Switching to clocksource arch_sys_counter[ 0.204150] FS-Cache: Loaded[ 0.204467] CacheFiles: Loaded[ 0.215942] NET: Registered protocol family 2[ 0.216240] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)[ 0.216860] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)[ 0.218644] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)[ 0.219652] TCP: Hash tables configured (established 131072 bind 65536)[ 0.219680] TCP: reno registered[ 0.219703] UDP hash table entries: 512 (order: 2, 16384 bytes)[ 0.219757] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)[ 0.220143] NET: Registered protocol family 1[ 0.220540] RPC: Registered named UNIX socket transport module.[ 0.220571] RPC: Registered udp transport module.[ 0.220593] RPC: Registered tcp transport module.[ 0.220615] RPC: Registered tcp NFSv4.1 backchannel transport module.[ 0.220962] hw perfevents: enabled with ARMv7 Cortex_A7 PMU driver, 5 counters available[ 0.221089] sunxi_reg_init enter[ 0.221823] audit: initializing netlink socket (disabled)[ 0.221888] type=2000 audit(0.220:1): initialized[ 0.222959] highmem bounce pool size: 64 pages[ 0.223896] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 0.224024] NFS: Registering the id_resolver key type[ 0.224409] Installing knfsd (copyright © 1996 okir@monad.swb.de).[ 0.225174] NTFS driver 2.1.30 [Flags: R/W].[ 0.225330] fuse init (API version 7.18)[ 0.226169] Btrfs loaded[ 0.226207] msgmni has been set to 1473[ 0.227444] io scheduler noop registered[ 0.227474] io scheduler deadline registered[ 0.227573] io scheduler cfq registered (default)[ 0.228048] [DISP]disp_module_init[ 0.228383] cmdline,disp=[ 0.248359] [DISP] Fb_map_kernel_logo,line:930:Fb_map_kernel_logo failed![ 0.286286] Console: switching to colour frame buffer device 240x67[ 0.325221] [DISP]disp_module_init finish[ 0.325578] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.[ 0.325779] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.[ 0.325974] sw_uart_get_devinfo()1503 - uart3 has no uart_regulator.[ 0.326644] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI[ 0.326834] sw_uart_pm()890 - uart0 clk is already enable[ 0.327008] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n[ 0.422849] console [ttyS0] enabled[ 0.550384] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI[ 0.550670] uart3: ttyS3 at MMIO 0x1c28c00 (irq = 35) is a SUNXI[ 0.551233] sunxi_cmatest_init enter[ 0.551276] sunxi_cmatest_init success[ 0.555636] loop: module loaded[ 0.627554] sunxi_spi_chan_cfg()1355 - [spi-0] has no spi_regulator.[ 0.855483] sunxi_spi_chan_cfg()1355 - [spi-1] has no spi_regulator.[ 1.307505] spi spi0: master is unqueued, this is deprecated[ 1.550360] tun: Universal TUN/TAP device driver, 1.6[ 1.550371] tun: © 1999-2004 Max Krasnyansky[ 1.551572] PPP generic driver version 2.4.2[ 1.551771] PPP BSD Compression module registered[ 1.551780] PPP Deflate Compression module registered[ 1.552559] PPP MPPE Compression module registered[ 1.552571] NET: Registered protocol family 24[ 1.552609] PPTP driver version 0.8.5[ 1.552901] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver[ 1.573001] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver[ 1.573039] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1[ 2.397561] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000[ 2.430041] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00[ 2.445009] hub 1-0:1.0: USB hub found[ 2.456915] hub 1-0:1.0: 1 port detected[ 2.489334] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver[ 2.506030] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2[ 2.522687] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000[ 2.550043] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00[ 2.564456] ehci_irq: highspeed device connect[ 2.577572] hub 2-0:1.0: USB hub found[ 2.589393] hub 2-0:1.0: 1 port detected[ 2.621675] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver[ 2.638283] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 3[ 2.654792] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000[ 2.680041] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00[ 2.694742] hub 3-0:1.0: USB hub found[ 2.706458] hub 3-0:1.0: 1 port detected[ 2.718684] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver[ 2.753172] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver[ 2.769457] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 4[ 2.785672] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400[ 2.854588] hub 4-0:1.0: USB hub found[ 2.860056] ehci_irq: highspeed device disconnect[ 2.879120] hub 4-0:1.0: 1 port detected[ 2.911426] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver[ 2.927683] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 5[ 2.943830] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400[ 3.014583] hub 5-0:1.0: USB hub found[ 3.026362] hub 5-0:1.0: 1 port detected[ 3.058586] sunxi-ohci sunxi-ohci.4: SW USB2.0 'Open' Host Controller (OHCI) Driver[ 3.074817] sunxi-ohci sunxi-ohci.4: new USB bus registered, assigned bus number 6[ 3.090989] sunxi-ohci sunxi-ohci.4: irq 111, io mem 0xf1c1d400[ 3.164543] hub 6-0:1.0: USB hub found[ 3.176462] hub 6-0:1.0: 1 port detected[ 3.188918] Initializing USB Mass Storage driver...[ 3.202318] usbcore: registered new interface driver usb-storage[ 3.216848] USB Mass Storage support registered.[ 3.229926] usbcore: registered new interface driver ums-alauda[ 3.244491] usbcore: registered new interface driver ums-cypress[ 3.258990] usbcore: registered new interface driver ums-datafab[ 3.273387] usbcore: registered new interface driver ums_eneub6250[ 3.287925] usbcore: registered new interface driver ums-freecom[ 3.302255] usbcore: registered new interface driver ums-isd200[ 3.316494] usbcore: registered new interface driver ums-jumpshot[ 3.330824] usbcore: registered new interface driver ums-karma[ 3.344769] usbcore: registered new interface driver ums-onetouch[ 3.358890] usbcore: registered new interface driver ums-realtek[ 3.372765] usbcore: registered new interface driver ums-sddr09[ 3.386434] usbcore: registered new interface driver ums-sddr55[ 3.400107] usbcore: registered new interface driver ums-usbat[ 3.413665] usbcore: registered new interface driver usbserial[ 3.420056] usb 5-1: new full-speed USB device number 2 using sunxi-ohci[ 3.441594] usbserial: USB Serial Driver core[ 3.453484] usbcore: registered new interface driver option[ 3.466817] USB Serial support registered for GSM modem (1-port)[ 3.481149] file system registered[ 3.493760] android_usb gadget: Mass Storage Function, version: 2009/09/11[ 3.508608] android_usb gadget: Number of LUNs=3[ 3.520822] lun0: LUN: removable file: (no medium)[ 3.533348] lun1: LUN: removable file: (no medium)[ 3.545796] lun2: LUN: removable file: (no medium)[ 3.558546] android_usb gadget: android_usb ready[ 3.570994] uinput result 0 , vmouse_init[ 3.583316] mousedev: PS/2 mouse device common for all mice[ 3.596745] sunxikbd_init failed.[ 3.607392] ls_fetch_sysconfig_para: type err device_used = 0.[ 3.620992] =========script_get_err============[ 3.632918] ltr_init: ls_fetch_sysconfig_para err.[ 3.633084] usb 5-1: not running at top speed; connect to a high speed hub[ 3.643244] hub 5-1:1.0: USB hub found[ 3.645084] hub 5-1:1.0: 4 ports detected[ 3.682856] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0[ 3.697245] i2c /dev entries driver[ 3.708438] IR RC5(x) protocol handler initialized[ 3.720848] sunxi tsc version 0.1[ 3.731589] tscdev_init: tsc driver is disabled[ 3.743689] sunxi cedar version 0.1[ 3.754669] [cedar]: install start!!![ 3.765796] [cedar]: install end!!![ 3.776465] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0[ 3.790464] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf[ 3.801922] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)[ 3.823273] wdt_enable, write reg 0xf1c20cb8 val 0x00000000[ 3.836613] timeout_to_interv, line 167[ 3.847956] interv_to_timeout, line 189[ 3.859186] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec[ 3.875822] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com[ 3.892491] Bluetooth: HCI UART driver ver 2.2[ 3.904976] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.109 2014-12-4 20:51) Compiled in Jan 31 2016 at 12:15:31[ 3.923903] [mmc]: get mmc0's sdc_power is null![ 3.936520] [mmc]: get mmc1's sdc_power is null![ 3.948959] [mmc]: get mmc1's 2xmode ok, val = 1[ 3.961369] [mmc]: get mmc1's ddrmode ok, val = 1[ 3.973803] [mmc]: get mmc2's IO(sdc_cd) failed[ 3.984868] [mmc]: get mmc2's sdc_power is null![ 3.996009] [mmc]: get mmc2's 2xmode ok, val = 1[ 4.007029] [mmc]: get mmc2's ddrmode ok, val = 1[ 4.018130] [mmc]: MMC host used card: 0x7, boot card: 0x0, io_card 2[ 4.032115] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.050492] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.069092] [mmc]: sdc2 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.087091] sunxi_leds_fetch_sysconfig_para script_parser_fetch "leds_para" leds_used = -284672164[ 4.102576] =========script_get_err============[ 4.114438] usbcore: registered new interface driver usbhid[ 4.126163] usbhid: USB HID core driver[ 4.139289] asoc: sndcodec <-> sunxi-codec mapping ok[ 4.152673] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok[ 4.164630] oprofile: using arm/armv7-ca7[ 4.174384] u32 classifier[ 4.182564] Actions configured[ 4.191520] Netfilter messages via NETLINK v0.30.[ 4.202050] nf_conntrack version 0.5.0 (16009 buckets, 64036 max)[ 4.214523] ctnetlink v0.93: registering with nfnetlink.[ 4.225876] NF_TPROXY: Transparent proxy support initialized, version 4.1.0[ 4.239143] NF_TPROXY: Copyright © 2006-2007 BalaBit IT Ltd.[ 4.251139] xt_time: kernel timezone is -0000[ 4.261372] IPv4 over IPv4 tunneling driver[ 4.271666] gre: GRE over IPv4 demultiplexor driver[ 4.282372] ip_gre: GRE over IPv4 tunneling driver[ 4.293428] ip_tables: © 2000-2006 Netfilter Core Team[ 4.304775] arp_tables: © 2002 David S. Miller[ 4.315195] TCP: cubic registered[ 4.324067] Initializing XFRM netlink socket[ 4.334141] NET: Registered protocol family 10[ 4.345119] Mobile IPv6[ 4.353005] ip6_tables: © 2000-2006 Netfilter Core Team[ 4.364370] IPv6 over IPv4 tunneling driver[ 4.375097] NET: Registered protocol family 17[ 4.385352] NET: Registered protocol family 15[ 4.395640] Bluetooth: RFCOMM TTY layer initialized[ 4.406313] Bluetooth: RFCOMM socket layer initialized[ 4.417204] Bluetooth: RFCOMM ver 1.11[ 4.426491] Bluetooth: BNEP (Ethernet Emulation) ver 1.3[ 4.437512] Bluetooth: BNEP filters: protocol multicast[ 4.448420] Bluetooth: HIDP (Human Interface Emulation) ver 1.2[ 4.460192] L2TP core driver, V2.0[ 4.469011] PPPoL2TP kernel driver, V2.0[ 4.478427] L2TP IP encapsulation support (L2TPv3)[ 4.488860] L2TP netlink interface[ 4.497658] L2TP ethernet pseudowire support (L2TPv3)[ 4.508286] Registering the dns_resolver key type[ 4.518705] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5[ 4.532357] ThumbEE CPU extension supported.[ 4.542217] Registering SWP/SWPB emulation handler[ 4.553398] cmdline,disp=[ 4.561773] [HDMI] power vcc-hdmi-18[ 4.601574] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:17 UTC (17)[ 4.615464] ths_fetch_sysconfig_para: type err device_used = 1.[ 4.628427] CPU Budget:Register notifier[ 4.637895] CPU Budget:register Success[ 4.647169] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0[ 4.664654] [rf_pm]: select module num is 7[ 4.674515] [rf_pm]: module power0 name vcc-wifi-33[ 4.685006] [rf_pm]: failed to fetch module_power1[ 4.695317] [rf_pm]: mod has no chip_en gpio[ 4.704937] [rf_pm]: failed to fetch lpo_use_apclk[ 4.715065] [rf_pm]: regulator on.[ 4.723973] [wifi_pm]: wifi gpio init is OK !![ 4.733821] ALSA device list:[ 4.741969] #0: audiocodec[ 4.749996] #1: sndhdmi[ 4.758036] VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0): error -6[ 4.771658] Please append a correct "root=" boot option; here are the available partitions:[ 4.786027] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)[ 4.800346] CPU0: stopping[ 4.808410] [] (unwind_backtrace+0x0/0xe8) from [] (dump_stack+0x20/0x24)[ 4.810328] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x16c/0x2cc)[ 4.810328] [] (handle_IPI+0x16c/0x2cc) from [] (gic_handle_irq+0x80/0x88)[ 4.810328] [] (gic_handle_irq+0x80/0x88) from [] (__irq_svc+0x40/0x70)[ 4.810328] Exception stack(0xc09d3cd0 to 0xc09d3d18)[ 4.810328] 3cc0: c1455700 80000113 80000113 00000000[ 4.810328] 3ce0: 000003ff c1455700 ef0d3480 00000000 ef0d3480 00000003 eeaf1b0c c09d3da4[ 4.810328] 3d00: c09d3d18 c09d3d18 c0063ab0 c0063acc 60000113 ffffffff[ 4.810328] [] (__irq_svc+0x40/0x70) from [] (load_balance+0x478/0x690)[ 4.810328] [] (load_balance+0x478/0x690) from [] (rebalance_domains+0xf0/0x1a0)[ 4.810328] [] (rebalance_domains+0xf0/0x1a0) from [] (run_rebalance_domains+0xfc/0x14c)[ 4.810328] [] (run_rebalance_domains+0xfc/0x14c) from [] (__do_softirq+0x148/0x268)[ 4.810328] [] (__do_softirq+0x148/0x268) from [] (irq_exit+0x58/0xac)[ 4.810328] [] (irq_exit+0x58/0xac) from [] (scheduler_ipi+0xd8/0xe4)[ 4.810328] [] (scheduler_ipi+0xd8/0xe4) from [] (handle_IPI+0x120/0x2cc)[ 4.810328] [] (handle_IPI+0x120/0x2cc) from [] (gic_handle_irq+0x80/0x88)[ 5.035015] [mmc]: mmc 0 detect change, present 1[ 4.810328] [] (gic_handle_irq+0x80/0x88) from [] (__irq_svc+0x40/0x70)[ 4.810328] Exception stack(0xc09d3f18 to 0xc09d3f60)[ 4.810328] 3f00: c1443b38 00000000[ 4.810328] 3f20: 0000000f 00000000 c09d2030 c09d2000 c09d2000 c09ae634 c1440000 410fc075[ 4.810328] 3f40: 00000000 c09d3f6c c09d3f70 c09d3f60 c000f2ac c000f2b0 60000013 ffffffff[ 4.810328] [] (__irq_svc+0x40/0x70) from [] (default_idle+0x34/0x3c)[ 4.810328] [] (default_idle+0x34/0x3c) from [] (cpu_idle+0xac/0xf8)[ 4.810328] [] (cpu_idle+0xac/0xf8) from [] (rest_init+0x9c/0xb8)[ 4.810328] [] (rest_init+0x9c/0xb8) from [] (start_kernel+0x290/0x2d8)[ 4.810328] [] (start_kernel+0x290/0x2d8) from [<40008044>] (0x40008044)[ 4.810342] CPU3: stopping[ 4.810342] [] (unwind_backtrace+0x0/0xe8) from [] (dump_stack+0x20/0x24)[ 4.810342] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x16c/0x2cc)[ 4.810342] [] (handle_IPI+0x16c/0x2cc) from [] (gic_handle_irq+0x80/0x88)[ 4.810342] [] (gic_handle_irq+0x80/0x88) from [] (__irq_svc+0x40/0x70)[ 4.810342] Exception stack(0xef0f3f68 to 0xef0f3fb0)[ 4.810342] 3f60: c145bb38 00000000 0000000f 00000000 ef0f2000 ef0f2000[ 4.810342] 3f80: ef0f2000 c0a52250 4000406a 410fc075 00000000 ef0f3fbc ef0f3fc0 ef0f3fb0[ 4.810342] 3fa0: c000f2ac c000f2b0 60000013 ffffffff[ 4.810342] [] (__irq_svc+0x40/0x70) from [] (default_idle+0x34/0x3c)[ 4.810342] [] (default_idle+0x34/0x3c) from [] (cpu_idle+0xac/0xf8)[ 4.810342] [] (cpu_idle+0xac/0xf8) from [] (secondary_start_kernel+0x118/0x13c)[ 4.810342] [] (secondary_start_kernel+0x118/0x13c) from [<406c5814>] (0x406c5814)[ 4.810342] CPU1: stopping[ 4.810342] [] (unwind_backtrace+0x0/0xe8) from [] (dump_stack+0x20/0x24)[ 4.810342] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x16c/0x2cc)[ 4.810342] [] (handle_IPI+0x16c/0x2cc) from [] (gic_handle_irq+0x80/0x88)[ 4.810342] [] (gic_handle_irq+0x80/0x88) from [] (__irq_svc+0x40/0x70)[ 4.810342] Exception stack(0xef0bbf68 to 0xef0bbfb0)[ 4.810342] bf60: c144bb38 00000000 0000000f 00000000 ef0ba000 ef0ba000[ 4.810342] bf80: ef0ba000 c0a52250 4000406a 410fc075 00000000 ef0bbfbc ef0bbfc0 ef0bbfb0[ 4.810342] bfa0: c000f2ac c000f2b0 60000013 ffffffff[ 4.810342] [] (__irq_svc+0x40/0x70) from [] (default_idle+0x34/0x3c)[ 5.530012] [] (default_idle+0x34/0x3c) from [] (cpu_idle+0xac/0xf8)[ 5.530012] [] (cpu_idle+0xac/0xf8) from [] (secondary_start_kernel+0x118/0x13c)[ 5.530012] [] (secondary_start_kernel+0x118/0x13c) from [<406c5814>] (0x406c5814)[ 5.593001] [hotplug]: cpu(2) try to kill cpu(0)[ 6.625013] [hotplug]: try to kill cpu:0 failed![ 6.637325] [hotplug]: cpu(2) try to kill cpu(1)[ 7.664014] [hotplug]: try to kill cpu:1 failed![ 7.676315] [hotplug]: cpu(2) try to kill cpu(3)[ 8.708012] [hotplug]: try to kill cpu:3 failed! @qualcomm.com>
tkaiser Posted January 31, 2016 Author Posted January 31, 2016 Maybe just https://github.com/igorpecovnik/lib/blob/master/config/linux-sun8i-default.config#L491 ?
Igor Posted January 31, 2016 Posted January 31, 2016 Yes Now, some fine tuning but basically it works. Are there any better / cleaned FEX files for all those Oranges? Boot clock limitation to 1200 for normal operations. Anything else that it's important at this stage?
tkaiser Posted January 31, 2016 Author Posted January 31, 2016 Just as a quick hack based on my fix-thermal-problems.sh script for the various H3 based Orange Pi: http://pastebin.com/Cz24A7hK($1 path to the fex file. At least for the Plus and 2 it is necessary to adjust the thermal settings from loboris' values to ssvb's). And it might be a good idea to adjust the machine name in line 10 in all fex files. And ssvb also defined the 2 LEDs differently on Orange Pi PC. Since I have none of the other models I don't know whether that works there also. I found my 2nd Orange Pi PC so if you would provide a first image I could test with the PC (and when my Orange Pi One arrives -- they shipped it out 5 days ago so hopefully it already left China -- I will test immediately with it too hoping that only a small fex adjustment is necessary). BTW: Is the Orange Pi 2 officially supported by u-boot in the meantime?
Igor Posted January 31, 2016 Posted January 31, 2016 I need to fix few things, than I hope later in the evening could come out with image and a build process. I haven't been close to H3 so I need to read around not to start fixing what's already fixed Yes, it's mainline u-boot. No patches.
martinayotte Posted January 31, 2016 Posted January 31, 2016 That's sound encouraging ! I'm volunteer to become Beta tester :-)
tkaiser Posted January 31, 2016 Author Posted January 31, 2016 Yes, it's mainline u-boot. No patches. So there's a defconfig for Orange Pi 2 available in the meantime? If not then I would believe we should rely on the one for the 'PC' since they are more similar compared to the Plus. But unless we've at least one tester/user with access to Orange Pi 2 (or "2 Mini") it's a bit useless to try to support this/these model(s). BTW: I can't remember exactly but there was some discussion in linux-sunxi IRC whether it's possible to run all Orange Pis with a single kernel build (loboris patches kernel sources when target is PC or 2 or "2 Mini" due to different Ethernet). Unfortunately my net is slow as hell right now so I can not have a look myself. Maybe later/tomorrow...
Igor Posted January 31, 2016 Posted January 31, 2016 So there's a defconfig for Orange Pi 2 available in the meantime? I don't think there is any difference. There are 624 vs 672 different DRAM_CLK values but that's subjective decision. PLUS vs PC. We only got MMC and UART anyway. At least that's the case with PLUS. Regarding Ethernet drivers ... I have it here in my PLUS but you won't have it at PC. I have to check if and how we can have them both.
Igor Posted January 31, 2016 Posted January 31, 2016 Boot log: [ 0.000000] Booting Linux on physical CPU 0[ 0.000000] Initializing cgroup subsys cpuset[ 0.000000] Initializing cgroup subsys cpu[ 0.000000] Linux version 3.4.40-sun8i (root@kitchen) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #20 SMP PREEMPT Sun Jan 31 20:55:44 CET 2016[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache[ 0.000000] Machine: sun8i[ 0.000000] cma: CMA: reserved 256 MiB at 70000000[ 0.000000] Memory policy: ECC disabled, Data cache writealloc[ 0.000000] On node 0 totalpages: 262144[ 0.000000] free_area_init_node: node 0, pgdat c0a56e00, node_mem_map c0b38000[ 0.000000] Normal zone: 1710 pages used for memmap[ 0.000000] Normal zone: 0 pages reserved[ 0.000000] Normal zone: 192850 pages, LIFO batch:31[ 0.000000] HighMem zone: 594 pages used for memmap[ 0.000000] HighMem zone: 66990 pages, LIFO batch:15[ 0.000000] script_init enter![ 0.000000] script_init exit![ 0.000000] PERCPU: Embedded 8 pages/cpu @c144f000 s11840 r8192 d12736 u32768[ 0.000000] pcpu-alloc: s11840 r8192 d12736 u32768 alloc=8*4096[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259840[ 0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup-enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)[ 0.000000] allocated 2097152 bytes of page_cgroup[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups[ 0.000000] Memory: 1024MB = 1024MB total[ 0.000000] Memory: 762408k/762408k available, 286168k reserved, 8192K highmem[ 0.000000] Virtual kernel memory layout:[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)[ 0.000000] .text : 0xc0008000 - 0xc098a9c4 (9739 kB)[ 0.000000] .init : 0xc098b000 - 0xc09dbe40 ( 324 kB)[ 0.000000] .data : 0xc09dc000 - 0xc0a5bc38 ( 512 kB)[ 0.000000] .bss : 0xc0a5c3ec - 0xc0b37f00 ( 879 kB)[ 0.000000] Preemptible hierarchical RCU implementation.[ 0.000000] Additional per-CPU info printed with stalls.[ 0.000000] NR_IRQS:544[ 0.000000] Architected local timer running at 24.00MHz.[ 0.000000] Switching to timer-based delay loop[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms[ 0.000000] Console: colour dummy device 80x30[ 0.000000] console [tty1] enabled[ 0.000262] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)[ 0.000288] pid_max: default: 32768 minimum: 301[ 0.000632] Mount-cache hash table entries: 512[ 0.001649] Initializing cgroup subsys cpuacct[ 0.001665] Initializing cgroup subsys memory[ 0.001713] Initializing cgroup subsys devices[ 0.001726] Initializing cgroup subsys freezer[ 0.001738] Initializing cgroup subsys blkio[ 0.001763] Initializing cgroup subsys perf_event[ 0.001819] CPU: Testing write buffer coherency: ok[ 0.001863] ftrace: allocating 26693 entries in 79 pages[ 0.040292] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000[ 0.040312] [sunxi_smp_prepare_cpus] enter[ 0.040350] Setting up static identity map for 0x406dcae8 - 0x406dcb40[ 0.041282] CPU1: Booted secondary processor[ 0.041282] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001[ 0.041415] CPU2: Booted secondary processor[ 0.041415] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002[ 0.041415] CPU3: Booted secondary processor[ 0.041415] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003[ 0.050195] Brought up 4 CPUs[ 0.050213] SMP: Total of 4 processors activated (19200.00 BogoMIPS).[ 0.050929] devtmpfs: initialized[ 0.054526] wakeup src cnt is : 1.[ 0.054538] [exstandby]leave extended_standby_enable_wakeup_src : event 0x800000[ 0.054550] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_map 0x0[ 0.054562] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_group 0x40[ 0.054575] sunxi pm init[ 0.054716] pinctrl core: initialized pinctrl subsystem[ 0.067708] NET: Registered protocol family 16[ 0.068807] DMA: preallocated 2048 KiB pool for atomic coherent allocations[ 0.068807] script_sysfs_init success[ 0.068807] sunxi_dump_init success[ 0.068807] gpiochip_add: registered GPIOs 0 to 383 on device: sunxi-pinctrl[ 0.068807] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver[ 0.068807] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.[ 0.068807] hw-breakpoint: maximum watchpoint size is 8 bytes.[ 0.068807] script config pll_video to 297 Mhz[ 0.068807] script config pll_de to 864 Mhz[ 0.068807] script config pll_ve to 402 Mhz[ 0.068807] sunxi_default_clk_init[ 0.068807] try to set pll6ahb1 to 200000000[ 0.070024] try to set ahb clk source to pll6ahb1[ 0.070035] set ahb clk source to pll6ahb1[ 0.070046] try to set ahb1 to 200000000[ 0.070058] try to set apb1 to 100000000[ 0.070847] ===fe3o4==== sunxi_root_procfs_attach ret:0[ 0.080254] bio: create slab at 0[ 0.080408] [ARISC] :sunxi-arisc driver v1.04[ 0.091768] [ARISC] :arisc version: [v0.1.34][ 0.184675] [ARISC] :sunxi-arisc driver v1.04 startup succeeded[ 0.190450] SCSI subsystem initialized[ 0.190662] usbcore: registered new interface driver usbfs[ 0.190739] usbcore: registered new interface driver hub[ 0.190772] usbcore: registered new device driver usb[ 0.190772] twi_chan_cfg()335 - [twi0] has no twi_regulator.[ 0.190772] twi_chan_cfg()335 - [twi1] has no twi_regulator.[ 0.190772] twi_chan_cfg()335 - [twi2] has no twi_regulator.[ 0.190804] Linux video capture interface: v2.00[ 0.191023] Advanced Linux Sound Architecture Driver Version 1.0.25.[ 0.191564] Bluetooth: Core ver 2.16[ 0.191606] NET: Registered protocol family 31[ 0.191616] Bluetooth: HCI device and connection manager initialized[ 0.191631] Bluetooth: HCI socket layer initialized[ 0.191642] Bluetooth: L2CAP socket layer initialized[ 0.191677] Bluetooth: SCO socket layer initialized[ 0.191903] cfg80211: Calling CRDA to update world regulatory domain[ 0.191976] Switching to clocksource arch_sys_counter[ 0.204551] FS-Cache: Loaded[ 0.204835] CacheFiles: Loaded[ 0.216142] NET: Registered protocol family 2[ 0.216418] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)[ 0.217016] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)[ 0.218777] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)[ 0.219768] TCP: Hash tables configured (established 131072 bind 65536)[ 0.219780] TCP: reno registered[ 0.219793] UDP hash table entries: 512 (order: 2, 16384 bytes)[ 0.219833] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)[ 0.220202] NET: Registered protocol family 1[ 0.220567] RPC: Registered named UNIX socket transport module.[ 0.220581] RPC: Registered udp transport module.[ 0.220590] RPC: Registered tcp transport module.[ 0.220599] RPC: Registered tcp NFSv4.1 backchannel transport module.[ 0.221299] hw perfevents: enabled with ARMv7 Cortex_A7 PMU driver, 5 counters available[ 0.221400] sunxi_reg_init enter[ 0.222216] audit: initializing netlink socket (disabled)[ 0.222262] type=2000 audit(0.220:1): initialized[ 0.223314] highmem bounce pool size: 64 pages[ 0.224232] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 0.224339] NFS: Registering the id_resolver key type[ 0.224701] Installing knfsd (copyright © 1996 okir@monad.swb.de).[ 0.225446] NTFS driver 2.1.30 [Flags: R/W].[ 0.225779] fuse init (API version 7.18)[ 0.226541] Btrfs loaded[ 0.226568] msgmni has been set to 1473[ 0.227777] io scheduler noop registered[ 0.227790] io scheduler deadline registered[ 0.227874] io scheduler cfq registered (default)[ 0.228319] [DISP]disp_module_init[ 0.228640] cmdline,disp=1920x1080p60[ 0.248531] [DISP] Fb_map_boot_logo,line:1057:boot logo para error![ 0.286452] Console: switching to colour frame buffer device 240x67[ 0.325115] [DISP] bsp_disp_sync_with_hw,line:313:something error, can't find device(25) for manager 0[ 0.325263] [DISP]disp_module_init finish[ 0.325484] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.[ 0.325502] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.[ 0.325517] sw_uart_get_devinfo()1503 - uart3 has no uart_regulator.[ 0.326007] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI[ 0.326022] sw_uart_pm()890 - uart0 clk is already enable[ 0.326327] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI[ 0.326618] uart3: ttyS3 at MMIO 0x1c28c00 (irq = 35) is a SUNXI[ 0.327139] sunxi_cmatest_init enter[ 0.327179] sunxi_cmatest_init success[ 0.331608] loop: module loaded[ 0.331870] sunxi_spi_chan_cfg()1355 - [spi-0] has no spi_regulator.[ 0.331885] sunxi_spi_chan_cfg()1355 - [spi-1] has no spi_regulator.[ 0.332422] spi spi0: master is unqueued, this is deprecated[ 0.332741] tun: Universal TUN/TAP device driver, 1.6[ 0.332754] tun: © 1999-2004 Max Krasnyansky[ 0.333993] PPP generic driver version 2.4.2[ 0.334185] PPP BSD Compression module registered[ 0.334198] PPP Deflate Compression module registered[ 0.335005] PPP MPPE Compression module registered[ 0.335022] NET: Registered protocol family 24[ 0.335060] PPTP driver version 0.8.5[ 0.335357] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver[ 0.355454] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver[ 0.355490] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1[ 0.356105] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000[ 0.370034] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00[ 0.370714] hub 1-0:1.0: USB hub found[ 0.370739] hub 1-0:1.0: 1 port detected[ 0.391144] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver[ 0.391175] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2[ 0.391700] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000[ 0.410032] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00[ 0.410051] ehci_irq: highspeed device connect[ 0.410618] hub 2-0:1.0: USB hub found[ 0.410640] hub 2-0:1.0: 1 port detected[ 0.431032] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver[ 0.431063] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 3[ 0.431568] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000[ 0.450032] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00[ 0.450595] hub 3-0:1.0: USB hub found[ 0.450616] hub 3-0:1.0: 1 port detected[ 0.451001] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver[ 0.471067] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver[ 0.471103] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 4[ 0.471141] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400[ 0.534572] hub 4-0:1.0: USB hub found[ 0.534600] hub 4-0:1.0: 1 port detected[ 0.534986] Initializing USB Mass Storage driver...[ 0.535138] usbcore: registered new interface driver usb-storage[ 0.535150] USB Mass Storage support registered.[ 0.535207] usbcore: registered new interface driver ums-alauda[ 0.535253] usbcore: registered new interface driver ums-cypress[ 0.535298] usbcore: registered new interface driver ums-datafab[ 0.535342] usbcore: registered new interface driver ums_eneub6250[ 0.535387] usbcore: registered new interface driver ums-freecom[ 0.535431] usbcore: registered new interface driver ums-isd200[ 0.535476] usbcore: registered new interface driver ums-jumpshot[ 0.535522] usbcore: registered new interface driver ums-karma[ 0.535575] usbcore: registered new interface driver ums-onetouch[ 0.535637] usbcore: registered new interface driver ums-realtek[ 0.535688] usbcore: registered new interface driver ums-sddr09[ 0.535736] usbcore: registered new interface driver ums-sddr55[ 0.535781] usbcore: registered new interface driver ums-usbat[ 0.535902] usbcore: registered new interface driver usbserial[ 0.535915] usbserial: USB Serial Driver core[ 0.535967] usbcore: registered new interface driver option[ 0.536008] USB Serial support registered for GSM modem (1-port)[ 0.536492] file system registered[ 0.538127] android_usb gadget: Mass Storage Function, version: 2009/09/11[ 0.538142] android_usb gadget: Number of LUNs=3[ 0.538154] lun0: LUN: removable file: (no medium)[ 0.538166] lun1: LUN: removable file: (no medium)[ 0.538177] lun2: LUN: removable file: (no medium)[ 0.538516] android_usb gadget: android_usb ready[ 0.538749] uinput result 0 , vmouse_init[ 0.539359] mousedev: PS/2 mouse device common for all mice[ 0.539608] ls_fetch_sysconfig_para: type err device_used = 0.[ 0.539619] =========script_get_err============[ 0.539628] ltr_init: ls_fetch_sysconfig_para err.[ 0.540227] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0[ 0.540289] i2c /dev entries driver[ 0.540694] IR RC5(x) protocol handler initialized[ 0.540794] sunxi tsc version 0.1[ 0.540849] tscdev_init: tsc driver is disabled[ 0.540967] sunxi cedar version 0.1[ 0.541005] [cedar]: install start!!![ 0.541203] [cedar]: install end!!![ 0.541238] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0[ 0.541408] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf[ 0.541547] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)[ 0.541562] wdt_enable, write reg 0xf1c20cb8 val 0x00000000[ 0.541573] timeout_to_interv, line 167[ 0.541582] interv_to_timeout, line 189[ 0.541593] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec[ 0.541984] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com[ 0.542398] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.109 2014-12-4 20:51) Compiled in Jan 31 2016 at 20:55:15[ 0.542439] [mmc]: get mmc0's sdc_power is null![ 0.542467] [mmc]: get mmc1's sdc_power is null![ 0.542477] [mmc]: get mmc1's 2xmode ok, val = 1[ 0.542488] [mmc]: get mmc1's ddrmode ok, val = 1[ 0.542504] [mmc]: get mmc2's IO(sdc_cd) failed[ 0.542526] [mmc]: get mmc2's sdc_power is null![ 0.542536] [mmc]: get mmc2's 2xmode ok, val = 1[ 0.542547] [mmc]: get mmc2's ddrmode ok, val = 1[ 0.542560] [mmc]: MMC host used card: 0x7, boot card: 0x0, io_card 2[ 0.543691] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 0.547067] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 0.550477] [mmc]: sdc2 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 0.553280] sunxi_leds_fetch_sysconfig_para script_parser_fetch "leds_para" leds_used = -284672164[ 0.553294] =========script_get_err============[ 0.554904] usbcore: registered new interface driver usbhid[ 0.554916] usbhid: USB HID core driver[ 0.559094] asoc: sndcodec <-> sunxi-codec mapping ok[ 0.562627] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok[ 0.563589] oprofile: using arm/armv7-ca7[ 0.563774] u32 classifier[ 0.563784] Actions configured[ 0.563796] Netfilter messages via NETLINK v0.30.[ 0.563882] nf_conntrack version 0.5.0 (16008 buckets, 64032 max)[ 0.564351] ctnetlink v0.93: registering with nfnetlink.[ 0.564409] NF_TPROXY: Transparent proxy support initialized, version 4.1.0[ 0.564421] NF_TPROXY: Copyright © 2006-2007 BalaBit IT Ltd.[ 0.564727] xt_time: kernel timezone is -0000[ 0.564909] IPv4 over IPv4 tunneling driver[ 0.565420] gre: GRE over IPv4 demultiplexor driver[ 0.565433] ip_gre: GRE over IPv4 tunneling driver[ 0.566155] ip_tables: © 2000-2006 Netfilter Core Team[ 0.566374] arp_tables: © 2002 David S. Miller[ 0.566458] TCP: cubic registered[ 0.566468] Initializing XFRM netlink socket[ 0.566707] NET: Registered protocol family 10[ 0.567954] Mobile IPv6[ 0.567992] ip6_tables: © 2000-2006 Netfilter Core Team[ 0.568201] IPv6 over IPv4 tunneling driver[ 0.569424] NET: Registered protocol family 17[ 0.569463] NET: Registered protocol family 15[ 0.569676] Bluetooth: RFCOMM TTY layer initialized[ 0.569700] Bluetooth: RFCOMM socket layer initialized[ 0.569711] Bluetooth: RFCOMM ver 1.11[ 0.569722] Bluetooth: BNEP (Ethernet Emulation) ver 1.3[ 0.569731] Bluetooth: BNEP filters: protocol multicast[ 0.569743] Bluetooth: HIDP (Human Interface Emulation) ver 1.2[ 0.569914] L2TP core driver, V2.0[ 0.569937] PPPoL2TP kernel driver, V2.0[ 0.569946] L2TP IP encapsulation support (L2TPv3)[ 0.570056] L2TP netlink interface[ 0.570095] L2TP ethernet pseudowire support (L2TPv3)[ 0.570106] Registering the dns_resolver key type[ 0.570727] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5[ 0.570751] ThumbEE CPU extension supported.[ 0.570775] Registering SWP/SWPB emulation handler[ 0.571836] cmdline,disp=1920x1080p60[ 0.572154] [HDMI] power vcc-hdmi-18[ 0.602688] [DISP] bsp_disp_sync_with_hw,line:313:something error, can't find device(25) for manager 0[ 0.602949] ths_fetch_sysconfig_para: type err device_used = 1.[ 0.604344] CPU Budget:Register notifier[ 0.604358] CPU Budget:register Success[ 0.604371] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0[ 0.607601] [rf_pm]: select module num is 7[ 0.607617] [rf_pm]: module power0 name vcc-wifi-33[ 0.607629] [rf_pm]: failed to fetch module_power1[ 0.607640] [rf_pm]: mod has no chip_en gpio[ 0.607649] [rf_pm]: failed to fetch lpo_use_apclk[ 0.607657] [rf_pm]: regulator on.[ 0.607934] [wifi_pm]: wifi gpio init is OK !![ 0.607994] [rfkill]: init no bt used in configuration[ 0.608006] ALSA device list:[ 0.608015] #0: audiocodec[ 0.608023] #1: sndhdmi[ 0.608234] Waiting for root device /dev/mmcblk0p1...[ 0.730060] usb 2-1: new high-speed USB device number 2 using sunxi-ehci[ 0.881298] hub 2-1:1.0: USB hub found[ 0.881508] hub 2-1:1.0: 4 ports detected[ 1.545025] [mmc]: mmc 0 detect change, present 1[ 1.555017] [mmc]: mmc 2 detect change, present 1[ 2.040064] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.041624] [mmc]: sdc0 power_supply is null[ 2.060096] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.082414] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52, RTO !![ 2.083329] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52, RTO !![ 2.083412] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.086035] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.087580] *******************Try sdio*******************[ 2.088417] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !![ 2.089297] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !![ 2.090175] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !![ 2.091055] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !![ 2.091125] *******************Try sd *******************[ 2.091844] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.092058] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.094673] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.131739] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.136027] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B[ 2.136210] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B[ 2.136502] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B[ 2.136690] mmc0: new high speed SDHC card at address 0001[ 2.137572] mmcblk0: mmc0:0001 00000 7.44 GiB[ 2.139406] mmcblk0: p1[ 2.140512] *******************sd init ok*******************[ 2.140559] [mmc]: sdc2 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.142129] [mmc]: sdc2 power_supply is null[ 2.160065] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.182423] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 52, RTO !![ 2.183304] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 52, RTO !![ 2.183377] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.185987] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.187997] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 8, RTO !![ 2.188059] *******************Try sdio*******************[ 2.188894] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 5, RTO !![ 2.189765] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 5, RTO !![ 2.190635] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 5, RTO !![ 2.191507] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 5, RTO !![ 2.191568] *******************Try sd *******************[ 2.192405] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 55, RTO !![ 2.193277] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 55, RTO !![ 2.194150] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 55, RTO !![ 2.195022] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 2 err, cmd 55, RTO !![ 2.195084] *******************Try mmc*******************[ 2.195116] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.195663] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.195870] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.196073] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.198673] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.241339] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.254387] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 2.254786] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing MMC-HS(SDR20) dt B[ 2.254963] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing MMC-HS(SDR20) dt B[ 2.255250] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing MMC-HS(SDR20) dt B[ 2.256267] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing UHS-DDR50 dt B[ 2.256446] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing UHS-DDR50 dt B[ 2.256703] mmc2: new high speed DDR MMC card at address 0001[ 2.257626] mmcblk1: mmc2:0001 NCard 7.29 GiB[ 2.258118] mmcblk1boot0: mmc2:0001 NCard partition 1 4.00 MiB[ 2.258589] mmcblk1boot1: mmc2:0001 NCard partition 2 4.00 MiB[ 2.261439] mmcblk1: p1 p2 p3 < p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 >[ 2.261529] mmcblk1: p1 size 10450944 extends beyond EOD, truncated[ 2.271708] mmcblk1boot1: unknown partition table[ 2.274958] mmcblk1boot0: unknown partition table[ 2.275449] *******************mmc init ok *******************[ 2.372166] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)[ 2.372226] VFS: Mounted root (ext4 filesystem) on device 179:1.[ 2.376707] devtmpfs: mounted[ 2.377046] Freeing init memory: 320K[ 3.190574] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)[ 3.191167] systemd[1]: Detected architecture 'arm'.[ 3.208232] systemd[1]: Set hostname to .[ 3.639281] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.[ 3.646621] systemd[1]: Expecting device dev-ttyS0.device...[ 3.647267] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.[ 3.647455] systemd[1]: Started Forward Password Requests to Wall Directory Watch.[ 3.647520] systemd[1]: Starting Remote File Systems (Pre).[ 3.647855] systemd[1]: Reached target Remote File Systems (Pre).[ 3.647995] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.[ 3.648061] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.[ 3.648219] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.[ 3.648269] systemd[1]: Starting Paths.[ 3.648538] systemd[1]: Reached target Paths.[ 3.648598] systemd[1]: Starting Encrypted Volumes.[ 3.648866] systemd[1]: Reached target Encrypted Volumes.[ 3.648917] systemd[1]: Starting Swap.[ 3.649151] systemd[1]: Reached target Swap.[ 3.649201] systemd[1]: Starting Root Slice.[ 3.649535] systemd[1]: Created slice Root Slice.[ 3.649585] systemd[1]: Starting User and Session Slice.[ 3.649992] systemd[1]: Created slice User and Session Slice.[ 3.655099] systemd[1]: Starting Delayed Shutdown Socket.[ 3.655527] systemd[1]: Listening on Delayed Shutdown Socket.[ 3.655582] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.[ 3.655995] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.[ 3.656048] systemd[1]: Starting Journal Socket (/dev/log).[ 3.656413] systemd[1]: Listening on Journal Socket (/dev/log).[ 3.656484] systemd[1]: Starting udev Control Socket.[ 3.656820] systemd[1]: Listening on udev Control Socket.[ 3.656883] systemd[1]: Starting udev Kernel Socket.[ 3.657225] systemd[1]: Listening on udev Kernel Socket.[ 3.657297] systemd[1]: Starting Journal Socket.[ 3.657666] systemd[1]: Listening on Journal Socket.[ 3.657780] systemd[1]: Starting System Slice.[ 3.658174] systemd[1]: Created slice System Slice.[ 3.658243] systemd[1]: Starting system-getty.slice.[ 3.658726] systemd[1]: Created slice system-getty.slice.[ 3.658779] systemd[1]: Starting system-serial\x2dgetty.slice.[ 3.659236] systemd[1]: Created slice system-serial\x2dgetty.slice.[ 3.659347] systemd[1]: Starting Increase datagram queue length...[ 3.730595] systemd[1]: Starting Restore / save the current clock...[ 3.820658] systemd[1]: Mounted POSIX Message Queue File System.[ 3.821066] systemd[1]: Starting Create list of required static device nodes for the current kernel...[ 3.930623] systemd[1]: Starting udev Coldplug all Devices...[ 3.970663] systemd[1]: Mounted Huge Pages File System.[ 3.975195] systemd[1]: Started Set Up Additional Binary Formats.[ 3.983530] systemd[1]: Starting Load Kernel Modules...[ 4.041003] systemd[1]: Mounting Debug File System...[ 4.150583] systemd[1]: Starting LSB: Set keymap...[ 4.151258] RTL871X: module init start[ 4.151275] RTL871X: rtl8189es v4.3.0.4_11916.20140724_COB[ 4.151283] RTL871X: build time: Jan 31 2016 20:55:24[ 4.151299] [wifi_pm]: set wl_reg_on 0 ![ 4.200448] systemd[1]: Starting Slices.[ 4.200844] systemd[1]: Reached target Slices.[ 4.201381] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.202885] systemd[1]: Mounted Debug File System.[ 4.202960] [mmc]: sdc1 power_supply is null[ 4.220041] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.242233] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.244720] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.246633] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8, RTO !![ 4.246657] *******************Try sdio*******************[ 4.247006] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B[ 4.256747] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B[ 4.256858] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B[ 4.257002] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B[ 4.257757] mmc1: new high speed SDIO card at address 0001[ 4.258017] *******************sdio init ok*******************[ 4.260536] systemd[1]: Started Increase datagram queue length.[ 4.301356] [wifi_pm]: set wl_reg_on 1 ![ 4.307922] bFWReady == _FALSE call reset 8051...[ 4.329216] bFWReady == _FALSE call reset 8051...[ 4.350520] bFWReady == _FALSE call reset 8051...[ 4.373594] RTL871X: rtw_ndev_init(wlan0)[ 4.374598] RTL871X: rtw_ndev_init(wlan1)[ 4.375834] RTL871X: module init ret=0[ 4.380636] systemd[1]: Started Restore / save the current clock.[ 4.460529] systemd[1]: Started Create list of required static device nodes for the current kernel.[ 4.680680] systemd[1]: Started Load Kernel Modules.[ 4.760551] systemd[1]: Started LSB: Set keymap.[ 4.810514] systemd[1]: Started udev Coldplug all Devices.[ 4.813152] systemd[1]: Time has been changed[ 4.813480] systemd[1]: Mounting FUSE Control File System...[ 4.860746] systemd[1]: Mounted Configuration File System.[ 4.860913] systemd[1]: Starting Apply Kernel Variables...[ 4.941550] systemd[1]: Starting Create Static Device Nodes in /dev...[ 5.001189] systemd[1]: Starting Syslog Socket.[ 5.002384] systemd[1]: Listening on Syslog Socket.[ 5.002652] systemd[1]: Starting Journal Service...[ 5.061280] systemd[1]: Started Journal Service.[ 5.286807] systemd-udevd[115]: starting version 215[ 8.932241] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=writeback,commit=600,errors=remount-ro[ 10.659991] systemd-journald[114]: Received request to flush runtime journal from PID 1[ 11.005202] gmac0: probed[ 11.005371] gmac0 gmac0: eth0: eth0: PHY ID 001cc915 at 0 IRQ poll (gmac0-0:00)[ 15.000890] PHY: gmac0-0:00 - Link is Up - 100/Full[ 21.260023] eth0: no IPv6 routers present[ 79.574160] Adding 131068k swap on /var/swap. Priority:-1 extents:8 across:638972k SS[ 240.220136] INFO: task vsync proc 0:54 blocked for more than 120 seconds.[ 240.220166] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.[ 240.220191] vsync proc 0 D c06dafd8 0 54 2 0x00000000[ 240.220273] [] (__schedule+0x5e4/0x7c0) from [] (schedule+0x8c/0x90)[ 240.220323] [] (schedule+0x8c/0x90) from [] (kthread+0x84/0xa8)[ 240.220376] [] (kthread+0x84/0xa8) from [] (kernel_thread_exit+0x0/0x8)[ 240.220410] INFO: task vsync proc 1:55 blocked for more than 120 seconds.[ 240.220432] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.[ 240.220456] vsync proc 1 D c06dafd8 0 55 2 0x00000000[ 240.220511] [] (__schedule+0x5e4/0x7c0) from [] (schedule+0x8c/0x90)[ 240.220556] [] (schedule+0x8c/0x90) from [] (kthread+0x84/0xa8)[ 240.220602] [] (kthread+0x84/0xa8) from [] (kernel_thread_exit+0x0/0x8)[ 360.220134] INFO: task vsync proc 0:54 blocked for more than 120 seconds.[ 360.220164] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.[ 360.220190] vsync proc 0 D c06dafd8 0 54 2 0x00000000[ 360.220271] [] (__schedule+0x5e4/0x7c0) from [] (schedule+0x8c/0x90)[ 360.220320] [] (schedule+0x8c/0x90) from [] (kthread+0x84/0xa8)[ 360.220373] [] (kthread+0x84/0xa8) from [] (kernel_thread_exit+0x0/0x8)[ 360.220407] INFO: task vsync proc 1:55 blocked for more than 120 seconds.[ 360.220429] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.[ 360.220453] vsync proc 1 D c06dafd8 0 55 2 0x00000000[ 360.220508] [] (__schedule+0x5e4/0x7c0) from [] (schedule+0x8c/0x90)[ 360.220553] [] (schedule+0x8c/0x90) from [] (kthread+0x84/0xa8)@qualcomm.com> [ 360.220599] [] (kthread+0x84/0xa8) from [] (kernel_thread_exit+0x0/0x8) ___ _ _ _____ / _ \ _ __ __ _ _ __ __ _ ___ | | | |___ / | | | | '__/ _` | '_ \ / _` |/ _ \ | |_| | |_ \ | |_| | | | (_| | | | | (_| | __/ | _ |___) | \___/|_| \__,_|_| |_|\__, |\___| |_| |_|____/ |___/ Welcome to ARMBIAN Debian GNU/Linux 8 (jessie) 3.4.40-sun8i System load: 2.02 Up time: 6 min Memory usage: 6 % of 1000Mb IP: 172.16.100.142 CPU temp: 29°C Usage of /: 15% of 7.4G [ 59 updates to install: apt-get upgrade ] Image for OPi+ (the one with external GMAC). Should boot on any H3 orange, serial console only. http://mirror.igorpecovnik.com/test/Armbian_4.83_Orangepiplus_Debian_jessie_3.4.40.zip Kernel for those who has internal MAC http://mirror.igorpecovnik.com/test/OPI_PC_linux-image-sun8i_4.83_armhf.zip Can be rebuild with: https://github.com/igorpecovnik/lib/(default is without external GMAC support) 2
tkaiser Posted January 31, 2016 Author Posted January 31, 2016 There are 624 vs 672 different DRAM_CLK values but that's subjective decision. Good point since Siarhei applied this fix for testing purposes that should be reverted: https://github.com/ssvb/linux-sunxi/commit/3d63f79adb605cd6df551307e0dd62ce22535813 (then DRAM clock frequency can be set in script.bin and will be downclocked automagically if 'budget cooling' detects thermal values too high) Regarding Ethernet: I'll do a search myself when I'm back into civilisation (where network doesn't suck that much). Will try two searches: either "ssvb yann|work kernel ethernet site:whitequark.org" or "ssvb kotczarny kernel ethernet site:whitequark.org"
tkaiser Posted February 1, 2016 Author Posted February 1, 2016 Image for OPi+ (the one with external GMAC). Should boot on any H3 orange, serial console only. http://mirror.igorpecovnik.com/test/Armbian_4.83_Orangepiplus_Debian_jessie_3.4.40.zip Kernel for those who has internal MAC http://mirror.igorpecovnik.com/test/OPI_PC_linux-image-sun8i_4.83_armhf.zip Thx a lot, works like a charm! All I had to do to switch from Orange Pi Plus settings to PC was to mount an USB thumb drive with the OPI_PC_linux-image-sun8i_4.83_armhf.deb on it (important: not all USB ports work on the Orange Pi PC when booted with script.bin for Plus -- I chose the upper horizontal!), installed this using 'dpkg -i' followed by ln -sf /boot/bin/orangepipc.bin /boot/script.bin followed by a reboot (I adjusted /etc/hostname too). Interesting: /sys/class/thermal/thermal_zone1/temp --> 29 (too low) /sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/cur_freq --> 672 MHz (too high )
Igor Posted February 1, 2016 Posted February 1, 2016 I also got 4.4.1 working with SMP, USB and SATA. GMAC is not done yet.Download and install. You will need to force load DTB for OPi PC.
tkaiser Posted February 1, 2016 Author Posted February 1, 2016 Just another note. I just installed RPi-monitor since the SoC's temperature seems to be way too low. Idle temperature is ~30°C which is really low given ambient temperature is at ~24°C and this is the very same Orange Pi PC with the same heatsink attached: http://linux-sunxi.org/User:Tkaiser#Tests_with_just_a_heatsink Back then I got idle temperatures at ~40°C that increased up to 60°C under full load when running cpuburn-a7 on all 4 cores (but I used a different dvfs table using lower Vcore voltages). Now with the 'official' dvfs table (higher Vcore voltages and also 1296MHz operating point) the SoC's temperature just slightly increased 60°C when running at 1.3GHz: Simple conclusion: Thermal calibration differs between loboris' kernel and the one Armbian uses know. EDIT: And average load is always 3 or above: root@orangepipc:/tmp/cpuburn-arm# ps auxww | grep D USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 34 0.0 0.0 0 0 ? D 11:43 0:01 [usb-hardware-sc] root 55 0.0 0.0 0 0 ? D 11:43 0:00 [vsync proc 0] root 56 0.0 0.0 0 0 ? D 11:43 0:00 [vsync proc 1] Load decreases to 2 if the usual script.bin fix (in [usbc0] section change usb_detect_type = 0) will be applied. And then there is this vsync thing. I tried this as a workaround but to no avail: echo 0 > /proc/sys/kernel/hung_task_timeout_secs These patches might also be worth a look: https://github.com/jernejsk/OpenELEC-OPi2/tree/master/projects/H3/patches/linux https://github.com/O-Computers/linux-sunxi/commits/h3 (starting from Jan. 13th -- IIRC this first patch might enable one single kernel binary for both internal and external RTL8211 PHY)
martinayotte Posted February 3, 2016 Posted February 3, 2016 Hi Igor, Hi TKaiser, Seeing those progress and commits, I've decided to jump into the bandwagon ! :-) I've compiled an image using Armbian-4.4.1 for OrangePi-PC, write it to a microsd and try it out. It boot properly, although boot is not very verbose, I presume it is on purpose. I decided next to get some networking using RTL8188 dongle : it wasn't seen in lsusb at first, I've connected it to vertical USB, but placing into the dual one, it worked ! I've then look at the GPIO using orangepi_PC_gpio_pyH3-master, it work too ! But for I2C bus, none are detected, so maybe there is something to tweak in the kernel configs, I will digg more ... BTW, I wasn't able to verify the clock speed, it is not in /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq anymore. Where should I look ? (in the dmesg log, I can see "cpu cpu0: failed to get cpu0 clock: -2") Thanks for all your work, EDIT : For I2C, I've compared kernel configs with my previous Loboris's build, and they look Ok, so it is maybe a bug ... :-( 1
electric Posted February 4, 2016 Posted February 4, 2016 I would like for my project smart home use Orange Pi One. There are already in the system cubietruck, bananapi. All work under armbian and work very stable! Please let me know if I can order Orange Pi One? Is there any hope that the image of the operating system will appear in the official release? Thank you!
Igor Posted February 4, 2016 Posted February 4, 2016 Images and full support will appear when we will be satisfied with quality / stability for headless usage. Currently we don't have network support and we don't know if things are truly stable. I would not use H3 in productive environment for next 1-2 months but since I just started to dig more into those Oranges don't take this as too serious. Check also this (similar) Olimex board - its open hardware and therefore it will get better support: https://olimex.wordpress.com/2016/02/03/h3-olinuxino-nano-is-only-50x50-mm-but-has-everything-one-computer-must-have/ 1
electric Posted February 5, 2016 Posted February 5, 2016 Images and full support will appear when we will be satisfied with quality / stability for headless usage. Currently we don't have network support and we don't know if things are truly stable. I would not use H3 in productive environment for next 1-2 months but since I just started to dig more into those Oranges don't take this as too serious. Check also this (similar) Olimex board - its open hardware and therefore it will get better support: https://olimex.wordpress.com/2016/02/03/h3-olinuxino-nano-is-only-50x50-mm-but-has-everything-one-computer-must-have/ Thanks for the info! Indeed a very interesting project and positive comments on the news in the blog! I probably wait a bit, I will not be ordered board orange pi one ...
tkaiser Posted February 10, 2016 Author Posted February 10, 2016 Just FYI: Orange Pi One arrived today and runs Igor's Orange Pi image with Orange Pi PC settings. Ethernet and the one USB port work. But as expected since due to the different voltage regulator different dvfs settings should've been applied: [ 2745.863456] [ARISC WARING] :callback not install [ 2745.863466] [cpu_freq] ERR:set cpu frequency to 1008MHz failed! [ 2746.477043] [ARISC ERROR] :message process error [ 2746.477055] [ARISC ERROR] :message addr : f004b840 [ 2746.477065] [ARISC ERROR] :message state : 5 [ 2746.477074] [ARISC ERROR] :message attr : 2 [ 2746.477082] [ARISC ERROR] :message type : 30 [ 2746.477092] [ARISC ERROR] :message result : ff Apart from that the reported SoC temperature is rather high, so next step is to just try out to adjust https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/h3/xunlong_orange_pi_pc.fex#L738 Simply changing pmuic_type = 1 didn't do the trick: http://pastebin.com/Q3taqHbL EDIT: The different thermal values are related to cold boot vs. reboot. I exchanged pmuic_type several times but that didn't change anything but after a simple reboot the reported temperature was a few degress higher. But by changing pmuic_type I was able to further increase idle temperature so at least something seems to work (on the Orange Pi One the voltage regulator is not accessible through I2C but GPIO instead. It seems a few resistors should switch between 1.1V - 1.3V core voltage. 1
tkaiser Posted February 11, 2016 Author Posted February 11, 2016 EDIT: Working settings have been found and are included into Armbian -- no workaround necessary. See at the end of the thread and skip this post. Another small update on the 'One'. Replacing pmuic_type = 2 with pmuic_type = 0 in fex/script.bin does bring back thermal throttling. If pmuic_type is either 2 (I2C -- the correct way on all the other H3 based Orange Pis) or 1 (GPIO -- this is how it should work on Orange Pi One/Lite) then the A100 OpenRISC core contained in the H3 and responsible for 'power management' tries to apply both cpufreq scaling and voltage settings. If the latter (adjusting Vcore voltage) fails then thermal throttling also fails therefore the CPU cores are running at 1008 MHz all the time but when SoC temperature exceeds 90°C CPU cores were shutdown rather quickly and can't be brought back until the next reboot. If you don't adjust this setting and neither use heatsink nor fan then you will end up with less available CPU cores very quickly -- compare with: /usr/bin/expr 1 + `/usr/bin/awk -F": " '/^processor/ {print $2}' < /proc/cpuinfo | /usr/bin/tail -n1` If pmuic_type = 0 is used instead then at least cpufreq scaling is working again and the kernel driver lowers CPU clockspeeds when the SoC temperature exceeds 85°C. Therefore using pmuic_type = 0 seems to be the workaround of choice unless the code is fixed to deal with the different voltage regulator so that dynamic voltage frequency scaling (dvfs -- adjusting not only the clockspeed but also the voltage of the CPU cores dynamically) will be working again. TL;DR: Using pmuic_type = 0 as a workaround in script.bin leads to working cpufreq scaling again. After applying this change, all CPU cores are running with 1.3V but the clockspeed will be adjusted dynamically so that thermal throttling works. Without this fix all CPU cores are running constantly at 1008MHz/1.3V and when the SoC's temperature exceeds a certain treshold then CPU cores were shutdown to prevent overheating. Once the issue is resolved and dvfs is working as it should again, the CPU cores will switch dynamically between 648MHz @ 1.1V and 1200MHz @ 1.3V.
Igor Posted February 11, 2016 Posted February 11, 2016 I added separate config with this change already applied. https://github.com/igorpecovnik/lib/commit/1992ab5693a753aeaf62ee860d807c16a97ca52c 1
tkaiser Posted February 11, 2016 Author Posted February 11, 2016 I added separate config with this change already applied. https://github.com/igorpecovnik/lib/commit/1992ab5693a753aeaf62ee860d807c16a97ca52c Thx a lot. In the final version the two missing USB ports and IR should be removed (will try that out next) and of course we need to know the necessary parameters for the new voltage regulator: https://github.com/ssvb/linux-sunxi/blob/20151207-embedded-lima-memtester-h3/drivers/arisc/interfaces/arisc_dvfs.c#L218-L225 It's a bit sad/mad that Xunlong already sells the board and does neither provide schematics nor these informations how to drive the regulator through GPIO on the new boards. But I would assume they're still on holidays and maybe next week we get the informations or new OS images where the only interesting information is encoded in script.bin
bl4ckc00k1e Posted February 11, 2016 Posted February 11, 2016 Hi, The image of Orange Pi of now, can`t boot it.We ahve Orange pi 2 and will habe soon Orange pi + I would colaborate on testing, for now only i can work with armbian on orange pi with a serial console?? (uart conection?)
Igor Posted February 11, 2016 Posted February 11, 2016 I would colaborate on testing, for now only i can work with armbian on orange pi with a serial console?? (uart conection?) It's the image which you can find here in forum, only test builds exists if you have Orange Pi with H3 chip. Yes, no screen console @moment. Armbian is using standard opensource u-boot which currently does not support HDMI console. This will probably be resolved soon. I haven't pay much attention to this so it might be already fixed ...
bl4ckc00k1e Posted February 11, 2016 Posted February 11, 2016 It's the image which you can find here in forum, only test builds exists if you have Orange Pi with H3 chip. Yes, no screen console @moment. Armbian is using standard opensource u-boot which currently does not support HDMI console. This will probably be resolved soon. I haven't pay much attention to this so it might be already fixed ... Is this?? http://www.armbian.com/orange-pi/
Igor Posted February 11, 2016 Posted February 11, 2016 http://www.armbian.com/orange-pi/ That one is of Orange with A20 chip which is clearly seen on the picture. This is latest H3 Oranges testing image: http://forum.armbian.com/index.php/topic/617-wip-support-for-the-upcoming-orange-pi-one/?p=4698 P.S.It's confusing, I know
tkaiser Posted February 12, 2016 Author Posted February 12, 2016 Think I got it. Here's the modified fex file for Orange Pi one: http://pastebin.com/JQ9LN4jS Changes: modified dvfs_table to work with the new voltage regulator driven through GPIO (648 MHz and below 1.1V, otherwise 1.3V) modified cooler_table to reflect these changes disabled usbc2, usbc3 and IR I made already some tests and can confirm that switching voltage works and errors are gone: http://linux-sunxi.org/Orange_Pi_One#Compatibility
tkaiser Posted February 12, 2016 Author Posted February 12, 2016 Funny: I downloaded loboris' Ubuntu Mate 15.04 image for Orange Pi PC, applied all available fixes to kernel/script.bin and tried out our fex file for the Orange Pi One with his image: Both temperature and consumption are higher than with Igor's image and cpufreq scaling behaves strangely with the new fex (only jumping between 1008 and 1200 MHz). When testing the usual sysbench run I even managed to exceed 90°C and ended up with only one remaining active CPU core since 'budget cooling' disabled the other due to overheating. According to the sources loboris uses it might be necessary to also apply the fex fixes prior to building u-boot (boot log here: http://pastebin.com/12eKRhfY) But at least situation improves when using our fex file with loboris' OS images. With his script.bin stuff for Orange Pi PC syslog gets flooded with "ARISC ERROR" messages due to wrong voltage regulator type, idle temperature is at 70-75°C and consumption at ~3.0W. Combining our fex settings with his image the error messages disappear, idle temperature is at approx. 54°C and consumption is at ~2.0W. When using Igor's image with our fex file for the 'One' then we're talking about ~45°C and 1.6W when being idle (dvfs settings leading to 648 MHz @ 1.1V). Our OS image is also way more performant since thermal throttling jumps in later and CPU cores aren't killed unless I ran cpuburn-a7. All this happened on an Orange Pi One without heatsink (ambient temperature at ~24°C) 1
tkaiser Posted February 13, 2016 Author Posted February 13, 2016 Small sidenote: I just used Armbian_5.00_Orangepione_Debian_jessie_3.4.40 to boot my Orange Pi One (I added PC and One to our build system. Will send a pull request later). Unresolved issues: No display and no Ethernet. Since I exchanged ssvb's kernel sources with Yann Dirson's I'll have to have a look whether it's just a fex thing now or different kernel patching has to happen to differentiate between internal PHY and external GBit PHY like on the Plus
Recommended Posts