Allwinner A10 : Is XBMC ported to MALI-400MP ?
Here are the steps I needed to take to cross-compile for armhf. I ran into quite a lot of problems so it might contain some errors.

Create SD card. You'll need a 8GB SD-card for this. Download the Linaro 12.08 dd-able image from j1nx.
Code:
sudo dd if=linarodesktop.12.08.img of=/dev/mmcblk0
wget -nd http://db.tt/6QB7geWV -O u-boot.bin                    % http://forum.doozan.com/read.php?6,9527
wget -nd http://db.tt/vANm95EH -O sun4i-spl.bin
dd if=sun4i-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
dd if=u-boot.bin of=/dev/mmcblk0 bs=1024 seek=32

Code:
Insert the SD card in you A10 device and boot. You might have to reinstall openssh-server if you want to use ssh.
sudo add-apt-repository ppa:nathan-renniewaldock/xbmc-nightly    % Try xbmc-stable if it doesn't work for some reason
sudo apt-get update
sudo apt-get install nano python-software-properties bash-completion git wget swig default-jre cmake libgtk2.0-bin
sudo apt-get build-dep xbmc
sudo apt-get install --reinstall libpython2.7 python2.7 python2.7-dev libssh2*    % This seemed to fix the errors I got while crosscompiling
                                                                                % Try to purge and then reinstall if it still doesn't work

Shutdown the device, insert the SD card back in your PC and do the following.
Code:
sudo apt-get install gcc-arm-linux-gnueabihf swig default-jre cmake libgtk2.0-bin g++-4.6-arm-linux-gnueabihf
sudo dd if=/dev/mmcblk0 of=rootfs_xbmc.img
sudo fdisk -l

Find sector size and start value of the root partition (mmcblk0p2 for me). Change offset to: offset=sector size * start
Code:
sudo mount -o loop,offset=71303168 rootfs_xbmc.img /mnt/rootfs-a10
sudo ln -s /usr/bin/arm-linux-gnueabihf-g++-4.6 /usr/bin/arm-linux-gnueabihf-g++
sudo ln -s /mnt/rootfs-a10/lib/arm-linux-gnueabihf /lib/arm-linux-gnueabihf
sudo ln -s /mnt/rootfs-a10/usr/lib/arm-linux-gnueabihf /usr/lib/arm-linux-gnueabihf
sudo ln -s /mnt/rootfs-a10/usr/include/arm-linux-gnueabihf /usr/include/arm-linux-gnueabihf

Git clone etc. See http://linux-sunxi.org/XBMC#Update_XBMC_build_config

When finished:
Edit the username (to linaro in my case) and path (to ...-binhf) in xbmc-watchdog.sh .
Then create the package. Install it on the A10 device with:
Code:
sudo gdebi xbmca10.deb
Reply
 
Thread Rating:
  • 15 Vote(s) - 4.13 Average


Messages In This Thread
RE: Allwinner A10 : Is XBMC ported to MALI-400MP ? - by Snippo - 2012-11-01, 17:51


Logout Mark Read Team Forum Stats Members Help
Allwinner A10 : Is XBMC ported to MALI-400MP ?4.1315