Hello.
I have build yocto sdimage and test it on my Cubieboard. When i plugged 2.5" hdd Toshiba MK2565GSX to the cubie i got error messages at boot:
U-Boot SPL 2015.07-g33711bd (Aug 24 2015 - 22:03:48)
DRAM: 1024 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
U-Boot 2015.07-g33711bd (Aug 24 2015 - 22:03:48 +0300) Allwinner Technology
CPU: Allwinner A10 (SUN4I)
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
SCSI: SUNXI SCSI INIT
Target spinup took 0 ms.
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
Can not start port 0
Net: eth0: ethernet@01c0b000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
499 bytes read in 17 ms (28.3 KiB/s)
## Executing script at 43100000
reading sun4i-a10-cubieboard.dtb
21420 bytes read in 31 ms (673.8 KiB/s)
reading zImage
** Unable to read file zImage **
reading boot/zImage
** Unable to read file boot/zImage **
reading uImage
3273048 bytes read in 261 ms (12 MiB/s)
Bad Linux ARM zImage magic!
## Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-4.1.3
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3272984 Bytes = 3.1 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Loading Kernel Image ... OK
Loading Device Tree to 4eff7000, end 4efff3ab ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 4.1.3 (bai@bai-desktop) (gcc version 4.9.2 (GCC) ) #1 SMP Mon Aug 24 21:46:00 MSK 2015
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Cubietech Cubieboard
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] PERCPU: Embedded 11 pages/cpu @eefd8000 s16384 r8192 d20480 u45056
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260624
[ 0.000000] Kernel command line: console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootwait panic=10
[ 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] Memory: 1032804K/1048576K available (4532K kernel code, 196K rwdata, 1348K rodata, 260K init, 244K bss, 15772K reserved, 0K cma-reserved, 270336K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 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 - 0xc05c65c0 (5882 kB)
[ 0.000000] .init : 0xc05c7000 - 0xc0608000 ( 260 kB)
[ 0.000000] .data : 0xc0608000 - 0xc06390a0 ( 197 kB)
[ 0.000000] .bss : 0xc063c000 - 0xc0679234 ( 245 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000039] clocksource timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000282] Console: colour dummy device 80x30
[ 0.000682] console [tty1] enabled
[ 0.000715] Calibrating delay loop... 1001.88 BogoMIPS (lpj=5009408)
[ 0.040095] pid_max: default: 32768 minimum: 301
[ 0.040203] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.040231] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.040791] Initializing cgroup subsys net_cls
[ 0.040856] CPU: Testing write buffer coherency: ok
[ 0.041106] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.041191] Setting up static identity map for 0x40008280 - 0x400082d8
[ 0.042093] Brought up 1 CPUs
[ 0.042127] SMP: Total of 1 processors activated (1001.88 BogoMIPS).
[ 0.042148] CPU: All CPU(s) started in SVC mode.
[ 0.042600] devtmpfs: initialized
[ 0.048213] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.048572] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.048911] pinctrl core: initialized pinctrl subsystem
[ 0.049785] NET: Registered protocol family 16
[ 0.050315] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.050760] cpuidle: using governor ladder
[ 0.050792] cpuidle: using governor menu
[ 0.054828] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.061712] reg-fixed-voltage ahci-5v: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, deferring probe
[ 0.061794] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[ 0.061850] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe
[ 0.062950] SCSI subsystem initialized
[ 0.063477] usbcore: registered new interface driver usbfs
[ 0.063558] usbcore: registered new interface driver hub
[ 0.063628] usbcore: registered new device driver usb
[ 0.063768] pps_core: LinuxPPS API ver. 1 registered
[ 0.063788] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.063841] PTP clock support registered
[ 0.064783] Switched to clocksource timer
[ 0.074562] NET: Registered protocol family 2
[ 0.075248] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.075348] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.075471] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.075573] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.075618] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.075779] NET: Registered protocol family 1
[ 0.076158] RPC: Registered named UNIX socket transport module.
[ 0.076190] RPC: Registered udp transport module.
[ 0.076209] RPC: Registered tcp transport module.
[ 0.076228] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.079036] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.089803] NFS: Registering the id_resolver key type
[ 0.089893] Key type id_resolver registered
[ 0.089914] Key type id_legacy registered
[ 0.091071] bounce: pool size: 64 pages
[ 0.091311] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.091359] io scheduler noop registered
[ 0.091385] io scheduler deadline registered
[ 0.091434] io scheduler cfq registered (default)
[ 0.093688] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.151042] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.154061] console [ttyS0] disabled
[ 0.174177] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 0.713789] console [ttyS0] enabled
[ 0.719520] 1c0b080.mdio supply phy not found, using dummy regulator
[ 0.726141] libphy: sun4i_mii_bus: probed
[ 0.767646] sun4i-emac 1c0b000.ethernet: eth0: at f009a000, IRQ 19 MAC: 02:41:08:81:48:e9
[ 0.776257] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.782805] ehci-platform: EHCI generic platform driver
[ 0.788329] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.794537] ohci-platform: OHCI generic platform driver
[ 0.800902] sunxi-rtc 1c20d00.rtc: rtc core: registered rtc-sunxi as rtc0
[ 0.807757] sunxi-rtc 1c20d00.rtc: RTC enabled
[ 0.812278] i2c /dev entries driver
[ 0.816589] axp20x 0-0034: AXP20x variant AXP209 found
[ 0.829183] input: axp20x-pek as /devices/platform/soc@01c00000/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
[ 0.842440] axp20x 0-0034: AXP20X driver loaded
[ 0.848106] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.856573] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
[ 0.862495] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 0.904927] sunxi-mmc 1c0f000.mmc: base:0xf00a6000 irq:20
[ 0.911086] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.917830] usbcore: registered new interface driver usbhid
[ 0.923417] usbhid: USB HID core driver
[ 0.928002] NET: Registered protocol family 17
[ 0.932567] Key type dns_resolver registered
[ 0.937673] Registering SWP/SWPB emulation handler
[ 0.943230] registered taskstats version 1
[ 0.981930] mmc0: host does not support reading read-only switch, assuming write-enable
[ 0.992185] mmc0: new high speed SDHC card at address e624
[ 0.998111] mmcblk0: mmc0:e624 SU04G 3.69 GiB
[ 1.003775] mmcblk0: p1 p2
[ 1.014848] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[ 1.022388] ahci-sunxi 1c18000.sata: SSS flag set, parallel bus scan disabled
[ 1.029577] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 1.038575] ahci-sunxi 1c18000.sata: flags: ncq sntf stag pm led clo only pio slum part ccc
[ 1.048014] scsi host0: ahci-sunxi
[ 1.051820] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 23
[ 1.060113] ehci-platform 1c14000.usb: EHCI Host Controller
[ 1.065766] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[ 1.073640] ehci-platform 1c14000.usb: irq 21, io mem 0x01c14000
[ 1.094791] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[ 1.101735] hub 1-0:1.0: USB hub found
[ 1.105602] hub 1-0:1.0: 1 port detected
[ 1.110132] ehci-platform 1c1c000.usb: EHCI Host Controller
[ 1.115802] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[ 1.123683] ehci-platform 1c1c000.usb: irq 24, io mem 0x01c1c000
[ 1.144773] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[ 1.151646] hub 2-0:1.0: USB hub found
[ 1.155503] hub 2-0:1.0: 1 port detected
[ 1.160021] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[ 1.166724] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[ 1.174605] ohci-platform 1c14400.usb: irq 22, io mem 0x01c14400
[ 1.239522] hub 3-0:1.0: USB hub found
[ 1.243335] hub 3-0:1.0: 1 port detected
[ 1.247906] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[ 1.254556] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[ 1.262490] ohci-platform 1c1c400.usb: irq 25, io mem 0x01c1c400
[ 1.329552] hub 4-0:1.0: USB hub found
[ 1.333359] hub 4-0:1.0: 1 port detected
[ 1.337754] sunxi-rtc 1c20d00.rtc: setting system clock to 2010-01-01 00:00:26 UTC (1262304026)
[ 1.351424] ldo4: disabling
[ 1.354452] ldo3: disabling
[ 1.357497] vcc5v0: disabling
[ 1.360481] vcc3v0: disabling
[ 6.464776] ata1: link is slow to respond, please be patient (ready=0)
[ 11.084772] ata1: COMRESET failed (errno=-16)
[ 16.554769] ata1: link is slow to respond, please be patient (ready=0)
[ 21.114769] ata1: COMRESET failed (errno=-16)
[ 21.484777] ata1: SATA link down (SStatus 0 SControl 300)
[ 21.491474] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
[ 21.499908] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 21.507274] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 21.514794] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4050002 action 0xe frozen
[ 21.522214] ata1: irq_stat 0x00400040, connection status changed
[ 21.528251] ata1: SError: { RecovComm PHYRdyChg CommWake DevExch }
[ 21.534459] ata1: hard resetting link
[ 21.570548] EXT4-fs (mmcblk0p2): recovery complete
[ 21.577371] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 21.585547] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[ 21.593037] devtmpfs: mounted
[ 21.596390] Freeing unused kernel memory: 260K (c05c7000 - c0608000)
[ 22.033100] udevd[98]: starting version 182
[ 22.174668] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 22.281143] random: dd urandom read with 42 bits of entropy available
[ 23.884782] ata1: COMRESET failed (errno=-32)
[ 23.889173] ata1: reset failed (errno=-32), retrying in 8 secs
[ 31.534784] ata1: limiting SATA link speed to 1.5 Gbps
[ 31.539950] ata1: hard resetting link
Poky (Yocto Project Reference Distro) 1.8 cubieboard /dev/ttyS0
cubieboard login: [ 33.804780] ata1: COMRESET failed (errno=-32)
[ 33.809170] ata1: reset failed (errno=-32), retrying in 8 secs
[ 41.544786] ata1: hard resetting link
[ 43.934774] ata1: COMRESET failed (errno=-32)
[ 43.939158] ata1: reset failed (errno=-32), retrying in 33 secs
[ 76.554788] ata1: hard resetting link
[ 78.984776] ata1: COMRESET failed (errno=-32)
[ 78.989183] ata1: reset failed, giving up
[ 78.993218] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4050202 action 0xe frozen t4
[ 79.000924] ata1: irq_stat 0x00400040, connection status changed
[ 79.006958] ata1: SError: { RecovComm Persist PHYRdyChg CommWake DevExch }
[ 79.013858] ata1: hard resetting link
[ 81.444776] ata1: COMRESET failed (errno=-32)
[ 81.449164] ata1: reset failed (errno=-32), retrying in 8 secs
[ 89.014781] ata1: limiting SATA link speed to 1.5 Gbps
[ 89.019946] ata1: hard resetting link
[ 91.324779] ata1: COMRESET failed (errno=-32)
[ 91.329178] ata1: reset failed (errno=-32), retrying in 8 secs
[ 99.024782] ata1: hard resetting link
[ 101.294773] ata1: COMRESET failed (errno=-32)
[ 101.299154] ata1: reset failed (errno=-32), retrying in 33 secs
[ 107.044781] random: nonblocking pool is initialized
[ 134.034789] ata1: hard resetting link
[ 136.504775] ata1: COMRESET failed (errno=-32)
[ 136.509179] ata1: reset failed, giving up
[ 136.513215] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4050202 action 0xe frozen t3
[ 136.520924] ata1: irq_stat 0x00400040, connection status changed
[ 136.526962] ata1: SError: { RecovComm Persist PHYRdyChg CommWake DevExch }
[ 136.533862] ata1: hard resetting link
[ 138.964777] ata1: COMRESET failed (errno=-32)
[ 138.969159] ata1: reset failed (errno=-32), retrying in 8 secs
[ 146.534783] ata1: limiting SATA link speed to 1.5 Gbps
[ 146.539950] ata1: hard resetting link
[ 148.844780] ata1: COMRESET failed (errno=-32)
[ 148.849180] ata1: reset failed (errno=-32), retrying in 8 secs