There seems to be demand for a minimal headless debian wheezy image for the Hackberry. So here is a pre-built image that I've created using this armhf rootfs and compiling a 3.0.36 kernel. This should easily fit on a 1GB SD card as its fairly light weight however the pre-built image is currently for a 4GB card. You can dd the image to a smaller SD card and subsequently mend the ext4 partition. Image works on the 1Gb model haven't got a 512Mb version to test with. To deploy the image to your SD card use the following commands, you can find the <device> of your SD card by 'df -h'.
gunzip debian_wheezy_3.0.36.img.gz
dd if=debian_wheezy_3.0.36.img of=/dev/<device>
sudo sync
Once the imaging is complete the SD card will contain a small fat16 partition for booting and the remaining space allocated to the rootfs (ext4). You change the debian configuration as you like before booting. The default image is configured for eth0 (dhcp) and ssh enabled. You can configure eth0 to a static ip address by editing /etc/network/interface. It is possible to enable wifi by editing /etc/modules to load 8192cu.ko, configuring /etc/network/intefaces for wlan0.
Note: I have created a new uboot based on the lastest source, the two files sunxi-spl.bin and u-boot.bin can be download from here. Patch these to the SD card image:
sudo dd if=sunxi-spl.bin of=/dev/<drive> bs=1024 seek=8
sudo dd if=u-boot.bin of=/dev/<drive> bs=1024 seek=32
sudo sync
Now boot the Hackberry with the SD card if all is ok you will need to find the ip address of the Hackberry and ssh as root (password is password) eg:
ssh root@<ip address>
You should now be presented with a shell
Linux (none) 3.0.36+ #39 PREEMPT Sun Sep 23 14:52:17 BST 2012 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jan 1 00:00:50 2010 from mtx512-inspiron-620.lan
root@(none):~#
gunzip debian_wheezy_3.0.36.img.gz
dd if=debian_wheezy_3.0.36.img of=/dev/<device>
sudo sync
Once the imaging is complete the SD card will contain a small fat16 partition for booting and the remaining space allocated to the rootfs (ext4). You change the debian configuration as you like before booting. The default image is configured for eth0 (dhcp) and ssh enabled. You can configure eth0 to a static ip address by editing /etc/network/interface. It is possible to enable wifi by editing /etc/modules to load 8192cu.ko, configuring /etc/network/intefaces for wlan0.
Note: I have created a new uboot based on the lastest source, the two files sunxi-spl.bin and u-boot.bin can be download from here. Patch these to the SD card image:
sudo dd if=sunxi-spl.bin of=/dev/<drive> bs=1024 seek=8
sudo dd if=u-boot.bin of=/dev/<drive> bs=1024 seek=32
sudo sync
Now boot the Hackberry with the SD card if all is ok you will need to find the ip address of the Hackberry and ssh as root (password is password) eg:
ssh root@<ip address>
You should now be presented with a shell
Linux (none) 3.0.36+ #39 PREEMPT Sun Sep 23 14:52:17 BST 2012 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jan 1 00:00:50 2010 from mtx512-inspiron-620.lan
root@(none):~#
Free memory is currently showing at around 800K:
root@(none):~# free -m
total used free shared buffers cached
Mem: 814 30 784 0 2 12
-/+ buffers/cache: 15 799
Swap: 0 0 0
We can probably release more memory by removing unwanted kernel modules (eg mali) since this is a headless image.