Mele: SD-card image, "Lui"

"Lui" is my codename for this build. Puppy built from Ubuntu Lucid Lynx armel binary packages. It is alpha quality. This is an SD-card image, for a 4GB card.

Download the image from here. The image file is only 87.1MB, includes all applications:

Further explanation:

Posted on 9 May 2012, 15:36


Posted on 9 May 2012, 20:11 by aarf
touch screen?
thanks for this downloading now. wondering if touch screen will be enabled.

Posted on 9 May 2012, 21:06 by eternal-sunshine
Lui on Mele A2000
Many thanks for this Barry.
Two stupid questions as I'm having problems getting it to run after following your directions.
Does it output to VGA (don't have an HDMI display?) What should I fornmat the SD card to? ext 2/3 or fat32?
Sorry for dumb questions.

Posted on 9 May 2012, 21:17 by aarf
fornmat the SD
there have been issues with dd and format before use. if i recall, best bet is fat32 which will then be overwritten. if i recall, do not use a blank card with no partitions .

Posted on 9 May 2012, 22:55 by eternal-sunshine
lui on Mele A2000
Thanks aarf,
The SD card was formatted fat32 in lupu 528. The dd seemed to complete (after 30 mins) and I get a 16MB fat16 partition and a 3.65GB ext4. Lupu can read the fat 16 but not the ext4. For the ext4 Gparted say "e2label no such device or address...couldnt find valid superblock." Stuck.

Posted on 10 May 2012, 5:45 by Ted Dog
4G SD = 3.62G
May have same issue as eternal-sunshine, my new 4G SD is listed via properties closer to 3.6G any fix to smallish ext4?

Posted on 10 May 2012, 8:37 by BarryK
"4GB" SD cards
You guys must be having problems with smaller SD cards. For example of card being /dev/sdb, this will tell you the size in bytes of the card:

# disktype /dev/sdb

The image file is 3,999,998,976 bytes.

Right now I am experimenting with a 1GB image, in which the second partition can be increased to fill the card.

Posted on 10 May 2012, 8:40 by BarryK
re VGA
I have only used the HDMI output, I don't know if VGA works.

Posted on 10 May 2012, 9:01 by eternal-sunshine
4GB SD cards
"You guys must be having problems with smaller SD cards".
No, I checked as you suggested and the card was well over the required size. In fact dd made a fat32 and an ext4 partiton and there was space left on the card.

Apart from the SD card issue I only have a VGA display so will have to wait a couple of days to try on an HDMI input.

Posted on 10 May 2012, 9:21 by eternal-sunshine
4 GB cards
Sorry, I meant to say Fat16 not Fat32 above.

Just to check, fdisk -l gives me a card size of 4011851776 bytes.
Gparted (in lupu 528) gives me:
Fat16 total 16MiB , used 4.21MiB
Ext4 totsl 3.65GiB , used 413.26MiB
Unallocated 71MiB.
If these seem about right then I guess it's a VGA issue.

Posted on 10 May 2012, 19:19 by BarryK
Re SD image
when you use 'dd', some things to do...

make sure card unmounted
# unxz --stdout mele-sd-4gb-lui-5.2.90.img.xz | dd of=/dev/sdb
# sync

...that final "sync" is important, to make sure filesystem buffers are flushed before you unplug the card. Otherwise, card may be corrupted.

Posted on 10 May 2012, 20:02 by mavrothal
Would it be possible to post the SDcard content as a tarball?
I got an XO-1.75 that has a ARMv7 Armada 610 SoC and I want to see if I can get it going after replacing the kernel etc.
(BTW it runs Fedora 17 very nicely)

Posted on 10 May 2012, 20:54 by BarryK
Tested it
I have verified that the online .img.xz file works. I downloaded it, wrote it to SD card, booted up on my Mele. yep, OK.

Posted on 11 May 2012, 3:10 by Ted Dog
Easy Fixed Sm 4G SD
Ran out of space during dd command (about 10000M short)

fsck.ext4 -f /dev/mmcblk0p2
resize2fs /dev/mmcblk0p2 3000M

All good now

Posted on 11 May 2012, 16:26 by etrenal-sunshine
Success with HDMI
Did a dd and then "sync" and now it works fine via HDMI but nothing from the VGA. Thanks for your help and great work Barry.

Posted on 11 May 2012, 18:14 by BarryK
We should be able to get VGA to work. It is specified in the file 'evb.bin' in the first partition (also called 'script.bin' in some online docs). This is a compiled configuration file, that is uncompiled with 'bin2fex' and compiled with 'fex2bin'. Uncompiled, it is a plain text file.

But, I don't know exactly how. In theory, probably it is possible to activate both HDMI and VGA.

Posted on 12 May 2012, 6:26 by Ted Dog
QEMU w/ SD img
Still waiting my meleA1000, found this link, running a SD image like LuiPuppy with QEMU also has a link to a script that put it all together.

Posted on 12 May 2012, 21:14 by Nik0
questions ?
Great job !
Just some beginner questions:
- I wrote the image to my SD, my Mele is still booting on Android. There is something else to do ? How to check if the SD is correct ?
- I also have nothing on the console port, what are the setting ? There is some stuff to adb first ?

many thanks !!!

Posted on 13 May 2012, 8:08 by BarryK
Re Mele boot SD
The Mele automatically detects a bootable SD card and boots from it. There is nothing that you have to change.

Posted on 13 May 2012, 14:36 by aarf
unmount b4 dd
remember to unmount the sd card before using the dd comanding to it.
doing it now.
hopefully in half hour will have it.

Posted on 13 May 2012, 14:39 by aarf
unxz comand is not in puppy421, but is in luci528.

Posted on 13 May 2012, 16:26 by aarf
Doesnt go past black screen when sdcard is in the slot.
Everything seemed to go ok . Including sync. Will be a while before I can face the icafe again to retrace and examine. My ears are too sensitive to suffer repeated doses too soon. My android aurora has crashed/reverted to all chinese so that too is stumbling block

Posted on 19 May 2012, 20:29 by aarf
tablet driver for lui
i am guessing here. i think lui doesnt have a driver for my screen. rational: i put the sdcard in and tried unsucessfully to boot, no progress past black screen. so i put the aurora tablet in its case and pulled it out some hours later and it was hot as though it had been running. it isnt hot if it is left for this long running android in standby. have been told the screen is the same as ipad2. going to look see what ubuntu debian have to offer

Posted on 20 May 2012, 2:48 by Steev
Re: tablet driver for lui
On the first partition of the sdcard, there is a file called "evb.bin". You must replace it with your tablet's own script.bin for the LCD to work.

script.bin is sort of a hardware config file for Allwinner A10 devices, it sets things like default output device, screen size, memory info, etc.

Since the Mele A1000 doesn't have a built-in LCD, it is set to output through HDMI by default.

You can extract your device's script.bin while Android is running like this:

adb shell mkdir /mnt/nanda
adb shell mount -t vfat /dev/block/nanda /mnt/nanda
adb pull /mnt/nanda/script.bin evb.bin

Posted on 20 May 2012, 6:41 by aarf
lui booting

thanks immensly for this pointer steev . sorry of if i missed this previously.
now i need to know how to open a terminal in android 4.0.3 so that i can paste your code.
before i commence reams of reading, is it possible to open a terminal without installing anything because the icecream has dropped out of my sandwitch and it now refuses to install anything and reverts to virgin on reboot. i may have to ask in an android forum for the contents of the bin for my aurora.
should also make an effort to cajole someone into letting me test their hdmi. i dont have a hdmi cable or tv.

Posted on 21 May 2012, 6:28 by aarf
lui by the long route
Am downloading the firmware from the download section at hopefully I can extract the needed bin file if not, reflash the internal sdcard to fix the broken android.

Posted on 21 May 2012, 8:09 by Steev
re: lui booting
You do not have to install anything on your tablet, those commands should actually be pasted in the terminal on your Linux PC while you have your tablet connected via USB.

You will need to have adb installed (comes with the Android SDK).

I have uploaded the adb binary here, just put it somewhere in your path (like /usr/local/bin) and make it executable:

Posted on 22 May 2012, 10:52 by Raffy
SD card and Genesi-USA
Just bought a common SD card (brand K**ngston) and the available bytes = 3,896,475,648 with 32,768 bytes used, for a total of 3,896,508,416 bytes. It shows in Win7 as a 3.62GB storage.

Take a look at these guys - they've done great work for ARMv7.

Posted on 22 May 2012, 13:49 by Ted Dog
Only Blue Mele
My Mele A1000 FINALLY arrived. Boots with LUI img (lots of tmp files), but we never get a screen. One of my two HDMI devices displays Invalid Format verses the generic no signal it normally gives. Does HDMI screens for North America differ from Australia? Hope its a easy fix.

Posted on 22 May 2012, 17:06 by BarryK
re hdmi invalid format
Ted Dog,
hdmi is an international standard.

Someone on the arm-netbook mail list reported the same problem. I don't know what the outcome of that was.

Posted on 23 May 2012, 13:17 by aarf
lui excuses and failures
it is not that i have forgotten. it is that i am reluctant to post all my excudes and failures here and clog up this blog. can we have a murga thread?

Posted on 24 May 2012, 12:16 by aarf
lui progress
Steev's code above extracts the evb.bin from aurora, then copied the new eve.bin into mele fat16 partition to replace the original there . booted and a backlight came on followed by a faint grey to blue vertical venitian blind.
thats all didnt go past that.:)

Posted on 28 May 2012, 16:10 by bosse
Lui sound questions
I want to run a mele or another A8 computer as a standalone media player for a exotic surround sound format named Ambisonic.
I wonder if Lui is complete enough before comitting to buy a mele.

The thing i need is 8 channel HDMI sound via Jack

A simple multi channel sound player:

A Jack based Ambisonic decoder:

How far from whit nirvana are we? :-)

Posted on 28 May 2012, 23:38 by Ted Dog
No Sound on my MeLe
I'd hold off on exotic sound ideas until AFTER normal sound has been worked out. We have a MeLe 1000 thread on forum. Would you place file links there I'll see if they at least compile.

Posted on 3 Jun 2012, 9:36 by Raffy
Block count from GParted
I reduced the size of the ext4 partition and got 6857695 as the last block (of default bs=512 bytes). Perhaps this is a safe number for distributing ARMed Puppy for 4GB flash cards? (That is, knowing that there are differences in writable space among them.)

Posted on 12 Jun 2012, 5:07 by Ribuck
Resize Screen
Hi, I just wondered if there is a way to re-size the screen, as it's cropping it quite a bit on my tv, so i can see the screen properly.

Posted on 24 Sep 2012, 13:54 by madanadam
.config file
Can you give .config file for this image's kernel?
I will recompile with mtd support
I need it for restoring my tablet's nandb drive.

Posted on 24 Sep 2012, 17:25 by BarryK
Re kernel .config
Look in /etc/modules in the Lui image file.

Posted on 24 Sep 2012, 19:33 by madanadam
.config file
There is only firmware.dep files in /etc/modules

Posted on 24 Sep 2012, 23:10 by BarryK
Re .config
I don't recall, but I must have just used a pre-existing kernel. If you go to the Mele doc/tut pages, somewhere there is a Ubuntu Lucid SD card image, which is what I got, and took the kernel and modules out of it.
So, I don't know the .config file, but perhaps the kernel has been configured to have the .config builtin and available in /proc -- you would have to find out how to access that.

Posted on 24 Sep 2012, 24:00 by madanadam
Thanks for reply. I had tought that you compile your own kernel.