login

Author Topic: does cubietruck ethernet work  (Read 9915 times)

Offline benscott

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
does cubietruck ethernet work
« on: November 02, 2013, 05:27:39 PM »
I got my cubietruck a few days ago and can't get any networking at all. Any attempt to use the ethernet port causes a kernel stack trace. I have tried the cubian image both with the stock kernel  and with a self compiled kernel. I have tried both the emac and gmac driver too. I suspect I have a defective board here. Does anyone have a bootable image they know has working ethernet for the cubie truck?

Also, is the usb power port supposed to make the normal usb ports unusable? I am using a wall wart for power normally because the keyboard won't work when the OTG port is plugged in.

Thank you.


Offline benscott

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #1 on: November 02, 2013, 10:03:26 PM »
I should also note that I have tried a couple different fex files on the board with no success. I just tried the disk drive SATA connector and can't get that to work either. The 5V connector is reading zero on my meter. Is it under software control?

Thank you.


Offline ikaruzz

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #2 on: November 03, 2013, 06:36:01 AM »
Yes!
Cubietruck ethernet (gmac) works.
Cubietruck wifi, bluetooth, VGA, sata, 2GB RAM works too.

But you need a new Kernel, u-boot, script.bin. The versions from Cubieboard2 do not work!

Here is a full output of dmesg on my Cubietruck:
Code: [Select]
# dmesg
[    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.61+ (root@evdilo2.foo.bar) (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) ) #29 SMP PREEMPT Sat Nov 2 13:34:23 CET 2013
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun7i
[    0.000000] Memory cut off:
[    0.000000]  MALI : 0x5c000000 - 0x5fffffff  (  64 MB)
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Memory Reserved:
[    0.000000]  SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
[    0.000000]  VE   : 0x44000000 - 0x48ffffff  (  80 MB)
[    0.000000]  G2D  : 0x49000000 - 0x49ffffff  (  16 MB)
[    0.000000]  LCD  : 0x5a000000 - 0x5bffffff  (  32 MB)
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] sunxi: Allwinner A20 (AW1651/sun7i) detected.
[    0.000000] On node 0 totalpages: 507904
[    0.000000] free_area_init_node: node 0, pgdat c0788900, node_mem_map d0000000
[    0.000000]   DMA zone: 512 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 65024 pages, LIFO batch:15
[    0.000000]   Normal zone: 1008 pages used for memmap
[    0.000000]   Normal zone: 111632 pages, LIFO batch:31
[    0.000000]   HighMem zone: 2576 pages used for memmap
[    0.000000]   HighMem zone: 327152 pages, LIFO batch:31
[    0.000000] PERCPU: Embedded 7 pages/cpu @d100e000 s6912 r8192 d13568 u32768
[    0.000000] pcpu-alloc: s6912 r8192 d13568 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 503808
[    0.000000] Kernel command line: console=ttyS0,115200 console=tty0 disp.screen0_output_mode=EDID:1280x720p60 hdmi.audio=EDID:0 root=/dev/sda1 rootwait mac_addr=08:60:6e:64:45:2c
[    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 4194304 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 448MB 1536MB = 1984MB total
[    0.000000] Memory: 1871132k/1871132k available, 160484k reserved, 1318912K 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 - 0xc06f8000   (7104 kB)
[    0.000000]       .init : 0xc06f8000 - 0xc0729b00   ( 199 kB)
[    0.000000]       .data : 0xc072a000 - 0xc0789dd0   ( 384 kB)
[    0.000000]        .bss : 0xc0789df4 - 0xc08439b0   ( 743 kB)
[    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000]  Dump stacks of tasks blocking RCU-preempt GP.
[    0.000000] NR_IRQS:192
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] start_kernel(): bug: interrupts were enabled early
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty0] enabled
[    0.000712] Calibrating delay loop... 1915.28 BogoMIPS (lpj=9576448)
[    0.059947] pid_max: default: 32768 minimum: 301
[    0.060155] Mount-cache hash table entries: 512
[    0.060975] Initializing cgroup subsys cpuacct
[    0.061010] Initializing cgroup subsys memory
[    0.061058] Initializing cgroup subsys devices
[    0.061079] Initializing cgroup subsys freezer
[    0.061099] Initializing cgroup subsys blkio
[    0.061135] Initializing cgroup subsys perf_event
[    0.061205] CPU: Testing write buffer coherency: ok
[    0.061435] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.061498] hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available
[    0.061580] Setting up static identity map for 0x40567758 - 0x405677b0
[    0.174318] CPU1: Booted secondary processor
[    0.231741] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.231818] Brought up 2 CPUs
[    0.231864] SMP: Total of 2 processors activated (3830.57 BogoMIPS).
[    0.232642] devtmpfs: initialized
[    0.236564] dummy:
[    0.236833] NET: Registered protocol family 16
[    0.237539] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.237577] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.237613] [ccu-inf] aw clock manager init
[    0.237633] [ccu-inf] aw_ccu_init
[    0.237859] [ccu-inf] script config pll3 to 297MHz
[    0.237886] [ccu-inf] script config pll4 to 300MHz
[    0.237912] [ccu-inf] script config pll6 to 600MHz
[    0.237935] [ccu-inf] script config pll7 to 297MHz
[    0.237958] [ccu-inf] script config pll8 to 336MHz
[    0.238107] Init eGon pin module V2.0
[    0.242742] bio: create slab <bio-0> at 0
[    0.243101] sunxi_gpio driver init ver 1.3
[    0.243322] gpiochip_add: registered GPIOs 1 to 2 on device: A1X_GPIO
[    0.243765] SCSI subsystem initialized
[    0.243855] libata version 3.00 loaded.
[    0.244032] usbcore: registered new interface driver usbfs
[    0.244116] usbcore: registered new interface driver hub
[    0.244277] usbcore: registered new device driver usb
[    0.244497] Linux media interface: v0.10
[    0.244555] Linux video capture interface: v2.00
[    0.244829] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.245615] cfg80211: Calling CRDA to update world regulatory domain
[    0.246728] Switching to clocksource arch_sys_counter
[    0.247020] FS-Cache: Loaded
[    0.247202] CacheFiles: Loaded
[    0.275609] sw_hcd_host0 sw_hcd_host0: sw_hcd host driver
[    0.275663] sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned bus number 1
[    0.276348] hub 1-0:1.0: USB hub found
[    0.276398] hub 1-0:1.0: 1 port detected
[    0.277423] NET: Registered protocol family 2
[    0.277711] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.278259] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.280142] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
[    0.281216] TCP: Hash tables configured (established 131072 bind 65536)
[    0.281241] TCP: reno registered
[    0.281264] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.281317] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.281580] NET: Registered protocol family 1
[    0.282000] RPC: Registered named UNIX socket transport module.
[    0.282035] RPC: Registered udp transport module.
[    0.282054] RPC: Registered tcp transport module.
[    0.282075] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.282511] pm: select wifi: ap6210
[    0.282674] ap6xxx: config 32k clock
[    0.282767] [wifi_pm]: wifi gpio init is OK !!
[    0.283059] [rfkill]: rfkill set power 0
[    0.283586] audit: initializing netlink socket (disabled)
[    0.283653] type=2000 audit(0.270:1): initialized
[    0.284596] highmem bounce pool size: 64 pages
[    0.292410] VFS: Disk quotas dquot_6.5.2
[    0.292699] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.294640] NFS: Registering the id_resolver key type
[    0.295312] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.296287] NTFS driver 2.1.30 [Flags: R/W].
[    0.296732] fuse init (API version 7.18)
[    0.297379] msgmni has been set to 1078
[    0.301876] alg: No test for stdrng (krng)
[    0.302257] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.302299] io scheduler noop registered
[    0.302320] io scheduler deadline registered
[    0.302363] io scheduler cfq registered (default)
[    0.302859] sunxi disp driver loaded (/dev/disp api 1.0)
[    0.303093] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.304651] [uart]: used uart info.: 0x05
[    0.304755] [uart]: serial probe 0 irq 33 mapbase 0x01c28000
[    0.325086] sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A
[    0.969894] console [ttyS0] enabled
[    0.973804] [uart]: serial probe 2 irq 35 mapbase 0x01c28800
[    0.999793] sunxi-uart.2: ttyS1 at MMIO 0x1c28800 (irq = 35) is a U6_16550A
[    1.007466] G2D: drv_g2d_init
[    1.007478] G2D: g2dmem: g2d_start=49000000, g2d_size=1000000
[    1.013237] G2D: head:c9000000,tail:ca000000
[    1.017563] G2D: Module initialized.major:250
[    1.022825] brd: module loaded
[    1.029087] loop: module loaded
[    1.032285] [NAND] nand driver version: 0x2 0x9
[    1.082842] Dev Sunxi softw311 nand magic does not match for MBR 1: softw411
[    1.089952] Dev Sunxi softw311 nand magic does not match for MBR 2:         
[    1.097036] Dev Sunxi softw311 nand magic does not match for MBR 3:         
[    1.104096] Dev Sunxi softw311 nand magic does not match for MBR 4:         
[    1.111165] Dev Sunxi softw311 nand header bad for all MBR copies, MBR corrupted or not present.
[    1.123687] Dev Sunxi softw411 nand: part 1, start 32768, size 32768
[    1.130108] Dev Sunxi softw411 nand: part 2, start 65536, size 32768
[    1.136474] Dev Sunxi softw411 nand: part 3, start 98304, size 32768
[    1.142850] Dev Sunxi softw411 nand: part 4, start 131072, size 1048576
[    1.149487] Dev Sunxi softw411 nand: part 5, start 1179648, size 1048576
[    1.156199] Dev Sunxi softw411 nand: part 6, start 2228224, size 32768
[    1.162746] Dev Sunxi softw411 nand: part 7, start 2260992, size 65536
[    1.169292] Dev Sunxi softw411 nand: part 8, start 2326528, size 655360
[    1.175917] Dev Sunxi softw411 nand: part 9, start 2981888, size 32768
[    1.182463] Dev Sunxi softw411 nand: part 10, start 3014656, size 524288
[    1.189187] Dev Sunxi softw411 nand: part 11, start 3538944, size 11501568
[    1.196072]  nand: nanda nandb nandc nandd nande nandf nandg nandh nandi nandj nandk
[    1.206090] [NAND]nand driver, ok.
[    1.206503] sw_ahci sw_ahci.0: controller can't do PMP, turning off CAP_PMP
[    1.213534] sw_ahci sw_ahci.0: forcing PORTS_IMPL to 0x1
[    1.218920] sw_ahci sw_ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    1.227396] sw_ahci sw_ahci.0: flags: ncq sntf pm led clo only pio slum part ccc
[    1.235635] scsi0 : sw_ahci_platform
[    1.239559] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 88
[    1.247906] eth%d: device MAC address 08:60:6e:64:45:2c
[    1.253663] [gmac]: sun6i_gmac platform driver registration completed
[    1.253777] usbcore: registered new interface driver zd1201
[    1.259531] usbcore: registered new interface driver brcmfmac
[    1.265694] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.272315] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.278821] [sw-ehci1]: open clock
[    1.298846] [sw-ehci1]: Set USB Power ON
[    1.298859] sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.306551] sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 2
[    1.313723] sw-ehci sw-ehci.1: irq 71, io mem 0x01c14000
[    1.336819] sw-ehci sw-ehci.1: USB 2.0 started, EHCI 1.00
[    1.342803] hub 2-0:1.0: USB hub found
[    1.346591] hub 2-0:1.0: 1 port detected
[    1.351017] [sw-ohci1]: open clock
[    1.371049] sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.378367] sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 3
[    1.385461] sw-ohci sw-ohci.1: irq 96, io mem 0x01c14400
[    1.451402] hub 3-0:1.0: USB hub found
[    1.455182] hub 3-0:1.0: 1 port detected
[    1.459577] [sw-ehci2]: open clock
[    1.479594] [sw-ehci2]: Set USB Power ON
[    1.479607] sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.487291] sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 4
[    1.494439] sw-ehci sw-ehci.2: irq 72, io mem 0x01c1c000
[    1.516816] sw-ehci sw-ehci.2: USB 2.0 started, EHCI 1.00
[    1.522741] hub 4-0:1.0: USB hub found
[    1.526514] hub 4-0:1.0: 1 port detected
[    1.530906] [sw-ohci2]: open clock
[    1.550915] sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.558301] sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 5
[    1.565394] sw-ohci sw-ohci.2: irq 97, io mem 0x01c1c400
[    1.596828] ata1: SATA link down (SStatus 0 SControl 300)
[    1.629930] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen
[    1.631403] hub 5-0:1.0: USB hub found
[    1.631433] hub 5-0:1.0: 1 port detected
[    1.631934] mousedev: PS/2 mouse device common for all mice
[    1.631992] try to request ir_para gpio failed
[    1.632275] input: sunxi-ir as /devices/virtual/input/input0
[    1.632442] IR Initial OK
[    1.632449] ===========================hv_keypad_init=====================
[    1.632457] ========HV Inital ===================
[    1.632466] tkey_fetch_sysconfig_para: tkey_unused.
[    1.632474] hv_keypad_init: after fetch_sysconfig_para:  normal_i2c: 0x0. normal_i2c[1]: 0x0
[    1.632590] rtc: get i2c master0 failed
[    1.633096] sunxi-rtc sunxi-rtc: rtc core: registered rtc as rtc0
[    1.633147] i2c /dev entries driver
[    1.633616] config i2c gpio with gpio_config api
[    1.634906] axp_mfd 0-0034: AXP (CHIP ID: 0x41) detected
[    1.635145] axp_mfd 0-0034: AXP internal temperature monitoring enabled
[    1.635986] i2c i2c-0: Invalid probe address 0x00
[    1.635996] I2C: i2c-0: AW16XX I2C adapter
[    1.636327] i2c i2c-1: Invalid probe address 0x00
[    1.636335] I2C: i2c-1: AW16XX I2C adapter
[    1.636658] i2c i2c-2: Invalid probe address 0x00
[    1.636666] I2C: i2c-2: AW16XX I2C adapter
[    1.636725] [ccu-err] clk_enable: invalid handle
[    1.637004] i2c i2c-3: Invalid probe address 0x00
[    1.637015] I2C: i2c-3: AW16XX I2C adapter
[    1.637074] [ccu-err] clk_enable: invalid handle
[    1.637282] i2c i2c-4: Invalid probe address 0x00
[    1.637292] I2C: i2c-4: AW16XX I2C adapter
[    1.637333] [ace_drv] start!!!
[    1.637653] [ace_drv] init end!!!
[    1.637661] [pa_drv] start!!!
[    1.637929] [pa_drv] init end!!!
[    1.638058] axp20_ldo1: 1300 mV
[    1.639212] axp20_ldo2: 1800 <--> 3300 mV at 3000 mV
[    1.640291] axp20_ldo3: 700 <--> 3500 mV at 2800 mV
[    1.641553] axp20_ldo4: 1250 <--> 3300 mV at 2800 mV
[    1.642619] axp20_buck2: 700 <--> 2275 mV at 1400 mV
[    1.643702] axp20_buck3: 700 <--> 3500 mV at 1250 mV
[    1.644319] axp20_ldoio0: 1800 <--> 3300 mV at 2800 mV
[    1.644861] input: axp20-supplyer as /devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input1
[    1.667035] cpuidle: using governor ladder
[    1.667047] cpuidle: using governor menu
[    1.667114] [mmc-msg] sw_mci_init
[    1.667225] [mmc-msg] MMC host used card: 0x9, boot card: 0x0, io_card 8
[    1.667588] [mmc-msg] sdc0 set round clock 400000, src 24000000
[    1.667811] [mmc-msg] sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.668890] [mmc-msg] sdc0 Probe: base:0xf00e8000 irq:64 sg_cpu:ffdf7000(4fc00000) ret 0.
[    1.668989] [mmc-msg] sdc3 set round clock 400000, src 24000000
[    1.669131] [mmc-msg] sdc3 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    1.670182] [mmc-msg] sdc3 Probe: base:0xf00ea000 irq:67 sg_cpu:ffddf000(4fc01000) ret 0.
[    1.670229] [mmc_pm]: failed to fetch sdio card configuration!
[    1.670239] sunxi_leds driver init
[    1.670581] Registered led device: blue:ph21:led1
[    1.670654] Registered led device: orange:ph20:led2
[    1.670746] Registered led device: white:ph11:led3
[    1.670831] Registered led device: green:ph07:led4
[    1.670920] ledtrig-cpu: registered to indicate activity on CPUs
[    1.671472] usbcore: registered new interface driver usbhid
[    1.671480] usbhid: USB HID core driver
[    1.673381] IPv4 over IPv4 tunneling driver
[    1.673906] TCP: cubic registered
[    1.674502] NET: Registered protocol family 10
[    1.675485] NET: Registered protocol family 17
[    1.675521] NET: Registered protocol family 15
[    1.675575] lib80211: common routines for IEEE802.11 drivers
[    1.675586] lib80211_crypt: registered algorithm 'NULL'
[    1.675596] Registering the dns_resolver key type
[    1.897704] ata1: irq_stat 0x00000040, connection status changed
[    1.897717] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    1.897760] Registering SWP/SWPB emulation handler
[    1.898164] [cpu_freq] INF:-------------------V-F Table-------------------
[    1.898174] [cpu_freq] INF:  voltage = 1450mv        frequency = 1008MHz
[    1.898182] [cpu_freq] INF:  voltage = 1400mv        frequency =  912MHz
[    1.898190] [cpu_freq] INF:  voltage = 1300mv        frequency =  864MHz
[    1.898197] [cpu_freq] INF:  voltage = 1200mv        frequency =  720MHz
[    1.898205] [cpu_freq] INF:  voltage = 1100mv        frequency =  528MHz
[    1.898212] [cpu_freq] INF:  voltage = 1050mv        frequency =  312MHz
[    1.898220] [cpu_freq] INF:  voltage = 1050mv        frequency =  144MHz
[    1.898228] [cpu_freq] INF:  voltage = 1000mv        frequency =    0MHz
[    1.898234] [cpu_freq] INF:-----------------------------------------------
[    1.898251] [cpu_freq] INF:sunxi_cpufreq_initcall, get cpu frequency from sysconfig, max freq: 1008MHz, min freq: 60MHz
[    1.899919] [DISP] Invalid mode string: EDID:1280x720p60, ignoring
[    1.995674] ata1: SError: { CommWake DevExch }
[    2.000187] ata1: hard resetting link
[    2.671802] [mmc-msg] mmc 0 detect change, present 1
[    2.678213] Console: switching to colour frame buffer device 160x64
[    2.707666] I2C: i2c-5: HDMI I2C adapter
[    2.737475] axp20_buck3: incomplete constraints, leaving on
[    2.743422] axp20_buck2: incomplete constraints, leaving on
[    2.749376] axp20_ldo4: incomplete constraints, leaving on
[    2.755232] axp20_ldo3: incomplete constraints, leaving on
[    2.761087] axp20_ldo2: incomplete constraints, leaving on
[    2.766956] axp20_ldo1: incomplete constraints, leaving on
[    2.776910] sunxi-rtc sunxi-rtc: setting system clock to 2013-11-02 15:31:08 UTC (1383406268)
[    2.785688] ALSA device list:
[    2.788744]   #0: sunxi-CODEC  Audio Codec
[    2.793288] Waiting for root device /dev/sda1...
[    3.166836] [mmc-msg] sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.176040] [mmc-msg] sdc0 power on
[    3.196819] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.206498] [mmc-msg] sdc0 set round clock 400000, src 24000000
[    3.289147] [mmc-err] smc 0 err, cmd 52,  RTO
[    3.294458] [mmc-err] smc 0 err, cmd 52,  RTO
[    3.298958] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.311354] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.323308] [mmc-err] smc 0 err, cmd 5,  RTO
[    3.328520] [mmc-err] smc 0 err, cmd 5,  RTO
[    3.333735] [mmc-err] smc 0 err, cmd 5,  RTO
[    3.338947] [mmc-err] smc 0 err, cmd 5,  RTO
[    3.343981] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.353673] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.366054] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.409192] [mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    3.418766] [mmc-msg] sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    3.433840] [mmc-msg] sdc0 set round clock 42857143, src 600000000
[    3.500602] [mmc-msg] sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    3.515745] mmc0: new high speed SDHC card at address b368
[    3.527425] mmcblk0: mmc0:b368 USD   3.72 GiB
[    3.538951]  mmcblk0: p1
[    3.896840] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.909159] ata1.00: ATA-8: INTEL SSDSC2BB080G4, D2010355, max UDMA/133
[    3.921763] ata1.00: 156301488 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    3.934770] ata1.00: configured for UDMA/133
[    3.944978] ata1: EH complete
[    3.954267] scsi 0:0:0:0: Direct-Access     ATA      INTEL SSDSC2BB08 D201 PQ: 0 ANSI: 5
[    3.969062] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    3.983549] sd 0:0:0:0: [sda] Write Protect is off
[    3.994297] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.994448] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.010936]  sda: sda1 sda2
[    4.021188] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.117522] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[    4.137326] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
[    4.186322] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    4.200488] VFS: Mounted root (ext4 filesystem) on device 8:1.
[    4.215212] devtmpfs: mounted
[    4.224974] Freeing init memory: 196K
[    6.033594] systemd-udevd[176]: starting version 204
[   10.239955] bcmdhd: got gpio2, mapped to irqno170
[   10.240157] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[   10.641659] sdio wifi power state: on
[   10.641771] [mmc-msg] sdc3 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   10.641811] [mmc-msg] sdc3 power on
[   10.656922] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   10.657028] [mmc-msg] sdc3 set round clock 400000, src 24000000
[   10.729210] [mmc-err] smc 3 err, cmd 52,  RTO
[   10.730091] [mmc-err] smc 3 err, cmd 52,  RTO
[   10.730162] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   10.737971] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   10.742460] [mmc-err] smc 3 err, cmd 8,  RTO
[   10.756880] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[   10.766551] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   10.768196] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   10.769836] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   10.772748] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   10.786864] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[   10.786921] [mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[   10.787013] [mmc-msg] sdc3 set round clock 42857143, src 600000000
[   10.842199] [mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[   10.847404] mmc1: new high speed SDIO card at address 0001
[   11.053238] =========== WLAN placed in POWER ON ========
[   11.053527] Linux Kernel SDIO/MMC Driver
[   11.054040] bcmdhd: irq=170, flags=0x00000414
[   11.054976] dhdsdio_probe : no mutex held. set lock
[   11.055400] F1 signature read @0x18000000=0x1591a962
[   11.056148] bcmsdh_config_hw_oob_intr: Enter
[   11.064951] DHD: dongle ram size is set to 245760(orig 245760)
[   11.066677] dhd_attach, firmware path
[   11.068578] wl_create_event_handler thr:100 created
[   11.068752] wl_create_event_handler thr:100 started
[   11.071859] p2p0: P2P Interface Registered
[   11.072093] dhd_attach thr:101 created
[   11.072283] dhd_attach thr:101 started
[   11.072460] dhd_attach thr:102 created
[   11.072680] dhd_attach thr:102 started
[   11.072832] dhd_attach thr:103 created
[   11.072963] dhd_attach thr:103 started
[   11.075669] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33
[   11.075725] dhdsdio_probe : the lock is released.
[   11.076017]
[   11.076032] Dongle Host Driver, version 1.28.23.3 (r)
[   11.076050] Compiled in drivers/net/wireless/bcmdhd on Nov  2 2013 at 13:30:28
[   11.076102] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to insert WLAN RESET
[   11.521444] sdio wifi power state: off
[   11.950145] =========== WLAN placed in RESET ========
[   12.274852] Bluetooth: Core ver 2.16
[   12.275006] NET: Registered protocol family 31
[   12.275041] Bluetooth: HCI device and connection manager initialized
[   12.275090] Bluetooth: HCI socket layer initialized
[   12.275125] Bluetooth: L2CAP socket layer initialized
[   12.275158] Bluetooth: SCO socket layer initialized
[   12.280465] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[   14.305114] Adding 3145724k swap on /dev/sda2.  Priority:-1 extents:1 across:3145724k SS
[   14.769584] EXT4-fs (mmcblk0p1): VFS: Can't find ext4 filesystem
[   14.831683] EXT4-fs (mmcblk0p1): VFS: Can't find ext4 filesystem
[   14.833689] EXT4-fs (mmcblk0p1): VFS: Can't find ext4 filesystem
[   24.851929] sunxi_gmac: probed
[   24.851987] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active
[   24.852033] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01)
[   26.846990] PHY: sunxi_gmac-0:00 - Link is Up - 1000/Full

Offline ldp

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #3 on: November 03, 2013, 05:22:20 PM »
@ ikaruzz

Would you be kind and share your Kernel, u-boot, script.bin ?

Thanks!

Offline slin

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #4 on: November 06, 2013, 08:25:08 AM »
i would appreciate that, too ikaruzz

Offline raw

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #5 on: November 10, 2013, 06:46:32 AM »
i got the ethernet to work by using the lubuntu image http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-nand-v1.00/

After flashing it to nand, i resized the rootfs partition and replaced the lubuntu with archlinux, which also works (using kernel and from lubuntu). Problem with that is that the network driver is a module and somehow the network interface is not available at the time my arch tries to configure it.

anyway, i have made some speedtests form the internet (using speedtest-cli) and it did not look so good, best speed i had were 50Mbit. i need to do more testing. what is your impression? is the gigabit ethernet slow for you too? this goes especially to ikaruzz.

Offline ikaruzz

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #6 on: November 10, 2013, 08:42:47 AM »
"speedtest-cli" tests your internet bandwidth.

I have tested with iperf (server and client in the same subnet/VLAN with a Gigabit Switch):

Test with TCP:
Server: an old intel SR2500ALLX server with 2 xeon X5460 and 32GB RAM, Intel NIC (running Gentoo Linux)
Code: [Select]
# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------


Clients with TCP:

cubietruck
Code: [Select]
cubietruck ~ # iperf -c 192.168.1.47
------------------------------------------------------------
Client connecting to 192.168.1.47, TCP port 5001
TCP window size: 20.7 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.55 port 47085 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   612 MBytes   513 Mbits/sec

cubieboard1
Code: [Select]
cubieboard1 # iperf -c 192.168.1.47
------------------------------------------------------------
Client connecting to 192.168.1.47, TCP port 5001
TCP window size: 20.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.52 port 59641 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  93.1 MBytes  78.1 Mbits/sec

cubieboard2
Code: [Select]
cubieboard2 ~ # iperf -c 192.168.1.47           
------------------------------------------------------------
Client connecting to 192.168.1.47, TCP port 5001
TCP window size: 20.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.54 port 41816 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec   113 MBytes  94.2 Mbits/sec

For reference (my desktop MB ASUS P8C WS, Xeon CPU E3-1275 V2, 24GB RAM, Intel NIC (running Gentoo Linux)
Code: [Select]
desktop ~ # iperf -c 192.168.1.47
------------------------------------------------------------
Client connecting to 192.168.1.47, TCP port 5001
TCP window size: 22.5 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.11 port 59356 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.09 GBytes   936 Mbits/sec


Test with UDP:
Server: an old intel SR2500ALLX server with 2 xeon X5460 and 32GB RAM, Intel NIC (running Gentoo Linux)
Code: [Select]
# iperf -s -u
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------

cubietruck
Code: [Select]
cubietruck ~ # iperf -c 192.168.1.47 -u -b 1000M       
------------------------------------------------------------
Client connecting to 192.168.1.47, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size:  160 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.55 port 36050 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   610 MBytes   512 Mbits/sec
[  3] Sent 435257 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec   610 MBytes   512 Mbits/sec   0.034 ms    0/435256 (0%)
[  3]  0.0-10.0 sec  1 datagrams received out-of-order

cubieboard1
Code: [Select]
cubieboard1 ~ # iperf -c 192.168.1.47 -u -b 1000M
------------------------------------------------------------
Client connecting to 192.168.1.47, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size:  160 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.52 port 57593 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  92.4 MBytes  77.5 Mbits/sec
[  3] Sent 65908 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec  92.4 MBytes  77.5 Mbits/sec   0.208 ms    1/65909 (0.0015%)

cubieboard2
Code: [Select]
cubieboard2 ~ # iperf -c 192.168.1.47 -u -b 1000M
------------------------------------------------------------
Client connecting to 192.168.1.47, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size:  160 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.54 port 46477 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   112 MBytes  94.3 Mbits/sec
[  3] Sent 80183 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec   112 MBytes  94.2 Mbits/sec   0.391 ms    1/80184 (0.0012%)

For reference (my desktop MB ASUS P8C WS, Xeon CPU E3-1275 V2, 24GB RAM, Intel NIC (running Gentoo Linux)
Code: [Select]
desktop ~ # iperf -c 192.168.1.47 -u -b 1000M
------------------------------------------------------------
Client connecting to 192.168.1.47, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.11 port 32950 connected with 192.168.1.47 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.11 GBytes   957 Mbits/sec
[  3] Sent 813891 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec  1.11 GBytes   957 Mbits/sec   0.019 ms   66/813892 (0.0081%)


My comparison:

iperf using TCP:
cubietruck 513 Mbits/sec
cubieboard1 78.1 Mbits/sec
cubieboard2 94.2 Mbits/sec
for reference my desktop 936 Mbits/sec

iperf using UDP:
cubietruck 512 Mbits/sec
cubieboard1 77.5 Mbits/sec
cubieboard2 94.2 Mbits/sec
for reference my desktop 957 Mbits/sec


Conclusion:
Gigabit Ethernet on the cubietruck is a big improvement!



Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +128/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #7 on: November 10, 2013, 12:33:31 PM »
Thank you for posting these tests.  Very useful information!

Offline ikaruzz

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #8 on: November 10, 2013, 01:23:46 PM »
@ ikaruzz

Would you be kind and share your Kernel, u-boot, script.bin ?

Thanks!

There are other people in this forum, who can do it better.
I am not a developer!

I just put together, what I found in this forum and in the rest of the web.

@ldp @slin
You have a PM.

Offline occip

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #9 on: November 13, 2013, 05:52:47 PM »
Hi,

I think I've got a problem with my cubietruck,
I  have recompiled everything :
u-boot +patch
script.bin
lastest kernel

The network can only negociate at 100M FD with my gigabit switch
I also tried a cross ethernet cable with my PC (gigabit network) the network is only at 100Mb in kernel log or with mii-tool .
I hope it's a not an hardware problem  because the ethernet phy chip (RTL8211E) is not well soldered.

If someone has some files for me  ( uImage , script.bin and u-boot) i will be happy to test it.

Thank you

regards.

Offline kingneutron

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +10/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #10 on: November 17, 2013, 04:33:53 AM »
--Please see my HOWTO for Linaro here:
http://www.cubieforums.com/index.php/topic,1045.0.html

--Since NAND flash only has a limited life, if you are testing different kernels then I would recommend going with a microSD card until you find the kernel/distro you want to go with. You should be able to pick up a SanDisk 16GB microSD Class 10 Ultra Card for under $15 at Walmart (for example.)

--Let us know how it goes...

Offline copper

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #11 on: November 29, 2013, 10:43:48 PM »
hi ikaruzz

is it possible for you to share your cubie boot images with me too?
thanks

would you also be able to share your procedure for building this image?

Offline issue

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #12 on: November 30, 2013, 09:43:38 AM »
Here is my current hwpack for the CT; included is the stage/sunxi-3.4 kernel and modules for gmac and bcmdhd.

https://www.dropbox.com/sh/k1f565ahsi0vjhh/m69wRBJkCl (ct.tar.xz)
please move the /usr/lib/modules  to /lib if your rootfs needs it

Offline copper

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #13 on: December 01, 2013, 07:10:02 AM »
hi issue

thanks for the images.
the interesting thing is that i tried compiling but kept getting a kernel panic when it tries to initialise the ethernet driver.

no idea what went wrong there.
would you be able to share your .config for your kernel build? i would really like to go through the build process to learn what is going on here.

thanks lots.

Offline issue

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: does cubietruck ethernet work
« Reply #14 on: December 01, 2013, 07:36:06 AM »
Hi there!

I uploaded the .config to the previous link. The kernel i compiled is from here:
https://github.com/linux-sunxi/linux-sunxi/tree/stage/sunxi-3.4

edit:
i broke thje wifi somehow, trying to fix it
hi issue

thanks for the images.
the interesting thing is that i tried compiling but kept getting a kernel panic when it tries to initialise the ethernet driver.

no idea what went wrong there.
would you be able to share your .config for your kernel build? i would really like to go through the build process to learn what is going on here.

thanks lots.
« Last Edit: December 01, 2013, 08:39:15 AM by issue »