[HD Mini Android Development] munjeni:
For nightly versions, use this initrd, tested! Light sensor working with gb! To get working audio and other things you need adb shell chmod -R 0666 /dev/* If you want your own version just compile it. Dont forget to apply permisions cm_liberty_full-xxx.zip\META-INF\com\google\android\updater_script

For web developers here is my dirty perm generator but working

<?php

//error_reporting(E_ALL);

$r = file('updater-script');
$c = array();
$p = array();
$d = 0;
$rrr = "";
$sta = "";
$append = "";

for ($i=0; $i<count($r); $i++)
{
if (substr(trim($r[$i]), 0, 8) == "\"/system" || strstr($r[$i], "symlink"))
{
if (strstr($r[$i], "symlink")) $d+=1;
$c[$d][] = $r[$i];
}

if (strstr($r[$i], "set_perm"))
{
$p['perm'][] = $r[$i];
}
}

for ($j=0; $j<=count($c); $j++)
{
for ($l=0; $l<count($c[$j]); $l++)
{
$out = str_replace(" ", "", trim($c[$j][$l]));
$out = str_replace("\r\n", "", $out);
$out = str_replace("\"", "", $out);
$out = str_replace("(", "", $out);
$out = str_replace(")", "", $out);
$out = str_replace(";", "", $out);

if (strstr($out, "symlink"))
{
$sta = substr($out, 7, strpos($out, ",")-7);
$append = "\n" . "/bin/ln -s " . $sta . " ";
}

$links = str_replace($sta, "", $out);
$links = str_replace(",", $append, $links);
if (strstr($links, "/system/xbin/") && strstr($links, "symlink"))
$cd = "\ncd xbin";
else if (strstr($links, "/system/bin/") && strstr($links, "symlink"))
$cd = "\ncd ../bin";
else $cd = "";
$links = str_replace("symlink", "", $links);
$links = str_replace("/system/xbin/", "", $links);
$links = str_replace("/system/bin/", "", $links);
$links = $cd . $links;
echo $links;
}
}

echo "\n";
$rth = array();

for ($l=0; $l<count($p['perm']); $l++)
{
$out = $p['perm'][$l];

if (!strstr($out, "/tmp"))
{
$rth[$l] = explode("\"", $out);
}
}

echo "cd ..\n";
$final = array();

foreach ($rth as $index => $perm)
{
if (strstr($perm[0], "set_perm("))
{
$perm[0] = str_replace("set_perm(", "", $perm[0]);
$perm[0] = trim(str_replace(" ", "", $perm[0]));
list ($user, $group, $permision) = explode (",", $perm[0]);
if ($user == "0") $user = "root";
if ($group == "0") $group = "root";
$final[$index] = "/bin/chown " . $user . ":" . $group . " " . str_replace("/system/", "", $perm[1]) . "\n";
$final[$index] .= "/bin/chmod " . substr($permision, -4) . " " . str_replace("/system/", "", $perm[1]) . "\n";
}

if (strstr($perm[0], "set_perm_recursive("))
{
$perm[0] = str_replace("set_perm_recursive(", "", $perm[0]);
$perm[0] = trim(str_replace(" ", "", $perm[0]));
list ($user2, $group2, $permision2, $permision2_2) = explode (",", $perm[0]);
if ($user2 == "0") $user2 = "root";
if ($group2 == "0") $group2 = "root";
$final[$index] .= "/bin/chown -R " . $user2 . ":" . $group2 . " " . str_replace("/system/", "", $perm[1]) . "\n"
. "/bin/find " . str_replace("/system/", "", $perm[1]) . " -type d -exec chmod " . $permision2 . " {} ';'\n"
. "/bin/find " . str_replace("/system/", "", $perm[1]) . " -type f -exec chmod " . $permision2_2 . " {} ';'\n";
}
}

foreach ($final as $finout)
{
echo str_replace("/system", ".", $finout);
}

//print_r($final);

?>

How to create system.ext2?

mkdir /tmp/ginger
cd /tmp/ginger

next step:

extract unyaffs to /tmp/ginger

download gingerbread nightly and extract it to /tmp/ginger

next step:

chmod a+x /tmp/ginger/unyaffs
dd if=/dev/zero of=system.ext2 bs=131072 count=1500
mkfs.ext2 system.ext2
mkdir img
mount -o loop system.ext2 img
cd img
../unyaffs ../system.img

apply all permisions!

cd xbin
/bin/ln -s busybox [
/bin/ln -s busybox [[
/bin/ln -s busybox arp
/bin/ln -s busybox ash
/bin/ln -s busybox awk
/bin/ln -s busybox basename
/bin/ln -s busybox bbconfig
/bin/ln -s busybox brctl
/bin/ln -s busybox bunzip2
/bin/ln -s busybox bzcat
/bin/ln -s busybox bzip2
/bin/ln -s busybox cal
/bin/ln -s busybox cat
/bin/ln -s busybox catv
/bin/ln -s busybox chgrp
/bin/ln -s busybox chmod
/bin/ln -s busybox chown
/bin/ln -s busybox chroot
/bin/ln -s busybox cksum
/bin/ln -s busybox clear
/bin/ln -s busybox cmp
/bin/ln -s busybox cp
/bin/ln -s busybox cpio
/bin/ln -s busybox cut
/bin/ln -s busybox date
/bin/ln -s busybox dc
/bin/ln -s busybox dd
/bin/ln -s busybox depmod
/bin/ln -s busybox devmem
/bin/ln -s busybox df
/bin/ln -s busybox diff
/bin/ln -s busybox dirname
/bin/ln -s busybox dmesg
/bin/ln -s busybox dnsd
/bin/ln -s busybox dos2unix
/bin/ln -s busybox du
/bin/ln -s busybox echo
/bin/ln -s busybox ed
/bin/ln -s busybox egrep
/bin/ln -s busybox env
/bin/ln -s busybox expr
/bin/ln -s busybox false
/bin/ln -s busybox fdisk
/bin/ln -s busybox fgrep
/bin/ln -s busybox find
/bin/ln -s busybox fold
/bin/ln -s busybox free
/bin/ln -s busybox freeramdisk
/bin/ln -s busybox fuser
/bin/ln -s busybox getopt
/bin/ln -s busybox grep
/bin/ln -s busybox gunzip
/bin/ln -s busybox gzip
/bin/ln -s busybox head
/bin/ln -s busybox hexdump
/bin/ln -s busybox id
/bin/ln -s busybox ifconfig
/bin/ln -s busybox insmod
/bin/ln -s busybox install
/bin/ln -s busybox ip
/bin/ln -s busybox kill
/bin/ln -s busybox killall
/bin/ln -s busybox killall5
/bin/ln -s busybox length
/bin/ln -s busybox less
/bin/ln -s busybox ln
/bin/ln -s busybox losetup
/bin/ln -s busybox ls
/bin/ln -s busybox lsmod
/bin/ln -s busybox lspci
/bin/ln -s busybox lsusb
/bin/ln -s busybox lzop
/bin/ln -s busybox lzopcat
/bin/ln -s busybox md5sum
/bin/ln -s busybox mkdir
/bin/ln -s busybox mke2fs
/bin/ln -s busybox mkfifo
/bin/ln -s busybox mkfs.ext2
/bin/ln -s busybox mknod
/bin/ln -s busybox mkswap
/bin/ln -s busybox mktemp
/bin/ln -s busybox modprobe
/bin/ln -s busybox more
/bin/ln -s busybox mount
/bin/ln -s busybox mountpoint
/bin/ln -s busybox mv
/bin/ln -s busybox netstat
/bin/ln -s busybox nice
/bin/ln -s busybox nohup
/bin/ln -s busybox nslookup
/bin/ln -s busybox ntpd
/bin/ln -s busybox od
/bin/ln -s busybox patch
/bin/ln -s busybox pgrep
/bin/ln -s busybox pidof
/bin/ln -s busybox ping
/bin/ln -s busybox pkill
/bin/ln -s busybox printenv
/bin/ln -s busybox printf
/bin/ln -s busybox ps
/bin/ln -s busybox pwd
/bin/ln -s busybox rdev
/bin/ln -s busybox readlink
/bin/ln -s busybox realpath
/bin/ln -s busybox renice
/bin/ln -s busybox reset
/bin/ln -s busybox rm
/bin/ln -s busybox rmdir
/bin/ln -s busybox rmmod
/bin/ln -s busybox route
/bin/ln -s busybox run-parts
/bin/ln -s busybox sed
/bin/ln -s busybox seq
/bin/ln -s busybox setsid
/bin/ln -s busybox sh
/bin/ln -s busybox sha1sum
/bin/ln -s busybox sha256sum
/bin/ln -s busybox sha512sum
/bin/ln -s busybox sleep
/bin/ln -s busybox sort
/bin/ln -s busybox split
/bin/ln -s busybox stat
/bin/ln -s busybox strings
/bin/ln -s busybox stty
/bin/ln -s busybox swapoff
/bin/ln -s busybox swapon
/bin/ln -s busybox sync
/bin/ln -s busybox sysctl
/bin/ln -s busybox tac
/bin/ln -s busybox tail
/bin/ln -s busybox tar
/bin/ln -s busybox tee
/bin/ln -s busybox telnet
/bin/ln -s busybox test
/bin/ln -s busybox tftp
/bin/ln -s busybox time
/bin/ln -s busybox top
/bin/ln -s busybox touch
/bin/ln -s busybox tr
/bin/ln -s busybox traceroute
/bin/ln -s busybox true
/bin/ln -s busybox tty
/bin/ln -s busybox tune2fs
/bin/ln -s busybox umount
/bin/ln -s busybox uname
/bin/ln -s busybox uniq
/bin/ln -s busybox unix2dos
/bin/ln -s busybox unlzop
/bin/ln -s busybox unzip
/bin/ln -s busybox uptime
/bin/ln -s busybox usleep
/bin/ln -s busybox uudecode
/bin/ln -s busybox uuencode
/bin/ln -s busybox vi
/bin/ln -s busybox watch
/bin/ln -s busybox wc
/bin/ln -s busybox wget
/bin/ln -s busybox which
/bin/ln -s busybox whoami
/bin/ln -s busybox xargs
/bin/ln -s busybox yes
/bin/ln -s busybox zcat
/bin/ln -s iwmulticall iwconfig
/bin/ln -s iwmulticall iwgetid
/bin/ln -s iwmulticall iwlist
/bin/ln -s iwmulticall iwpriv
/bin/ln -s iwmulticall iwspy
cd ../bin
/bin/ln -s toolbox cat
/bin/ln -s toolbox cmp
/bin/ln -s toolbox date
/bin/ln -s toolbox dd
/bin/ln -s toolbox dmesg
/bin/ln -s toolbox getevent
/bin/ln -s toolbox getprop
/bin/ln -s toolbox hd
/bin/ln -s toolbox id
/bin/ln -s toolbox ifconfig
/bin/ln -s toolbox iftop
/bin/ln -s toolbox insmod
/bin/ln -s toolbox ioctl
/bin/ln -s toolbox ionice
/bin/ln -s toolbox kill
/bin/ln -s toolbox log
/bin/ln -s toolbox lsmod
/bin/ln -s toolbox nandread
/bin/ln -s toolbox netstat
/bin/ln -s toolbox newfs_msdos
/bin/ln -s toolbox notify
/bin/ln -s toolbox printenv
/bin/ln -s toolbox ps
/bin/ln -s toolbox reboot
/bin/ln -s toolbox renice
/bin/ln -s toolbox rmdir
/bin/ln -s toolbox rmmod
/bin/ln -s toolbox route
/bin/ln -s toolbox schedtop
/bin/ln -s toolbox sendevent
/bin/ln -s toolbox setconsole
/bin/ln -s toolbox setprop
/bin/ln -s toolbox sleep
/bin/ln -s toolbox smd
/bin/ln -s toolbox start
/bin/ln -s toolbox stop
/bin/ln -s toolbox sync
/bin/ln -s toolbox top
/bin/ln -s toolbox uptime
/bin/ln -s toolbox vmstat
/bin/ln -s toolbox watchprops
/bin/ln -s toolbox wipe
cd ..
/bin/chown -R root:root .
/bin/find . -type d -exec chmod 0755 {} ';'
/bin/find . -type f -exec chmod 0644 {} ';'
/bin/chown -R root:2000 bin
/bin/find bin -type d -exec chmod 0755 {} ';'
/bin/find bin -type f -exec chmod 0755 {} ';'
/bin/chown root:3003 bin/netcfg
/bin/chmod 2750 bin/netcfg
/bin/chown root:3004 bin/ping
/bin/chmod 2755 bin/ping
/bin/chown root:2000 bin/run-as
/bin/chmod 6750 bin/run-as
/bin/chown 1001:1005 etc/AudioPara4.csv
/bin/chmod 0444 etc/AudioPara4.csv
/bin/chown -R 1002:1002 etc/bluetooth
/bin/find etc/bluetooth -type d -exec chmod 0755 {} ';'
/bin/find etc/bluetooth -type f -exec chmod 0440 {} ';'
/bin/chown root:root etc/bluetooth
/bin/chmod 0755 etc/bluetooth
/bin/chown 1000:1000 etc/bluetooth/auto_pairing.conf
/bin/chmod 0640 etc/bluetooth/auto_pairing.conf
/bin/chown 3002:3002 etc/bluetooth/blacklist.conf
/bin/chmod 0444 etc/bluetooth/blacklist.conf
/bin/chown 1002:1002 etc/dbus.conf
/bin/chmod 0440 etc/dbus.conf
/bin/chown 1014:2000 etc/dhcpcd/dhcpcd-run-hooks
/bin/chmod 0550 etc/dhcpcd/dhcpcd-run-hooks
/bin/chown -R root:2000 etc/init.d
/bin/find etc/init.d -type d -exec chmod 0755 {} ';'
/bin/find etc/init.d -type f -exec chmod 0750 {} ';'
/bin/chown root:root etc/init.d
/bin/chmod 0755 etc/init.d
/bin/chown root:2000 etc/init.goldfish.sh
/bin/chmod 0550 etc/init.goldfish.sh
/bin/chown root:root etc/install-recovery.sh
/bin/chmod 0544 etc/install-recovery.sh
/bin/chown -R root:root etc/ppp
/bin/find etc/ppp -type d -exec chmod 0755 {} ';'
/bin/find etc/ppp -type f -exec chmod 0555 {} ';'
/bin/chown -R root:2000 vendor
/bin/find vendor -type d -exec chmod 0755 {} ';'
/bin/find vendor -type f -exec chmod 0644 {} ';'
/bin/chown -R root:root vendor/firmware
/bin/find vendor/firmware -type d -exec chmod 0755 {} ';'
/bin/find vendor/firmware -type f -exec chmod 0644 {} ';'
/bin/chown root:2000 vendor/firmware
/bin/chmod 0755 vendor/firmware
/bin/chown -R root:2000 xbin
/bin/find xbin -type d -exec chmod 0755 {} ';'
/bin/find xbin -type f -exec chmod 0755 {} ';'
/bin/chown root:root xbin/hcitool
/bin/chmod 6755 xbin/hcitool
/bin/chown root:root xbin/librank
/bin/chmod 6755 xbin/librank
/bin/chown root:root xbin/procmem
/bin/chmod 6755 xbin/procmem
/bin/chown root:root xbin/procrank
/bin/chmod 6755 xbin/procrank
/bin/chown root:root xbin/su
/bin/chmod 6755 xbin/su
/bin/chown root:root xbin/tcpdump
/bin/chmod 6755 xbin/tcpdump

next step:

cd ..
umount img

done.

ADB for Fedora x86_64 users... in attachment.

If this post is not useful for you, SKIP IT!!!

If this post is interested to you, ENJOY!!!

If you do not want to know how beautiful Gingerbread is, SHUT UP AND SKIP ALL!!!

If you realy want to make your first image, THIS IS ALL FOR YOU!!!

Good luck GUYS AND ENJOY!