Hello, Having received BPi-W2 I tried the images with the legacy [email protected]:~# cat /proc/version Linux version 4.9.119-BPI-W2-Kernel ([email protected]) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #4 SMP PREEMPT Mon Apr 29 15:13:32 CST 2019
Very quickly I understood, that ethernet ports are not built properly in the kernel and they are not functional. I was able setting up the docker image https://hub.docker.com/r/sinovoip/bpi-build-linux-4.4/ and build the kernel from sources [email protected]:/Source# git clone https://github.com/BPI-SINOVOIP/BPI-W2-bsp.git
I was stuck on the final stage of [email protected]:/Source/BPI-W2-bsp# cat README.md How to update both u-boot and Linux kernel
I plugged into the host USB my SD Card with the Debian image for W2 in order to update u-boot and Linux kernel. The SD Card appears on the host system as : STORAGE_DEVICE sdb disk 60G ├─sdb1 part vfat 256M BPI-BOOT └─sdb2 part ext4 6.8G BPI-ROOT
Accessing the docker “optimistic_nash” instance with --privileged=true : [email protected]:~# docker exec -it --privileged=true optimistic_nash /bin/bash executes without errors.
But the bpi-update fails from within the Docker container instance : [email protected]:/Source/BPI-W2-bsp/SD# bpi-update -c bpi-w2.conf -d /dev/sdb CONFFILE=bpi-w2.conf Wait for download bpi-w2.conf … https://github.com/BPI-SINOVOIP/BPI-files/raw/master/others/for-bpi-tools/conf/board/bpi-w2.conf OK!!\n DEVICE=/dev/sdb BPIFILE=/root/.bpi-update.lst Wait for download index file … OK!!\n lsblk: /dev/sdb: not a block device INFO: /dev/sdb NOT THE removable device!! EXIT!!
I think, that Docker container is unable getting an access to mount /dev/sdb.
[email protected]:/# mount /dev/sdb2 /mnt/sdb2/
mount: permission denied
I am running out the options how to fix it. What is the right solution except for sending the BPi-W2 back?