Jump to content

Beelink X2 with armbian possible?


tpc010

Recommended Posts

@igor - agreed. I guess that @jernej's patches are applicable to Bananapro and Cubietruck as well? If so, then we just need to test them. If not, we could keep the ap6212 directory for them and soft link to the firmware files? 

 

BTW, you will see that I put some comments in your github and also raised an issue - I did not want you to miss the problem of the configuration file and firmware location.

Link to comment
Share on other sites

Forgive e if this is a stupid question (I'm pretty new to this stuff, only worked with mainframes in the old days and Windows before I retired) but how do we include this fix, will there be an update package, a patch or a new release? I understand the wifi fix is not "consumer ready" just yet?

Link to comment
Share on other sites

We are working on bugfix release, but have no DUE date yet. Probably / hopefully in two weeks.

You can transfer to internal memory - updates works in any case.

Link to comment
Share on other sites

There is something really wierd going on, I installer lightdm and configured it as per instructions in the getting started guide. However, when I reboot the usual XFCE desktop comes up but behind it is the login screen. I can access it through a "hole" in the wallpaper, and if I log in I have two identical desktops running, slightly misaligned.

 

So it looks to me that the XFCE desktop startup is hardcoded somewhere or the startup script is not placed the usual place where the config script(s) can modify it. I'd like to know where the scripts that starts all the madness is located so I can edit them, or if there is another way to get rid of the initial desktop that overlays everything else. I also tried to install MATE and it ends up under the top desktop.

Link to comment
Share on other sites

We are working on bugfix release, but have no DUE date yet. Probably / hopefully in two weeks.

 

You can transfer to internal memory - updates works in any case.

So I transfered the system to eMMC/USB-SATA (SSD) but it just keeps rebooting, whie it flashes past I can see it saying something like "Rebooting due to panic: no init found". What am I missing and where?

Link to comment
Share on other sites

Dear Igor & Thomas,

 

I don't know if this is the appropriate thread, but here goes:

 

Just purchased two Orange Pi One SBCs. Got them up and running with the official android distro

from the Orange Pi site.

 

Lots of problems, which you know. I had given up too easily. OrangePi support forum is a mass

of confused newbs...then a few people mentioned your names here on Armbian. 

 

I did some research and it seems I need beelink X2 android w/ Armbian which you have ironed

the bugs out for Orange Pi One/PC (and probably more).

 

Please post a link to a how-to or another thread that gives me instructions on how to proceed.

 

Thanks in advance,

 

Kind regards,

 

Kevin

 

Link to comment
Share on other sites

@@Kevin Kreger

it's not quite clear what you're asking about.

 

In doubt i'll try to clarify : Armbian is a Linux distribution (desktop or server), not an Android.

 

So if your idea is to find a better Android version for your opi device or any other device, you're not in the right place, there's no android work done here.

 

Then if i did misunderstand your comments and you're actually looking to run something else than android, you'll be glad to learn that Armbian should be working quite smoothly on your Orange pi devices. And so you absolutely don't need an X2 tv box.

 

You can download images for your devices from the main Armbian website, tutorials to brun/use those images can be found on the download pages.

Link to comment
Share on other sites

@Igor, @jerenej - Update on bcmdhd WOW patch ...

 

I have built the latest kernel packages (as of this morning) from @igor's repository, and things are broken :-(

 

First, the "try your luck" method of booting from SD is as bad as ever - the serial console just shows:

 

 

U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)

DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1

 

On this test it took 9 tries before the kernel boots ... This looks like a lock-up in u-boot?

 

Second issue - since the full set of patches on the driver, we now have a problem on the X2 - it never reaches the console login prompt. Here's the tail end of the log where presumably the power on of the wireless module is done. The boot gets as far as udevd starting, and then we see errors from the mmc code ...

 

 

[   13.346386] systemd[1]: Listening on Syslog Socket.

[   13.361607] systemd[1]: Starting Journal Service...
[   13.501381] systemd[1]: Started Journal Service.
[   13.899103] systemd-udevd[182]: starting version 215
[   15.160532] dummy_sdmmc: probe of mmc1:0001:1 failed with error -123
[   15.176610] dummy_sdmmc: probe of mmc1:0001:2 failed with error -123
[   15.192581] mmc1: card 0001 removed
[   15.267936] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   15.284357] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   15.300420] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   15.317438] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   15.348840] mmc1: new high speed SDIO card at address 0001
[   15.510675] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[   21.519702] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[   23.156061] systemd-journald[180]: Received request to flush runtime journal from PID 1
[   27.630333] mmc1: card 0001 removed
[   28.287964] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   28.303586] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   28.318970] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   28.335490] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   28.367195] mmc1: new high speed SDIO card at address 0001
[   28.540737] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[   40.680274] mmc1: card 0001 removed
[   41.317845] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   41.334343] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   41.350818] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   41.368335] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   41.400518] mmc1: new high speed SDIO card at address 0001
[   41.590616] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[   53.670330] mmc1: card 0001 removed

 

The bcmsdh_sdmmc error sequence repeats ad infinitum - and the system never gets to a console log-in prompt.

 

Earlier in the log I can see that mmc0 (the sd card I'm booting from) and mmc2 (the internal emmc) are detected OK - so I'm assuming that mmc1 is where the BCM wifi is located.

 

My guess at least is that a side-effect of the power-on errors is that access to the micro SD (which is MMC1 as far as uboot sees it) becomes inaccessible - and so the system will not boot.

 

Any ideas on where to start debug on this ?

Link to comment
Share on other sites

@jernej,

 

Here's the full log as seen at the serial console - apologies I don't know how to do the "collapsible quotes".

 

I can see that the mmc host driver is not loading ... I expected to see lines like:

 

[    1.475212] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.111 2015-4-13 15:24) Compiled in Sep 14 2016 at 20:28:08
[    1.475262] [mmc]: get mmc0's sdc_power is null!
[    1.475304] [mmc]: get mmc1's sdc_power is null!
[    1.475318] [mmc]: get mmc1's 2xmode ok, val = 1
[    1.475332] [mmc]: get mmc1's ddrmode ok, val = 1
[    1.475376] [mmc]: get mmc2's sdc_power is null!
[    1.475390] [mmc]: get mmc2's 2xmode ok, val = 1
[    1.475405] [mmc]: get mmc2's ddrmode ok, val = 1
[    1.475424] [mmc]: MMC host used card: 0x7, boot card: 0x5, io_card 2
[    1.476929] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.478093] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.478927] [mmc]: sdc2 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.479654] [mmc]: sdc0 power_supply is null
[    1.481363] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
 

But I don't see this in the full log ...

 

 

 

 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
 
 
U-Boot 2016.09-armbian (Sep 21 2016 - 19:23:46 +0200) Allwinner Technology
 
CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC Plus
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment
 
In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
Hit any key to stop autoboot:  2 1 0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2915 bytes read in 165 ms (16.6 KiB/s)
## Executing script at 43100000
gpio: pin PL10 (gpio 298) value is 1
gpio: pin PG11 (gpio 203) value is 1
0 bytes read in 119 ms (0 Bytes/s)
** File not found /boot/.next **
** Unrecognized filesystem type **
** File not found .next **
35256 bytes read in 295 ms (116.2 KiB/s)
3114528 bytes read in 429 ms (6.9 MiB/s)
5025888 bytes read in 638 ms (7.5 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3114464 Bytes = 3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Using machid 0x1029 from environment
 
Starting kernel ...
 
[sun8i_fixup]: From boot, get meminfo:
 
Start: 0x40000000
 
Size: 1024MB
 
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
 
ion_reserve_select: ion chipid  [0x2004620!
 
ion_reserve_common: ion reserve: [0x50000000, 0x60000000]!
 
[    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.112-sun8i (root@armbianbuild) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #6 SMP PREEMPT Mon Oct 10 11:04:46 BST 2016
[    0.000000] cma: CMA: reserved 256 MiB at 50000000
[    0.000000] PERCPU: Embedded 8 pages/cpu @c1472000 s11968 r8192 d12608 u32768
[    0.000000] Kernel command line: console=ttyS0,115200 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 panic=10 consoleblank=0 enforcing=0 loglevel=7 storage_type=
[    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: 758712k/758712k available, 289864k reserved, 270336K 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 - 0xc095ad24   (9548 kB)
[    0.000000]       .init : 0xc095b000 - 0xc09adec0   ( 332 kB)
[    0.000000]       .data : 0xc09ae000 - 0xc0a27850   ( 487 kB)
[    0.000000]        .bss : 0xc0a28004 - 0xc0b5b090   (1229 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.002573] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.002736] pid_max: default: 32768 minimum: 301
[    0.003559] Mount-cache hash table entries: 512
[    0.005784] Initializing cgroup subsys cpuacct
[    0.005869] Initializing cgroup subsys memory
[    0.006018] Initializing cgroup subsys devices
[    0.006091] Initializing cgroup subsys freezer
[    0.006162] Initializing cgroup subsys blkio
[    0.006259] Initializing cgroup subsys perf_event
[    0.006486] CPU: Testing write buffer coherency: ok
[    0.006630] ftrace: allocating 25741 entries in 76 pages
[    0.080500] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080585] [sunxi_smp_prepare_cpus] enter
[    0.080683] Setting up static identity map for 0x40691758 - 0x406917b0
[    0.082725] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.082880] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.090975] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.100334] Brought up 4 CPUs
[    0.100512] SMP: Total of 4 processors activated (19200.00 BogoMIPS).
[    0.102099] devtmpfs: initialized
[    0.114931] wakeup src cnt is : 2. 
[    0.115153] sunxi pm init
[    0.115478] pinctrl core: initialized pinctrl subsystem
[    0.137889] NET: Registered protocol family 16
[    0.143549] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.143755] script_sysfs_init success
[    0.145839] gpiochip_add: registered GPIOs 0 to 383 on device: sunxi-pinctrl
[    0.145839] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.145839] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.145839] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.145839] script config pll_video to 297 Mhz
[    0.145839] script config pll_de to 864 Mhz
[    0.145839] script config pll_ve to 402 Mhz
[    0.160469] bio: create slab <bio-0> at 0
[    0.160743] [ARISC] :sunxi-arisc driver v1.04
[    0.180512] [ARISC] :arisc version: [v0.1.58]
[    0.268105] [ARISC] :sunxi-arisc driver v1.04 startup succeeded
[    0.271696] SCSI subsystem initialized
[    0.271696] usbcore: registered new interface driver usbfs
[    0.271696] usbcore: registered new interface driver hub
[    0.271769] usbcore: registered new device driver usb
[    0.271769] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.271769] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.271769] twi_chan_cfg()340 - [twi2] has no twi_regulator.
[    0.271876] Linux video capture interface: v2.00
[    0.272430] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.274087] cfg80211: Calling CRDA to update world regulatory domain
[    0.281280] Switching to clocksource arch_sys_counter
[    0.311473] FS-Cache: Loaded
[    0.312047] CacheFiles: Loaded
[    0.338582] NET: Registered protocol family 2
[    0.366242] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.367626] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.372086] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
[    0.374734] TCP: Hash tables configured (established 131072 bind 65536)
[    0.374800] TCP: reno registered
[    0.374855] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.374985] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.375831] NET: Registered protocol family 1
[    0.376699] RPC: Registered named UNIX socket transport module.
[    0.376772] RPC: Registered udp transport module.
[    0.376823] RPC: Registered tcp transport module.
[    0.376874] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.377301] Trying to unpack rootfs image as initramfs...
[    0.824006] Freeing initrd memory: 3040K
[    0.825341] hw perfevents: enabled with ARMv7 Cortex_A7 PMU driver, 5 counters available
[    0.825650] sunxi_reg_init enter
[    0.827583] audit: initializing netlink socket (disabled)
[    0.827712] type=2000 audit(0.820:1): initialized
[    0.832183] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.834306] NFS: Registering the id_resolver key type
[    0.835178] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.835257] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.836958] NTFS driver 2.1.30 [Flags: R/W].
[    0.837704] fuse init (API version 7.18)
[    0.839530] Btrfs loaded
[    0.839612] msgmni has been set to 1471
[    0.842911] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.843027] io scheduler noop registered
[    0.843076] io scheduler deadline registered
[    0.843263] io scheduler cfq registered (default)
[    0.844172] [DISP]disp_module_init
[    0.844889] cmdline,init_disp=
[    0.844984] cmdline,disp=
[    0.862208] [DISP] Fb_map_kernel_logo,line:932:Fb_map_kernel_logo failed!
[    0.902457] Console: switching to colour frame buffer device 160x45
[    0.945671] [DISP]disp_module_init finish
[    0.946430] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.947461] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.947900] sw_uart_pm()890 - uart0 clk is already enable
[    0.948298] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    1.046836] console [ttyS0] enabled
[    1.271511] brd: module loaded
[    1.281005] loop: module loaded
[    1.528124] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    1.528154] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator.
[    1.528227] tun: Universal TUN/TAP device driver, 1.6
[    1.528245] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    1.530455] PPP generic driver version 2.4.2
[    1.530932] PPP BSD Compression module registered
[    1.530953] PPP Deflate Compression module registered
[    1.536332] PPP MPPE Compression module registered
[    1.536361] NET: Registered protocol family 24
[    1.536480] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.556657] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.556730] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    1.880963] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    2.380080] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    2.645263] hub 1-0:1.0: USB hub found
[    2.962361] hub 1-0:1.0: 1 port detected
[    3.250088] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.340109] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2
[    3.362638] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000
[    3.400096] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00
[    3.420522] hub 2-0:1.0: USB hub found
[    3.437158] hub 2-0:1.0: 1 port detected
[    3.474554] sunxi-ehci sunxi-ehci.3: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.496138] sunxi-ehci sunxi-ehci.3: new USB bus registered, assigned bus number 3
[    3.518266] sunxi-ehci sunxi-ehci.3: irq 108, io mem 0xf1c1c000
[    3.550112] sunxi-ehci sunxi-ehci.3: USB 0.0 started, EHCI 1.00
[    3.570512] hub 3-0:1.0: USB hub found
[    3.587154] hub 3-0:1.0: 1 port detected
[    3.624539] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.646034] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 4
[    3.668376] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000
[    3.700115] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00
[    3.720662] hub 4-0:1.0: USB hub found
[    3.737460] hub 4-0:1.0: 1 port detected
[    3.755349] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.795114] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    3.816610] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 5
[    3.837954] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    3.915283] hub 5-0:1.0: USB hub found
[    3.932048] hub 5-0:1.0: 1 port detected
[    3.969613] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    3.990877] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 6
[    4.011833] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400
[    4.095346] hub 6-0:1.0: USB hub found
[    4.112060] hub 6-0:1.0: 1 port detected
[    4.149574] sunxi-ohci sunxi-ohci.3: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    4.171080] sunxi-ohci sunxi-ohci.3: new USB bus registered, assigned bus number 7
[    4.192438] sunxi-ohci sunxi-ohci.3: irq 109, io mem 0xf1c1c400
[    4.275346] hub 7-0:1.0: USB hub found
[    4.292123] hub 7-0:1.0: 1 port detected
[    4.329846] sunxi-ohci sunxi-ohci.4: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    4.351372] sunxi-ohci sunxi-ohci.4: new USB bus registered, assigned bus number 8
[    4.372848] sunxi-ohci sunxi-ohci.4: irq 111, io mem 0xf1c1d400
[    4.455416] hub 8-0:1.0: USB hub found
[    4.472344] hub 8-0:1.0: 1 port detected
[    4.489901] Initializing USB Mass Storage driver...
[    4.508280] usbcore: registered new interface driver usb-storage
[    4.527543] USB Mass Storage support registered.
[    4.545385] usbcore: registered new interface driver ums-alauda
[    4.564801] usbcore: registered new interface driver ums-cypress
[    4.584374] usbcore: registered new interface driver ums-datafab
[    4.603497] usbcore: registered new interface driver ums_eneub6250
[    4.622600] usbcore: registered new interface driver ums-freecom
[    4.641318] usbcore: registered new interface driver ums-isd200
[    4.659844] usbcore: registered new interface driver ums-jumpshot
[    4.678380] usbcore: registered new interface driver ums-karma
[    4.696559] usbcore: registered new interface driver ums-onetouch
[    4.714741] usbcore: registered new interface driver ums-realtek
[    4.732566] usbcore: registered new interface driver ums-sddr09
[    4.750139] usbcore: registered new interface driver ums-sddr55
[    4.767561] usbcore: registered new interface driver ums-usbat
[    4.786413] mousedev: PS/2 mouse device common for all mice
[    4.803782] sunxikbd_init failed. 
[    4.818948] ls_fetch_sysconfig_para: type err  device_used = -1073060220. 
[    4.837316] =========script_get_err============
[    4.854226] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    4.872607] i2c /dev entries driver
[    4.888109] IR RC5(x) protocol handler initialized
[    4.905557] twi_start()434 - [i2c0] START can't sendout!
[    4.922712] twi_start()434 - [i2c0] START can't sendout!
[    4.939460] twi_start()434 - [i2c0] START can't sendout!
[    4.956229] twi_start()434 - [i2c0] START can't sendout!
[    4.972529] twi_start()434 - [i2c0] START can't sendout!
[    4.988535] twi_start()434 - [i2c0] START can't sendout!
[    5.004457] twi_start()434 - [i2c0] START can't sendout!
[    5.020055] twi_start()434 - [i2c0] START can't sendout!
[    5.035369] twi_start()434 - [i2c0] START can't sendout!
[    5.050466] twi_start()434 - [i2c0] START can't sendout!
[    5.065291] twi_start()434 - [i2c0] START can't sendout!
[    5.080063] twi_start()434 - [i2c0] START can't sendout!
[    5.094460] twi_start()434 - [i2c0] START can't sendout!
[    5.108596] twi_start()434 - [i2c0] START can't sendout!
[    5.122509] twi_start()434 - [i2c0] START can't sendout!
[    5.136153] twi_start()434 - [i2c0] START can't sendout!
[    5.149718] twi_start()434 - [i2c0] START can't sendout!
[    5.162910] twi_start()434 - [i2c0] START can't sendout!
[    5.175867] twi_start()434 - [i2c0] START can't sendout!
[    5.188590] twi_start()434 - [i2c0] START can't sendout!
[    5.201044] twi_start()434 - [i2c0] START can't sendout!
[    5.213429] twi_start()434 - [i2c0] START can't sendout!
[    5.225602] twi_start()434 - [i2c0] START can't sendout!
[    5.237497] twi_start()434 - [i2c0] START can't sendout!
[    5.249128] twi_start()434 - [i2c0] START can't sendout!
[    5.260492] twi_start()434 - [i2c0] START can't sendout!
[    5.271813] twi_start()434 - [i2c0] START can't sendout!
[    5.283108] twi_start()434 - [i2c1] START can't sendout!
[    5.294352] twi_start()434 - [i2c1] START can't sendout!
[    5.305528] twi_start()434 - [i2c1] START can't sendout!
[    5.316676] twi_start()434 - [i2c1] START can't sendout!
[    5.327776] twi_start()434 - [i2c1] START can't sendout!
[    5.338811] twi_start()434 - [i2c1] START can't sendout!
[    5.349812] twi_start()434 - [i2c1] START can't sendout!
[    5.360764] twi_start()434 - [i2c1] START can't sendout!
[    5.371668] twi_start()434 - [i2c1] START can't sendout!
[    5.382555] twi_start()434 - [i2c1] START can't sendout!
[    5.393399] twi_start()434 - [i2c1] START can't sendout!
[    5.403978] twi_start()434 - [i2c1] START can't sendout!
[    5.414321] twi_start()434 - [i2c1] START can't sendout!
[    5.424353] twi_start()434 - [i2c1] START can't sendout!
[    5.434061] twi_start()434 - [i2c1] START can't sendout!
[    5.443472] twi_start()434 - [i2c1] START can't sendout!
[    5.452568] twi_start()434 - [i2c1] START can't sendout!
[    5.461464] twi_start()434 - [i2c1] START can't sendout!
[    5.470114] twi_start()434 - [i2c1] START can't sendout!
[    5.478727] twi_start()434 - [i2c1] START can't sendout!
[    5.487365] twi_start()434 - [i2c1] START can't sendout!
[    5.496014] twi_start()434 - [i2c1] START can't sendout!
[    5.504666] twi_start()434 - [i2c1] START can't sendout!
[    5.513325] twi_start()434 - [i2c1] START can't sendout!
[    5.521978] twi_start()434 - [i2c1] START can't sendout!
[    5.530619] twi_start()434 - [i2c1] START can't sendout!
[    5.539232] twi_start()434 - [i2c1] START can't sendout!
[    5.547712] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    5.557888] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    5.570149] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    5.584127] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    5.594295] timeout_to_interv, line 167
[    5.602624] interv_to_timeout, line 189
[    5.611066] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    5.625992] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    5.641230] [cpu_freq] ERR:get cpu extremity frequency from sysconfig failed, use max_freq
[    5.666950] no blue_led, ignore it!
[    5.674988] no led_0, ignore it!
[    5.682236] no led_1, ignore it!
[    5.689456] no led_2, ignore it!
[    5.696697] no led_3, ignore it!
[    5.703938] no led_4, ignore it!
[    5.711198] no led_5, ignore it!
[    5.718435] no led_6, ignore it!
[    5.725688] no led_7, ignore it!
[    5.734130] mmc0: new high speed SDHC card at address 59b4
[    5.734225] usbcore: registered new interface driver usbhid
[    5.734238] usbhid: USB HID core driver
[    5.763785] mmcblk0: mmc0:59b4 00000 14.9 GiB 
[    5.774849]  mmcblk0: p1
[    5.782875] mmcblk mmc0:59b4: Card claimed for testing.
[    5.783184] asoc: sndcodec <-> sunxi-codec mapping ok
[    5.784503] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    5.784785] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    5.784804] [DAUDIO0] driver not init,just return.
[    5.844905] mmc0:59b4: 00000 14.9 GiB 
[    5.858868] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok
[    5.872346] oprofile: using arm/armv7-ca7
[    5.882976] u32 classifier
[    5.891938]     Performance counters on
[    5.902289]     input device check on
[    5.912520]     Actions configured
[    5.922766] IPv4 over IPv4 tunneling driver
[    5.934730] TCP: bic registered
[    5.944654] TCP: cubic registered
[    5.954813] TCP: westwood registered
[    5.965338] TCP: highspeed registered
[    5.976024] TCP: hybla registered
[    5.986463] TCP: htcp registered
[    5.996823] TCP: vegas registered
[    6.007333] TCP: veno registered
[    6.017756] TCP: scalable registered
[    6.028447] TCP: lp registered
[    6.038313] TCP: yeah registered
[    6.048224] TCP: illinois registered
[    6.058347] Initializing XFRM netlink socket
[    6.069586] NET: Registered protocol family 10
[    6.076179] mmc2: new high speed DDR MMC card at address 0001
[    6.076873] mmcblk1: mmc2:0001 NCard  7.21 GiB 
[    6.077198] mmcblk1boot0: mmc2:0001 NCard  partition 1 4.00 MiB
[    6.077540] mmcblk1boot1: mmc2:0001 NCard  partition 2 4.00 MiB
[    6.079083]  mmcblk1: p1
[    6.082255]  mmcblk1boot1: unknown partition table
[    6.084850]  mmcblk1boot0: unknown partition table
[    6.085215] mmcblk mmc2:0001: Card claimed for testing.
[    6.085234] mmc2:0001: NCard  7.21 GiB 
[    6.183136] NET: Registered protocol family 17
[    6.194314] NET: Registered protocol family 15
[    6.205462] Registering the dns_resolver key type
[    6.217728] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    6.232770] ThumbEE CPU extension supported.
[    6.243935] Registering SWP/SWPB emulation handler
[    6.256506] registered taskstats version 1
[    6.268167] cmdline,disp=
[    6.308603] ths_fetch_sysconfig_para: type err  device_used = 1. 
[    6.323788] CPU Budget:corekeeper enabled
[    6.335087] CPU Budget:Register notifier
[    6.345660] CPU Budget:register Success
[    6.355871] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0
[    6.477195] hci: ERR: sunxi_ehci is already enable, can not enable again
[    6.490930] hci: ERR: sunxi_ohci is already enable, can not enable again
[    6.527793] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    6.541596] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    6.555296] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    6.570168] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    6.599582] mmc1: new high speed SDIO card at address 0001
[    6.604579] ALSA device list:
[    6.604589]   #0: audiocodec
[    6.604598]   #1: sndhdmi
[    6.639239] Freeing init memory: 328K
[    6.721853] systemd-udevd[100]: starting version 215
[    6.910128] [DISP] disp_device_attached_and_enable,line:159:attched ok, mgr0<-->device0, type=4, mode=5
[    8.475601] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    9.640432] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    9.664209] systemd[1]: Detected architecture 'arm'.
[    9.709833] systemd[1]: Set hostname to <beelinkx2>.
[   10.141606] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   10.180506] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   10.198922] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   10.216887] systemd[1]: Expecting device dev-ttyS0.device...
[   10.242996] systemd[1]: Starting Remote File Systems (Pre).
[   10.268912] systemd[1]: Reached target Remote File Systems (Pre).
[   10.285555] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   10.304722] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   10.323568] systemd[1]: Starting Paths.
[   10.347834] systemd[1]: Reached target Paths.
[   10.362522] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[   10.393910] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   10.415174] systemd[1]: Starting Encrypted Volumes.
[   10.442586] systemd[1]: Reached target Encrypted Volumes.
[   10.459493] systemd[1]: Starting Swap.
[   10.485973] systemd[1]: Reached target Swap.
[   10.501707] systemd[1]: Starting Root Slice.
[   10.528658] systemd[1]: Created slice Root Slice.
[   10.544504] systemd[1]: Starting User and Session Slice.
[   10.572214] systemd[1]: Created slice User and Session Slice.
[   10.589150] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[   10.618266] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   10.636579] systemd[1]: Starting Delayed Shutdown Socket.
[   10.664125] systemd[1]: Listening on Delayed Shutdown Socket.
[   10.680893] systemd[1]: Starting Journal Socket (/dev/log).
[   10.708184] systemd[1]: Listening on Journal Socket (/dev/log).
[   10.725232] systemd[1]: Starting udev Control Socket.
[   10.751374] systemd[1]: Listening on udev Control Socket.
[   10.767267] systemd[1]: Starting udev Kernel Socket.
[   10.793069] systemd[1]: Listening on udev Kernel Socket.
[   10.808944] systemd[1]: Starting Journal Socket.
[   10.833583] systemd[1]: Listening on Journal Socket.
[   10.848345] systemd[1]: Starting System Slice.
[   10.872041] systemd[1]: Created slice System Slice.
[   10.886533] systemd[1]: Started File System Check on Root Device.
[   10.902298] systemd[1]: Starting system-getty.slice.
[   10.926305] systemd[1]: Created slice system-getty.slice.
[   10.941201] systemd[1]: Starting system-serial\x2dgetty.slice.
[   10.966015] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   10.982314] systemd[1]: Starting Increase datagram queue length...
[   11.141146] systemd[1]: Starting Restore / save the current clock...
[   11.311489] systemd[1]: Mounting Debug File System...
[   11.421255] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   11.541135] systemd[1]: Mounted Huge Pages File System.
[   11.556466] systemd[1]: Mounting POSIX Message Queue File System...
[   11.643012] systemd[1]: Started Set Up Additional Binary Formats.
[   11.663439] systemd[1]: Starting Load Kernel Modules...
[   11.771112] systemd[1]: Starting udev Coldplug all Devices...
[   11.806676] asoc: sndspdif <-> spdif0 mapping ok
[   11.851278] Registered IR keymap rc-empty
[   11.865625] rc0: sunxi-ir as /devices/virtual/rc/rc0
[   11.881368] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0
[   11.891179] systemd[1]: Starting LSB: Set keymap...
[   11.970875] systemd[1]: Starting Slices.
[   11.994299] systemd[1]: Reached target Slices.
[   12.020655] systemd[1]: Mounted POSIX Message Queue File System.
[   12.046035] systemd[1]: Mounted Debug File System.
[   12.179787] systemd[1]: Started Increase datagram queue length.
[   12.279877] systemd[1]: Started Restore / save the current clock.
[   12.380292] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   12.401606] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[   12.521026] systemd[1]: Failed to start Load Kernel Modules.
[   12.537293] systemd[1]: Unit systemd-modules-load.service entered failed state.
[   12.801067] systemd[1]: Started LSB: Set keymap.
[   12.890819] systemd[1]: Started udev Coldplug all Devices.
[   12.910978] systemd[1]: Time has been changed
[   12.926583] systemd[1]: Mounted Configuration File System.
[   12.942666] systemd[1]: Starting Apply Kernel Variables...
[   13.081152] systemd[1]: Mounting FUSE Control File System...
[   13.201017] systemd[1]: Starting Create Static Device Nodes in /dev...
[   13.320983] systemd[1]: Starting Syslog Socket.
[   13.346386] systemd[1]: Listening on Syslog Socket.
[   13.361607] systemd[1]: Starting Journal Service...
[   13.501381] systemd[1]: Started Journal Service.
[   13.899103] systemd-udevd[182]: starting version 215
[   15.160532] dummy_sdmmc: probe of mmc1:0001:1 failed with error -123
[   15.176610] dummy_sdmmc: probe of mmc1:0001:2 failed with error -123
[   15.192581] mmc1: card 0001 removed
[   15.267936] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   15.284357] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   15.300420] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   15.317438] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   15.348840] mmc1: new high speed SDIO card at address 0001
[   15.510675] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[   21.519702] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[   23.156061] systemd-journald[180]: Received request to flush runtime journal from PID 1
[   27.630333] mmc1: card 0001 removed
[   28.287964] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   28.303586] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   28.318970] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   28.335490] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   28.367195] mmc1: new high speed SDIO card at address 0001
[   28.540737] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[   40.680274] mmc1: card 0001 removed
[   41.317845] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   41.334343] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   41.350818] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   41.368335] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   41.400518] mmc1: new high speed SDIO card at address 0001
[   41.590616] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[   53.670330] mmc1: card 0001 removed
[   54.367572] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   54.384355] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   54.401528] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   54.419839] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   54.452542] mmc1: new high speed SDIO card at address 0001
[   54.680672] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12
[   66.750302] mmc1: card 0001 removed
[   67.537804] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   67.555188] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   67.572410] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   67.590730] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   67.623426] mmc1: new high speed SDIO card at address 0001
[   67.870602] bcmsdh_sdmmc: probe of mmc1:0001:2 failed with error -12

 

Edited by zador.blood.stained
Added spoiler tags
Link to comment
Share on other sites

Ok, that is very strange. Message "queuing unknown CIS tuple" comes from a mmc driver and not wifi driver. Error -12 means not enough memory. It may be that those errors are just continuation of U-Boot troubles. Did any image work before? If it did, does it work now? Can you check if you have U-Boot patch "fix-h3-rev3-dram-calibration.patch" in your build system?

Link to comment
Share on other sites

Yes, very strange. I'm a bit puzzled as we don't see the message from sunxi-mci.c to say that the driver has been loaded.

 

I have the "standard" image from 22/9 running just fine - I'm only doing this work to check that the wifi patches you put together work the way that @igor has implemented them.

 

Anyhow, I just had a quick look through the patches since the 22/9 release and can't see anything related except that the kernel flag "CONFIG_MMC_PARANOID_SD_INIT" flag was reset. I'm building again with MMC and MMC_SUNXI debug turned on and the paranoid flag set - but don't see anything much different.

 

I checked for the u-boot patch - yes it is in the build - I guess I am not the only one with issues booting from SD cards... 

 

Perhaps @igor has some input ?

Link to comment
Share on other sites

*** UPDATED ***

Update on bcmdhd driver issues when building the latest "default" from @igor's repo.

 

By removing two patches, I can now get the X2 to boot from the SD card :-)

The previous debug can be ignored.

 

As expected, the new dhd driver does not work on the X2 - and I think I know how to fix those issues (see my bug in @igor's repo) but need to learn how to submit patches :-)

 

Looking at the impact of @jerenej's patches to rf_pm, it looks like there is a deadlock of some kind if the dhd module is not loaded during system startup. By adding dhd to /etc/modules, the driver is loaded (and then fails as expected) but the system eventually initialises properly. I'm not proposing to investigate why this is the case - we just need to ensure that the dhd entry is there on systems that might have the BCM wifi devices.

 

Now I will focus on fixing the rest of the config for this driver and working out how to provide patches to @igor :-)

Link to comment
Share on other sites

Hi everyone. Just tried Armbian_5.20_Beelinkx2_Debian_jessie_3.4.112_desktop and got pink LED. I see the following message on console:

U-Boot SPL 2016.09-armbian (Sep 21 2016 - 19:23:46)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1

Do I need to apply some patches to official release or it should work out of the box?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines