to UNLOCK your bootloader,enter the following:
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796
I would flash the 3.06 hboot first before this, but it probably won't make a difference.
quoted from this thread http://forum.xda-developers.com/show...php?p=47769994