hello, i am trying to port gnu linux on htc evo 3d, i need some info about about boot

Denis 'GNUtoo' Carikli GNUtoo at no-log.org
Wed Mar 14 21:19:41 UTC 2012


> I am trying to use debian armhf on my htc evo 3d gsm. I get kernel source 
for htcdev and comilex it successfully, and install debian on the second 
partition of sdcard which is showed as /dev/block/mmcblk1p2.
I think you're on the wrong mailing list, this mailing list is about a 100% 
free software android.

possible right mailing list are: 
mobile-linux-discuss at linuxtogo.org (focus on qualcomm htc phones)
http://www.shr-project.org or http://www.freesmartphone.org/ are also project 
where people like me were involved in porting GNU/Linux on qualcomm htc 
phones. fso can provides you a middleware for handling hardware specific 
things on top of debian(such as telephony, power management, etc...).

>I want to know,how to create a initramfs dor it, the normal can't work, it 
seems the SPL hboot, which  will mount /system on initramfs stop me boot into 
sdcard.
you don't need an initramfs:
 * generate a fake initramfs like that:
echo -n | cpio -o -H newc | gzip > empty.cpio.gz
 * generate a fastboot image with mkbootimg(the freesmartphone project has one 
that is converted to autotools, else you can use the replicant one which is 
free but require to recompile the full android sources to be able to recompile 
it) like that:
mkbootimg --kernel zImage \
              --ramdisk empty.cpio.gz \
              --cmdline "root=/dev/mmcblk1p2 rw rootwait noinitrd 
fbcon=rotate:1" \
              --output zImage.fastboot
 * use fastboot to flash or load it without flashing

Note that you should look at the arguments that android uses to be sure a --
base argument is not needed in mkbootimg.

To find that out we have an unmkbootimg in freesmartphone in the utility git 
(tools/mkbootimg/unbootimg.c )

Denis.


More information about the Replicant mailing list