Mele: Ubuntu 12.10 armhf base with nand install (v0)

DEPRECATED VERSION – NEW VERSION HERE

I’m posting here a running (base) version of ubuntu 12.10 armhf, kernel 3.0.42+.

Quick, Working and (really) Dirty EDITION.

Easy to install on the NAND and ready to be tuned.

I’m stopping before the Xorg stuff because i don’t want to play with it. I’m kind of allergic to it.

The kernel is the one i use (wemac tuned, sata ok but compiled with all the modules for GFX stuff).

 
To proceed:

  1. Download the file: ubuntu_12.10_armhf_mele.img.gz
  2. Unzip the file.
  3. DD it to your MMC. You will need a mmc > 1Go (> mean strictly).
    • From linux (put your SDCard and type ‘dmesg’, you will see something about mmcblk0 or sdX appear at the end of dmesg print. Use the device you see to replace <MMC_DEVICE>)
      dd if=<path_to_mele_ubuntu_12.10_armhf.img> of=/dev/<MMC_DEVICE>
    • From windows, you can use Google to find a “dd” replacement or take this one: http://www.chrysocome.net/rawwrite
  4. Plug an RJ45 ethernet cable in the Mele (connected to a network with DHCP), put the MMC in the slot… cross fingers and power the mele
  5. After 15 seconds, you should see appear the mele on your network (ping scan via nmap or watch on your router/dhcp server for the mele). The default mac is 00AA.1100.0001
  6. SSH to it. User: root, Password: root

This is it.
You can continue with a nand install to be free of the MMC.
Don’t be afraid of bricking the device. It’s nearly impossible (instructions after to restore Android).

NAND Install

  1. SSH as root on the mele
  2. If you want another MAC address or hostname, edit the file /root/MMC_TO_NAND.sh with vim or nano (first lines).
  3. Launch this (the mele will automatically reboot).
    /root/MMC_TO_NAND.sh
    And confirm the repartionning.
  4. Wait 15 seconds, and reconnect with ssh to the mele
  5. Launch once again the script:
    /root/MMC_TO_NAND.sh
  6. … wait …wait
  7. now it’s finished. You have a nice base ubuntu armhf on your mele’s nand
  8. REMOVE THE MMC and hard reboot

The mele is like any linux now. You can install Xorg:
apt-get install xubuntu-desktop
Or
apt-get install kubuntu-desktop

You can plug a sata disk in it. Activate the wireless. etc…

If you have your own distribution already running on MMC and want to install it to NAND.
You can check the stupid package here (your kernel should have CMDLINE with root=/dev/nandb in it)
install_to_nand.tgz

TO REVERT TO ANDROID ICS:

  1. Download the Android ICS Mele version available everywhere
  2. Uncompress the archive
  3. ‘DD’ it to the MMC
  4. boot the mele with the MMC in it
  5. wait until the light stopped blinking red/blue
  6. remove the MMC and you have a fresh Android
Tagged with: , ,
Posted in ubuntu
23 comments on “Mele: Ubuntu 12.10 armhf base with nand install (v0)
  1. ithanium2 says:

    Thanks a lot. I will try it as soon as I have some spare time.

  2. ithanium2 says:

    Ok. So I tried it.
    It works, as in I managed to make the SD card, boot from SD-card, copy linux to NAND and boot from NAND.
    Problem is that i cannot seem to get GUI to work. I installed the xorg desktop package, it spent alot of time configuring itself but nothing happens when i power on the mele, no signal either from HDMI or VGA.
    I tried connecting with SSH and startx but gives no screens found error.

  3. ithanium2 says:

    The lubuntu from miniand but not working at all. No SSH connect, not detected by router.

    I am seriously considering to give up. After all, no Mali driver support means no linux HTPC for mele.

    I will try to see if I can manage to work something with Android, otherwise I will pursue my goal of a small HTPC, home-use torrentbox/NAS/FTP somewhere else, as in a cheap 13inch laptop and have the portability bonus included.

    • guillaume says:

      i’ve got one working, had to clean up some code to make the driver compile with this new version.
      I will post it tomorrow.
      ubuntu 12.10 armhf with xorg + fluxbox?

    • pere says:

      hi, in android, in forocoches.com forum,
      there a little users comunity android mele a2000,
      the user ProgramingTool is updating every week his (debian sd card) for android , works well also.
      has samba,torrent,emule,ftp…. and you can

      here is the new thread,
      http://www.forocoches.com/foro/showthread.php?t=2986466
      thanks.

      Guillaume, thanks. I try t0 version and works, and finally used mele as samba,ftp,music subsonic server!!! ;)

      I’ll post you my results, i’m very happy with sata suport.

      -if I don’t want WIFI how can I disable in startup? I see
      -if I use ssh, and no monitor, is there a solution for have more memory? shows me 316MG of the real 512Mg (it seems mali driver,true?).

      good night

      • guillaume says:

        Hi Pere,

        Thanks for the link, i will active my translation ;)
        If you don’t want wifi, you can disable 8192cu from /etc/modules.
        If you don’t need Mali, of course, you could disable all gfx stuff (from the same file from ‘lcd’ to ‘mali_drm’) but you will not get all the memory back.
        For this you, will have to recompile a new kernel or simply use the debian i share on this website. This image have the last debian testing and a 3.0.42+ with the full network stack. It works nicely.

  4. Poincare says:

    PLEASE!! post the ubuntu 12.10 armhf with xorg image soon! Users are looking for an armhf image with a working GUI, either LXDE, XFCE, or in this care fluxbox. In any case, please share your valuable contribution to the community. Much appreciated!!

  5. ithanium2 says:

    Anything simple that works :)

  6. blast says:

    Want a progress bar working with DD?

    dd if=<PATH_TO_IMG> | pv -s `du -bc | cut -f 1 –output-delimiter=” ” | head -1` | dd of=/dev/<SD_CARD> bs=1M

  7. eliosn6989 says:

    Hi,
    I dont have a Mele PC…but a tablet with similar hardware.
    Ubuntu 12.10 armhf works perfectly on my SD card, but is slow (with Lubuntu-desktop).

    Can I install Ubuntu 12.10 to NAND (even if I dont have a Mele PC)?
    What NAND will be overwritten (nand or nanda or nandb…or nandh)?
    Will Lubuntu run faster?
    Will I be able to boot Android?

    • Virnik says:

      No, you have the same board as I do. Except that I have it inside laptop chasis. Trust me, you did nothing wrong. Problem is with the kernel module mali, which is not loadable, so even X does have mali driver library, it can’t use it’s potential. The same with GL ES libraries.

      I think that guillaume said something that he’ll may release fixed version with full X11 support and working mali module. What is your product name? Or what it was. Running from NAND makes system little bit faster, but not too much. But it is good to have it running from NAND, because then you can utilize your SD as /home, or in case of my partitioned SD, as /home, /usr and swap. Especially swap will make things better a little.

      How much RAM your tabled have?

      • eliosn6989 says:

        thanks, your answer is very useful :-) .
        I have 1 GB of RAM but lxde task manager recognize me only something like 350 MB of ram.
        I use only around 150 MB. as you said, the problem is mali module.

        • Virnik says:

          Exactly. For the ram, you should apply http://guillaumeplayground.net/share/linux-armhf-gfx-1G-3.0.42-3.tar.gz
          Then you’ll get something around ~960MB RAM. But problem with X performance without mali.ko loaded stays same…we’ll have to wait.

          • Virnik says:

            And … I missed something…if you are using newer then stock android uBoot, then you’ll have to modify /boot/linux/params file (/dev/nanda) the same way, change/add ‘mem=512′ parameter in cmdline to ‘mem=1024′

            then you’ll be fine, except for the mali.ko which will still be unable to allocate memory block, and thus not working

          • eliosn6989 says:

            Thank you. I have created a Swap partition of 695 MB and everything runs faster.
            ——
            I can’t find something like this: /boot/linux/params file (/dev/nanda) .
            Simply, I mount /dev/nanda and then there is a folder /linux but there isn’t any file called ‘params’.
            Can you explain me better?
            ——
            Another question. Is possible install Adobe flash player?

  8. mariano says:

    Hello everyone, can i use this steps for flashing mk802 nand flash?
    i cant do it with normal flashing tool called livesuit because i have OTG broken…excuse me if this doesnt work for that, thanks!

  9. Virnik says:

    Well, params isn’t there, because your uBoot do not support it. So you have to use uImage compiled with needed cmdline.

    • Virnik says:

      And no, no adobe flash on arm…flash is already obsolete, and html5 is pretty compatible with almost everything. just install chromium-browser

Leave a Reply