Hello,
Feel free to skip the following introduction about me, an almost finished Computer Science student happily running Arch Linux for well over half a decade on 64 bit laptops and desktops. I also had a couple of nice runins with the more popular ARM boards (raspberry pi and Beaglebone Black), first running wireless time server and ambient light detection for my clocks, the latter doing some ADC duty. But that's not why I'm here.
I wanted to make myself a proper HTPC, I ran a gigabyte RPI and a gigabyte Brix with arch and kodi with reasonable success, but I wanted something a bit more powerful (turns out that even the gigabyte Brix is not so good in video decoding somehow, primarily audio timing issues, figured it would do better as a swap in apache server). So I bought myself a MK902II from cloudsto (http://www.cloudsto.com/products/linux- ... etail.html).
It is not that I don't like ubuntu, but I wanted to run Arch so I set to work. It turns out there's no set recipe yet to install arch on this device, containing a radxa rock2 square motherboard(viewtopic.php?t=6967&p=39376).
But there was a debian package (called rabian) for this motherboard (http://wiki.radxa.com/Rock/prebuilt_images). Since I figured both should be pretty equal, I set to work on a nasty hack which turned out to be working:
First I downloaded the two tools nessecary:
- linux upgrade tool (http://wiki.radxa.com/Rock/download)
- rkflashtool (available from aur)
I then followed sort of this guide to install rabian (http://www.hagensieker.com/styled-26/index.html) with the rkflashtool
Then I created an empty image using dd (if=/dev/null) and followed the instructions from http://archlinuxarm.org/platforms/armv7 ... flip-c100p to create the linuxroot in aforementioned disk image.
Then I used the upgrade tool to only re-flash the linuxroot with the root image I created. Rebooted and hey presto, it worked! (which I honestly didn't expect).
Sharing this information is partly why I'm here, but unfortunately I am not finished yet, I have some issues I want to address, they are in approximately order of importance/annoyance:
1: Playing videos does not work, or only horribly slow. I tried installing xf86-video-armsoc-rockchip which caused lxdm to only black out and startxfce4 to fail. De-installing it again got it back to working. I tried installing mali drivers, but no luck (gpu is GPU - ARM Mali-T764 GPU). One of the problems is that lsmod lists nothing at all and lspci gives:
$this->bbcode_second_pass_code('', 'pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.')
So I am totally at a los to find out what modules are loaded/used and which driver to use
2: Ethernet is working terribly slow, so slow that I opted to use a USB ethernet device(ASIX AX88772). The latter works fine, but only if I reboot (it somehow failes to load when inserted after boot and trying to start netctl, chainloader issues? I'm out of my league here). Also hard to pinpoint any trouble, anyone knows how to diagnose and fix this is very welcome to suggest any actions.
3: Wifi is not working, I have a "sit0" device:
$this->bbcode_second_pass_code('', '3: sit0: <NOARP> mtu 1480 qdisc noop state DOWN group default
link/sit 0.0.0.0 brd 0.0.0.0
')
but it won't work with wifi-menu, apparently the chipset is ap6335 (http://wiki.radxa.com/Rabian#Wifi), but it won't show up in my devices, I Guess I'm missing a (correct) driver, but how to install, I'm at a loss.
This is my lsusb:
$this->bbcode_second_pass_code('', 'lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 0b95:772a ASIX Electronics Corp. AX88772A Fast Ethernet
Bus 003 Device 007: ID 045e:074f Microsoft Corp.
Bus 003 Device 006: ID 24ae:2000
Bus 003 Device 005: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 003 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
')
7 is my mouse, one of them is the hub I use with card reader(see 5) and of course the keyboard and usb ethernet device.
4: Overscan, even though the thing is connected over HDMI to a nice and new smarttv, I am missing the edges of my screen in xfce4, but also in terminal mode. I can't change any resolutions or whatsoever. I've tried a different (older) TV with worse results and running an hdmi->vga converter to my monitor yields unclipped but also very unsharm imagery unfortunately. This is my xrandr output:
$this->bbcode_second_pass_code('', 'xrandr: Failed to get size of gramma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
1920x10880 60.00*
')
The original ubuntu/rabian installation had a set_screen.sh that supposedly ran on boot containing this:
$this->bbcode_second_pass_code('', 'echo 1920x1080p-60 > /sys/class/display/display0.HDMI/mode
fbset -a -xres 1920 -yres 1080 -vxres 1920 -vyres 1080')
//edit:
Partly solved by changing the TV settings (this only works on my newer TV, older TV didn't have a "fit screen" setting for HDMI unfortunately)
5: I half suspect a hardware problem, but the usb ports on the slave side of the device are not working (no power coming out). However, this shouldn't be a problem if 2 get's fixed.
6: Disk size / boot partition: it is supposed to have 16Gb, but I only have about 10, df -h:
$this->bbcode_second_pass_code('', 'Filesystem Size Used Avail Use% Mounted on
udev 1000M 0 1000M 0% /dev
tmpfs 404M 468K 404M 1% /run
/dev/mmcblk0p2 9.6G 2.4G 6.9G 26% /
tmpfs 1010M 0 1010M 0% /dev/shm
tmpfs 1010M 0 1010M 0% /sys/fs/cgroup
tmpfs 1010M 16K 1010M 1% /tmp
tmpfs 202M 4.0K 202M 1% /run/user/1001
')
even more weird, I a missing the boot partition in fdisk -L:
$this->bbcode_second_pass_code('', '
Disk /dev/mmcblk0: 14.5 GiB, 15518924800 bytes, 30310400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac825b48
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 30310399 30308352 14.5G 83 Linux
')
(the linux partition wasn't there first also, I used testdisk and gparted to fix this somehow)
This is all I can think of for now, please suggest any action or reading to fix any of my problems.
Tom