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

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

Why such old kernel? 4.14 and above support much more including sata rootfs

For temp: Lm-sensors support

I have installed the 4.14.83 from Your github. It can boot, and (as I see), it will have cifs support to, which is mandatory for me. But I can’t reach ethernet connection on the eth1 or eth0 interface. My router (Mikrotik) has a DHCP server, but static IP on BP-r2 also not working. there is some trick about it? with the 4.4.160 working fine. Thanks!

In 4.14 your ip config has to be done on lan0-lan3 and ethx have to be set only to up

https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:network:start