Banana Pi – openSUSE Lizards https://lizards.opensuse.org Blogs and Ramblings of the openSUSE Members Fri, 06 Mar 2020 11:29:40 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.5 How to create an openSUSE Banana Pi M1 image with MATE Desktop https://lizards.opensuse.org/2015/09/17/how-to-create-an-opensuse-banana-pi-m1-image-with-mate-desktop/ Thu, 17 Sep 2015 18:32:51 +0000 http://lizards.opensuse.org/?p=11533 I won a Banana Pi from ownCloud. So I tried to install openSUSE.

There are 3 options:

1. According to the wiki page, you can download the image they provide but there’s no kernel support for Mali400MP2 GPU (who knows if it’s fixed by now). No Mali mean no GUI. The link to image is http://download.opensuse.org/ports/armv7hl/tumbleweed/images/.

2. Download the image from http://www.lemaker.org. The GUI used is XFCE.

3. Do it the hard way, build it yourself. I would like to install MATE. I know, I could use the lemaker image.
I followed the page HowTo Build Banana Pi Image.

This post has 2 sections. The first is how to create the SD card and the next one is how to install MATE.

Create the SD card.

1. Create a folder where you’re going to work (download the nessesary files).

mkdir WORKSPACE

cd WORKSPACE

2. I’ll skip the steps 1-5 from the Build it yourself page. You can download the file:

BananaPi_hwpack.tar.xz

Download also the rootfs openSUSE image file.

openSUSE-Tumbleweed-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz

3. Create the folder with the ROOTFS_DIR

mkdir ROOTFS_DIR

4. Decompress the file to ROOTFS_DIR

openSUSE-Tumbleweed-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz

5. Now work with the file BananaPi_hwpack.tar.xz. Decompress the file.

tar xvfJ BananaPi_hwpack.tar.xz

6. Copy related files to the directory ROOTFS_DIR

cp kernel/script.bin ROOTFS_DIR/boot
cp kernel/uImage ROOTFS_DIR/boot

Create the file:

nano ROOTFS_DIR/boot/uEnv.txt

with the following content

mmcboot=fatload mmc 0 0x43000000 script.bin || fatload mmc 0 0x43000000 evb.bin; \
fatload mmc 0 0x48000000 uImage; if fatload mmc 0 0x43100000 uInitrd; \
then bootm 0x48000000 0x43100000; else bootm 0x48000000; fi
uenvcmd=run mmcboot
bootargs=console=ttyS0,115200 console=tty0 \
disp.screen0_output_mode=EDID:1280x720p60 \
hdmi.audio=EDID:0 root=/dev/mmcblk0p1

Copy the rootfs folder:

cp -r rootfs/* ROOTFS_DIR

7. Now prepare the SD. Format the sdcard (assume the sdcard mounted at /dev/sdb. You can find it with the command cat /proc/partitions)

sudo umount /dev/sdb1
sudo dd if=/dev/zero of=/dev/sdb bs=1k count=1024
sudo dd if=bootloader/u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8

Create partition (you can do it using gparted too)

sudo fdisk /dev/sdb

* Delete partitions: o
* List partitions: p
* Create new partitions: n
* Primary partitions: p
* Partition number: 1
* Press ENTER twice to use the total size of the card
* Write the partition table: w

Format the parititon

sudo mkfs.ext4 /dev/sdb1

8. Copy ROOTFS_DIR into sdcard

mkdir mnt
sudo mount /dev/sdb1 mnt
sudo cp -a ROOTFS_DIR/* mnt
sudo sync
sudo umount mnt

Now boot the card. The default username/password are:

Username: root
Password: linux

Unfortunately ssh didn’t work. I logged in and changed few things.
First of all I edited the file sshd_conf

nano /etv/ssh/sshd_conf

And found:
Port 22
PasswordAthentication yes
PermitRootlogin yes

Then I used the command

chown -R root /var/lib/empty

Rebooted and all set.

You can download the image from openSUSE-Tumbleweed-BananaPi-headless-20150928.tar.xz

copy it at least 2GB sd card and resize it.

Install MATE Desktop

The first thing you have to do is to update (zypper up).

The easiest way is to open YaST and go to Software Management.
Then filter by Patterns.
Click to install MATE Desktop Environment and MATE Base system.

After everything is installed, make MATE-session as default window manager

nano /etc/sysconfig/windowmanager

Find the line:

DEFAULT_WM = “kde-plasma”

and change it to

DEFAULT_WM = “mate-session”

Then reboot. Login and type startx

]]>
LTSP client goes Banana Pi! https://lizards.opensuse.org/2014/12/16/ltsp-client-goes-banana-pi/ https://lizards.opensuse.org/2014/12/16/ltsp-client-goes-banana-pi/#comments Tue, 16 Dec 2014 14:03:33 +0000 http://lizards.opensuse.org/?p=11121 The Raspberry Pi is a credit-card sized computer running ARM processor that plugs into your TV/PC monitor, mouse and a keyboard, it is capable of running Linux and can be made to do many interesting things.The Banana Pi is a what Chinese ingeniousness came up with after they checked out Raspberry Pi, they made a lot more powerful knockoff. This is a “How-to” use Banana Pi as LTSP client.

There is BerryTerminal project which makes it possible to use Raspberry Pi as LTSP Thin Client, on the server you can run any distribution that can run LTSP server, it can be running CPU with x86/x86_64/whatever architecture as LTSP provides a way to run X session from the server via SSH tunnel. Biggest benefit of running LTSP is centralized user and data management, and clients can be of modest specification as all clients’ sessions are run on the server. This is a drawback as well, as the server needs to be powerful enough to handle many sessions. This is where LTSP Fat Client help, it allows running of users’ session on the client that are powerful enough, while users and data are stored on the central server allowing modest server to serve many more clients than it would otherwise. Raspberry Pi is not that capable to run full featured Linux desktop, Banana Pi with it’s dual core CPU and 1 GB RAM is just good enough to work as a Thin Client as well as a Fat Client. perfect for home, small office or school lab.

Piece of history, first ever Banana Pi LTSP terminal running openSUSE KIWI-LTSP

There is openSUSE 13.1 available for Banana Pi, it comes with XFCE desktop and many useful software pre-installed. Because I do not know how to create images for this hardware, that image is used as a base for Banana Terminal. Here are the steps to turn your Banana Pi into LTSP client.

* Download openSUSE-Bananapi-LTSP.tar.xz

* Extract the archive to get openSUSE-Bananapi-LTSP.img from it.

* Dump the openSUSE-Bananapi-LTSP.img on to a SD card, see step 5 here.

* Change settings according to your network configuration

In the second partition of SD card etc/lts.conf edit the SERVER variable to point to LTSP server in your network.

* Plug the SD card in your Banana Pi and boot it up, make sure the network is connected and LTSP server is set up properly. You have to create users on the server to use for login on client.

*  In case you have a bigger SD card, use yast2 disk(partitioner) on the client to expand the second partition. You can use yast’s package manager to install more software. The default password for root is bananapi, you may want to change that first thing after booting.

If you would like to run LTSP client on ARM7 hardware supported by openSUSE I would be happy to accept hardware donation to get it working 😉

Have a lot of fun…

]]>
https://lizards.opensuse.org/2014/12/16/ltsp-client-goes-banana-pi/feed/ 1