BPI W2 sources for Linux, etc


(Андрей Панов) #1

Hi!

Is it possible to have the sources for Linux kernel, u-boot, LK, OP-TEE, ATF, etc… for BPI W2?


(bpi team) #2

We’re working on it, and when it’s ready, it’s updated to github.


#3

It’s been some months. Can’t buy without an open kernel & boot loader. No sources, no deal.


(bpi team) #4

Linux HDMI issue have fixed ,we will update code and image soon


#5

Sounds nice, but where actually is the code? The gitbook for example just links to binary blobs in a drive. Given that both U-Boot and the Linux Kernel are GPL code, it would be the natural thing to just work with the code out in for example a public git repository.


#6

Found new commit on github with new kernel so tried to use it:

Performed update via tools:

bpi-update -c bpi-w2.conf -d /dev/mmcblk1

All files that supposed to end up on boot partition (mmcblk1p1) ended up not in root of it but rather inside this path on that partition:

/bananapi/bpi-w2/linux/

moved them manually to mmcblk1p1 root and rebooted my board

still green screen via HDMI and board will not complete boot cycle: bootlog.4.9.txt (65,6 KB)

left rootfs (mmcblk1p2) unchanged (state as left after update - existing modules for 4.9.119-BPI-W2-Kernel, etc) and just copied older files back to boot partition

board completes boot cycle on old kernel

root@BPI-W2:~# uname -r
4.4.18-ning

What am I doing wrong?


(bpi team) #7

test BPI-W2 network speed:


#8

situation update:
flashed u-boot included in same commit to SD card with:

bpi-bootsel /usr/lib/u-boot/bananapi/bpi-w2/BPI-W2-720P-2k.img.gz /dev/mmcblk1

re-applied update as before (to re-create directory structure on mmcblk1p1):

bpi-update -c bpi-w2.conf -d /dev/mmcblk1

SW4 position 0 -> boots 4.4.18-ning (green screen on HDMI)
SW4 position 1 -> boots 4.9.119-BPI-W2-Kernel (black screen on HDMI)

UART console keeps getting this log on new kernel:

[AO][_AO_if_video_HDMI_mode]HDMI not enabled
[AO][_AO_if_video_HDMI_mode]HDMI not enabled
[AO][_AO_if_video_HDMI_mode]HDMI not enabled
[AO][_AO_if_video_HDMI_mode]HDMI not enabled
[AO][_AO_if_video_HDMI_mode]HDMI not enabled
[AO][_AO_if_video_HDMI_mode]HDMI not enabled
[AO][_AO_if_video_HDMI_mode]HDMI not enabled

when I halt the board - screen says ‘NO SIGNAL’,
when board is running it just stays black without any message

unable to check if any kernel module got loaded: lsmod or modprobe return ‘command not found’

noticed sth else (symlinks in kernel modules point to some folder not on my system):

root@BPI-W2:~# ll /lib/modules/4.9.119-BPI-W2-Kernel/
total 92
drwxr-xr-x 3 root root  4096 Sep  2 14:31 ./
drwxr-xr-x 3 root root  4096 Sep  2 17:13 ../
lrwxrwxrwx 1 root root    54 Sep  2 14:31 build -> /media/mikey/BPI-USER/github/build/BPI-W2-bsp/linux-rt
...
lrwxrwxrwx 1 root root    54 Sep  2 14:31 source -> /media/mikey/BPI-USER/github/build/BPI-W2-bsp/linux-rt

(bpi team) #9

we have fixed HDMI issue on linux , please test this image :


#10

Hello,

here my bootlog Bananapi_w2.log_10 (40,3 KB)

Best regards


(bpi team) #11

which image are you use???, just RPiTC image support HDMI , we will update other image soon .


#12

2018-03-03-RPITCv3_1.12-demo-bpi-w2-sd.img


(kaka) #13

how can i burn this image to eMMC?


(John Bazyk) #14

Do we know when/if Raspbian will be available for this board? At this point, the board is mostly useless without a decent OS to run on it. We’re trying to get this ready to deploy for solar powered cameras on construction sites running our VMS. Here is a list of approved OS from the VMS company. Raspbian Jessie, Debian 8. I really don’t want to use Raspberry Pi, but if we can’t get this W2 board to work we will have too.


#15

Please provide the source code for these images, particularly kernel and u-boot, as required by the GPL license.


(bpi team) #16

we debug kernel now . and have working fine .


#17

putty > weston > xming gives exactly as seen above

rtk_drm module is not loaded at boot:

cat /sys/class/drm/card0-HDMI*/enabled

says “file not found”, after loading manually it says “disabled”


(Ethan) #18

May I ask why you chose this very poorly supported board instead of one of Sinovoip’s many other offerings?


(noralee) #19

(bpi team) #20

Banana Pi BPI-W2 source code public on github