Sodrohu Posted October 2, 2017 Posted October 2, 2017 Hello and hi everyone. So I've got a Cubietruck with the NAND replaced by TSD eMMC. The TSD behaves like an SD card, and previously tested to run OK using Cubieez-TSD. However, I need to run Node.JS on the Truck, and the Cubieez Debian Wheezy Node.JS support stops at v6 (now we're at NodeJS v8). Ubuntu Xenial will still have NodeJS v8 support, so it's good excuse to change to a new OS. I'm using this image to successfully flash my SD card: Armbian_5.31_Cubietruck_Ubuntu_xenial_default_3.4.113_desktop. First time booting the CT from SD, I got the usual prompt, then the desktop loaded. First problem: The screen is misaligned. https://drive.google.com/open?id=0B5XGa48DW48qZzF0OWZ4Y1lZRk0 I opened /boot/armbianEnv.txt and changed the "disp_mode" to "1280x768p60". After reboot, the problem persists, albeit at lower resolution. I figured out the problem can be solved later, so I checked if the TSD is detected or not. Obviously it wasn't: https://drive.google.com/open?id=0B5XGa48DW48qNWVjcllVV2ZzbGM console output: ls dev: mmcblk0 mmcblk0p1 df -h: Filesystem Mounted on /dev/mmcblk0p1 / I modified the script.bin file in /boot. Here's the part that I modified: Spoiler [mmc2_para] sdc_used = 1 sdc_det = port:PH00<3><1><default><default> [nand_para] nand_used = 0 leds_trigger_1 = "heartbeat" leds_trigger_2 = "cpu0" leds_trigger_3 = "cpu1" [spi_devices] spi_dev_num = 1 [spi_board0] modalias = "spidev" max_speed_hz = 24000000 bus_num = 2 chip_select = 0 mode = 3 full_duplex = 0 manual_cs = 0 [spi2_para] spi_used = 1 [twi_para] twi_port = 0 The important bits were the nand and mmc, although I included (most of) the modifications for reference. With that, I put the new script.bin in /boot (with the original script.bin renamed), and rebooted the CT. Here's the result: https://drive.google.com/open?id=0B5XGa48DW48qQlRlRFFCUGRLVzQ Spoiler ls /dev: mmcblk0 mmcblk0p1 mmcblk1 mmcblk1p1 df -h Filesystem Mounted on /dev/mmcblk1p1 / /dev/mmcblk0p1 /media/cubie/(TSD UUID here, different from SDcard UUID) So it detects! Here's the serial console message I got when booting the CT: Spoiler U-Boot SPL 2017.05-armbian (Jun 15 2017 - 02:37:55) DRAM: 2048 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC1 U-Boot 2017.05-armbian (Jun 15 2017 - 02:37:55 +0200) Allwinner Technology CPU: Allwinner A20 (SUN7I) Model: Cubietech Cubietruck I2C: ready DRAM: 2 GiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment HDMI connected: Setting up a 1366x768 hdmi console (overscan 0x0) In: serial Out: vg Err: vga SCSI: SATA link 0 timeout. AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part ccc apst Net: eth0: ethernet@01c50000 Hit any key to stop autoboot: 0 38518 bytes read in 151 ms (249 KiB/s) switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3565 bytes read in 202 ms (16.6 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 173 bytes read in 162 ms (c1000 Bytes/s) 5077441 bytes read in 566 ms (8.6 MiB/s) 5591152 bytes read in 609 ms (8.8 MiB/s) Found legacy kernel configuration 46440 bytes read in 100 ms (453.1 KiB/s) ## Loading init Ramdisk from Legacy Image at 43300000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5077377 Bytes = 4.8 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Ramdisk to 49b28000, end 49fff981 ... OK Starting kernel ... <6>Booting Linux on physical CPU 0 <6>Initializing cgroup subsys cpuset <6>Initializing cgroup subsys cpu <5>Linux version 3.4.113-sun7i (root@devel) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #23 SMP PREEMPT Wed Jun 14 23:57:45 CEST 2017 CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: sun7i <6>Memory Reserved: <6> SYS : 0x43000000 - 0x4300ffff ( 64 kB) <6> VE : 0x44000000 - 0x48ffffff ( 80 MB) <6> G2D : 0x49000000 - 0x49ffffff ( 16 MB) <6> LCD : 0x4a000000 - 0x4bffffff ( 32 MB) Memory policy: ECC disabled, Data cache writealloc <6>sunxi: Allwinner A20 (AW1651/sun7i) detected. m<7>On node 0 totalpages: 524288 <7>free_area_init_node: node 0, pgdat c0a81300, node_mem_map d0000000 <7> DMA zone: 512 pages used for memmap <7> DMA zone: 0 pages reserved <7> DMA zone: 65024 pages, LIFO batch:15 <7> Normal zone: 1008 pages used for memmap <7> Normal zone: 128016 pages, LIFO batch:31 <7> HighMem zone: 2576 pages used for memmap <7> HighMem zone: 327152 pages, LIFO batch:31 <6>PERCPU: Embedded 8 pages/cpu @d100e000 s8256 r8192 d16320 u32768 <7>pcpu-alloc: s8256 r8192 d16320 u32768 alloc=8*4096<c> <7>pcpu-alloc: <c>[0] <c>0 <c>[0] <c>1 <c> Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520192 <5>Kernel command line: root=UUID=dd521cfb-c723-413f-a363-3b72deca68ad rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1280x768p60 panic=10 consoleblank=0 loglevel=1 ubootpart=9aadb50f-01 ubootsource=mmc cgroup_enable=memory swapaccount=1 <6>PID hash table entries: 4096 (order: 2, 16384 bytes) <6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) <6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) <6>allocated 4194304 bytes of page_cgroup <6>please try 'cgroup_disable=memory' option if you don't want memory cgroups <6>Memory: 2048MB = 2048MB total <5>Memory: 1931948k/1931948k available, 165204k reserved, 1318912K highmem <5>Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) lowmem : 0xc0000000 - 0xef800000 ( 760 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc09d9cd4 (10056 kB) .init : 0xc09da000 - 0xc0a11040 ( 221 kB) .data : 0xc0a12000 - 0xc0a89c28 ( 480 kB) .bss : 0xc0a89c4c - 0xc0c5ee30 (1877 kB) <6>SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 <6>Preemptible hierarchical RCU implementation. <6> RCU dyntick-idle grace-period acceleration is enabled. <6> Additional per-CPU info printed with stalls. <6>NR_IRQS:192 <6>Architected local timer running at 24.00MHz. <6>sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms <2>start_kernel(): bug: interrupts were enabled early <6>Console: colour dummy device 80x30 <6>console [tty1] enabled <6>Calibrating delay loop... <c>1816.98 BogoMIPS (lpj=9084928) <6>pid_max: default: 32768 minimum: 301 <6>Mount-cachehash table entries: 512 <6>Initializing cgroup subsys cpuacct <6>Initializing cgroup subsys memory <6>Initializing cgroup subsys devices <6>Initializing cgroup subsys freezer <6>Initializing cgroup subsys blkio <6>Initializing cgroup subsys perf_event <6>CPU: Testing write buffer coherency: ok <6>CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 <6>hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available <6>Setting up static identity map for 0x4071fb48 - 0x4071fba0 CPU1: Booted secondary processor <6>CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 <6>Brought up 2 CPUs <6>SMP: Total of 2 processors activated (3640.52 BogoMIPS). <6>devtmpfs: initialized <6>dummy: <6>NET: Registered protocol family 16 <6>DMA: preallocated 256 KiB pool for atomic coherent allocations <6>hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. <6>hw-breakpoint: maximum watchpoint size is 8 bytes. <6>[ccu-inf] aw clock manager init <6>[ccu-inf] aw_ccu_init <6>[ccu-inf] script config pll3 to 297MHz <6>[ccu-inf] script config pll4 to 300MHz <6>[ccu-inf] script config pll6 to 600MHz <6>[ccu-inf] script config pll7 to 297MHz <6>[ccu-inf] script config pll8 to 336MHz <6>Init eGon pin module V2.0 <6>bio: create slab <bio-0> at 0 <6>sunxi_gpio driver init ver 1.3 <3>sunxi_gpio_probe script_parser_fetch '[gpio_para]' 'gpio_pin_3' err <6>gpiochip_add: registered GPIOs 1 to 4 on device: A1X_GPIO <5>SCSI subsystem initialized <7>libata version 3.00 loaded. <6>usbcore: registered new interface driver usbfs <6>usbcore: registered new interface driver hub <6>usbcore: registered new device driver usb <6>Linux media interface: v0.10 <6>Linux video capture interface: v2.00 <6>Advanced Linux Sound Architecture Driver Version 1.0.25. <6>Switching to clocksource arch_sys_counter <5>FS-Cache: Loaded <6>CacheFiles: Loaded <6>cfg80211: Calling CRDA to update world regulatory domain [usb_manager]: CONFIG_USB_SW_SUNXI_USB0_OTG [sw_hcd0]: usb host driver initialize........ [sw_hcd0]: open_usb_clock [sw_hcd0]: host_init_state = 1 [sw_hcd0]: platform is usb host [sw_hcd0]: sw_hcd_host0: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn) [sw_hcd0]: sw_hcd_init_controller: w_hcd_host0: USB Host mode controller at f1c13000 using PIO, IRQ 70 <6>sw_hcd_host0 sw_hcd_host0: sw_hcd host driver <6>sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned bus number 1 <6>hub 1-0:1.0: USB hub found <6>hub 1-0:1.0: 1 port detected wrn: hcd is not enable, need not start hcd [sw_hcd0]: sw_usb_host0_disable start -------sw_hcd0_soft_disconnect--------- is_on = 0, hcd0_set_vbus_cnt = 0 [sw_hcd_host0]: Set USB Power Off wrn: hcd is not enable, need not stop hcd [sw_hcd0]: close_usb_clock [sw_hcd0]: sw_usb_host0_disable end [sw_udc]: udc_init: version 20080411 <6>NET: Registered protocol family 2 <6>IP route cache hash table entries: 32768 (order: 5, 131072 bytes) <6>TCP established hash table entries: 131072 (order: 8, 1048576 bytes) <6>TCP bind hash table entries: 65536 (order: 7, 786432 bytes) <6>TCP: Hash tables configured (established 131072 bind 65536) <6>TCP: reno registered <6>UDP hash table entries: 512 (order: 2, 16384 bytes) <6>UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) <6>NET: Registered protocol family 1 <6>RPC: Registered named UNIX socket transport module. <6>RPC: Registered udp transport module. <6>RPC: Registered tcp transport module. <6>RPC: Registered tcp NFSv4.1 backchannel transport module. <6>Trying to unpack rootfs image as initramfs... <6>Freeing initrd memory: 4956K <6>audit: initializing netlink socket (disabled) <5>type=2000 audit(0.980:1): initialized highmem bounce pool size: 64 pages <5>VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) <6>squashfs: version 4.0 (2009/01/31) Phillip Lougher <5>NFS: Registering the id_resolver key type <6>NTFS driver 2.1.30 [Flags: R/W]. <6>fuse init (API version 7.18) <6>JFS: nTxBlock = 8192, nTxDLock = 65536 <6>SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled <6>Btrfs loaded <6>msgmni has been set to 1207 <6>alg: No test for stdrng (krng) <6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) <6>io scheduler noop registered <6>io scheduler deadline registered <6>io scheduler cfq registered (default) <6>sunxi disp driver loaded (/dev/disp api 1.0) <6>Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled <6>[uart]: used uart info.: 0x9d <4>b[uart]: serial probe 0 irq 33 mapbase 0x01c28000 <6>sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A <6>console [ttyS0] enabled <6>[uart]: serial probe 2 irq 35 mapbase 0x01c28800 <6>sunxi-uart.2: ttyS1 at MMIO 0x1c28800 (irq = 35) is a U6_16550A <6>[uart]: serial probe 3 irq 36 mapbase 0x01c28c00 <6>sunxi-uart.3: ttyS2 at MMIO 0x1c28c00 (irq = 36) is a U6_16550A <6>[uart]: serial probe 4 irq 49 mapbase 0x01c29000 <6>sunxi-uart.4: ttyS3 at MMIO 0x1c29000 (irq = 49) is a U6_16550A <6>[uart]: serial probe 7 irq 52 mapbase 0x01c29c00 <6>sunxi-uart.7: ttyS4 at MMIO 0x1c29c00 (irq = 52) is a U6_16550A <7>G2D: drv_g2d_init <6>G2D: g2dmem: g2d_start=49000000, g2d_size=1000000 <6>G2D: head:c9000000,tail:ca000000 <6>G2D: Module initialized.major:250 <6>brd: module loaded <6>loop: module loaded [NAND] nand driver version: 0x2 0x9 PHY_SynchBank : last W/E operation fail,chip = 0, bank = 0, cmd value = 70, status = 7f [SCAN_ERR] Reset boot nand flash chip failed! [NAND]init_blklayer fail pwm-sunxi: pwm0 configured - period: 20, duty_percent: 50, duty: 10 <6>sw_ahci sw_ahci.0: controller can't do PMP, turning off CAP_PMP <6>ahci: SSS flag set, parallel bus scan disabled <6>sw_ahci sw_ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode <6>sw_ahci sw_ahci.0: flags: ncq sntf stag pm led clo only pio slum part ccc <6>scsi0 : sw_ahci_platform <6>ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 88 <3>[spi-err] Get spi devices number failed <3>[spi-err] register spi devices board info failed <4>spi: cannot find any using configuration for all 4 spi controllers, return directly! <6>bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) <6>Fixed MDIO Bus: probed <4>emac_init fetch emacCusing configuration failed <6>emac driver is disabled <6>gmac: use mac address from chipid <6>gmac: device MAC address 02:c9:03:41:78:57 [gmac]: sun6i_gmac platform driver registration completed <6>PPP generic driver version 2.4.2 <6>PPP BSD Compression module registered <6>PPP Deflate Compression module registered <6>PPP MPPE Compression module registered <6>NET: Registered protocol family 24 <6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver <6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [sw-ehci1]: open clock [sw-ehci1]: Set USB Power ON <6>sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver <6>sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 2 <6>sw-ehci sw-ehci.1: irq 71, io mem 0x01c14000 <6>sw-ehci sw-ehci.1: USB 2.0 started, EHCI 1.00 <6>hub 2-0:1.0: USB hub found <6>hub 2-0:1.0: 1 port detected [sw-ohci1]: open clock <6>sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver <6>sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 3 <6>sw-ohci sw-ohci.1: irq 96, io mem 0x01c14400 <6>hub 3-0:1.0: USB hub found <6>hub 3-0:1.0: 1 port detected [sw-ehci2]: open clock [sw-ehci2]: Set USB Power ON <6>sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver <6>sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 4 <6>sw-ehci sw-ehci.2: irq 72, io mem 0x01c1c000 <6>sw-ehci sw-ehci.2: USB 2.0 started, EHCI 1.00 ehci_irq: port change detect <6>hub 4-0:1.0: USB hub found <6>hub 4-0:1.0: 1 port detected [sw-ohci2]: open clock <6>ata1: SATA link down (SStatus 0 SControl 300) <6>sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver <6>sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 5 <6>sw-ohci sw-ohci.2: irq 97, io mem 0x01c1c400 <6>hub 5-0:1.0: USB hub found <6>hub 5-0:1.0: 1 port detected <6>Initializing USB Mass Storage driver... <6>usbcore: registered new interface driver usb-storage <6>USB Mass Storage support registered. <6>usbcore: registered new interface driver ums-alauda <6>usbcore: registered new interface driver ums-cypress <6>usbcore: registered new interface driver ums-datafab <6>usbcore: registered new interface driver ums_eneub6250 <6>usbcore: registered new interface driver ums-freecom <6>usbcore: registered new interface driver ums-isd200 <6>usbcore: registered new interface driver ums-jumpshot <6>usbcore: registered new interface driver ums-karma <6>usbcore: registered new interface driver ums-onetouch <6>usbcore: registered new interface driver ums-realtek <6>usbcore: registered new interface driver ums-sddr09 <6>usbcore: registered new interface driver ums-sddr55 <6>usbcore: registered new interface driver ums-usbat <6>mousedev: PS/2 mouse device common for all mice ===========================hv_keypad_init===================== ========HV Inital =================== ehci_irq: port change detect <3>tkey_fetch_sysconfig_para: tkey_unused. hv_keypad_init: after fetch_sysconfig_para: normal_i2c: 0x0. normal_i2c[1]: 0x0 <3>sunxi-rtc sunxi-rtc: Warning: RTC time is wrong! <6>sunxi-rtc sunxi-rtc: rtc core: registered rtc as rtc0 <6>i2c /dev entries driver config i2c gpio with gpio_config api <6>axp_fd 0-0034: AXP (CHIP ID: 0x41) detected <6>axp_mfd 0-0034: AXP internal temperature monitoring enabled <4>i2c i2c-0: Invalid probe address 0x00 <6>I2C: i2c-0: AW16XX I2C adapter [cedar dev]: install start!!! [cedar dev]: install end!!! [tt]----- avs_dev driver load... ---- The port change to OHCI now! [tt]----- register iomem ---- Cannot reserve region for ccmu [tt]--- avs_dev driver load ok!! ----- [ace_drv] start!!! [ace_drv] init end!!! [pa_drv] start!!! [pa_drv]init end!!! <6>axp20_ldo1: 1300 mV <6>axp20_ldo2: 1800 <--> 3300 mV at 3000 mV <6>axp20_ldo3: 700 <--> 3500 mV at 2800 mV <6>axp20_ldo4: 1250 <--> 3300 mV at 2800 mV <6>axp20_buck2: 700 <--> 2275 mV at 1450 mV <3>somebody is trying to set dcdc3 range to (1300000, 1300000) uV <3>but we keep dcdc3 = 1250000 uV from the bootloader <6>axp20_buck3: 700 <--> 3500 mV at 1250 mV <6>axp20_ldoio0: 1800 <--> 3300 mV at 2800 mV <6>input: axp20-supplyer as /devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input0 <4>axp20_ldo2: Failed to create debugfs directory incomplete xfer (0x20) incomplete xfer (0x20) incomplete xfer (0x20) incomplete xfer (0x20) incomplete xfer (0x20) incomplete xfer (0x20) incomplete xfer (0x20) incomplete xfer (0x20) incomplete xfer (0x20) <6>device-mapper: uevent: version 1.0.3 <6>device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com <6>device-mapper: multipath: version 1.3.2 loaded <6>device-mapper: multipath round-robin: version 1.0.0 loaded <6>device-mapper: multipath queue-length: version 0.1.0 loaded <6>device-mapper: multipath service-time: version 0.2.0 loaded <6>cpuidle: using governor ladder <6>cpuidle: using governor menu <6>[mmc-msg] sw_mci_init <6>[mmc-msg] MMC host used card: 0xd, boot card: 0x4, io_card 8 <6>[mmc-msg] sdc2 set round clock 400000, src 24000000 <6>[mmc-msg] sdc2 set ios: clk 0Hz bm OD pm OFF svdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc2 Probe: base:0xf0622000 irq:66 sg_cpu:f0624000(4fc00000) ret 0. <6>[mmc-msg] sdc2 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc2 power on <6>[mmc-msg] sdc0 set round clock 400000, src 24000000 <6>[mmc-msg] sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc0 Probe: base:0xf0626000 irq:64 sg_cpu:f0628000(4fc01000) ret 0. <6>[mmc-msg] sdc3 set round clock 400000, src 24000000 <6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>usb 5-1: new low-speed USB device number 2 using sw-ohci <6>[mmc-msg] sdc3 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc2 set round clock 400000, src 24000000 <6>[mmc-msg] sdc3 Probe: base:0xf062a000 irq:67 sg_cpu:f062c000(4fc02000) ret 0. [mmc_pm]: failed to fetch sdio card configuration! <6>sunxi_leds driver init <7>Registered led device: blue:ph21:led1 <7>Registered led device: orange:ph20:led2 <7>Registered led device: white:ph11:led3 <7>Registered led device: green:ph07:led4 <6>ledtrig-cpu: registered to indicate activity on CPUs <6>usbcore: registered new interface driver usbhid <6>usbhid: USB HID core driver <6>ashmem: initialized <6>logger: created 256K log 'log_main' <6>logger: created 256K log 'log_events' <6>logger: created 256K log 'log_radio' <6>logger: created 256K log 'log_system' <6>asoc: sndspdif <-> sunxi-spdif.0 mapping ok [I2S-0] Entered sunxi_i2s_init [I2S-0] sunxi_i2s_init I2S used in master mode [I2S-0] Entered sunxi_i2s_dev_probe [I2S-0] sndi2s_codec_init I2S used in master mode [I2S-0] sndi2s_codec_probe I2S used in master mode <3>[mmc-err] smc 2 err, cmd 52, RTO [I2S-0] Entered sunxi_sndi2s_init <3>[mmc-err] smc 2 err, cmd 52, RTO [I2S-0] sunxi_sndi2s_init I2S used in master mode <6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>asoc: sndi2s <-> sunxi-i2s.0 mapping ok <6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>TCP: bic registered <6>TCP: cubic registered <6>TCP: westwood registered <3>[mmc-err] smc 2 err, cmd 5, RTO <6>TCP: highspeed registered <3>[mmc-err] smc 2 err, cmd 5, RTO <6>TCP: hybla registered <3>[mmc-err] smc 2 err, cmd 5, RTO <6>TCP: htcp registered <3>[mmc-err] smc 2 err, cmd 5, RTO <6>TCP: vegas registered <6>TCP: veno registered <6>TCP: scalable registered <6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>TCP: lp registered <6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>TCP: yeah registered <6>TCP: illinois registered <6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>Initializing XFRM netlink socket <6>NET: Registered protocol family 10 <6>NET: Registered protocol family 17 <6>NET: Registered protocol family 15 [mmc_pm]: No sdio card, please check your config !! <5>Registering the dns_resolver key type <6>VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4 <5>Registering SWP/SWPB emulation handler <4>axp20_buck2: Failed to create debugfs directory <6>[cpu_freq] INF:-------------------V-F Table------------------- <6>[cpu_freq] INF: voltage = 1450mv frequency = 1008MHz <6>[cpu_freq] INF: voltage = 1425mv frequency = 912MHz <6>[cpu_freq] INF: voltage = 1350mv frequency = 864MHz <6>[cpu_freq] INF: voltage = 1250mv frequency = 720MHz <6>[cpu_freq] INF: voltage = 1150mv frequency = 528MHz <6>[cpu_freq] INF: voltage = 1100mv frequency = 312MHz <6>[cpu_freq] INF: voltage = 1050mv frequency = 144MHz <6>[cpu_freq] INF: voltage = 1000mv frequency = 0MHz <6>[cpu_freq] INF:----------------------------------------------- <6>[cpu_freq] INF:sunxi_cpufreq_initcall, get cpu frequency from sysconfig, max freq: 912MHz, min freq: 720MHz <6>registered taskstats version 1 <4>[DISP] Unsupported mode: 1280x768p60, ignoring <6>input: SINO WEALTH USB Composite Device as /devices/platform/sw-ohci.2/usb5/5-1/5-1:1.0/input/input1 <6>I2C: i2c-1: HDMI I2C adapter <6>generic-usb 0003:0603:0002.0001: input,hidraw0: USB HID v1.10 Keyboard [SINO WEALTH USB Composite Device] on usb-sw-ohci-1/input0 <6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc2 set round clock 42857143, src 600000000 <6>ParseEDID <6>input: SINO WEALTH USB Composite Device as /devices/platform/sw-ohci.2/usb5/5-1/5-1:1.1/input/input2 <6>EDID version: 1.3 <6>PCLK=85500000 X 1366 1436 1579 1792 Y 768 771 774 798 fr 59 PP <6>generic-usb 0003:0603:0002.0002: input,hiddev0,hidraw1: USB HID v1.10 Mouse [SINO WEALTH USB Composite Device] on usb-sw-ohci-1/input1 <4>Unimplemented SVD code 4 <4>Unimplemented SVD code 16 <4>Unimplemented SVD code 22 <4>Unimplemented SVD code 31 <6>[mmc-msg] sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>mmc0: new high speed SDHC card at address b368 <4>disp_clk: Could not find a matching pll-freq for 53900000 pclk <4>disp_clk: Could not find a matching pll-freq for 108100000 pclk <6>mmcblk0: mmc0:b368 NCard 7.21 GiB <4>disp_clk: Could not find a matching pll-freq for 74200000 pclk <6> mmcblk0: p1 <4>disp_clk: Could not find a matching pll-freq for 53900000 pclk <4>disp_clk: Could not find a matching pll-freq for 72650000 pclk <4>disp_clk: Could not find a matching pll-freq for 81800000 pclk <4>disp_clk: Could not find a matching pll-freq for 26150000 pclk <6>Parse_VideoData_Block: VIC 1 support <6>Parse_VideoData_Block: VIC 2 support <6>Parse_VideoData_Block: VIC 3 support <6>Parse_VideoData_Block: VIC 4 (native) support <6>Parse_VideoData_Block: VIC 5 support <6>Parse_VideoData_Block: VIC 7 support <6>Parse_VideoData_Block: VIC 16 support <6>Parse_VideoData_Block: VIC 18 support <6>Parse_VideoData_Block: VIC 19 (native) support <6>Parse_VideoData_Block: VIC 20 support <6>Parse_VideoData_Block: VIC 22 support <6>Parse_VideoData_Block: VIC 31 support <6>Parse_AudioData_Block: max channel=2 <6>Parse_AudioData_Block: SampleRate code=7 <6>Parse_AudioData_Block: WordLen code=7 <6>Find HDMI Vendor Specific DataBlock <6>PCLK=27000000 X 720 736 798 858 Y 480 489 495 525 fr 59 NN <6>Using above mode as preferred EDID mode <6>PCLK=74250000 X 1280 1720 1760 1980 Y 720 725 730 750 fr 50 PP <6>PCLK=74250000 X 1920 2448 2492 2640 Y 540 542 547 562 fr 50 PP <6>PCLK=27000000 X 720 736 798 858 Y 480 489 495 525 fr 59 NN <6>PCLK=27000000 X 720 732 796 864 Y 576 581 586 625 fr 50 NN <6>asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok <6>disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0 d 3.3<6>[mmc-msg] mmc 0 detect change, present 1 <6>Console: switching to colour frame buffer device 160x45 <4>axp20_buck3: incomplete constraints, leaving on <4>axp20_buck2: incomplete constraints, leaving on <4>axp20_ldo4: incomplete constraints, leaving on <4>axp20_ldo3: incomplete constraints, leaving on <4>axp20_ldo2: incomplete constraints, leaving on <4>axp20_ldo1: incomplete constraints, leaving on <6>console [netcon0] enabled <6>netconsole: network logging started <3>otg_wakelock_init: No USB transceiver found <6>ALSA device list: <6> #0: sunxi-CODEC Audio Codec <6> #1: sunxi-sndspdif <6> #2: sunxi-sndi2s <6> #3: sunxi-sndhdmi <6>Freeing init memory: 220K Loading, please wait... starting version 229 <6>[mmc-msg] sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc0 power on <6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc0 set round clock 400000, src 24000000 <3>[mmc-err] smc 0 err, cmd 52, RTO <3>[mmc-err] smc 0 err, cmd 52, RTO <6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <3>[mmc-err] smc 0 err, cmd 5, RTO <3>[mmc-err] smc 0 err, cmd 5, RTO <3>[mmc-err] smc 0 err, cmd 5, RTO <3>[mmc-err] smc 0 err, cmd 5, RTO <6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc0 set round clock 42857143, src 600000000 <6>[mmc-msg] sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V wiidth 4 timing SD-HS(SDR25) dt B <6>mmc1: new high speed SDHC card at address b368 <6>mmcblk1: mmc1:b368 SMI 7.50 GiB <6> mmcblk1: p1 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems done. Begin: Will now check root file system ... fsck from util-linux 2.27.1 [/sbin/fsck.ext4 (1) -- /dev/mmcblk1p1] fsck.ext4 -a -C0 /dev/mmcblk1p1 /dev/mmcblk1p1: clean, 151904/467280 files, 670515/1926752 blocks done. <6>EXT4-fs (mmcblk1p1): mounted filesystem with writeback data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. <30>systemd[1]: System time before build time, advancing clock. <30>systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) <30>systemd[1]: Detected architecture arm. Welcome to [1mUbuntu 16.04.3 LTS[0m! <30>systemd[1]: Set hostname to <cubietruck>. <30>systemd[1]: Created slice System Slice. [[0;32m OK [0m] Created slice System Slice. <30>systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [[0;32m OK [0m] Listening on /dev/initctl Compatibility Named Pipe. <30>systemd[1]: Reached target Remote File Systems (Pre). [[0;32m OK [0m] Reached target Remote File Systems (Pre). <30>systemd[1]: Reached target Encrypted Volumes. [[0;32m OK [0m] Reached target Encrypted Volumes. <30>systemd[1]: Started Forward Password Requests to Wall Directory Watch. [[0;32m OK [0m] Started Forward Password Requests to Wall Directory Watch. <30>systemd[1]: Listening on Syslog Socket. [[0;32m OK [0m] Listening on Syslog Socket. <30>systemd[1]: Listening on fsck to fsckd communication Socket. [[0;32m OK [0m] Listening on fsck to fsckd communication Socket. <30>systemd[1]: Listening on Journal Socket (/dev/log). [[0;32m OK [0m] Listening on Journal Socket (/dev/log). <30>systemd[1]: Listening on udev Kernel Socket. [[0;32m OK [0m] Listening on udev Kernel Socket. <30>systemd[1]: Listening on udev Control Socket. [[0;32m OK [0m] Listening on udev Control Socket. <30>systemd[1]: Listening on Journal Socket. [[0;32m OK [0m] Listening on Journal Socket. <30>systemd[1]: Starting Set console keymap... Starting Set console keymap... <30>systemd[1]: Mounting POSIX Message Queue File System... Mounting POSIX Message Queue File System... <30>systemd[1]: Reached target Remote File Systems. [[0;32m OK [0m] Reached target Remote File Systems. <30>systemd[1]: Reached target User and Group Name Lookups. [[0;32m OK [0m] Reached target User and Group Name Lookups. <30>systemd[1]: Listening on Journal Audit Socket. [[0;32m OK [0m] Listening on Journal Audit Socket. <30>systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [[0;32m OK [0m] Started Dispatch Password Requests to Console Directory Watch. <30>systemd[1]: Reached target Paths. [[0;32m OK [0m] Reached target Paths. <30>systemd[1]: Created slice system-serial\x2dgetty.slice. [[0;32m OK [0m] Created slice system-serial\x2dgetty.slice. <30>systemd[1]: Starting Restore / save the current clock... Starting Restore / save the current clock... <30>systemd[1]: Mounting Debug File System... Mounting Debug File System... <30>systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems... <6>EXT4-fs (mmcblk1p1): re-mounted. Opts: commit=600,errors=remount-ro <30>systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... <30>systemd[1]: Started Trigger resolvconf update for networkd DNS. [[0;32m OK [0m] Started Trigger resolvconf update for networkd DNS. <30>systemd[1]: Starting Create list of required static device nodes for the current kernel... Starting Create list of required st... nodes for the current kernel... <6>Bluetooth: Core ver 2.16 <6>NET: Registered protocol family 31 <6>Bluetooth: HCI device and connection manager initialized <6>Bluetooth: HCI socket layer initialized <6>Bluetooth: L2CAP socket layer initialized <6>Bluetooth: SCO socket layer initialized <6>Bluetooth: HCI UART driver ver 2.2 <6>Bluetooth: HCI H4 protocol initialized <6>Bluetooth: HCI BCSP protocol initialized <6>Bluetooth: HCILL protocol initialized <6>Bluetooth: HCIATH3K protocol initialized <30>systemd[1]: Starting Nameserver information manager... <6>Bluetooth: RFCOMM TTY layer initialized <6>Bluetooth: RFCOMM socket layer initialized <6>Bluetooth: RFCOMM ver 1.11 Starting Nameserver information manager... <6>Bluetooth: HIDP (Human Interface Emulation) ver 1.2 <30>systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [[0;32m OK [0m<] Set up automount Arbitrary Executab...ats File System Automount Point. 6>input: sunxi-ir as /devices/virtual/input/input3 IR Initial OK <30>systemd[1]: Created slice User and Session Sice. [[0;32m OK [0m] Created slice User and Session Slice. <30>systemd[1]: Reached target Slices. [[0;32m OK [0m] Reached target Slices. <3>[ap6210] select wifi ap6210 <3>[ap6210] Initializing ap6210. <3>[ap6210] platform device registered successfully. <3>[ap6210] Using ap6210 configuration. <30>systemd[1]: Mounted Debug File System. [[0;32m OK [0m] Mounted Debug File System. <30>systemd[1]: Mounted POSIX Message Queue File System. [[0;32m OK [0m] Mounted POSIX Message Queue File System. <6>[mmc-msg] sdc3 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B <30>systemd[1]: Started Set console keymap. <6>[mmc-msg] sdc3 power on [[0;32m OK [0m] Started Set console keymap. <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc3 set round clock 400000, src 24000000 <3>[ap6210] WLAN placed in POWER ON <30>systemd[1]: Started Restore / save the current clock. [[0;32m OK [0m] Started Restore / save the current clock. <3>[mmc-err] smc 3 err, cmd 52, RTO <3>[mmc-err] smc 3 err, cmd 52, RTO <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <3>[mmc-err] smc 3 err, cmd 8, RTO <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B <4>mmc2: queuing unknown CIS tuple 0x80 (2 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (7 bytes) <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set round clock 42857143, src 600000000 <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>mmc2: new high speed SDIO card at address 0001 <3>[ap6210] Linux Kernel SDIO/MMC Driver <3>[ap6210] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33 <30>systemd[1]: Started Remount Root and Kernel File Systems. [[0;32m OK [0m] Started Remount Root and Kernel File Systems. <3>[ap6210] WLAN placed in RESET <30>systemd[1]: Started Create list of required static device nodes for the current kernel. [[0;32m OK [0m] Started Create list of required sta...ce nodes for the current kernel. UMP<2>: Inserting UMP device driver. Compiled: Jun 14 2017, time: 23:56:07 UMP<2>: dma_set_mask_and_coherent calling UMP<2>: dma_set_mask_and_coherent result=-5 UMP<2>: dma_set_mask_and_coherent failed UMP<2>: Using CMA memory backend, allocation limit: 134217728 UMP: UMP device driver loaded Mali: permit MALI_IOC_MEM_MAP_EXT ioctl for framebuffer (paddr=0x4A000000, size=33554432) <6>mali: use config clk_div 1 <6>mali: clk_div 1 Mali: mali clock set completed, clock is 312000000 Hz <6>mali: use config clk_div 1 <6>mali: clk_div 1 Mali: mali clock set completed, clock is 312000000 Hz Mali: Mali device driver loaded <30>systemd[1]: Started Load Kernel Modules. [[0;32m OK [0m] Started Load Kernel Modules. <30>systemd[1]: Started Nameserver information manager. [[0;32m OK [0m] Started Nameserver information manager. <30>systemd[1]: Time has been changed <30>systemd[1]: Reached target Network (Pre). [[0;32m OK [0m] Reached target Network (Pre). <30>systemd[1]: Mounting FUSE Control File System... Mounting FUSE Control File System... <30>systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables... <30>systemd[1]: Mounting Configuration File System... Mounting Configuration File System... t<30>systemd[1]: Starting Create Static Device Nodes in /dev... Starting Create Static Device Nodes in /dev... <30>systemd[1]: Starting udev Coldplug all Devices... Starting udev Coldplug all Devices... <30>systemd[1]: Activating swap /var/swap... Activating swap /var/swap... <30>systemd[1]: Starting Load/Save Random Seed... Starting Load/Save Random Seed... <30>systemd[1]: Mounted Configuration File System. [[0;32m OK [0m] Mounted Configuration File System. <30>systemd[1]: Mounted FUSE Control File System. [[0;32m OK [0m] Mounted FUSE Control File System. <6>Adding 131068k swap on /var/swap. Priority:-1 extents:1 across:131068k SS <30>systemd[1]: Started Apply Kernel Variables. [[0;32m OK [0m] Started Apply Kernel Variables. <30>systemd[1]: Started Create Static Device Nodes in /dev. [[0;32m OK [0m] Started Create Static Device Nodes in /dev. <30>systemd[1]: Activated swap /var/swap. [[0;32m OK [0m] Activated swap /var/swap. <30>systemd[1]: Started Load/Save Random Seed. [[0;32m OK [0m] Started Load/Save Random Seed. <30>systemd[1]: Reached target Swap. [[0;32m OK [0m] Reached target Swap. <30>systemd[1]: Starting udev Kernel Device Manager... Starting udev Kernel Device Manager... <30>systemd[1]: Reached target Local File Systems (Pre). [[0;32m OK [0m] Reached target Local File Systems (Pre). <30>systemd[1]: Mounting /tmp... Mounting /tmp... <30>systemd[1]: Started udev Coldplug all Devices. [[0;32m OK [0m] Started udev Coldplug all Devices. <30>systemd[1]: Mounted /tmp. [[0;32m OK [0m] Mounted /tmp. <30>systemd[1]: Started Entropy daemon using the HAVEGE algorithm. [[0;32m OK [0m] Started Entropy daemon using the HAVEGE algorithm. <30>systemd[1]: Reached target Local File Systems. [[0;32m OK [0m] Reached target Local File Systems. <30>systemd[1]: Starting Set console font and keymap... Starting Set console font and keymap... <30>systemd[1]: Starting Armbian enhanced Log2Ram... Starting Armbian enhanced Log2Ram... <30>systemd[1]: Starting Raise network interfaces... Starting Raise network interfaces... <3>ap6211: exports duplicate symbol bcmsdh_probe (owned by ap6210) <30>systemd[1]: Started udev Kernel Device Manager. <3>ap6211: exports duplicate symbol bcmsdh_probe (owned by ap6210) [[0;32m OK [0m] Started udev Kernel Device Manager. <30>systemd[1]: Reached target Sound Card. [[0;32m OK [0m] Reached target Sound Card. <3>ap6211: exports duplicate symbol bcmsdh_probe (owned by ap6210) <3>ap6211: exports duplicate symbol bcmsdh_probe (owned by ap6210) <30>systemd[1]: Started Armbian enhanced Log2Ram. [[0;32m OK [0m] Started Armbian enhanced Log2Ram. <30>systemd[1]: Found device /dev/ttyS0. [[0;32m OK [0m] Found device /dev/ttyS0. <30>systemd[1]: Started Set console font and keymap. [[0;32m OK [0m] Started Set console font and keymap. <30>systemd[1]: Started Raise network interfaces. [[0;32m OK [0m] Started Raise network interfaces. ;<30>systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [[0;32m OK [0m] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. <30>systemd[1]: Started ifup for eth0. [[0;32m OK [0m] Started ifup for eth0. <30>systemd[1]: Created slice system-getty.slice. [[0;32m OK [0m] Created slice system-getty.slice. <30>systemd[1]: Starting Journal Service... Starting Journal Service... <30>systemd[1]: Starting Load/Save RF Kill Switch Status... Starting Load/Save RF Kill Switch Status... <3>[ap6210] Using ap6210 configuration. <30>systemd[1]: Started Journal Service. [[0;32m OK [0m] Started Journal Service. Starting Flush Journal to Persistent Storage... [[0;32m OK [0m] Started Load/Save RF Kill Switch Status. <46>systemd-journald[547]: Received request to flush runtime journal from PID 1 <6>sunxi_gmac: probed <6>eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active <6>eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01) [[0;32m OK [0m] Started Flush Journal to Persistent Storage. Starting Create Volatile Files and Directories... [[0;32m OK [0m] Started Create Volatile Files and Directories. [[0;32m OK [0m] Reached target System Time Synchronized. Starting Update UTMP about System Boot/Shutdown... [[0;32m OK [0m] Started Update UTMP about System Boot/Shutdown. [[0;32m OK [0m] Reached target System Initialization. [[0;32m OK [0m] Started Daily Cleanup of Temporary Directories. [[0;32m OK [0m] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [[0;32m OK [0m] Listening on D-Bus System Message Bus Socket. [[0;32m OK [0m] Reached target Sockets. [[0;32m OK [0m] Reached target Basic System. Starting LSB: Starts LIRC daemon.... Starting LSB: Armbian gathering hardware information... Starting Login Service... Starting Avahi mDNS/DNS-SD Stack... Starting LSB: Patch firmware for brcm40183 Bluetooth adapter... [[0;32m OK [0m] Started Regular background program processing daemon. Starting LSB: Start/stop sysstat's sadc... [[0;32m OK [0m] Started D-Bus System Message Bus. [[0;32m OK [0m] Started Avahi mDNS/DNS-SD Stack. Starting Network Manager... Starting Permit User Sessions... Starting System Logging Service... Starting Save/Restore Sound Card State... Starting Accounts Service... Starting LSB: No Display Manager... Starting LSB: Load kernel modules needed to enable cpufreq scaling... [[0;32m OK [0m] Started System Logging Service. [[0;32m OK [0m] Started Permit User Sessions. [[0;32m OK [0m] Started Save/Restore Sound Card State. [[0;32m OK [0m] Started LSB: Start/stop sysstat's sadc. [[0;32m OK [0m] Started Network Manager. [[0;32m OK [0m] Started LSB: Starts LIRC daemon.. [[0;32m OK [0m] Started LSB: Armbian gathering hardware information. [[0;32m OK [0m] Started LSB: No Display Manager. [[0;32m OK [0m] Started Login Service. Starting Network Manager Script Dispatcher Service... Starting Network Manager Wait Online... [[0;32m OK [0m] Reached target Network. [[0;32m OK [0m] Started Unattended Upgrades Shutdown. Starting OpenBSD Secure Shell server... Starting Authenticate and Authorize Users to Run Privileged Tasks... Starting Set console scheme... [[0;32m OK [0m] Started LSB: Load kernel modules needed to enable cpufreq scaling. [[0;32m OK [0m] Started Set console scheme. [[0;32m OK [0m] Started Network Manager Script Dispatcher Service. [[0;32m OK [0m] Started Authenticate and Autho<rize Users to Run Privileged Tasks. 4>Warning: this sunxi disp driver will see significant redesign. <4>Applications using /dev/disp directly will break. <4>For more information visit: http://linux-sunxi.org/Sunxi_disp_driver <4>[DISP] layer allocated: 0,101 [[0;32m OK [0m] Started Accounts Service. Starting LSB: set CPUFreq kernel parameters... <6>[drm] Initialized drm 1.1.0 20060810 <6>Mali DRM initialize, driver name: mali_drm, version 2.1 [[0;32m OK [0m] Started OpenBSD Secure Shell server. <6>[drm] Initialized mali_drm 2.1.1 20101111 on minor 0 <6>Mali DRM initialize, driver name: mali_drm, version 2.1 <6>[drm] Initialized mali_drm 2.1.1 20101111 on minor 1 UMP<2>: New session opened [[0;32m OK [0m] Started LSB: set CPUFreq kernel parameters. Starting Hostname Service... Starting LSB: Set sysfs variables from /etc/sysfs.conf... [[0;32m OK [0m] Started Hostname Service. [[0;32m OK [0m] Started LSB: Set sysfs variables from /etc/sysfs.conf. <3>[ap6210] Dongle Host Driver, version 1.28.23.3 (r). <3>[ap6210] Compiled in drivers/net/wireless/ap6210 on Jun 14 2017 at 23:56:42. <3>[ap6210] WLAN going back to live sdio_reset_comm(): <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set round clock 400000, src 24000000 <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <4>mmc2: queuing unknown CIS tuple 0x80 (2 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (7 bytes) <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set round clock 42857143, src 600000000 <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <3>[ap6210] dhd_bus_devreset: WLAN ON <3>[ap6210] Final fw_path=/lib/firmware/ap6210/fw_bcm40181a2.bin <3>[ap6210] Final nv_path=/lib/firmware/ap6210/nvram_ap6210.txt <3>[ap6210] download firmware /lib/firmware/ap6210/fw_bcm40181a2.bin <3>[ap6210] Dongle ready, protocol version 4 <3>[ap6210] Dongle ready, protocol version 4 <3>[ap6210] Firmware up: op_mode=0x0005, Broadcom Dongle Host Driver mac=6c:fa:a7:70:08:8c <3>[ap6210] Firmware version = wl0: Mar 10 2014 14:59:50 version 5.90.195.89.18 FWID 01-b13c09c7 <3>[ap6210] Chip: a962 Rev 1 Pkg 9<3>[ap6210] p2p0: p2p_dev_addr=6e:fa:a7:70:08:8c Starting Load/Save RF Kill Switch Status... <3>[ap6210] Using ap6210 configuration. [[0;32m OK [0m] Started Load/Save RF Kill Switch Status. <3>[ap6210] bcmsdh_sdmmc: F0 Wr:0x04: write disallowed [[0;32m OK [0m] Started LSB: Patch firmware for brcm40183 Bluetooth adapter. <3>[ap6210] bcmsdh_set_irq Flag = 0 <3>[ap6210] dhd_bus_devreset: WLAN OFF DONE Starting Bluetooth service... <3>[ap6210] WLAN placed in RESET <3>[ap6210] Dongle Host Driver, version 1.28.23.3 (r). <3>[ap6210] Compiled in drivers/net/wireless/ap6210 on Jun 14 2017 at 23:56:42. <3>[ap6210] WLAN going back to live sdio_reset_comm(): <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set round clock 400000, src 24000000 <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <4>mmc2: queuing unknown CIS tuple 0x80 (2 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (7 bytes) <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set round clock 42857143, src 600000000 <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <3>[ap6210] dhd_bus_devreset: WLAN ON <3>[ap6210] Final fw_path=/lib/firmware/ap6210/fw_bcm40181a2.bin <3>[ap6210] Final nv_path=/lib/firmware/ap6210/nvram_ap6210.txt <3>[ap6210] download firmware /lib/firmware/ap6210/fw_bcm40181a2.bin [[0;32m OK [0m] Started Bluetooth service. [[0;32m OK [0m] Reached target Bluetooth. <3>[ap6210] bcmsdh_set_irq Flag = 1 <3>[ap6210] dhd_bus_devreset: WLAN ON DONE <3>[ap6210] Dongle ready, protocol version 4 <3>[ap6210] Dongle ready, protocol version 4 <3>[ap6210] Firmware up: op_mode=0x0005, Broadcom Dongle Host Driver mac=6c:fa:a7:70:08:8c <3>[ap6210] Firmware version = wl0: Mar 10 2014 14:59:50 version 5.90.195.89.18 FWID 01-b13c09c7 <3>[ap6210] Chip: a962 Rev 1 Pkg 9<3>[ap6210] p2p0: p2p_dev_addr=6e:fa:a7:70:08:8c <6>Bluetooth: BNEP (Ethernet Emulation) ver 1.3 <6>Bluetooth: BNEP filters: protocol multicast Starting WPA supplicant... [[0;32m OK [0m] Started WPA supplicant. [[0;32m OK [0m] Created slice User Slice of cubie. Starting User Manager for UID 1000... [[0;32m OK [0m] Started Session c1 of user cubie. [[0;32m OK [0m] Started User Manager for UID 1000. <3>[ap6210] escan is not ready ndev eea5c800 wl->escan_on 1 drv_status 0x0 <3>[ap6210] bcmsdh_sdmmc: F0 Wr:0x04: write disallowed <3>[ap6210] bcmsdh_set_irq Flag = 0 <3>[ap6210] dhd_bus_devreset: WLAN OFF DONE <3>[ap6210] WLAN placed in RESET <3>[ap6210] Dongle Host Driver, version 1.28.23.3 (r). <3>[ap6210] Compiled in drivers/net/wireless/ap6210 on Jun 14 2017 at 23:56:42. <3>[ap6210] WLAN going back to live sdio_reset_comm(): <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set round clock 400000, src 24000000 <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <4>mmc2: queuing unknown CIS tuple 0x80 (2 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) 0<4>mmc2: queuing unknown CIS tuple 0x80 (3 bytes) <4>mmc2: queuing unknown CIS tuple 0x80 (7 bytes) <6>[mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <6>[mmc-msg] sdc3 set round clock 42857143, src 600000000 <6>[mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B <3>[ap6210] dhd_bus_devreset: WLAN ON <3>[ap6210] Final fw_path=/lib/firmware/ap6210/fw_bcm40181a2.bin <3>[ap6210] Final nv_path=/lib/firmware/ap6210/nvram_ap6210.txt <3>[ap6210] download firmware /lib/firmware/ap6210/fw_bcm40181a2.bin <3>[ap6210] bcmsdh_set_irq Flag = 1 <3>[ap6210] dhd_bus_devreset: WLAN ON DONE <3>[ap6210] Dongle ready, protocol version 4 <3>[ap6210] Dongle ready, protocol version 4 <3>[ap6210] Firmware up: op_mode=0x0005, Broadcom Dongle Host Driver mac=6c:fa:a7:70:08:8c <3>[ap6210] Firmware version = wl0: Mar 10 2014 14:59:50 version 5.90.195.89.18 FWID 01-b13c09c7 <3>[ap6210] Chip: a962 Rev 1 Pkg 9<3>[ap6210] p2p0: p2p_dev_addr=6e:fa:a7:70:08:8c Starting Load/Save RF Kill Switch Status... [[0;32m OK [0m] Started Load/Save RF Kill Switch Status. [[0;32m OK [0m] Started Network Manager Wait Online. [[0;32m OK [0m] Reached target Network is Online. Starting /etc/rc.local Compatibility... Starting LSB: disk temperature monitoring daemon... [[0;32m OK [0m] Started Daily apt download activities. [[0;32m OK [0m] Started Daily apt upgrade and clean activities. [[0;32m OK [0m] Reached target Timers. Starting LSB: Start NTP daemon... Starting LSB: Advanced IEEE 802.11 management daemon... [[0;32m OK [0m] Started /etc/rc.local Compatibility. [[0;32m OK [0m] Started LSB: Advanced IEEE 802.11 management daemon. [[0;32m OK [0m] Started LSB: disk temperature monitoring daemon. [[0;32m OK [0m] Started Serial Getty on ttyS0. [[0;32m OK [0m] Started Getty on tty1. [[0;32m OK [0m] Reached target Login Prompts. [[0;32m OK [0m] Started LSB: Start NTP daemon. [[0;32m OK [0m] Reached target Multi-User System. [[0;32m OK [0m] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [[0;32m OK [0m] Started Update UTMP about System Runlevel Changes. [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: recording [IIS-0] sunxi_i2s_hw_params: channel num 1, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface Ubuntu 16.04.3 LTS cubietruck ttyS0 [IIS-0] sunxi_i2s_set_fmt: set I2S mode cubietruck login: [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: recording [IIS-0] sunxi_i2s_hw_params: channel num 2, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [II -0] sunxi_i2sD_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: playback [IIS-0] sunxi_i2s_hw_params: channel num 1, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: playback DMA dat awidth=(16) [IIS-0] sunxi_pcm_prepare: playback DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: recording [IIS-0] sunxi_i2s_hw_params: channel num 1, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: recording [IIS-0] sunxi_i2s_hw_params: channel num 2, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: playback [IIS-0] sunxi_i2s_hw_params: channel num 2, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: playback DMA data width=(16) [IIS-0] sunxi_pcm_prepare: playback DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: recording [IIS-0] sunxi_i2s_hw_params: channel num 1, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: captur DMA data width=(16) [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: recording [IIS-0] sunxi_i2s_hw_params: channel num 2, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) c[IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: playback [IIS-0] sunxi_i2s_hw_params: channel num 2, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: playback DMA data width=(16) [IIS-0] sunxi_pcm_prepare: playback DMA data width=(16) [IIS-0] dma trigger start [I2S-0] sunxi_snd_txctrl_i2s is on=(1) [IIS-0] get_clock_divder_master: rate=(44100), mclk_div=(2), mpll=(1), bclk_div=(4), mult_fs=(256) [IIS-0] sunxi_i2s_set_fmt [IIS-0] sunxi_i2s_set_fmt: set master mode for I2S interface [IIS-0] sunxi_i2s_set_fmt: set I2S mode [IIS-0] sunxi_i2s_set_fmt: normal bit clock + frame [IIS-0] sunxi_i2s_set_fmt: word size = 32 [IIS-0] sunxi_i2s_set_fmt: set pcm_sync_type = short sync [IIS-0] sunxi_i2s_hw_params: recording [IIS-0] sunxi_i2s_hw_params: channel num 2, format 16 bit, sample rate 44100 [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] sunxi_pcm_prepare: capture DMA data width=(16) [IIS-0] dma trigger start [I2S-0] sunxi_snd_rxctrl_i2s is on=(1) [IIS-0] dma trigger stop [I2S-0] sunxi_snd_rxctrl_i2s is on=(0) [IIS-0] dma trigger stop [I2S-0] sunxi_snd_txctrl_i2s is on=(0) <3>[ap6210] Link down Reason : WLC_E_DEAUTH_IND <3>[ap6210] Link down Reason : WLC_E_LINK <6>cfg80211: Calling CRDA to update world regulatory domain <3>[ap6210] reg_notifier for intiator:0 not supported <6>cfg80211: World regulatory domain updated: <6>cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) <6>cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm) <6>cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm) <6>cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm) <6>cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm) <6>cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm) <6>cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm) <6>cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm) <6>cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm) <3>[ap6210] Using ap6210 configuration. Ubuntu 16.04.3 LTS cubietruck ttyS0 cubietruck login: root Password: Last login: Mon Oct 2 08:48:36 UTC 2017 on ttyS0 [0;1;34;94m____[0m [0;1;34;94m_[0m [0;34m_[0m [0;34m_[0m [0;37m_[0m [0;1;34;94m/[0m [0;1;34;94m___|[0m [0;34m_|[0m [0;34m|__[0m [0;34m(_)[0m [0;34m___[0;37m|[0m [0;37m|_[0m [0;37m_[0m [0;37m__[0m [0;37m_[0m [0;37m_[0m [0;1;30;90m___|[0m [0;1;30;90m|[0m [0;1;30;90m__[0m [0;34m|[0m [0;34m|[0m [0;34m|[0m [0;34m|[0m [0;34m|[0m [0;34m|[0m [0;34m'_[0m [0;37m\|[0m [0;37m|/[0m [0;37m_[0m [0;37m\[0m [0;37m__|[0m [0;37m'_[0;1;30;90m_|[0m [0;1;30;90m|[0m [0;1;30;90m|[0m [0;1;30;90m|/[0m [0;1;30;90m__|[0m [0;1;30;90m|/[0m [0;1;34;94m/[0m [0;34m|[0m [0;34m|__|[0m [0;34m|[0;37m_|[0m [0;37m|[0m [0;37m|_)[0m [0;37m|[0m [0;37m|[0m [0;37m__[0;1;30;90m/[0m [0;1;30;90m|_|[0m [0;1;30;90m|[0m [0;1;30;90m|[0m [0;1;30;90m|_|[0m [0;1;30;90m|[0m [0;1;34;94m(__|[0m [0;1;34;94m<[0m [0;37m\____\__,_|_.__[0;1;30;90m/|_|\___|\__|_|[0m [0;1;34;94m\__,_|\___|_|\[0;34m_\[0m Welcome to [0;91mARMBIAN[0m 5.31 stable Ubuntu 16.04.3 LTS 3.4.113-sun7i System load: [0;92m 1.50 [0m0.80 0.31 Up time: [92m1 min[0m Memory usage: [0;92m 6 %[0m of 1891MB IP: [92m[0m CPU temp: [0;92m 36°C[0m Usage of /: [0;92m 35%[0m of 7.3G [[31m 0 security updates available, 10 updates total[0m: [1mapt upgrade[0m ] Last check: [92m2017-10-02 08:49[0m [[31m General system configuration[0m: [1marmbian-config[0m ] root@cubietruck:~# I fired up nand-sata-install from /usr/sbin/, went thru the menu, choose "install to eMMC(cant remember full text)", with ext4, waithed about 1 hour, then turned off the CT, removed the SD card, then booted the CT. Second problem: Cubietruck failed to boot by itself. The good thing is that the CT can still boot from SD card. Here's the bootup sequence when booting from TSD: Spoiler =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.10.02 17:04:56 =~=~=~=~=~=~=~=~=~=~=~= U-Boot SPL 2017.05-armbian (Jun 15 2017 - 02:37:55) DRAM: 2048 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC2 MMC Device 1 not found spl: could not find mmc device. error: -19 SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### I'm guessing I'm guonna need to recompile the u-boot now. Here's the mmcinfo I got from the bootup sequence when booting from SD card: Spoiler U-Boot 2017.05-armbian (Jun 15 2017 - 02:37:55 +0200) Allwinner Technology CPU: Allwinner A20 (SUN7I) Model: Cubietech Cubietruck I2C: ready DRAM: 2 GiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment HDMI connected: Setting up a 1366x768 hdmi console (overscan 0x0) Error: no valid bmp image at 66000000 In: serial Out: vga Err: vga SCSI: SATA link 0 timeout. AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part ccc apst Net: eth0: ethernet@01c50000 Hit any key to stop autoboot: 0 0 => => mmcinfo Device: SUNXI SD/MMC Manufacturer ID: 6f OEM: 0 Name: SMI Tran Speed: 50000000 Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 7.5 GiB Bus Width: 4-bit Erase Group Size: 512 Bytes Looks like it only detects the SD card, not the TSD. Based on this topic here: https://forum.armbian.com/index.php?/topic/3895-cubieboard2-nand-vs-tsd/ I guess I need to recompile the u-boot for the TSD. Have no idea how to do it though. Have gone through the current wiki but still trying to get the idea how to do it.
Sodrohu Posted October 4, 2017 Author Posted October 4, 2017 OK some updates. Previously, I’ve tried to change the /dev/mmcblkxx settings at /boot/armbianEnv.txt, boot.cmd, boot.scr (from mkimage command), and even /etc/fstab. However, regardless of the values, the SD card always show up as /dev/mmcblk1p1, and TSD as a removable device at /dev/mmcblk0p1. Df –h always show the /dev/mmcblk1p1 mounted on /. However, I noticed that an hour after I started this topic, one of the armbian maintainters, zador, updated the github repo for u-boot cubietruck. https://github.com/armbian/build/blob/0d6757eee7c5c8d1336e325bc6cbeee39df9d6a9/patch/u-boot/u-boot-sunxi/add-cubietruck-emmc.patch Specifically a new patch that affected this line: CONFIG_MMC_SUNXI_SLOT_EXTRA=2 From what I understand, this line is required in order for the machine to recognise other MMCs apart from the SD card. This is the conclusion I got from reading these topics: https://forum.armbian.com/index.php?/topic/2974-boot-from-sdusb-to-emmc/ https://forum.armbian.com/index.php?/topic/4169-help-my-allwinner-box-cannot-boot-anymore/ https://forum.armbian.com/index.php?/topic/4789-problem-with-nand-sata-install/ https://forum.armbian.com/index.php?/topic/3895-cubieboard2-nand-vs-tsd/ I guess he saw my topic after all… Anyway I ran apt-get update/upgrade and booted the CT. On start, I realised the CT booted from TSD since the username is different. Previously, after running nand-sata-install on the TSD, I reflashed the SD card and set it up again with a new username. TSD seems to function and behave just like SD, which is good. It even has the same monitor misalignment problem, which is…not so good. Anyway, I turned off the CT, took out the SD, turned it on again, only to see the serial console output the same exact error: U-Boot SPL 2017.05-armbian (Jun 15 2017 - 02:37:55) DRAM: 2048 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC2 MMC Device 1 not found spl: could not find mmc device. error: -19 SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### I also found out that the CT requires the SD card in order to boot from TSD. Weird huh? Without SD, CT will not boot. With SD, it boots from TSD instead. The same previous issue with /dev/mmcblk remains, except now it mounts the TSD to root instead of the SD, and now Sd behaves as a removable device. Also, if I change the TSD to /dev/mmcbk1p1 at /boot/armbianEnv.txt, boot.cmd, boot.scr (from mkimage command), and even /etc/fstab, the SD card no longer shows up in df –h and as removable device. It still shows up in ls /dev though. I’m happy that the TSD works proper. However, this recent development is still far from what I need to achieve. I’ll just do some trial and error until I got something.
Igor Posted October 4, 2017 Posted October 4, 2017 3 hours ago, Sodrohu said: Anyway I ran apt-get update/upgrade Changes on Github go into action next day (7-8am CET) in beta repository. This way might work: start with a fresh image, switch to beta, update and install again. Faster way is to download latest u-boot: https://beta.armbian.com/pool/main/l/linux-u-boot-cubietruck-default/ (kernel 3.4.x) or https://beta.armbian.com/pool/main/l/linux-u-boot-cubietruck-next/ (kernel 4.x) ... extract u-boot binary and flash eMMC manually: https://github.com/armbian/build/blob/master/config/sources/sunxi_common.inc#L45-L46 ... if you still have your system there, otherwise you will need to nand-sata-install again.
Sodrohu Posted October 5, 2017 Author Posted October 5, 2017 Thanks Igor! I did like what you told me to do and it worked! I extracted the u-boot-sunxi-with-spl.bin from the deb file, booted from SD card and run these commands: dd if=/dev/zero of=/dev/mmcblk0 bs=1k count=1023 seek=1 status=noxfer dd if=/boot/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1k count=1023 seek=1 status=noxfer Turning off the CT, taking off the SD, I can now boot from the TSD! However, There is still the monitor misalignment issue. Here's the pic: https://drive.google.com/open?id=0B5XGa48DW48qZzF0OWZ4Y1lZRk0 So far I've tried: 1. Modifying the /boot/armbianEnv.txt. Only managed to change the resolution 2. MOdified the boot.scr by replacing "setenv disp_mode "1280x720p60"" with "setenv disp.screen0_output_mode "1280x720p60"". No change 3. Running "a10disp changehdmimodeforce 4" and toher numbers according to https://docs.armbian.com/User-Guide_Fine-Tuning/ the commands work from number 4-5 I noticed that, when the armbian boots up, at the first 3 seconds when the monitor displays the armbian logo along with the serial console, the alignment is correct! Later the screen goes blue, and when Ubuntu is finally loaded it becomes misaligned! I checked the serial console line and found this: HDMI connected: Setting up a 1366x768 hdmi console (overscan 0x0) Does this line point to the problem?
Igor Posted October 5, 2017 Posted October 5, 2017 7 minutes ago, Sodrohu said: I noticed that, when the armbian boots up, at the first 3 seconds when the monitor displays the armbian logo along with the serial console, the alignment is correct! Later the screen goes blue, and when Ubuntu is finally loaded it becomes misaligned! I checked the serial console line and found this: This means your monitor resolution is not supported by the kernel, while u-boot can autodetect. Modern kernel too. Switch to it. It's in much better shape, but it lacks support for 3D and video acceleration. If you need this resolution in a legacy kernel, you will need to poke the kernel source similar way as we do for H3. https://github.com/armbian/build/blob/master/patch/kernel/sun8i-default/z-0003-add-additional-video-modes.patch
Sodrohu Posted October 5, 2017 Author Posted October 5, 2017 5 hours ago, Igor said: This means your monitor resolution is not supported by the kernel, while u-boot can autodetect. Modern kernel too. Switch to it. It's in much better shape, but it lacks support for 3D and video acceleration. I would rather use the mainline kernel, but I'm going to make a GUI application so a desktop-capable kernel is required, and only the legacy kernel is capable of that for now. Even so... I've managed to fix the overscan issue! As usual the inspiration comes from a topic from the Armbian forums: Basically run these three commands: a10disp changehdmimodeforce 5 fbset -xres 1240 fbset -yrex 720 a10disp changehdmimodeforce 5 - this command just change the hdmi mode from 4(1280x720p50) to 5(1280x720p60). I suppose if I modify the script.bin so it becomes 5 then there's no longer a need to call this command. fbset - this just sets the x and y resolution of the frame buffer. I did some trial and error and found out, for my screen size, this is the config that works best! I've put all three commands in /etc/rc.local so it always trigger on boot up! So far the Xenial seems to be holding up. I haven't tried installing everything yet, but I've got all the basics covered so there's that. Thanks for the help Igor!
Igor Posted October 5, 2017 Posted October 5, 2017 Just now, Sodrohu said: but I'm going to make a GUI application so a desktop-capable kernel is required Only (accelerated) video playing and 3D functions (for gaming) are missing while desktop works perfectly ok. Try it.
Sodrohu Posted October 6, 2017 Author Posted October 6, 2017 19 hours ago, Igor said: Only (accelerated) video playing and 3D functions (for gaming) are missing while desktop works perfectly ok. Try it. Wait, really? I thought the Mainline kernel doesn't support desktop since the Cubietruck download page only has Jessie server for mainline kernel. I'm interested to test mainline kernel, but I forgot to mention that the Armbian is supposed to replace the current Cubieez. I gotta make sure Armbian can support the various drivers I've developed on the Cubieez. So the legacy kernel is pretty much required since, according to the Cubietruck page, the GPIO number is already different for the mainline kernel, and I did use GPIOs with python drivers.
Igor Posted October 6, 2017 Posted October 6, 2017 10 minutes ago, Sodrohu said: since the Cubietruck download page only has Jessie server for mainline kernel. Click on "Other download options and archive" ... in case you want Debian Stretch based, you need to build it on your own at the moment. There are some cosmetic problems and we need more testing but it looks its ok. GPIO numbering. It's worth to adjust your scripts
Sodrohu Posted October 6, 2017 Author Posted October 6, 2017 2 hours ago, Igor said: Click on "Other download options and archive" ... in case you want Debian Stretch based, you need to build it on your own at the moment. There are some cosmetic problems and we need more testing but it looks its ok. GPIO numbering. It's worth to adjust your scripts OK..somehow I didn't notice the link before. I'll play around with the mainline kernel, once I got the legacy Armbian working with my drivers...
Recommended Posts