Computing & hacking

Mele headless: Debian wheezy (aka testing) armhf with nand install (v1)

Headless Debian Wheezy armhf image (kernel 3.0.42+) for the Mele A2000: full network stack, NFS server, easy NAND install and configurator.

By ·· 2 min read· updated

#allwinner a10#debian#a10#mele#nand

I’m posting here a running (base) version of debian wheezy armhf (V1), kernel 3.0.42+.
HEADLESS – Full network stack (netfilter, vlan, …) – NFS server – eth0 – wlan0

Easy to install on the NAND and ready to be tuned.
I added an easy configurator in it (explain at the end of the post).

The kernel is the one i use (wemac tuned, sata ok).

 
To proceed:

  1. Download the file: debian_wheezy_armhf_v1_mele.img.gz (MD5: ccdc08dd71bdd927f168b29fc2f8e83e)
  2. Unzip the file.
    Linux: gunzip debian_wheezy_armhf_v1_mele.img.gz
  3. DD it to your MMC. You will need a mmc >= 1Go.
  • 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_debian_wheezy_armhf_v1.img> of=/dev/<MMC_DEVICE> bs=1M
  • From windows, you can use any “dd” for windows or choose one of these:
  1. If you want to use SSH, plug an RJ45 ethernet cable in the Mele (connected to a network with DHCP)
  2. Put the MMC in the slot… cross fingers and power the mele
  3. After 15 seconds, you should see a fast led flash Red/Blue. It means the mele has boot properly. You will see the mele on your network (ping scan via nmap or watch on your router/dhcp server for the mele). The default mac is 000A.2000.1000
  4. You can now SSH to it. User: root, Password: root

Highly recommanded:
# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key # ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

# passwd # passwd user OR # deluser user

# echo "<MY_HOSTNAME>" > /etc/hostname

And more:

  • edit /etc/ssh/sshd_config
    Change: UsePAM no
    Change: PasswordAuthentication no (and use authorized_keys to connect)
    Change: PermitRootLogin no (and create your own user with password or authorized_keys)
  • Firewall the mele with iptables.
  • etc…

For wifi:
To scan AP around:
ifconfig wlan0 up iwlist wlan0 scan

For sata:
modprobe sw_ahci_platform
Run this for permanent sata:
echo "sw_ahci_platform" >> /etc/modules

And more:
Also, i have add a funny program to it to easy some tasks:
Configure Change mac address, Install to nand, configure leds
Pimp my Mele (screenshot and details).
Log as root and type PIMP_MY_MELE

This is it!