Magia, debian or ubuntu?


(Frank W.) #21

why now sdb and why #5? sdx1 is BPI-BOOT and sdx2 is BPI_ROOT if you add a sdx3 as data this is enough…have done it too

how do you created the partition and what does “does not work” mean?


(Troumad) #22

sdb5 because mga make a extented partition. I have remove this partition and do sdb3, I have remove sdb3. My sd card don’t work… I make a new SD card.


(Frank W.) #23

i know no mageia-image for bpi-r2

try debian/ubuntu and create the data-partition with fdisk directly without touching partition 1 and 2…only add and it will not affect the system itself


(Troumad) #24

Now, I try debian.

I have do a ping 192.168.1.10 1 time. But the ssh don’t work. I have try so many modifiy /etc/network/interfaces. Now I made

dd bs=1M if=deb_stretch_4.14.13_SD.img of=/dev/sdc   status=progress conv=fsync;sync

for have a new debian…

I don’t understand what is lna0, lan1, lan2, lan3 and eth0. Is not the same config als ubuntu.


(Frank W.) #25

if you look on ethernet-ports of r2, you see from left to right the interfaces (from left to right) wan,lan0,lan1,lan2,lan3

eth0 is connection from soc to switch and have no ip-config…only bring up…see my interfaces already in the image


(Troumad) #26

I can’t do ssh with the debian. I do a ping, but no ssh :

  • 64 bytes from 192.168.1.10: icmp_seq=67 ttl=64 time=0.401 ms
  • 64 bytes from 192.168.1.10: icmp_seq=68 ttl=64 time=0.409 ms
  • 64 bytes from 192.168.1.10: icmp_seq=69 ttl=64 time=0.388 ms
  • ^C
  • — 192.168.1.10 ping statistics —
  • 69 packets transmitted, 29 received, +32 errors, 57% packet loss, time 69615ms
  • rtt min/avg/max/mdev = 0.281/106.340/2048.563/411.829 ms, pipe 4
  • [root@localhost pi]# ssh 192.168.1.10 -p22
  • ssh: connect to host 192.168.1.10 port 22: Connection refused

(Frank W.) #27

Is ssh-server running?


(Troumad) #28

How can I it know ? It’s the BPI-R2 with debian and I have nothing for testing it if I can’t ssh do. The BPI-R2 have no HDMI output.

In /lib/systemd/system there is ssh.service. In /var/log I have nothing.


(Frank W.) #29

I see you have packet loss…check connection and try different cable

My image loads ssh…maybe you can’t login as root (permitrootlogin-setting),but you should get a user/pw-prompt


(Troumad) #30

The packet lost are before the first ping is good. After this fisrt good ping all the ping are good. The ssh error say that’s it’s not a user problem.


(Frank W.) #31

You use deb_stretch_4.14.13_SD.img right? Have to try…i thought ssh was started


(Troumad) #32

I have “deb_stretch_4.14.13_SD.img”.

I have try with different cable. Il think that’s I have a probleme with ethernet-ports. The ping don’t work with lan0. Il try all the internet port I try now the lan0 :it’s good. When it works, I always did this manipulation before. But, I never had a problem with ubuntu.

The “cp2102” is for open a console in the BPI-R2. It can help me for debugin ?


(Frank W.) #33

Right you can see whats going on,login as root and work on r2 directly without ssh

It’s named serial console or debug-uart

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


(Troumad) #34

I just ordered the cp2102 to aliexpress. For a network connection, I have just done different tests. I just have to wait a long time. And after, it’s good.

  • 64 bytes from 192.168.1.10: icmp_seq=436 ttl=64 time=0.383 ms
  • ^C
  • — 192.168.1.10 ping statistics —
  • 436 packets transmitted, 436 received, 0% packet loss, time 445479ms
  • rtt min/avg/max/mdev = 0.271/0.359/0.488/0.046 m

I miss the ssh.


(Frank W.) #35

as i said, i have to test it,

but before i write the image again to my card, i update kernels, uboot and system


(Troumad) #36

I don’t have a ubuntu, but I can have a debian at my work. With mageia, I don’t have the same name for paquet or file. Have debian the same name as ubuntu ?


(Frank W.) #37

try disable mountpoints in /etc/fstab for emmc…seems that i had not deactivated them…bootprocess hangs there

# <file system>         <dir>           <type>  <options>               <dump> $
/dev/mmcblk0p2          /               ext4    errors=remount-ro       0      $
/dev/mmcblk0p1          /boot           vfat    defaults                0      $
#/dev/mmcblk1p2         /mnt/emmc/root          ext4    errors=remount-ro      $
#/dev/mmcblk1p1         /mnt/emmc/boot          vfat    defaults               $

what do you mean with “same name”?


(Troumad) #38

Mageia have only gcc-arm-linux-gnu, mageia have not gcc-arm-linux-gnueabihf.

disable mountpoints in /etc/fstab for emmc is a good idea… I can ping faster :

 64 bytes from 192.168.1.10: icmp_seq=17 ttl=64 time=0.824 ms

before it was arround the “icmp_seq=100”…

And the ssh is good !

now the question is : Can I install the driver for the HDMI output ?

Thank’s !


(Frank W.) #39

You need a kernel with hdmi…

actual versions of 4.14 do have hdmi-support


(Troumad) #40

There is only root user…

And the 4.18 kernel ?