yashsingh1/xdaforums huggingface dataset:
[HD Mini Android Development] goldenorb:
hi sp3dev,

i want to make some tests with lk bootloader

i sucessfully compiled lk.bin from your source.

How to create a .nb image that can be flashed via fastboot ?

thanks so far
[HD Mini Android Development] munjeni:
are you sure that you did not forget to post this on one of the other threads ?
[HD Mini Android Development] sp3dev:
I would suppose cloning

https://gitorious.org/lk-msm7200a-htc-wince/tinboot-for-lk-xda

and using hdmini_raw branch would be enough. just compile mkhtcimage.c to mkhtcimage and run the mkraw.sh.. and don't forget to edit scripts and add correct paths
[HD Mini Android Development] youkid90:
haha, he is interesting, I am wondering which thread does he point :D
[HD Mini Android Development] LEO K:
hey munjeni

I got this log from your raw-recovery.img but for dd command i couldn`t do this because I use dd in windows and i got I\O error :(

am i do it in linux ?
[HD Mini Android Development] schlund:
of course i will, i am going to prepare the sources

but we will need more space on system partition, up to 140 MB

and before we can use a cm7 update.zip we have to make recovery working,

i am not experienced in this, but the one i have made (similar to liberty) reboots as soon as you press power button to enter one of the menus. I can see the new menu for some milliseconds before the device is rebooting.

Atm i have no idea what causes this behavior, have tried different kernels.

anyone else got that problem, or has any idea ?

EDIT: new out img with increased system partition added
[HD Mini Android Development] sp3dev:
CM7 should automatically generate you the recovery binary. And you can use adb to take dmesg if it doesn't work. When I tried munjeni's recovery with my kernel, there were some messages about mtd or yaffs, will need to look into it.
[HD Mini Android Development] munjeni:
Thanks mate! No, you not need linux if you have working windows adb.exe! Please try again to dump mtd4 but using this command:

adb shell cat /dev/block/mtdblock4 > mtd4.bin

If succes, mtd4.bin will be in same folder where your adb.exe
[HD Mini Android Development] ToughGuy:
You are right i got same I\O error!

---------- Post added at 03:26 AM ---------- Previous post was at 03:12 AM ----------

Same problem.:(

cat /dev/block/mtdblock4
cat: read error: I/O error
/dev/block # ls
loop0 loop3 loop6 mmcblk0p1 mtdblock2 platform
loop1 loop4 loop7 mtdblock0 mtdblock3
loop2 loop5 mmcblk0 mtdblock1 mtdblock4
[HD Mini Android Development] sp3dev:
Ok, I have pushed some commits to my kernel branch. Namely, ported YAFFS2 from 2.6.35.7 android tree. Now it does not crash and liberty recovery works with my kernel.

Image here - http://www.mediafire.com/?5zkx7xh5ysg7q0u
[HD Mini Android Development] munjeni:
Hey, I playing with recovery source, got an idea, inplemented some code to recovery with an easy way to get touchscreen command instead of pressing buttons!!! Curently I compiled only with x press events (print x position on your screen on touch press) but my plan is to implement it to photon and hd2 recovery soon! If someone interested to try here is cm7 recovery for photon with touch screen beta -> http://www.multiupload.com/EC7G7D6T10 :)
[HD Mini Android Development] sp3dev:
Ok, so any liberty recovery reboots on selecting a menu item (I remapped volume keys instead of power button and still it fails).

I think we should add basic charging support to LK (not really necessary) and instead of using liberty recovery, with proprietary charger binaries, base photon device folder on dream-sapphire or kovsky (I have my repo at https://github.com/astarasikov/device_kovsky, and, IMHO, the directory structure there is a bit better than in most cm devices)
[HD Mini Android Development] munjeni:
I think it reboots becouse some nand partition needed for recovery is not mounted?
[HD Mini Android Development] sp3dev:
whatever the reason, it should not reboot on selecting *any* menu item. if it does, it means that there's ****ty code inside. and I really wonder what to do now since I don't want to compile the whole cm7 tree but want to try flashing liberty's update.zip as is and photon kernel later

---------- Post added 31st December 2011 at 12:01 AM ---------- Previous post was 30th December 2011 at 11:56 PM ----------

Ok, used cwm 2.5.0.1 from http://xdaforums.com/showthread.php?t=1159237 - seems to enter menus. Time to fake photon as liberty ;)

Hum. liberty image booted once if manually bind-mounted cache to /data/cache. We need to build rom without using cache partition. Even though we have one, it is too small for cm7. And we're using last 32 mb of nand for cache because this area is formatted on reboot. If we need a larger cache, we'd have to cut userdata. So better not use cache at all.

It all means, we just need to build cm7 or cm6, at least in the form of recovery image and update.zip. The kernel side is done - mtd and yaffs works. The only thing broken is battery and I don't know what to do. Will probably have to disassemble nk.exe
[HD Mini Android Development] swissly:
If I may make a wish as a user without developer skills: I would prefer a solution based on the original hardware coulomb counter and not something like in the SD builds. This solution is not working properly for me... :(

And at this point a big thank you to all the developers doing a great job here. I am positive again that we will have a working NAND solution one day. ;)
[HD Mini Android Development] sp3dev:
some crap

I'm still waiting for schlund to build us a clean image

Meanwhile, I've taken recovery and cm7 image from liberty, replaced liberty with photon in props, and added acoustic and ril wrapper.

So here we go

Latest LK with large (160Mb) system partition

http://www.mediafire.com/?33luaodpb0cj44v

recovery for photon

http://www.mediafire.com/?8q7quffkptzaz7z

update zip

http://www.mediafire.com/?frj6n38eb61aygg

to install

fastboot flash lkbootloader out.nb

fastboot flash recovery recovery-photon.img

fastboot reboot

when the text appears, hold volume up to boot into recovery

in recovery, first go to partitions menu and format data, cache and system

then, go to install zip file and choose the update zip on the micro sd card.

then reboot and wait for it to boot up.

Issues:

1. it is butchered manually as opposed to compiling from source

2. i don't know whether gprs works

3. wifi probably freezes the device (need someone to point me to the latest kernel driver)

4. battery always displays "20%". Needs a kernel fix

But yeah, you can boot without microsd now
[HD Mini Android Development] schlund:
great,

yeah i know ur waiting, but i have to apply some patches to the kernel to make several things working with cm7.

but if you just want to test if its working at all, i can upload "how it is", it should at least boot into android :)
[HD Mini Android Development] munjeni:
You are great! Hey, what about cm7 recovery, is it ok? I going to prepare recovery to touch recovery, here is some bacgrounds I done allready and want to finish touch recovery in next fev days
[HD Mini Android Development] sp3dev:
Maybe I'll just send you a pull request on github with all my recent kernel changes and you'll work without hurry on your own? I mean, we have a working prototype now and everything (except, perhaps, battery) can be finished without me. I don't really have time or will to work on this project, because I have a lot of other projects and I think I need to get rid of xperia and photon since I'm only using my sgs2 now.

But anyway, I want to see a fully working rom soon. With battery, FM Radio and everything. So I can sell my photon for a liberty ;)
[HD Mini Android Development] schlund:
you have really shaked a leg these days :)

i dont have that much free time at all and try to follow / test your process as fast as it is possible for me.

i have just tested your new recovery and can confirm that it is working as it is intended to be. i have also taken a look at your kernel changes.

i have a mountain of partly finished things now that i have to put together :)

as i can see for now, i can confirm, the job with bootloader is almost done now.

its up on us to fix up the rest of the kernel and give the people their release they are waiting for :)

i think i can speak for the whole community: THANK YOU sp3dev for the work you have done! thanks!

we weren't able to ;)
[HD Mini Android Development] tzacapaca:
THANK YOU sp3dev

you just made my dream(and not only) come true :D

we have been waiting for this almost a year,but better later than never

you are our Superman ;)
[HD Mini Android Development] NoxinHH:
Yes, thank you very very much! Happy New year, sp3dev!
[HD Mini Android Development] peter08po:
Really thank for your effort! ;) I appreciate your work!! ;)

But there's another problem came out...

The phone keeps rebooting itself after installing CM7 (meanwhile, the recovery works well)

Any idea?
[HD Mini Android Development] tzacapaca:
hi sp3dev

I followed the instructions above,everything worked as you mentioned until the reboot part,after that it goes in a bootloop,showing CM7 logo for few seconds then phone restarts and so on.

what can be the problem?
[HD Mini Android Development] peter08po:
same with me, but someone in xda-china said there's problem with the partition size...
[HD Mini Android Development] tzacapaca:
too small or what?

post the xda-china link pls
[HD Mini Android Development] peter08po:
Here: http://bbs.xda.cn/forum.php?mod=redirect&goto=findpost&ptid=10930877&pid=13099138&fromuid=816254

On #4
[HD Mini Android Development] NoxinHH:
Hey guys,

have you been able to figure out which partition was meant?
[HD Mini Android Development] huahaonam:
please help me, After

Phone restart hand on logo, after i factory reset, phone error,

i need solution :(

http://s415.photobucket.com/albums/pp236/huahaonam/?action=view&current=IMG_0211.jpg
[HD Mini Android Development] NoxinHH:
Can you still get into recovery when pressing VOL-UP & Power?

I had this issue and also a missing recovery so I simply reflashed it.

Now everything is running except the fact that I am in the boot loop too... :)
[HD Mini Android Development] goldenorb:
seems bootloop is a common problem...

has anyone figured out why it is happening or found a solution ?
[HD Mini Android Development] schlund:
unfortunately having the same problems with bootloop.

Didnt have that much time for debugging yet, but actually after cleaning up there is no error in android nor in the kernel.

would be interesting if its working for someone, and if so of course, what he has done different.

otherwise it will take me some time to solve this and i can not start fixing battery (or anything else) without a working system :/
[HD Mini Android Development] SonixTheBishop:
Guys Please Help Me!

I have tried to do it, but it doesnt work, so i have done a factory reset so i got an error. from there i have tried to do the same things i had done before...but nothing so from pc by fastboot i have erased lkbootloader partition, and now photon don't start and it shows me just htc image how can i resotere lkbootloader partition???
[HD Mini Android Development] sp3dev:
Guess what? You have to flash windarse mobile and reflash LK.

Works for me - just tested a clean boot. I mean, wipe data and cache after flashing system.

And on your custom builds, add "dalvik.vm.dexopt-data-only=1" to build.prop

Actually, it would be nice if anyone having bootloop with my zip would upload a dmesg (adb is working, right?) and logcat.
[HD Mini Android Development] SonixTheBishop:
Ok i'll try to do it.

i have the same problem like others guys about boot after flashing and installing update.
[HD Mini Android Development] NoxinHH:
sp3dev, attached the demsg.log and the logcat, hope that helps?!
[HD Mini Android Development] NoxinHH:
Another logcat log, phone booted completely, lockscreen was visible.

After a few seconds it rebooted again. HTH....
[HD Mini Android Development] schlund:
while searching for the bootloop problem i got it running

CWM Recovery 5.0.2.6

compared to the old version it can:

- be controlled with the hardkeys OR softkeys: -Home = up, windows = down, back = back, hang up = enter

- partition sd-cards with sd-ext or swap partitions

- run fix_permissions

and whatever i dont know ;)

http://www.multiupload.com/63JLWI4I46

unfortunately it didnt solve my problem
[HD Mini Android Development] huahaonam:
I can't not hold volum+ and Power ,Phone Error

Error cannot read recover_header, Please Look in Picture:o

Error : cannot read the kernel image

Error : could not do normal boot,reverting fastboot mode

I can't not Previous windowmobile 6.5:(

Please Help Me, :(
[HD Mini Android Development] youkid90:
This guy didn't have that problem, he did like this:http://bbs.xda.cn/thread-10930879-1-1.html
[HD Mini Android Development] derefas:
hi Schlund , did you flash last out.nb from sp3dev, with supporting 160md system partition?
[HD Mini Android Development] NoxinHH:
@huahaonam

First Screenshot shows "no user choise" (btw: that's a typo, should be "choice" ^^)

In other words: Nothing was pressed, no Vol- or Vol+!

Second screenshot shows that the recovery has been flashed correctly...

I think it's a simple timing problem. Just try it again.

1. Press & release power button, device turns on

2. Press & HOLD Vol+ until Recovery menu is there

Give it a try and let me know!
[HD Mini Android Development] schlund:
yes of course i do
[HD Mini Android Development] NoxinHH:
I have read through the whole Chinese thread (With bablefish)

A lot of rubbish in there like "I like this post" and other useless nonsense.

However, some people report that they have problems with a boot loop and ask for a solution....

So... same problem that we have!
[HD Mini Android Development] huahaonam:
Yes, But Not OK Phone Error :

Error cannot read recover_header, Please Look in Picture:o
[HD Mini Android Development] NoxinHH:
Did you try another recovery image? The newest one from Schlund for example?
[HD Mini Android Development] huahaonam:
I tried but not ok:(, Team Viewer Help me
[HD Mini Android Development] sp3dev:
You know, both your logcats look like a correct boot. Try booting with a charger connected. It looks like it just reboots because it is discharged (or, it thinks it is discharged). For me the only problem was out of space in cache, but that was fixed by adding dexopt stuff to build.prop
[HD Mini Android Development] huahaonam:
Why Not Care, No answer, Solution U Kill Phone:mad:
[HD Mini Android Development] schlund:
you should flash back to wm:

hold vol- and turn your phone on to enter tri color mode and flash back your stock rom.
[HD Mini Android Development] SonixTheBishop:
i have done the same thing, and now phone works =). Flash an official rom, others don't work.

i get an error during the boot,...may it can help...

flash_read_image:5b80 Error: Bad Block
[HD Mini Android Development] NoxinHH:
Hey, sp3dev, thanks for checking.

If it's really the case that the phone "thinks" its battery is empty

then there is nothing more I can do at the moment. If have

tested with a fully charged battery from another device (which is still on WM and charges fine) with power source attached... No chance, boot loop. :(
[HD Mini Android Development] sp3dev:
Battery fixed

http://www.mediafire.com/?dnlyw6g5hl38yn8

Ok guys, here's a new Image for you (the code is in git). Battery reading on NAND is fixed. The reason why it did not work was ****ty and convoluted code in driver. Basically, uninitialized variables and erasing battery capacity on calculating
[HD Mini Android Development] swissly:
Wow, this is great news! ;) I think the battery was one of the biggest issues in all releases so far.

So what is the overall stats now. What is not working yet?
[HD Mini Android Development] SonixTheBishop:
the download (Image) is the img file like recovery-photon, right?
[HD Mini Android Development] sp3dev:
Well no, you'll have to use split-bootimg.pl to extract ramdisk from recovery if you want to flash this. Stay tuned, a new flashable update is coming soon with wifi and gprs hopefully working
[HD Mini Android Development] SonixTheBishop:
ohh ok so will be better if i wait....will be easyer, and for me now phone dont start after bootscreen...:(...i think my problem is when bottloader is loading there an error: bad block 5b80 flash_read_image have you any ideas sp3dev about that?
[HD Mini Android Development] sp3dev:
Any NAND chip has bad blocks. Mine has lots of them. It should not cause problems with current LK
[HD Mini Android Development] schlund:
thank you, battery works now, yes, but unfortunately it doesnt solve the bootloop problem :/

honestly, i have no idea atm, why it is working for some of you, and some not, although we all have used the same files

could someone of the lucky guys that have no bootloop please post some dmesg and logcat *:E pls ?

and please also post your radio version.

maybe i can find something there
[HD Mini Android Development] sp3dev:
Foo

Sorry for the long post guys, but here we go. Below is an updated port of Aria rom with very detailed installation guide (PDF with pictures inside the archive).

[Working]

GSM Phone

Audio (Stereo headset, equalizer)

WiFi

Bluetooth (ok, I can confirm it turns on and scans)

3D

Battery indicator

Suspend (Sleep mode)

Charging (Works in general, but seems extremely slow on usb)

GPS

Sensors

Still image capture (correct colors)

[Issues/Non-working]

Video Recording? <- Not exactly tested

HQ Video Playback? <- Not tested at all

FM Radio <- will need some patches. Will probably be ready when we'll be building CM7 from source

Link to download:

http://www.mediafire.com/?0lwt10705v1raci

@schlund:

If you are at it, please add FM headset/speaker profile support to libaudio_wince (you can make a diff between non-wince libaudio in your device tree and cm7 msm7k libaudio, there's just a couple lines). I have tried opening fm app and manually switching sound endpoints via ioctl - it worked fine.

also, liberty's liboemcamera needs ro.product.device=liberty for correct colors (if anyone is building custom roms)
[HD Mini Android Development] jomaga:
Installed and working perfect so far

Thanks a lot sp3dev!!
[HD Mini Android Development] jomaga:
After some quick tests, I can confirm:

Audio working but MONO headset, not stereo, equalizer OK

WiFi can connect, but can't find any Wifi points

I can't connect to my SD card via Usb

GPS dont work at all (tested with GPS Status and IGO)

Still image capture works OK but saves photos somewhere but not in SD card (I can't find the location)

So... some of the known problems of early Froyo versions posted here

Thanks!
[HD Mini Android Development] kiretocin:
can anyone make video tutorial of instalation of android on NAND?
[HD Mini Android Development] youkid90:
Thanks sp3dev, but I stuck in the reboot loop ...
[HD Mini Android Development] huahaonam:
update SHIP ROM FOR HTC HDMINI FAILED ERROR,

RUU_Photon_hTC_Asia_HK_CHT_1.36.708.3_Radio_Signed_32.2803.05.06_0.63.05.36_Ship.exe

Please Help me, Flash 1% Phone Error previous Fastboot,:(

@sp3dev i need Solution to You
[HD Mini Android Development] huahaonam:
Share Solution

USE Riff-Jtag Box Repair Boot- use XTC Clip S-Off CID-- Use Rom Ship Or Rom Cook Upgrade Phone is OK,

Good Luck

---------- Post added at 01:58 PM ---------- Previous post was at 01:19 PM ----------

After Repair Boot Retry update Nand Android Phone hangOn LOGO After Auto Restart :(
[HD Mini Android Development] Mystikal57:
Reboot loop for me =(

i'll post dmesg...

edit:

dmesg:

http://pastebin.com/jfqpRLpW

dmesg2:

http://pastebin.com/Y1ReEi0a

<4>[ 1.640331] ###BAD BLOCK 4044 1F980000###
<7>[ 1.640351] block 77 is bad
<4>[ 1.647663] ###BAD BLOCK 4077 1FDA0000###
<7>[ 1.647681] block 110 is bad

Recovery.log:

http://pastebin.com/vda1RCPk
[HD Mini Android Development] huahaonam:
please look video phone hand on logo

[YOUTUBE]ynNu60JmVQQ[/YOUTUBE]
[HD Mini Android Development] jomaga:
Some more:

Bluetooth can connect with my car, but as froyo rom, audio don't work

Phone hanged three times since yesterday (had to remove the battery)

Battery drains faster than froyo (40% consumption overnight)

the good side:

Gingerbread and cm7 are gooood!, very fast and smooth

hey, I have nand running!! thanks a lot

Btw, for those who have boot loop problems, I followed the instructions sp3dev made in the las pdf and I had no problems at all. I have this base band: 32.2803.05.06_0.63.05.36
[HD Mini Android Development] schlund:
Please post a dmesg if you got it working! !!
[HD Mini Android Development] SonixTheBishop:
You are so lucky...for me it dosent still work.....-.-

i will post dmesg soon
[HD Mini Android Development] jomaga:
Excuse me schlund, How can I make a dmesg?
[HD Mini Android Development] Mystikal57:
connect with adb

adb shell

dmesg > dmesg.txt

exit

adb pull dmesg.txt c:\

the dmesg.txt should be in c:
[HD Mini Android Development] jomaga:
thanks!

Here is my working dmesg.txt

http://www.mediafire.com/?9ogrbcc8gunu623
[HD Mini Android Development] schlund:
could you please do it again right after your device has booted? thanks!
[HD Mini Android Development] SonixTheBishop:
Hope Help!

Dmesg:http://pastebin.com/4FSuwuD1

Logcat:http://pastebin.com/AjaTU3u1

---------- Post added at 11:59 AM ---------- Previous post was at 11:58 AM ----------

is not your full dmesg...
[HD Mini Android Development] jomaga:
Of course!

http://www.mediafire.com/?6ctcwmqx958e6mq

btw, I can't do a dmesg > dmesg.txt, it says "cannot create dmesg.txt: read-only file system"

I have done a dmesg and copy-pasted the text from cmd
[HD Mini Android Development] Mystikal57:
can't flash back to wm....

bad vendor id with official ruu.. :confused:
[HD Mini Android Development] SonixTheBishop:
have you done vol- + power to install it?

have you used a particular ruu for example for vodafone, o2....?
[HD Mini Android Development] schlund:
i have noticed that, unfortunately your console is limited to 300 lines, but i need the early init log :/

make right-click on your cmd frame and enter properties, increase buffer height in register layout to about 5000, and buffersize in options to 999.

please try again then and have a look if you see the 0.000000 timed logs now :)
[HD Mini Android Development] ToughGuy:
to get full logcat you just do this:

adb shell
cd /
dmesg >>dmesg.log
logcat -d >>logcat.log

and use adb to get the logfile.

adb pull dmesg.log
adb pull logcat.log
[HD Mini Android Development] huahaonam:
Solution Here, If Volum- +power in boot OK, not use riffbot,

use XTC CLIP -->GoldCard up Rom
[HD Mini Android Development] sp3dev:
You wouldn't need XTC and goldcard if you used the rom for your region. For each country there are official ROMs which can be flashed without unlocking the device.

---------- Post added at 04:06 PM ---------- Previous post was at 04:05 PM ----------

Or you can do

dmesg > /data/local/dmesg.txt

and then

adb pull /data/local/dmesg.txt
[HD Mini Android Development] Mystikal57:
I haven't xtc clip, goldcard or jtag =(

ruu said me bad vendor id when i'm at 3colors screen.

i have access to cwm recovery

EDIT: Okay, i'm french, but my phone is GERMAN.. then i took a GER ruu and it works :)

I'm back with WM..

hmm.. it's possible that the boot loop pb is caused by operator locked phone ?

EDIT 2: Tried to reinstall cm7 nand.... same boot loop problem
[HD Mini Android Development] jomaga:
full dmesg.txt exported with sp3dev method

http://www.mediafire.com/?gai6cenvm0tb6zr

Btw, my phone in spanish, not operator locked
[HD Mini Android Development] schlund:
unfortunately, early init is cut again :(

sp3dev maybe you could dump it?
[HD Mini Android Development] SonixTheBishop:
guys...i have big problem when the phone is under usb/ac it start without pressing power button, but it shows just bootloader whitout boot...why? im so unlucky.....:(