Bananpi R2 - SATA ROOTFS - Waiting for root device /dev/sda1

Hello,

I’ve tried to move rootfs to sata hdd device but now receiving this error on boot: [7.685694] Waiting for root device /dev/sda1… Things I did:

  1. Copied rootfs to hdd
  2. Changed uEnv.txt (replaced to /dev/sda1)
  3. Changed fstab (replaced to /dev/sda1)

Can you please help?

Thank you,

Full log:

Device APC domain init setup:

 bootloader load uboot ,the address of uboot is 81E00000 
[PART]partition name UBOOT 
[PART]partition start block 0x200 
[PART]partition size 0x80000 
[PART]partition blks 0x400 
[PART]partition flags 0x0 
[PART]partition name 0x8 
[bean] part->startblk(0x200) bdev->blksz(0x200) part->part_id(8) hdr(0xFFB50000)
[BlkDev.c 101 ]partition block size 0x200 ,blks:0xE90000
[BlkDev.c 101 ]partition block erase size 0x200 

[PART] load "UBOOT" from 0x0000000000050000 (dev) to 0x81E00000 (mem) [SUCCESS]
[PART] load speed: 10462KB/s, 300000 bytes, 28ms
[BT_SD_PG] device info 0x8590 0x8A00 0xCB01 0x102
0:dram_rank_size:80000000
[PLFM] md_type[0] = 53 
[PLFM] md_type[1] = 58 

[PLFM] boot reason: 4
[PLFM] boot mode: 0
[PLFM] META COM0: 0
[PLFM] <0xFFB7CC10>: 0x0
[PLFM] boot time: 2024ms
[PLFM] DDR reserve mode: enable = 0, success = 0
BPI: SD/eMMC SD=1 eMMC=0 id = 1 (drivers/mmc/mediatek/mtk_mmc.c)
__mmc_init ret = 1
No MMC card found
** Bad device mmc 1 **
Boot from eMMC
BPI: SD/eMMC SD=1 eMMC=0 id = 0 (drivers/mmc/mediatek/mtk_mmc.c)
__mmc_init ret = 0
ret2 = 1
ret2 = 1
BPI: g_mtk_mmc_block.dev = 0
<= [mmc1 block 0] =>
[0x00000000] 53 44 4d 4d 43 5f 42 4f
[0x00000008] 4f 54 00 00 01 00 00 00
[0x00000010] 00 02 00 00 ff ff ff ff
[0x00000018] ff ff ff ff ff ff ff ff
[0x00000020] ff ff ff ff ff ff ff ff
[0x00000028] ff ff ff ff ff ff ff ff
[0x00000030] ff ff ff ff ff ff ff ff
[0x00000038] ff ff ff ff ff ff ff ff
[0x00000040] ff ff ff ff ff ff ff ff
[0x00000048] ff ff ff ff ff ff ff ff
[0x00000050] ff ff ff ff ff ff ff ff
[0x00000058] ff ff ff ff ff ff ff ff
[0x00000060] ff ff ff ff ff ff ff ff
[0x00000068] ff ff ff ff ff ff ff ff
[0x00000070] ff ff ff ff ff ff ff ff
[0x00000078] ff ff ff ff ff ff ff ff
[0x00000080] ff ff ff ff ff ff ff ff
[0x00000088] ff ff ff ff ff ff ff ff
[0x00000090] ff ff ff ff ff ff ff ff
[0x00000098] ff ff ff ff ff ff ff ff
[0x000000a0] ff ff ff ff ff ff ff ff
[0x000000a8] ff ff ff ff ff ff ff ff
[0x000000b0] ff ff ff ff ff ff ff ff
[0x000000b8] ff ff ff ff ff ff ff ff
[0x000000c0] ff ff ff ff ff ff ff ff
[0x000000c8] ff ff ff ff ff ff ff ff
[0x000000d0] ff ff ff ff ff ff ff ff
[0x000000d8] ff ff ff ff ff ff ff ff
[0x000000e0] ff ff ff ff ff ff ff ff
[0x000000e8] ff ff ff ff ff ff ff ff
[0x000000f0] ff ff ff ff ff ff ff ff
[0x000000f8] ff ff ff ff ff ff ff ff
[0x00000100] ff ff ff ff ff ff ff ff
[0x00000108] ff ff ff ff ff ff ff ff
[0x00000110] ff ff ff ff ff ff ff ff
[0x00000118] ff ff ff ff ff ff ff ff
[0x00000120] ff ff ff ff ff ff ff ff
[0x00000128] ff ff ff ff ff ff ff ff
[0x00000130] ff ff ff ff ff ff ff ff
[0x00000138] ff ff ff ff ff ff ff ff
[0x00000140] ff ff ff ff ff ff ff ff
[0x00000148] ff ff ff ff ff ff ff ff
[0x00000150] ff ff ff ff ff ff ff ff
[0x00000158] ff ff ff ff ff ff ff ff
[0x00000160] ff ff ff ff ff ff ff ff
[0x00000168] ff ff ff ff ff ff ff ff
[0x00000170] ff ff ff ff ff ff ff ff
[0x00000178] ff ff ff ff ff ff ff ff
[0x00000180] ff ff ff ff ff ff ff ff
[0x00000188] ff ff ff ff ff ff ff ff
[0x00000190] ff ff ff ff ff ff ff ff
[0x00000198] ff ff ff ff ff ff ff ff
[0x000001a0] ff ff ff ff ff ff ff ff
[0x000001a8] ff ff ff ff ff ff ff ff
[0x000001b0] ff ff ff ff ff ff ff ff
[0x000001b8] 70 4c 58 3d 00 00 00 be
[0x000001c0] 33 0c 0c 61 34 2d 00 20
[0x000001c8] 03 00 00 00 08 00 00 61
[0x000001d0] 35 2d 83 60 ea b6 00 20
[0x000001d8] 0b 00 00 d8 dd 00 00 00
[0x000001e0] 00 00 00 00 00 00 00 00
[0x000001e8] 00 00 00 00 00 00 00 00
[0x000001f0] 00 00 00 00 00 00 00 00
[0x000001f8] 00 00 00 00 00 00 55 aa

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     204800          524288          3d584c70-01     0c
  2     729088          14538752        3d584c70-02     83
mmc0 is available
reading bananapi/bpi-r2/linux/uEnv.txt
766 bytes read in 6 ms (124 KiB/s)
Loaded environment from uEnv.txt
Banana Pi bpi-r2 chip: mt7623n Service: linux
reading bananapi/bpi-r2/linux/uImage
8091958 bytes read in 497 ms (15.5 MiB/s)
reading bananapi/berryboot.img
** Unable to read file bananapi/berryboot.img **
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   Linux-4.4.70-BPI-R2-Kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8091894 Bytes = 7.7 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.70-BPI-R2-Kernel (root@gary-HP-Z238-Microtower-Workstation) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP Wed Sep 13 11:49:27 CST 2017
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Banana Pi BPI-R2 (MediaTek MT7623N 20170301)
[    0.000000] [WMT-CONSYS-HW][W]reserve_memory_consys_fn: name: consys-reserve-memory, base: 0xffe00000, size: 0x100000
[    0.000000] Reserved memory: initialized node consys-reserve-memory, compatible id mediatek,consys-reserve-memory
[    0.000000] cma: Reserved 64 MiB at 0xfb800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 524031
[    0.000000] free_area_init_node: node 0, pgdat c10b2040, node_mem_map df5f9000
[    0.000000]   Normal zone: 1170 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 133120 pages, LIFO batch:31
[    0.000000]   HighMem zone: 390911 pages, LIFO batch:31
[    0.000000] PERCPU: Embedded 13 pages/cpu @df5a3000 s22348 r8192 d22708 u53248
[    0.000000] pcpu-alloc: s22348 r8192 d22708 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522861
[    0.000000] Kernel command line: board=bpi-r2 console=earlyprintk console=tty1 fbcon=map:0 console=ttyS0,115200 root=/dev/sda1 rootfstype=ext4 rootwait service=linux vmalloc=496M debug=7 initcall_debug=0
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 1992524K/2096124K available (10985K kernel code, 797K rwdata, 3756K rodata, 732K init, 677K bss, 38064K reserved, 65536K cma-reserved, 1498108K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe1000000 - 0xff800000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0800000   ( 520 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0ac283c   (10987 kB)
[    0.000000]       .init : 0xc0f3f000 - 0xc0ff6000   ( 732 kB)
[    0.000000]       .data : 0xc0ff6000 - 0xc10bd700   ( 798 kB)
[    0.000000]        .bss : 0xc10bf000 - 0xc11685ac   ( 678 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=4
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000017] Switching to timer-based delay loop, resolution 76ns
[    0.000190] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000654] Console: colour dummy device 80x30
[    0.001549] console [tty1] enabled
[    0.001585] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.001629] pid_max: default: 32768 minimum: 301
[    0.001769] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001798] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002447] Initializing cgroup subsys io
[    0.002484] Initializing cgroup subsys memory
[    0.002532] Initializing cgroup subsys devices
[    0.002560] Initializing cgroup subsys freezer
[    0.002586] Initializing cgroup subsys net_cls
[    0.002612] Initializing cgroup subsys perf_event
[    0.002640] Initializing cgroup subsys net_prio
[    0.002675] Initializing cgroup subsys pids
[    0.002714] CPU: Testing write buffer coherency: ok
[    0.002769] ftrace: allocating 36667 entries in 108 pages
[    0.057347] CPU0: update cpu_capacity 1024
[    0.057385] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.057479] Setting up static identity map for 0x80008280 - 0x800082d8
[    0.059127] CPU1: update cpu_capacity 1024
[    0.059133] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.059588] CPU2: update cpu_capacity 1024
[    0.059593] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.060022] CPU3: update cpu_capacity 1024
[    0.060027] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.060092] Brought up 4 CPUs
[    0.060207] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.060226] CPU: All CPU(s) started in SVC mode.
[    0.060279] CPU3: update max cpu_capacity 1024
[    0.061211] devtmpfs: initialized
[    0.069144] CPU1: update max cpu_capacity 1024
[    0.069862] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.070138] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.070188] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.073081] xor: measuring software checksum speed
[    0.167153]    arm4regs  :  1288.800 MB/sec
[    0.267215]    8regs     :   897.600 MB/sec
[    0.367278]    32regs    :   871.600 MB/sec
[    0.467337]    neon      :  1299.200 MB/sec
[    0.467356] xor: using function: neon (1299.200 MB/sec)
[    0.467486] pinctrl core: initialized pinctrl subsystem
[    0.468442] NET: Registered protocol family 16
[    0.470112] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.481624] irq: no irq domain found for /pinctrl@10005000 !
[    0.482419] No ATAGs?
[    0.482456] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.482495] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.687725] raid6: int32x1  gen()   182 MB/s
[    0.857751] raid6: int32x1  xor()   166 MB/s
[    1.028113] raid6: int32x2  gen()   219 MB/s
[    1.198077] raid6: int32x2  xor()   178 MB/s
[    1.368182] raid6: int32x4  gen()   226 MB/s
[    1.538375] raid6: int32x4  xor()   177 MB/s
[    1.708522] raid6: int32x8  gen()   211 MB/s
[    1.878577] raid6: int32x8  xor()   145 MB/s
[    2.048612] raid6: neonx1   gen()   510 MB/s
[    2.218763] raid6: neonx1   xor()   374 MB/s
[    2.388852] raid6: neonx2   gen()   670 MB/s
[    2.558952] raid6: neonx2   xor()   486 MB/s
[    2.729101] raid6: neonx4   gen()   744 MB/s
[    2.899238] raid6: neonx4   xor()   513 MB/s
[    3.069405] raid6: neonx8   gen()   703 MB/s
[    3.239457] raid6: neonx8   xor()   496 MB/s
[    3.239477] raid6: using algorithm neonx4 gen() 744 MB/s
[    3.239495] raid6: .... xor() 513 MB/s, rmw enabled
[    3.239512] raid6: using intx1 recovery algorithm
[    3.244681] iommu: Adding device 14007000.ovl to group 0
[    3.244752] iommu: Adding device 14008000.rdma to group 0
[    3.244800] iommu: Adding device 14009000.wdma to group 0
[    3.244853] iommu: Adding device 14012000.rdma to group 0
[    3.245260] vgaarb: loaded
[    3.245644] SCSI subsystem initialized
[    3.245910] usbcore: registered new interface driver usbfs
[    3.245986] usbcore: registered new interface driver hub
[    3.246071] usbcore: registered new device driver usb
[    3.246736] Linux cec interface: v0.10
[    3.247843] Advanced Linux Sound Architecture Driver Initialized.
[    3.249577] clocksource: Switched to clocksource arch_sys_counter
[    3.307264] FS-Cache: Loaded
[    3.307523] CacheFiles: Loaded
[    3.317813] NET: Registered protocol family 2
[    3.318419] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    3.318484] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    3.318558] TCP: Hash tables configured (established 4096 bind 4096)
[    3.318633] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    3.318674] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    3.318881] NET: Registered protocol family 1
[    3.319206] RPC: Registered named UNIX socket transport module.
[    3.319233] RPC: Registered udp transport module.
[    3.319251] RPC: Registered tcp transport module.
[    3.319268] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.319303] PCI: CLS 0 bytes, default 64
[    3.322298] audit: initializing netlink subsys (disabled)
[    3.322368] audit: type=2000 audit(3.300:1): initialized
[    3.331863] VFS: Disk quotas dquot_6.6.0
[    3.332098] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.333798] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.335910] NFS: Registering the id_resolver key type
[    3.335973] Key type id_resolver registered
[    3.335991] Key type id_legacy registered
[    3.336024] Installing knfsd (copyright (C) 1996 [email protected]).
[    3.336865] ntfs: driver 2.1.32 [Flags: R/W].
[    3.337419] fuse init (API version 7.23)
[    3.338418] JFS: nTxBlock = 8192, nTxLock = 65536
[    3.345276] SGI XFS with ACLs, security attributes, no debug enabled
[    3.351109] bounce: pool size: 64 pages
[    3.351375] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    3.351529] io scheduler noop registered
[    3.351556] io scheduler deadline registered
[    3.351615] io scheduler cfq registered (default)
[    3.479594] mt2701-pcie 1a000000.pcie: mtk_pcie_preinit: PCIE1 link up
[    3.479626] mt2701-pcie 1a000000.pcie: PCIE1 Setup OK
[    3.479651] mt2701-pcie 1a000000.pcie: BAR0 at bus 0, slot 1, val 0x80000000
[    3.479878] mt2701-pcie 1a000000.pcie: PCI host bridge to bus 0000:00
[    3.479906] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    3.479932] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.479954] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    3.480008] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    3.480062] pci 0000:00:01.0: reg 0x10: [mem 0x80000000-0xffffffff]
[    3.480092] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    3.480184] pci 0000:00:01.0: supports D1
[    3.480205] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    3.480495] PCI: bus0: Fast back to back transfers disabled
[    3.480522] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.480716] pci 0000:01:00.0: [1b21:0611] type 00 class 0x010185
[    3.480792] pci 0000:01:00.0: reg 0x10: [io  0x0000-0x0007]
[    3.480825] pci 0000:01:00.0: reg 0x14: [io  0x0000-0x0003]
[    3.480858] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x0007]
[    3.480891] pci 0000:01:00.0: reg 0x1c: [io  0x0000-0x0003]
[    3.480924] pci 0000:01:00.0: reg 0x20: [io  0x0000-0x000f]
[    3.480958] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    3.480992] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    3.481274] PCI: bus1: Fast back to back transfers disabled
[    3.481302] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.481375] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    3.481399] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.481424] pci 0000:00:01.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    3.481449] pci 0000:00:01.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    3.481480] pci 0000:00:01.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    3.481508] pci 0000:00:01.0: BAR 7: assigned [io  0x0000-0x0fff]
[    3.481538] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    3.481570] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff]
[    3.481598] pci 0000:01:00.0: BAR 4: assigned [io  0x0000-0x000f]
[    3.481625] pci 0000:01:00.0: BAR 0: assigned [io  0x0010-0x0017]
[    3.481653] pci 0000:01:00.0: BAR 2: assigned [io  0x0018-0x001f]
[    3.481680] pci 0000:01:00.0: BAR 1: assigned [io  0x0020-0x0023]
[    3.481708] pci 0000:01:00.0: BAR 3: assigned [io  0x0024-0x0027]
[    3.481735] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.481758] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    3.481783] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.481809] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    3.481872] mt2701-pcie 1a000000.pcie: ==>mtk_pcie_probe done
[    3.542045] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.543978] console [ttyS0] disabled
[    3.564168] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 30, base_baud = 1625000) is a ST16650V2
[    4.711466] console [ttyS0] enabled
[    4.715459] [drm] Initialized drm 1.1.0 20060810
[    4.720347] mediatek-ddp 1400e000.mutex: Failed to get clock
[    4.726344] mediatek-disp-ovl 14007000.ovl: Failed to initialize component: -517
[    4.734064] mediatek-disp-rdma 14008000.rdma: Failed to initialize component: -517
[    4.741714] mediatek-disp-rdma 14012000.rdma: Failed to initialize component: -517
[    4.749655] mediatek-dpi 14014000.dpi: Failed to get engine clock: -517
[    4.757419] mediatek-drm 14000000.dispsys: Adding component match for /ovl@14007000
[    4.765091] mediatek-drm 14000000.dispsys: Adding component match for /rdma@14008000
[    4.773950] mediatek-hdmi-phy 10209100.hdmi-phy: Using default TX DRV impedance: 4.2k/36
[    4.783678] [drm] hdmi-audio-codec driver bound to HDMI
[    4.788899] mediatek-drm-hdmi 14015000.hdmi: Failed to get clocks: -517
[    4.795820] Mali: ERR: drivers/gpu/arm/mali/linux/mali_kernel_linux.c
[    4.802244]            mali_probe() 523
           mali_probe(): Failed to initialize platform device.
[    4.811734] Mali: Mali device driver loaded
[    4.829337] brd: module loaded
[    4.838782] loop: module loaded
[    4.845642] nbd: registered device at major 43
[    4.858294] mt_usb 11200000.usb: Cannot get usb power from the device tree!
[    4.858294] 
[    4.866925] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    4.873372] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) installed success
[    4.881221] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0
[    4.888079] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=dd826400
[    4.895381] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=dd8264c0
[    4.904510] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    4.918872] SCSI Media Changer driver v0.25 
[    4.923902] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    4.932682] libphy: Fixed MDIO Bus: probed
[    4.938239] PPP generic driver version 2.4.2
[    4.942758] PPP BSD Compression module registered
[    4.947442] PPP Deflate Compression module registered
[    4.952508] PPP MPPE Compression module registered
[    4.957280] NET: Registered protocol family 24
[    4.961823] usbcore: registered new interface driver asix
[    4.967247] usbcore: registered new interface driver ax88179_178a
[    4.973370] usbcore: registered new interface driver cdc_ether
[    4.979234] usbcore: registered new interface driver smsc95xx
[    4.985010] usbcore: registered new interface driver net1080
[    4.990697] usbcore: registered new interface driver cdc_subset
[    4.996624] usbcore: registered new interface driver zaurus
[    5.002262] usbcore: registered new interface driver cdc_ncm
[    5.008541] 1a1c0000.usb supply vbus not found, using dummy regulator
[    5.015072] xhci-mtk 1a1c0000.usb: fail to get sys_ck
[    5.020287] 1a240000.usb supply vbus not found, using dummy regulator
[    5.026781] xhci-mtk 1a240000.usb: fail to get sys_ck
[    5.032054] usbcore: registered new interface driver usb-storage
[    5.038068] usbcore: registered new interface driver ums-alauda
[    5.044022] usbcore: registered new interface driver ums-cypress
[    5.050058] usbcore: registered new interface driver ums-datafab
[    5.056075] usbcore: registered new interface driver ums_eneub6250
[    5.062277] usbcore: registered new interface driver ums-freecom
[    5.068284] usbcore: registered new interface driver ums-isd200
[    5.074227] usbcore: registered new interface driver ums-jumpshot
[    5.080339] usbcore: registered new interface driver ums-karma
[    5.086174] usbcore: registered new interface driver ums-onetouch
[    5.092304] usbcore: registered new interface driver ums-realtek
[    5.098311] usbcore: registered new interface driver ums-sddr09
[    5.104252] usbcore: registered new interface driver ums-sddr55
[    5.110192] usbcore: registered new interface driver ums-usbat
[    5.116326] mousedev: PS/2 mouse device common for all mice
[    5.123532] mediatek-mt7623-pinctrl 1000b000.pinctrl: invalid function 1 on pin 77 .
[    5.132521] IR NEC protocol handler initialized
[    5.137032] IR RC5(x/sz) protocol handler initialized
[    5.142091] IR RC6 protocol handler initialized
[    5.146598] IR JVC protocol handler initialized
[    5.151123] IR Sony protocol handler initialized
[    5.155717] IR SANYO protocol handler initialized
[    5.160410] IR Sharp protocol handler initialized
[    5.165087] IR MCE Keyboard/mouse protocol handler initialized
[    5.170899] IR XMP protocol handler initialized
[    5.175682] MTK_WDT_NONRST_REG(0)
[    5.179671] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    5.188673] device-mapper: uevent: version 1.0.3
[    5.193653] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: [email protected]
[    5.202765] msdc_drv_probe!
[    5.205603] mtk-msdc 11240000.mmc: Got CD GPIO
[    5.250485] msdc_drv_probe!
[    5.253972] mtk-msdc 11230000.mmc: Regulator set error -22: 3300000 - 3300000
[    5.300366] hidraw: raw HID events driver (C) Jiri Kosina
[    5.306393] usbcore: registered new interface driver usbhid
[    5.311979] usbhid: USB HID core driver
[    5.333884] wm8960 2-001a: Failed to issue reset
[    5.338946] mt8521p-audio mediatek,mt7623_audio: mt8521p_audio_probe()
[    5.345464] mt8521p_audio_probe set dev name mt8521p-audio
[    5.351164] mt8521p_dai_probe()
[    5.354289] mt8521p_dai_probe set dev name mt8521p-dai
[    5.359636] dummy_codec_probe set dev name dummy-codec
[    5.365340] asrc_mod_init()
[    5.376937] audrtc_mod_init()
[    5.380289] mt7623_wm8960_probe()
[    5.383784] afe_base_address = 0xe1a38000 from 0x11220000
[    5.389304] topckgen_base_address = 0xe1a3c000
[    5.393760] cmsys_base_address = 0xe1a3e000
[    5.398042] infracfg_base_address = 0xe1a62000
[    5.402598] pctrl_base_address = 0xe1a64000
[    5.406874] afe_sram_address = 0xe24c0000 from 0x112a0000
[    5.412380] mt_afe_init_clock
[    5.417717] mt8521p_gpio_probe
[    5.420914] mt8521p_gpio_probe pinctrl_lookup_state default fail -19
[    5.427349] mt8521p_gpio_probe pinctrl_lookup_state audi2s0lrck-mode0-gpio fail -19
[    5.435106] mt8521p_gpio_probe pinctrl_lookup_state audi2s0lrck-mode1-i2s0 fail -19
[    5.442736] mt8521p_gpio_probe pinctrl_lookup_state audi2s2-mode1-i2s2 fail -19
[    5.450018] mt8521p_gpio_probe pinctrl_lookup_state audi2s2-mode4-dmic fail -19
[    5.457286] mt8521p_gpio_probe pinctrl_lookup_state audpcm-mode1-pcm fail -19
[    5.464386] mt8521p_gpio_probe pinctrl_lookup_state audpcm-mode2-mrg fail -19
[    5.471487] mt8521p_gpio_probe pinctrl_lookup_state audspdifin0-mode0-gpio fail -19
[    5.479100] mt8521p_gpio_probe pinctrl_lookup_state audspdifin0-mode1-spdif fail -19
[    5.487038] mt8521p_gpio_probe pinctrl_lookup_state audspdifin1-mode0-gpio fail -19
[    5.494897] mt8521p_gpio_probe pinctrl_lookup_state audspdifin1-mode1-spdif fail -19
[    5.502648] mt7623-wm8960-machine 11220000.sound: ASoC: CODEC DAI wm8960-hifi not registered
[    5.511706] ipip: IPv4 over IPv4 tunneling driver
[    5.517341] Initializing XFRM netlink socket
[    5.522701] NET: Registered protocol family 10
[    5.528353] sit: IPv6 over IPv4 tunneling driver
[    5.533846] NET: Registered protocol family 17
[    5.538632] Key type dns_resolver registered
[    5.543435] ThumbEE CPU extension supported.
[    5.547923] Registering SWP/SWPB emulation handler
[    5.556523] Btrfs loaded
[    5.560351] Key type encrypted registered
[    5.565407] mtk-iommu 10205000.mmsys_iommu: bound 14010000.larb (ops mtk_smi_larb_component_ops)
[    5.574192] mtk-iommu 10205000.mmsys_iommu: bound 16010000.larb (ops mtk_smi_larb_component_ops)
[    5.582967] mtk-iommu 10205000.mmsys_iommu: bound 15001000.larb (ops mtk_smi_larb_component_ops)
[    5.592734] mediatek-dpi 14014000.dpi: Found bridge node: /hdmi@14015000
[    5.600565] mediatek-drm 14000000.dispsys: Adding component match for /ovl@14007000
[    5.602310] mmc1: MAN_BKOPS_EN bit is not set
[    5.604290] mmc1: new high speed MMC card at address 0001
[    5.609964] mmcblk0: mmc1:0001 8WPD3R 7.28 GiB 
[    5.610301] mmcblk0boot0: mmc1:0001 8WPD3R partition 1 4.00 MiB
[    5.610630] mmcblk0boot1: mmc1:0001 8WPD3R partition 2 4.00 MiB
[    5.611002] mmcblk0rpmb: mmc1:0001 8WPD3R partition 3 512 KiB
[    5.620421]  mmcblk0: p1 p2
[    5.642739] mediatek-drm 14000000.dispsys: Adding component match for /rdma@14008000
[    5.650809] mediatek-drm 14000000.dispsys: Adding component match for /rdma@14012000
[    5.658538] mediatek-drm 14000000.dispsys: Adding component match for /dpi@14014000
[    5.667426] mali-utgard 13040000.mali: power_table 0/4 (107250000, 1150000, 280)
[    5.674817] mali-utgard 13040000.mali: power_table 1/4 (214500000, 1150000, 560)
[    5.682190] mali-utgard 13040000.mali: power_table 2/4 (312000000, 1150000, 815)
[    5.689548] mali-utgard 13040000.mali: power_table 3/4 (416000000, 1150000, 1087)
[    5.697123] mali-utgard 13040000.mali: mali_set_initial_clock [3] 416000000
[    5.706493] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    5.713939] musb probe
[    5.716418] musb probe reg: 0xe2514000 ,0xe2516000 , irq: 39
[    5.735525] musb core probe done base 0xe2516000
[    5.741340] libphy: mdio: probed
[    6.159767] mt7530 reset completed!!
[    6.164178] mt7623-gsw gswsys@1b100000: mac [0] is fixed link
[    6.169907] mt7623-gsw gswsys@1b100000: mac [1] is fixed link
[    6.175705] mt7623-gsw gswsys@1b100000: Setting MHWTRAP to 0x01017e9f
[    6.209803] MT7530 0th bit  Tap_a = 0
[    6.213993] MT7530 1th bit  Tap_a = 0
[    6.218180] MT7530 2th bit  Tap_a = 0
[    6.222379] MT7530 3th bit  Tap_a = 0
[    6.226566] MT7530 4th bit  Tap_a = 0
[    6.298350] MT7530 0th bit  Tap_b = 128
[    6.370373] MT7530 1th bit  Tap_b = 128
[    6.442374] MT7530 2th bit  Tap_b = 128
[    6.514402] MT7530 3th bit  Tap_b = 128
[    6.586415] MT7530 4th bit  Tap_b = 128
[    6.780758] mt7623_gsw_config> WLLLL
[    6.786573] mtk_eth_soc 1b100000.ethernet: generated random MAC address da:1f:09:37:53:58
[    6.869590] mtk_eth_soc 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    6.880562] mtk_eth_soc 1b100000.ethernet eth0: mediatek frame engine at 0xe2540000, irq 68
[    6.888900] mtk_eth_soc 1b100000.ethernet: generated random MAC address fa:09:90:50:4c:ab
[    6.969587] mtk_eth_soc 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    6.980484] mtk_eth_soc 1b100000.ethernet eth1: mediatek frame engine at 0xe2540000, irq 68
[    6.988795] netif_napi_add() called with weight 128 on device 
[    6.994950] 1a1c0000.usb supply vbus not found, using dummy regulator
[    7.001798] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    7.007224] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    7.015138] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    7.023521] xhci-mtk 1a1c0000.usb: irq 66, io mem 0x1a1c0000
[    7.030018] hub 1-0:1.0: USB hub found
[    7.033789] hub 1-0:1.0: 1 port detected
[    7.038057] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    7.043447] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    7.050906] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    7.059683] hub 2-0:1.0: USB hub found
[    7.063449] hub 2-0:1.0: 1 port detected
[    7.067960] 1a240000.usb supply vbus not found, using dummy regulator
[    7.074790] xhci-mtk 1a240000.usb: xHCI Host Controller
[    7.080203] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    7.088063] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    7.096452] xhci-mtk 1a240000.usb: irq 67, io mem 0x1a240000
[    7.102902] hub 3-0:1.0: USB hub found
[    7.106673] hub 3-0:1.0: 1 port detected
[    7.110978] xhci-mtk 1a240000.usb: xHCI Host Controller
[    7.116348] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    7.123808] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    7.132680] hub 4-0:1.0: USB hub found
[    7.136444] hub 4-0:1.0: 1 port detected
[    7.143338] mt7623_wm8960_probe()
[    7.146697] afe_base_address = 0xe25c0000 from 0x11220000
[    7.152159] topckgen_base_address = 0xe25c4000
[    7.156578] cmsys_base_address = 0xe25c6000
[    7.160754] infracfg_base_address = 0xe25c8000
[    7.165171] pctrl_base_address = 0xe25cc000
[    7.169326] afe_sram_address = 0xe2600000 from 0x112a0000
[    7.174701] mt_afe_init_clock
[    7.179694] mt_afe_debug_init failed to create mtksocaudio debugfs file
[    7.186267] mt8521p_gpio_probe
[    7.189316] mt8521p_gpio_probe pinctrl_lookup_state default fail -19
[    7.195643] mt8521p_gpio_probe pinctrl_lookup_state audi2s0lrck-mode0-gpio fail -19
[    7.203268] mt8521p_gpio_probe pinctrl_lookup_state audi2s0lrck-mode1-i2s0 fail -19
[    7.210894] mt8521p_gpio_probe pinctrl_lookup_state audi2s2-mode1-i2s2 fail -19
[    7.218162] mt8521p_gpio_probe pinctrl_lookup_state audi2s2-mode4-dmic fail -19
[    7.225441] mt8521p_gpio_probe pinctrl_lookup_state audpcm-mode1-pcm fail -19
[    7.232547] mt8521p_gpio_probe pinctrl_lookup_state audpcm-mode2-mrg fail -19
[    7.239648] mt8521p_gpio_probe pinctrl_lookup_state audspdifin0-mode0-gpio fail -19
[    7.247262] mt8521p_gpio_probe pinctrl_lookup_state audspdifin0-mode1-spdif fail -19
[    7.254971] mt8521p_gpio_probe pinctrl_lookup_state audspdifin1-mode0-gpio fail -19
[    7.262595] mt8521p_gpio_probe pinctrl_lookup_state audspdifin1-mode1-spdif fail -19
[    7.270336] mt7623-wm8960-machine 11220000.sound: ASoC: CODEC DAI wm8960-hifi not registered
[    7.279046] mediatek-dpi 14014000.dpi: Found bridge node: /hdmi@14015000
[    7.285988] mediatek-drm 14000000.dispsys: bound 14007000.ovl (ops mtk_disp_ovl_component_ops)
[    7.294613] mediatek-drm 14000000.dispsys: bound 14008000.rdma (ops mtk_disp_rdma_component_ops)
[    7.303369] mediatek-drm 14000000.dispsys: bound 14012000.rdma (ops mtk_disp_rdma_component_ops)
[    7.312152] mediatek-drm 14000000.dispsys: bound 14014000.dpi (ops mtk_dpi_component_ops)
[    7.320353] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    7.326924] [drm] No driver support for vblank timestamp query.
[    7.332939] mediatek-drm 14000000.dispsys: No connectors reported connected with modes
[    7.340837] [drm] Cannot find any crtc or sizes - going 1024x768
[    7.361291] Console: switching to colour frame buffer device 128x48
[    7.379642] mediatek-drm 14000000.dispsys: fb0:  frame buffer device
[    7.410358] mt7623_wm8960_probe()
[    7.413802] afe_base_address = 0xe25e0000 from 0x11220000
[    7.419325] topckgen_base_address = 0xe25de000
[    7.423872] cmsys_base_address = 0xe25e4000
[    7.428124] infracfg_base_address = 0xe25e6000
[    7.432651] pctrl_base_address = 0xe25e8000
[    7.436898] afe_sram_address = 0xe2940000 from 0x112a0000
[    7.442389] mt_afe_init_clock
[    7.447420] mt_afe_debug_init failed to create mtksocaudio debugfs file
[    7.454151] mt8521p_gpio_probe
[    7.457268] mt8521p_gpio_probe pinctrl_lookup_state default fail -19
[    7.463730] mt8521p_gpio_probe pinctrl_lookup_state audi2s0lrck-mode0-gpio fail -19
[    7.471516] mt8521p_gpio_probe pinctrl_lookup_state audi2s0lrck-mode1-i2s0 fail -19
[    7.479290] mt8521p_gpio_probe pinctrl_lookup_state audi2s2-mode1-i2s2 fail -19
[    7.486720] mt8521p_gpio_probe pinctrl_lookup_state audi2s2-mode4-dmic fail -19
[    7.494150] mt8521p_gpio_probe pinctrl_lookup_state audpcm-mode1-pcm fail -19
[    7.501404] mt8521p_gpio_probe pinctrl_lookup_state audpcm-mode2-mrg fail -19
[    7.514189] mt8521p_gpio_probe pinctrl_lookup_state audspdifin0-mode0-gpio fail -19
[    7.527412] mt8521p_gpio_probe pinctrl_lookup_state audspdifin0-mode1-spdif fail -19
[    7.540631] mt8521p_gpio_probe pinctrl_lookup_state audspdifin1-mode0-gpio fail -19
[    7.553652] mt8521p_gpio_probe pinctrl_lookup_state audspdifin1-mode1-spdif fail -19
[    7.566809] mt7623-wm8960-machine 11220000.sound: ASoC: CODEC DAI wm8960-hifi not registered
[    7.593134] vgp1: disabling
[    7.601484] vcamaf: disabling
[    7.610314] ALSA device list:
[    7.618496]   No soundcards found.
[    7.627653] md: Waiting for all devices to be available before autodetect
[    7.639634] md: If you don't use raid, use raid=noautodetect
[    7.651319] md: Autodetecting RAID arrays.
[    7.660480] md: Scanned 0 and added 0 devices.
[    7.669876] md: autorun ...
[    7.677486] md: ... autorun DONE.
[    7.685694] Waiting for root device /dev/sda1...
[    8.278169] mt7623-gsw gswsys@1b100000: port 1 link up

Have your kernel builtin sata-support?

Module does not work if using sata-rootfs (modules are on rootfs)

I have used default kernel from debian9, should I use your one?

Thank you,

I guess you’re using onboard SATA interface, right? If yes, the SATA driver should be configured as builtin mode and rebuild the kernel.

CONFIG_SATA_AHCI=y

Also please refer to this: BPI-R2 new image : ubuntu 16.04 V1.2.1 BT and WIFI AP mode are working fine 2017-11-27

Thanks, now its clear. I’ve tried to compile kernel but it failed on uboot part with this error:

  OBJCOPY u-boot.srec
  OBJCOPY u-boot.bin
./mkimage: 1: ./mkimage: Syntax error: "(" unexpected
Makefile:814: recipe for target 'u-boot-mtk.bin' failed
make[1]: *** [u-boot-mtk.bin] Error 2
make[1]: Leaving directory '/mnt/BPI-R2/BPI-R2-bsp/u-boot-mt'
Makefile:40: recipe for target 'u-boot' failed
make: *** [u-boot] Error 2

 Build failed!

Does anybody have compiled default 4.4.70 kernel with CONFIG_SATA_AHCI=y ?

Thank you,

The package u-boot-tools is required, please install it and then have a try.

you have to install u-boot-tools :wink:

you can use my compiled kernels from https://drive.google.com/open?id=15Y5Y3NAOwg_IMmN3k6hdb7pAQj9oTVTl

but 4.4 has also SATA as module…

4.14 has sata built-in, but if you need hdmi, that is not supported in 4.14 yet

It seams its already installed:

root@bpi-iot-ros-ai:/home/pi/bpi-r2# sudo apt-get install u-boot-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
u-boot-tools is already the newest version (2016.01+dfsg1-2ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 385 not upgraded.
root@bpi-iot-ros-ai:/home/pi/bpi-r2# 

Thank you,

you are building on the r2 directly (not crosscompile on host)?

which mkimage

yes, I dont have another pc running linux.

/usr/bin/mkimage

mkimage version 2016.01+dfsg1-2ubuntu3

Thank you,

Usually we compile the BSP on another host PC, don’t do it on BPI-R2. Can you please install a virtual machine with ubuntu 16.04 x64.

have added sata build-in to my 4.4-repo…had compiled it (currently 4.4.116)…now uploading (take a bit of time)

https://drive.google.com/open?id=1kkFyxeHoskszI7CpSsL6Wi6ROjDrBLOB

edit: uploaded :slight_smile:

Thank a lot, Frank. I will try and let you know how its going. You saved me a lot of time.

Thank you,

From what I see you uploaded 4.4.116-BPI-R2-Kernel.tgz (it should be copied on rootfs). Should I use boot from here 4.4.112-BPI-R2-Kernel-BPI-BOOT-bpi-r2.tgz ? I assume “sata build-in” should be on boot partition? Or I misunderstood?

Thank you,

oh sorry, missed the other tgz (have only one in 4.14…)

edit uploaded the other tgz, too…

unpack:

4.4.116-BPI-R2-Kernel.tgz => root
4.4.116-BPI-R2-Kernel-BPI-BOOT-bpi-r2.tgz => boot

Thanks a lot again.

I was able to load rootfs from sata hdd. Even so serial is working from the box :slight_smile:

Thank you,

Hello Mr Frank-W? Which kernel_boot+root is compiled with sata rootfs on Your google drive? I measured a very good performance on my sata disk (~90MB/s write and 60MB/s read), I wanna transfer my rootfs to that. Thanks for Your work!

B.R.:Ceru

lastest compiled kernel are automaticly build by travis on github

all actual releases should support sata (4.14, 4.18 and 4.19)

Thanks for Your answer! I downloaded 4.4.160, and it works fawlessly on rootfs@HDD. Thanks for the ROOT/BOOTFS and Your time. As any way to get temperature of the CPU/board? B.r.:Ceru