Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: isidoro on October 15, 2013, 12:00:04 PM

Title: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: isidoro on October 15, 2013, 12:00:04 PM
I found this post http://www.gplsquared.com/eoma_boot/eoma_boot.html#Ubunt_13_04_3D
and adapted image to olinuxino, and it worked.

linaro_13_4_aolinuxino-a20.img.xz - https://docs.google.com/file/d/0B5o2FZvy5RcnSHhwX082blY3c0E/edit?usp=sharing

details:
User: jm
pass: jm

Hdmi out : 1360x768 ( you can adjust in  uEnv.txt)
I's a 5.2 Gig file system, so you need to write on a 8 Gig sd card.
I used win32diskimager to make img file and seven zip to compress into xz file.


Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: Mouchon on October 15, 2013, 02:21:54 PM
thanks for the share :-)
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: zolivem on October 20, 2013, 09:10:09 PM
I tried this unofficial Ubuntu on my A20 but it doesn't work.
I just copied the image on a 16GB uSD (everything seems good, I obtained 2 partitions fat16 and ext4)
When I boot my A20 with this uSD, nothing happens (just the red light, no greend light and no ouput to my HDMI screen).
I tried to copy the scipt.bin and script_a20_linux_HDMI_sd.fex files from the script_a20_linux_HDMI_sd directory to the root directory of the fat16 partition, but I obtained the same behaviour.
My A20 works well with the official Debian image.

Did I missed something to do ?
Thanks for your answer.
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: Lurch on October 21, 2013, 11:09:58 AM
Must be your sdcard. I copied it to 8GB sdcard and it worked fine.
Try another card?
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: zolivem on October 22, 2013, 12:04:01 AM
I tried with a 8GB uSD and it works now !
I'm sure I tried before with this uSD but I changed the power supply too since because I've noticed non stable behavior with the official Debian ... may be the conjonction of the both changes.
Thanks a lot for your suggestion Lurch.
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on October 24, 2013, 03:48:40 AM
Hi,

This image does not seem to fit my 8 GB card:

$ su -c "xzcat linaro_13_4_aolinuxino-a20.img.xz | dd of=/dev/sdb bs=4M"
Password:
dd: writing '/dev/sdb': No space left on device
0+871110 records in
0+871109 records out
7822376960 bytes (7,8 GB) copied, 705,741 s, 11,1 MB/s

Any hints?
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: isidoro on October 24, 2013, 07:23:34 PM
@jmss

it's due to different brand of cards, yours has fewer sectors than the average.
Regardless, I think the card can boot. Have you tried to mounts its two partitions?      
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on October 24, 2013, 07:57:49 PM
OK, it makes sense.

No, the green LED does not light.

When I insert the card in my laptop there's an error from mount. I only see partition BB7C-505C.

Anyway, this is strange because "I's a 5.2 Gig file system, so you need to write on a 8 Gig sd card."
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: isidoro on October 25, 2013, 05:55:07 PM
try to explode first the file with sevenZip and then use dd  without the "bs=4M" option.

Other way, the most safe, is to mount filesistems in loop mode, then copy it on a fresh created partition (one of 16M the fat one e one that fill the remasining space of the sdcard)


Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on October 25, 2013, 09:40:02 PM
Quote from: isidoro on October 25, 2013, 05:55:07 PM
try to explode first the file with sevenZip and then use dd  without the "bs=4M" option.

I've thought of that and tried it before, but it didn't solve it. bs is just an upper limit, so if there are fewer bytes to write, dd will only write the missing ones. Uncompressing the image reveals an image larger than what the SD card can hold.

Quote from: isidoro on October 25, 2013, 05:55:07 PM
Other way, the most safe, is to mount filesistems in loop mode, then copy it on a fresh created partition (one of 16M the fat one e one that fill the remasining space of the sdcard)

Thanks for the suggestion. I was forgetting that one thing is the partition size and other is the files size. I tried resizing the partition in gparted, but it does not allow it. So I did this:


The green LED does not light, but this time the board is up and I could successfully login.
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on October 25, 2013, 10:44:09 PM
Something that I observed with this image is that in my project the C/C++ code runs about twice as faster comparing to Debian Unstable.

I was using the official Debian image and upgraded to Testing and then to Unstable to make it as close as possible to Ubuntu 13.04.

Do you think this performance improvement is due to moving:

  - from Debian Unstable to Ubuntu/Linaro or
  - from Debian/Ubuntu to Linaro?

Thanks.
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: wizard3001 on October 31, 2013, 04:30:35 PM
Hi

Do you have audio, on your devices running on this distro. I've tried alot of things but no luck.

I someone has a clue how to fix the audio it will be great. 
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on October 31, 2013, 04:37:41 PM
Hi,

Quote from: wizard3001 on October 31, 2013, 04:30:35 PM
Do you have audio, on your devices running on this distro. I've tried alot of things but no luck.

I think I managed to play the WAVE file that comes with the Official Debian image (?) and I can also play, e.g.:

  $ mplayer ./code/gambas/trunk/examples/examples/Games/Concent/Paddle.wav

with the current Ubuntu 13.10 (I have upgraded with do-release-upgrade).
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: isidoro on November 04, 2013, 06:21:40 PM
Quote from: jmss on October 25, 2013, 10:44:09 PM
Something that I observed with this image is that in my project the C/C++ code runs about twice as faster comparing to Debian Unstable.

how did you measure it?

Quote from: jmss on October 25, 2013, 10:44:09 PM
Do you think this performance improvement is due to moving:

  - from Debian Unstable to Ubuntu/Linaro or
  - from Debian/Ubuntu to Linaro?

Nice question. I think this question is to forward to whom effectively made it, on the original link.
By me, I think is a matter of some kind of flags used to optimize code build.


Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on November 04, 2013, 07:13:55 PM
Quote from: isidoro on November 04, 2013, 06:21:40 PM
how did you measure it?

With Python's time.time() in a script who invoked the C code.

Quote from: isidoro on November 04, 2013, 06:21:40 PM
Nice question. I think this question is to forward to whom effectively made it, on the original link.
By me, I think is a matter of some kind of flags used to optimize code build.

Afterwards, I concluded it is due to Linaro's gcc optimizations, since the binary programs did not show any improvements, only the code that I recompile.
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: spin on November 28, 2013, 10:45:23 PM
I was able to copy this Ubuntu image on my microSd card and start it.
Green led don't go on but image boot and I can SSH to it and login as jm/jm

No possibility to do any sudo command:

sudo: effective uid is not 0, is sudo installed setuid root?

and password of root is unknown

How can I reset/modify root passwd and use this image?

Regards
Franco Spinelli
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on November 29, 2013, 03:39:37 AM
Maybe you can mount the filesystem on another computer and set root's password directly on the /etc/shadow file?

Or use chroot?
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: spin on November 30, 2013, 11:47:35 AM
Done.

In downloaded version there is an audio problem. No audio at all.

Now, after updating to 13.10 version, I have correct audio for output but no audio input device.
This happen with built-in sound card and also with an external USB sound card.

Any tip for this?

Regards

Franco Spinelli
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: isidoro on December 04, 2013, 06:14:09 PM
Hi Franco,
can you exactly describe what kind of command you typed to update?
maybe apt-get dist-upgrade ?

For audio settings I think may be usefull to upgrade kernel to the last one,
but maybe also an alsamixer stuff. I have got any mic to plug in
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: spin on December 05, 2013, 11:00:22 AM
Yes. apt-get dist-upgrade and now I am in 1310 version.

For audio setting Ubuntu is using Pulse.
Opening pavucontrol in setting tab you get only option for output (working) and no input device.
Same using alsamixer.

Same hardware is working using last Debian image from Olimex.

How can I upgrade to last kernel image?

Regards
Franco Spinelli
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: spin on December 07, 2013, 06:27:13 PM
I replay to myself.

Downloaded last kernel (3.4.67), compiled and installed on microSD.
Update packages to last version from Ubuntu 13.10

Still no audio input device:

arecord -l
**** List of CAPTURE Hardware Devices ****

arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server

With Debian "official" image all in working, also after upgrading to instable/testing repo.

An external USB soundcard is correctly used:

arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: LT3 [Muse Pocket LT3], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

It is a problem with script.bin.

Substituting original script.bin with script.bin downloaded as in instruction for "ultimate Debian SD card" all is now OK

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Regards

Franco Spinelli
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: jmss on January 21, 2014, 07:49:43 PM
Hi,

Do we need to load some kernel module to access the GPIO's with this distro?

I tried to export the GPIO's but I get:

root@a20:~# echo 1 > /sys/class/gpio/export
-su: echo: write error: Invalid argument

Thanks.
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: ikozic on February 26, 2014, 04:37:32 PM
A bit late, as there hasn't been any activity on this thread for a month now, but I have to ask this.
I'm trying to get this image as it seems that it has libc 2.17 - I need a rootfs which has libc >= 2.15, so I think it should fit. Debian is limited to 2.13, which is not suitable for me.

However, the download from google drive always breaks somewhere close to the end and google drive does not support resume. Is there any other link for this, as I think it has nothing to do with my internet connection (downloading from my company)?
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: codifies on February 26, 2014, 06:08:47 PM
if you are having problems with dd, you can always mount loopback and copy the files onto a pre formatted second partition (the first should be the vfat boot partition)

fdisk -l nameofimage.img

will tell you the start of the partition multiply this by the sector size to get the offset

you can then

mount -o loop,offset=xxx nameofimage.img anemptyfolder

where xxx is your calculated offset

you can then copy (cp -rfv /anemptyfolder/* /media/username/SDp2/ ) the files onto your pre formatted second sd partition

anyhow its how I did it with a different image onto a craptastic 4GB card that was actually 4x1000mb

in fact I don't know why people don't just make a tatball containing 2* tars... one for each partition....
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: ikozic on March 03, 2014, 11:57:23 AM
Google download still breaks somewhere at the end (tried several places so far). Could anyone re-upload?
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: skaag on April 03, 2014, 03:16:52 AM

It boots fine on my a20, I see the login screen etc.
however hardware acceleration doesn't seem to be working.

Can you give a step by step list of instructions on how to test that acceleration is working?

Thanks!
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: ikozic on April 03, 2014, 01:52:53 PM
Quote from: skaag on April 03, 2014, 03:16:52 AM

It boots fine on my a20, I see the login screen etc.
however hardware acceleration doesn't seem to be working.

Can you give a step by step list of instructions on how to test that acceleration is working?

Thanks!

May I ask how did you manage to download it - my download always breaks somewhere close to the end - do you have another link by any chance?
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: Ruler on December 07, 2014, 04:34:45 PM
Hi,

I'm having the same problem as ikozic. The download from googledocs breaks, Can anyone please, reupload or use a torrent? I'm very interested in trying this image.

Best regards,

Ruler
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: isidoro on December 08, 2014, 01:01:01 PM
Hi,
I just downloaded the file from my working desktop (@office) without any issues, maybe your connection has some  timeout. When home I will try to create a torrent file, never did it, I hope to learn (with mtorrent)

Best,
Isidoro
Title: Re: Unofficial Ubuntu 13 04 image with 3d Mali drivers
Post by: Ruler on December 08, 2014, 08:41:51 PM
Wow thanks that would be great! :)