SliTaz SliTaz Forum

You are not logged in.

#51 2014-04-21 09:12:04

pirandr
Member
Registered: 2014-02-06
Posts: 32

Re: Slitaz on armel?

ARM based devices comparison

Very interesting. When you said Allwinner and Mali400, I thought you were talking about the Cubieboard. I hadn't heard about the MK802 II before.

Its too bad there's no open GPU driver (well, the Raspberry Pi is now the closest with the recent announcement).

Toolchain build time

Yeah, 2 hours seems about right for building the cross compilation toolchain (memory's a bit fuzzy here). But just adding libtool didn't take very long.

Offline

#52 2014-04-28 15:44:04

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Slitaz on armel?

Open Source Mali-200/300/400/450 GPU Kernel Device Drivers

http://malideveloper.arm.com/develop-for-mali/drivers/open-source-mali-gpus-linux-kernel-device-drivers/

Source code for Mali GPUs Kernel Device Drivers, UMP Device Drivers and DRM Device Drivers under GPLv2 licence

The Linux and Android version of the Mali GPUs DDKs include three components which run within the kernel. The most important of these, known as the Device Driver, provides the low-level access to the Mali-200, Mali-300, Mali-400 and Mali-450 GPU. An important, secondary component is the Unified Memory Provider (UMP) which can be used in a variety of ways to facilitate zero-copy operations within the driver stack. An additional component, the Mali Direct Rendering Manager (DRM), is provided to integrate the Mali GPU DDKs into the X11 environment and for enabling the Direct Rendering Interface (DRI2).

Offline

#53 2014-05-02 03:13:22

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Slitaz on armel?

Radxa Rock

    SOC Rockchip RK3188

    CPU ARM Cortex-A9 quad core @ 1.6Ghz

1.

rock@slitaz:~$ uname -a

Linux slitaz 3.0.36+ #1 SMP PREEMPT Thu Apr 3 20:41:51 UTC 2014 armv7l armv7l armv7l GNU/Linux

2.

rock@slitaz:~$ dmesg | head -5

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 3.0.36+ (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 SMP PREEMPT Thu Apr 3 20:41:51 UTC 2014

[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

[    0.000000] Machine: RK30board

3.

rock@slitaz:~$ lscpu

Architecture:          armv7l

Byte Order:            Little Endian

CPU(s):                4

On-line CPU(s) list:   0-3

Thread(s) per core:    1

Core(s) per socket:    1

Socket(s):             4

4.

rock@radxa:~$ free -m

             total       used       free     shared    buffers     cached

Mem:          1852        160       1692          0         10         59

-/+ buffers/cache:         89       1763

Swap:            0          0          0

5.

rock@radxa:~$ df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/mtdblock1  7.4G  1.8G  5.3G  25% /

udev            924M   68K  924M   1% /dev

none            4.0K     0  4.0K   0% /sys/fs/cgroup

none            186M  212K  186M   1% /run

none            5.0M     0  5.0M   0% /run/lock

none            927M     0  927M   0% /run/shm

none            100M   12K  100M   1% /run/user

rock@radxa:~$

[attachment=29499,1423]

Offline

#54 2014-05-02 03:20:19

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Slitaz on armel?

GPU Mali400-mp4@533Mhz, OpenGL ES 2.0

1.

rock@slitaz:~$ lsmod

Module                      Size  Used by

mali_drm                    5196  1

drm                       142897  2 mali_drm

mali                      127376  0

ump                        27356  3 mali

8723au                    849716  0

rk30xxnand_ko             161856  0

2.

rock@slitaz:~$ modinfo mali

filename:           /lib/modules/3.0.36+/kernel/misc/mali.ko

version:            r3p2-01rel2

author:             ARM Ltd.

license:            GPL

srcversion:         2DCA5E55A6EDAA8348F84D8

depends:            ump

vermagic:           3.0.36+ SMP preempt mod_unload ARMv7

parm:               mali_debug_level:Higher number, more dmesg output (int)

parm:               mali_max_job_runtime:Maximum allowed job runtime in msecs.

Jobs will be killed after this no matter what (int)

parm:               mali_l2_max_reads:Maximum reads for Mali L2 cache (int)

parm:               mali_dedicated_mem_start:Physical start address of dedicated Mali GPU memory. (uint)

parm:               mali_dedicated_mem_size:Size of dedicated Mali GPU memory. (uint)

parm:               mali_shared_mem_size:Size of shared Mali GPU memory. (uint)

parm:               mali_boot_profiling:Start profiling as a part of Mali driver initialization (int)

parm:               mali_max_pp_cores_group_1:Limit the number of PP cores to use from first PP group. (int)

parm:               mali_max_pp_cores_group_2:Limit the number of PP cores to use from second PP group (Mali-450 only). (int)

3.

rock@slitaz:~$ es2gears

EGL_VERSION = 1.4 Linux-r3p2-01rel2

vertex shader info:

fragment shader info:

info:

1569 frames in 5.0 seconds = 313.800 FPS

1596 frames in 5.0 seconds = 319.072 FPS

1551 frames in 5.0 seconds = 310.200 FPS

1508 frames in 5.0 seconds = 301.419 FPS

4.

rock@slitaz:~$ glmark2-es2

=======================================================

    glmark2 2012.08

=======================================================

    OpenGL Information

    GL_VENDOR:     ARM

    GL_RENDERER:   Mali-400 MP

    GL_VERSION:    OpenGL ES 2.0

=======================================================

[build] use-vbo=false: FPS: 75 FrameTime: 13.333 ms

[build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms

[texture] texture-filter=nearest: FPS: 95 FrameTime: 10.526 ms

[texture] texture-filter=linear: FPS: 94 FrameTime: 10.638 ms

[texture] texture-filter=mipmap: FPS: 95 FrameTime: 10.526 ms

[shading] shading=gouraud: FPS: 61 FrameTime: 16.393 ms

[shading] shading=blinn-phong-inf: FPS: 52 FrameTime: 19.231 ms

[..]

[conditionals] fragment-steps=0:vertex-steps=0: FPS: 114 FrameTime: 8.772 ms

[conditionals] fragment-steps=5:vertex-steps=0: FPS: 72 FrameTime: 13.889 ms

[conditionals] fragment-steps=0:vertex-steps=5: FPS: 107 FrameTime: 9.346 ms

[function] fragment-complexity=low:fragment-steps=5: FPS: 85 FrameTime: 11.765 ms

[function] fragment-complexity=medium:fragment-steps=5: FPS: 58 FrameTime: 17.241 ms

[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 81 FrameTime: 12.346 ms

[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 84 FrameTime: 11.905 ms

[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 91 FrameTime: 10.989 ms

=======================================================

                                      glmark2 Score: 81

=======================================================

rock@slitaz:~$

Offline

#55 2014-05-14 17:34:43

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Slitaz on armel?

Welcome to Radxa Rock

SliTaz boot time: 5s

1.

root@slitaz:~# uname -a

Linux slitaz 3.10.30-slitaz #1 SMP PREEMPT Tue May 13 19:39:35 UTC 2014 armv7l GNU/Linux

2.

root@slitaz:~# dmesg | grep Machine

[    0.000000] Machine: RK30board, model: rockchip,rk3188

3.

root@slitaz:~# date

Wed May 14 14:45:01 UTC 2014

4.

root@slitaz:~# nslookup www.slitaz.org

Server:    192.168.0.1

Address 1: 192.168.0.1 dir-605

Name:      www.slitaz.org

Address 1: 46.105.127.17 ks385316.kimsufi.com

Address 2: 212.83.135.187 pangolin.slitaz-fr.org

5.

root@slitaz:~# slitaz

SliTaz GNU/Linux

================================================================================================================================================================

Release      : cooking

Architecture : arm

Kernel       : 3.10.30-slitaz

Boot options : clk_ignore_unused console=ttyFIQ0,115200 console=tty0 root=/dev/mmcblk0p2 rw rootfstype=ext4 init=/sbin/init mac_addr=de:ad:de:ad:be:ef initrd=0x62000000,0x003E0000 mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot) bootver=2013-12-02#2.08 firmware_ver=4.2.2

Home path    : /home/slitaz

Configs      : /etc/slitaz

Log files    : /var/log/slitaz

Packages DB  : /var/lib/tazpkg

Installed    : 18 packages

Mirror       : http://arm.balinor.net/slitaz/armhf/packages/

================================================================================================================================================================

Config file: /etc/slitaz/slitaz.conf

[attachment=29933,1486]

Offline

#56 2014-06-16 07:55:53

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Slitaz on armel?

Radxa Rock - device-tree

1.

Starting udhcpc client on: eth0...

udhcpc (v1.20.2) started

Sending discover...

Sending discover...

Sending discover...

No lease, forking to background

Processing: /etc/init.d/local.sh

Starting all daemons...

Generating Dropbear rsa key... [ Done ]

Generating Dropbear dss key... [ Done ]

Starting SSH server: Dropbear... [ Done ]

Welcome to Radxa Rock

SliTaz boot time: 6s

2.

root@slitaz:~# dmesg | grep -B 3 Machine

[ 0.000000] Linux version 3.10.37-slitaz (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 SMP PREEMPT Fri May 16 13:57:21 UTC 2014

[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d

[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

[ 0.000000] Machine: RK30board, model: rockchip,rk3188

3.

root@slitaz:~# ls /proc/device-tree

#address-cells                 nandc

#size-cells                    pinctrl@20008000

adc@2006c000                   pmu@20004000

aliases                        pwm@20030000

amba                           pwm@20030010

ap0-vcc-domain                 pwm@20050020

ap1-vcc-domain                 pwm@20050030

backlight                      rga@10114000

bootram@10080000               rk_screen

bootrom@10120000               rksdmmc@10214000

cache-controller@10138000      rksdmmc@10218000

chosen                         rksdmmc@1021C000

cif-vcc-domain                 rockchip,sram

clocks                         rockchip-hdmi-i2s

clocks-init                    rockchip-hdmi-spdif

codec-hdmi-i2s                 rockchip-i2s@0x1011a000

codec-hdmi-spdif               rockchip-spdif@0x1011e000

compatible                     rockchip_suspend

cpu_axi_bus                    serial@10124000

cpus                           serial@10126000

dvfs                           serial@20064000

dwc-control-usb@200080ac       serial@20068000

fb                             spi@20070000

fiq-debugger                   spi@20074000

flash-vcc-domain               sram@10080020

hsic@10240000                  timer@20038000

i2c@2002d000                   timer@20038020

i2c@2002f000                   timer@20038040

i2c@20056000                   timer@20038060

i2c@2005a000                   timer@20038080

i2c@2005e000                   timer@200380a0

interrupt-controller@1013d000  twd-wdt@1013c620

interrupt-parent               usb@10180000

ion                            usb@101c0000

lcdc0-vcc-domain               vccio0-vcc-domain

lcdc1-vcc-domain               vccio1-vcc-domain

lcdc@1010c000                  vmac-phy

lcdc@1010e000                  vmac@10204000

memory                         wdt@2004c000

name                           wireless-wlan

4.

root@slitaz:~# cat /proc/device-tree/compatible

rockchip,rk3188root@slitaz:~#

root@slitaz:~# cat /proc/device-tree/chosen/bootargs

clk_ignore_unused console=ttyFIQ0,115200 console=tty0 root=/dev/mmcblk0p2 rw rootfstype=ext4 init=/sbin/init mac_addr=de:ad:de:ad:be:ef initrd=0x62000000,0x003E0000 mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot) bootver=2013-12-02#2.08 firmware_ver=4.2.2

root@slitaz:~# cat /proc/device-tree/wireless-wlan/compatible

wlan-platdataroot@slitaz:~#

[attachment=30953,1546]

Offline

#57 2014-06-16 13:16:34

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: Slitaz on armel?

>Radxa Rock - device-tree

>Linux version 3.10.37

Yarrr!!! I have a Minix Neo X7 as my home server (currently using gentoo).

Too bad there is no devicetree and 3.10 kernel support for it. And AFAIK I cannot use internal NAND storage (only SD).

And you also have 3D working...

Man, can you please write a short guide for installing slitaz on raxda (kernel, drivers, etc)?

Offline

#58 2014-06-18 15:04:38

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Slitaz on armel?

Ref:

Ubuntu 14.04 and Slitaz on Radxa Rock

http://www.cnx-software.com/2014/05/18/ubuntu-14-04-and-slitaz-on-radxa-rock/

First download boot-slitaz-20140517.img (kernel + slitaz ramdisk), then follow the 「Flashing Ubuntu to Radxa Rock」 section in my getting started guide for Radxa Rock  to flash boot.img. It is simply one line:

upgrade_tool di -b /path-to/boot-slitaz-20140517.img

Simply login with root username, and root password to access the command line. It might also be possible to use a more up-to-date rootfs from http://arm.slitaz.org/rpi/, but it is only armel.

[Update: Alanyih has also been given me the build instructions for his Slitaz image:

git clone -b wip/lsk-android-14.04-radxa-rock https://github.com/linux-rockchip/kernel_rockchip.git

make radxa_rock_defconfig

make zImage rk3188-radxa-rock.dtb

cat arch/arm/boot/zImage arch/arm/boot/dts/rk3188-radxa-rock.dtb > zImage-lsk

mkbootimg --kernel zImage-lsk --ramdisk slitaz-ramdisk.gz -o boot-slitaz-20140517.img

]

Both Ubuntu 14.04 and Slitaz should be able to run on any Rockchip RK3188 device thanks to the device tree and multi-platform enabled Linux kernel, as long as you can somehow come up with the right device file for your device, which may not always be an easy task.

boot-slitaz-20140517.img (kernel + slitaz ramdisk)

http://goo.gl/Mc7L4q

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]