yashsingh1/xdaforums huggingface dataset:
[HD Mini Android Development] munjeni:
ok I agre LK is better but we have not any android nand bootloader! I think smal bootloader will be best choice for first nand boot. Than porting LK bootloader after tinboot becouse tinboot is smaler and easy for the first test. Are you sure nand boot is possible? We not have hspl, we have perfect bootloader (spl)?? But tinboot have also option adding partition layout via ATAGs to kernel but I not care about partitions, only I was tried is to see black screen with white text dmesg in fb console (only kernel and initrd without nand partitioning) but I had no luck. Also, another thing, I no longer have a photon, I have now hd2 and try to figure out how everything works on it. Hehe, I can say that I was more comfortable with its compact photon (very fast android is in him, also colors is better in photon compared with the hd2!), hd2 phone is too big like as a building brick:)... maybe I will buy again photon:D

The only drawback is that there is not little support for photon by experienced developers, although the extra good phone, and I'm sorry about that!
[HD Mini Android Development] munjeni:
You are right, I compiled LK from source and it runing ok in hd2, will try to port it to photon, thank you! There is also explanations for mbr record...etc...
[HD Mini Android Development] djfastest:
photon nand is here:

http://pastebin.com/xAhnEXBU
[HD Mini Android Development] munjeni:
Yes, I created that paste:) and it is nand blocks! Os.nb start 0x02820000 block=321 from there is mbr...
[HD Mini Android Development] djfastest:
munjeni: sspl
[HD Mini Android Development] munjeni:
you think this :D -> http://xdaforums.com/showthread.php?t=1259659
[HD Mini Android Development] liorderei:
i dont mind to try it but where's the nbh? and what ruu to use?
[HD Mini Android Development] munjeni:
You need http://xdaforums.com/showpost.php?p=18026197&postcount=10 and you need dft sspl. Also you need (after test attacment) to install wince rom but before you trying to install my attacment be sure to have an htc rom. Dft is one post before
[HD Mini Android Development] cbolumar:
OK i tested your boot .

The bootloader works well but remain in the white screen with green HTC, not black screen with white text.

Coming back to WM Rom. If you want i can test more changes today or tomorrow .

I think you are in the right way.

EDIT: WM again without problems. Good work munjeni.
[HD Mini Android Development] munjeni:
Thank you!
[HD Mini Android Development] djfastest:
It is possible to load in two ways - having collected nbh through враппер or харетом with such command line:

set ramsize 0x08000000

set ramaddr 0x00000000

set KERNEL lk.bin

set MTYPE 2006//well in general - everything, lk it isn't necessary, but харет it is necessary to deceive

set TAGS_OFFSET 0x300000

set KERNEL_OFFSET 0x00000000

pfw 0xa8250800 0//to disconnect MPU (protection of operative memory)

boot2

---------- Post added at 10:49 AM ---------- Previous post was at 10:37 AM ----------

sorry if you not understand what I posted here, google translate is BAD

how to start:

Start by reading http://htc-linux.org/wiki/index.php?title=LK_Bootloader

download original butloder (there is a link), then - for our wince device with gitorious, as well as

https://gitorious.org/lk-msm7200a-htc-wince...boot-for-lk-xda - wrapper to generate the nbh files vindovyh butlodera.

I do not know what to rpc and smem hd mini and how it is similar to the android, so I compare with the original butloder lk and see what's what. Rather, it is enough to copy all the stupid, that we have done for the 7200A, or even juzat it, despite the fact that you have a 7225 or 7227 - the code to control the CPU speed is not there, and everything else in these same SoC. So take my lk with gitorious, add your claret as has been done to htckovsky and htcrhodium. Carefully check the file target/msm7200a_htc_wince/init.c - it is necessary to check that the address is read from the model name devaysa, sure. here.

sorry if you not understand what I posted here, google translate is BAD
[HD Mini Android Development] sp3dev:
munjeni,

Please try to build lk and get it working on hd mini. The thing is that your radio is very similiar to the one we have on msm7200A and since we have spent much time getting it to work on msm7200A and have fixed most obvious bugs, it is unwise to ignore this work.

You do not need to disable MPU because haret loads linux to 0x1000_0000 and LK is loaded to 0x0 to allow it to load kernel to 0x1000_0000 and further without erasing LK itself in RAM.

LK is not based on linux. In fact, you should read the source code of our lk port to wince devices prior to making assumptions about how stuff is supposed to work. You can probably use cedesmith's nbh generator, but my modified tinboot tree also contains the utility to do it. And it quite works for htc kovsky.

[youtube]BplV57kh5W4[/youtube]

One problem is that you cannot just boot the haret kernel from nand. You will have to fix some rpc issues (time_remote handler at least) and never touch uart[1-3] clocks, otherwise the arm9 will just crash on boot. My LK (on gitorious) contains enough initialization code to use the same kernel on haret and nand provided that you fix rpc issues. In fact, I'd advise to try just adding your board and display init code to the msm7200A target of my LK.

Good luck with that. Sorry I cannot help you more since I do not have an HD Mini myself.
[HD Mini Android Development] munjeni:
Hey dude, thanks, do you want hd mini? Maybe our users donate you to buy hd mini? I have hd2 and hd2 is not interested phone to me like hd mini...hd mini is the best phone I used (small, compact, fast, have all needed, have wince, have android, have linux Debian...etc)...hd2 is big phone (notebook in pocket :))... I will back to photon if we get nand boot!

Why haret kernel and nand kernel is not the same, I not understand (haret load it to memory, nand kernel is in memory, what is diference)?
[HD Mini Android Development] djfastest:
Munjeni link to: https://gitorious.org/lk-msm7200a-htc-wince/tinboot-for-lk-xda/trees/master
[HD Mini Android Development] munjeni:
Please do not quote me becouse you use whole page with your post! Also you posted attacment (I not understand what with that)
[HD Mini Android Development] munjeni:
if flash it to nand you will overwrite wince offset -> lkbootloader = 0x2820000 to 0x2840000 but if you want to flash wince offset 0x2820000 to 0x2840000 again you must have 0x2820000_0x2840000_wince.dump and it is easy to back it to nand with fastboot using command:

fastboot flash lkbootloader 0x2820000_0x2840000_wince.dump (not 100% sure if lk will add extra bute instead of raw data ...think it will work again)! In any way you allways have option power+volup + back to wince using rom update utility:)

but if you use fastboot to flash kernel instead of using temporary boot from ram (command fastboot boot zImage initrd.gz) you will not be able to boot wince (you will need power+volup -> spl boot and flash back to wince using rom update utility)

Question for sp3dev, maybe you know why smem is unavailable?
[HD Mini Android Development] sp3dev:
Ok, I don't have time to debug NAND reading issues in LK. My plan for tomorrow is to make a big blob with boot, recovery and LK so that wince SPL loads them to the needed locations and we copy them from RAM instead of reading from NAND. Since writing to NAND is ok, we can adjust partition layout so that writing recovery/boot updates the needed part of the blob. Surely this is an awful hack but this will allow us to have something working before we fix NAND reading.
[HD Mini Android Development] milan7171:
hi sp3dev,

you told us that nand come in this week,but we dont see anything in xda.

i agree this work is hard and you effort very much but i want to know that when will be come nand android?what progress are you in?i am waitting for this for every day.

i think that the bottom site showed everything.

thanks

http://xdaforums.com/showpost.php?p=19084462&postcount=121
[HD Mini Android Development] tzacapaca:
somebody please ban the guy above me :mad:
[HD Mini Android Development] iPlasm:
Milan, you always say when the NAND be available!

no one can tell you WHEN? it's hard, it needs carefully, it's much of numbers codes, it's needs knowing what to do!

also the devs told us, And You especially.. that we don't ask about "When".

And be sure, that they will try to release a Good one soonest possible!

We're very Thankfully for those Devs.
[HD Mini Android Development] milan7171:
why???

i just ask when will be come?!!

somebody ban you!!do you do work for nand?i dont think you do.i am sorry for you!

sp3dev,munjeni and other dev are working in nand,what do you tell?

please ban tzacapaca,he's wrong.

thanks
[HD Mini Android Development] M..N:
This is a DEV thread let them work do not as for ETAs!!
[HD Mini Android Development] milan7171:
ok

thanks for your efforts and i hope to successfull.
[HD Mini Android Development] tzacapaca:
sp3dev asked you to don't ask..but u are just being an @$$ and keep bugging and annoying him...

lol I don't need to work for nand to see someone annoying devs

what should i be banned for?:)

P.S.enough with offtopic,this thread is for devs!
[HD Mini Android Development] the_scotsman:
This...the updates will come when they come. Asking for ETAs just makes it worse.
[HD Mini Android Development] Rubik.Orange:
No asks for ETAs... don't know?
[HD Mini Android Development] gastrella:
i don't want to know when but i want only know if sp3dev is still working on project
[HD Mini Android Development] sp3dev:
i was not working on it for some time (been playing with opengl and now it's exam time at the university) but i plan on finding some time this week. debugging nand driver is so annoying..
[HD Mini Android Development] M O R T Y:
we wish you luck in your exams & your work.
[HD Mini Android Development] wuliujia:
somebody say we can update G9's rom(http://www.htc.com/us/support/aria-att/downloads/) on our phone.

is this true?
[HD Mini Android Development] gastrella:
no we need a new boot loader to boot android kernel
[HD Mini Android Development] peter08po:
the problem is that the buttons/battery of Aria and HDMINI is different...so although it may works, but it needs modifying...
[HD Mini Android Development] gastrella:
sp3dev make us the best christmast present !!!!! <3 xD XD
[HD Mini Android Development] wuliujia:
New progress yet?
[HD Mini Android Development] NoxinHH:
No, I don't think so.... (Unfortunately....)
[HD Mini Android Development] ToughGuy:
Please do not ask questions in this Thread!!:mad:

to chinese:请不要在这里讨论任何与开发无关的事情!:mad:

Thanks!:D
[HD Mini Android Development] gastrella:
Any rassicuration??
[HD Mini Android Development] sp3dev:
Ok, guys. A bit of news.

I finally have some time after the exams. So I've looked into the driver. I have tried everything, including disabling OOB reading and porting code from linux until I printed out memory addresses and figured out DMA was trying to use an unavailable location. A two-liner fix and now we have linux booting off nand.

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

The readme is in the file, I'll quote it here

to install LK bootloader

1. Boot LK.bin via HaRET

2. use fastboot on the desktop and execute

"fastboot flash lkbootloader lk.nb" (well, actually out.nb.. mea culpa)

3. reboot via

"fastboot reboot"

or just pull the battery

to install linux onto the device

1. power up

2. hold volume down and wait for fastboot prompt to connect the usb to appear

3. use the following command

"fastboot flash:raw boot Image initrd.gz"

4. you can flash recovery in the same way

Note that currently you can only flash Image, not zImage. Decompession fails

for some reason. This will be worked on later.

What should probably be done next. Maybe I'll have time to do some of these

1. Fixing battery reading in kernel on NAND

2. Adding charger/battery support directly in LK

3. Replace kernel NAND driver with the one from Cotulla (used in HD2/Xperia X1/HTC Rhodium) to enable using YAFFS2

4. Making a device folder for photon in cm7/cm9 to build proper images and update.zip automatically

[youtube]fRn_n1T-yfE[/youtube]
[HD Mini Android Development] schlund:
perfect!

just in time :)

i recieved my replacement screen today, will assemble the device tomorrow and development can start :)
[HD Mini Android Development] jumperfreak:
How do you flash the system partition?

If I do fastboot flash system system.img he's always complaining about out of space -> [EDIT: nvm, didn't know that he still used the system.ext2 on the sdcard ]

edit: can't flash back to wm either -> flashing with sdcard did the trick
[HD Mini Android Development] MobileMini:
You dev-guys amaze me every time! Thank you very much for this release!

Maybe you should point out that for the inexperienced users, flashing this Photon nand version is not without risk of bricking your device :)?
[HD Mini Android Development] ¨K¨:
this is great news :)

happy holidays everyone.
[HD Mini Android Development] peter08po:
I'm having another problem...I can't install the driver for HD Mini (when it's in fastboot mode)... I tried the drivers provided on #136 but the computer said it's not a suitable driver...

(I am using Windows 7 32-bit)
[HD Mini Android Development] Wowser:
It is released for developer purposes only - which means Linux operating system for now such as Ubuntu or Linux Mint as examples.
[HD Mini Android Development] LEO K:
hi sp3dev

thanks for your work

i flash image and inird.gz

but i can not flash system

i convert system.ext2 of cm7 to system.img but i got like this error .

am i in a right way ?
[HD Mini Android Development] sp3dev:
You should make update.zip and flash via recovery (i.e., format mtd to yaffs2 via linux). You need to use Cotulla's msm_nand driver in linux
[HD Mini Android Development] LEO K:
thanks

but what i can do to luch recovery ?

i read half press camera button , but hd mini do not have camera button .

is it x1`s lk bootloader ?

and another question

can i use x1 recovery.img ?

---------- Post added at 04:20 PM ---------- Previous post was at 03:39 PM ----------

i finally boot android from nand initrd and sd system.ext2

but can not boot system from nand
[HD Mini Android Development] peter08po:
HI.

May I know how to convert system.ext2 to system.img?

Thanks ^_^
[HD Mini Android Development] LEO K:
why did you do this ?

sp3dev said we must to convert it to zip rom .

edit :

with every kernel android boot but on startup reboot

any one have idea ?
[HD Mini Android Development] kira1511:
hi, i know it is a noobish question , but can u please tell me how to use lkbootloader. i tried to copy files that sp3dev upload in my SD card , then i entered to the Lkrom file and execute haret , then pressed run ; but i had only a black screen with some green words that said can't load (something) , try fastboot... Can u pls help me? :)

PS: thanks again sp3dev for his greaat work ;)
[HD Mini Android Development] munjeni:
Great work sp3dev!!! Did you patched smem reading from kernel side (nand)?

You need to compile byself lk bootloader but using patch from my post if you want to use usb driver provided in my post #136
[HD Mini Android Development] munjeni:
To port current sd build rom to zip, I created an php script that will do the job! :)

How to:

first step:

- install an sd rom to your device

- connect your phone and use adb shell

perform some adb commands to copy your system folder to an new folder on your sd card:

- adb shell

- mkdir /mnt/sdcard/systemcopy

- cp -fr -p /system/* /mnt/sdcard/systemcopy/

- find /mnt/sdcard/systemcopy -lname '*' -exec rm {} \;

Next step:

- press ctrl+c to exit from adb shell

- adb shell ls -lnR /system > system.txt

Now you have systemcopy in your sdcard and system.txt in your adb folder! If you have linux machine, start your httpd server and coppy index.php and system.txt to web server root. Point your web browser to location of the index.php (example: http://127.0.0.1/index.php) and you will get generated updater-script output needed for your zip (its located in Photon_nand_rom.zip\META-INF\com\google\android\), edit it with generated output and save to zip. Coppy all files from systemcopy to Photon_nand_rom.zip\system\

Coppy your zImage and initrd.gz to Photon_nand_rom.zip\boot\

Thats all you need for converting an android sd build to zip! If you need an help and not understand something, I will help you!

About recovery. I not know which recovery is compatible with photon (and what kernel sp3dev use now for photon) but if you know I will create now an recovery image
[HD Mini Android Development] LEO K:
munjeni there is problem

when android boot show battery empty and in lockscreen android restart

what can i do ?

and how run recovery ? we dont have camera button !!!!!!!!!!!!!!:o:o:o
[HD Mini Android Development] munjeni:
Did you used sp3dev latest attachment to perform linux boot?
[HD Mini Android Development] munjeni:
If someone want to report here if recovery from aria booting (sp3dev kernel + aria recovery)!

Procedure is same as instaling nand linux:

fastboot flash:raw recovery Image initrd.gz

Or maybe flashing recovery directly to boot partition?

fastboot flash:raw boot Image initrd.gz
[HD Mini Android Development] LEO K:
which one ?
[HD Mini Android Development] munjeni:
Please try recovery from post 220 and let me know
[HD Mini Android Development] LEO K:
ok munjeni

i test it

i flash it to boot and get this photo

but there is problem

we must to have a command for run recovery like power+volume up
[HD Mini Android Development] munjeni:
Thanks man, so recovery booting, its good! Did volume up and volume down moving menu in recovery?

Not have time now but I will edit lk bootloader tomorrow (will change buttons and partition layouts) and you will try some tests and you will report here how it will work? Will try to import some htc leo patches to photon kernel and we will try how it will work. Note: I not have photon to perform some tests but you will try?

EDIT:

"no space left on device" mean: will create new recovery raw image with kernell comand line parameters (nand partitions) and that message will go off
[HD Mini Android Development] sp3dev:
btw, you can enter recovery by holding power button. I just need to fix the boot message not to misdirect people
[HD Mini Android Development] LEO K:
yes they work but can not inter to any option

yes I try to try theme:D:D:D:D:D if i can :(:(:(:(:(

and sth else :

1- I think we must to make recovery to flash in recovery not in boot because after i flashed to boot android didnt boot

2- you can see in picture , we have this error : E:Can`t read misc

3- and in recovery we don`t have back & enter button .

thanks for your help
[HD Mini Android Development] sp3dev:
I'll get it sorted out, just need some time. Hope we can fix it till new year
[HD Mini Android Development] munjeni:
Ok, man thanks and sorry for my posts, I trying to help here and now I am somewhat impatient to see how it working becouse not have phone to try :)
[HD Mini Android Development] LEO K:
when i holding power button , phone restart and didnt go to recovery .
[HD Mini Android Development] sp3dev:
Ok, here is a fixed LK (yep, I've pushed everything to git except changing font color). Can enter recovery by holding volume up and displays the correct prompt

http://www.mediafire.com/?7t3js7m8vra72r3
[HD Mini Android Development] munjeni:
Hey sp3dev, is your kernel abble to accept command line arguments like mdtdparts? I going now to create recovery.img with passing arguments to kernel about virtual nand partitions used from your current definitions from your lk git. Please correct me if I am wrong:

$HTCPHOTON_FLASH_LK_START=0x2820000 size=0x20000
$HTCPHOTON_FLASH_BOOT_START=0x2840000 size=0xa00000
$HTCPHOTON_FLASH_RECOVERY_START=0x3240000 size=0xa00000
$HTCPHOTON_FLASH_MISC_START=0x3c40000 size=0xa0000
$HTCPHOTON_FLASH_SYS_START=0x3ce0000 size=0x7200000
HTCPHOTON_FLASH_DATA_START=0xaee0000 size=0x14000000
$HTCPHOTON_FLASH_CACHE_START=0x1c7e0000 size=0x1000000

For recovery kernel arguments I use only boot, misc, system, userdata and cache?
[HD Mini Android Development] LEO K:
munjeni and sp3dev

new out.nb work fine

android boot and going to recovery work fine ( i use munjeni recovery from post 220 ) .
[HD Mini Android Development] sp3dev:
Kernel gets partition info via ATAGs, no cmdline neeeded. I'm now working on kernel in https://github.com/astarasikov/2.6.32_froyo_photon_nightly

I plan to finish implementing reboot to recovery feature and fix some issues and put up a bootable image
[HD Mini Android Development] munjeni:
Great! But why message apear on yasinsoft screen about misc partition?

Now I created an recovery.img with kernel arguments, who want to play with it here is link -> http://www.multiupload.com/PBNPVO8G04

fastboot flash recovery recovery-raw.img
[HD Mini Android Development] sp3dev:
cause the Image did not have the working NAND driver and YAFFS2 support
[HD Mini Android Development] munjeni:
:o ok ok ...
[HD Mini Android Development] munjeni:
Yasinsoft, please give me dmesg from recovery:

adb shell dmesg >dmesg.log
[HD Mini Android Development] sp3dev:
Here is a prebuilt zImage

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

sound should work and not crash if using latest acoustic userland (r175). Battery is still not working and I need to figure out wifi. We probably need to get schlund to build us a cm7 rom with recovery (I don't really want to do it myself, although I can)
[HD Mini Android Development] ToughGuy:
Part of dmesg log.

<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 2.6.32.21-svn163 (hameau@linux-et) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #20 PREEMPT Fri Aug 26 18:10:04 CEST 2011
<4>[ 0.000000] CPU: ARMv6-compatible processor [4117b365] revision 5 (ARMv6TEJ), cr=00c5387f
<4>[ 0.000000] CPU: VIPT aliasing data cache, VIPT aliasing instruction cache
<4>[ 0.000000] Machine: photon
<6>[ 0.000000] fixup: nr_banks = 2
<6>[ 0.000000] fixup: bank0 start=00200000, node=00000000, size=0ca00000
<6>[ 0.000000] fixup: bank1 start=20000000, node=00000000, size=05600000
<4>[ 0.000000] Ignoring unrecognised tag 0x00000000
<4>[ 0.000000] Ignoring unrecognised tag 0x00000000
<4>[ 0.000000] Memory policy: ECC disabled, Data cache writeback
<7>[ 0.000000] On node 0 totalpages: 73728
<7>[ 0.000000] free_area_init_node: node 0, pgdat c05b0618, node_mem_map c09de000
<7>[ 0.000000] Normal zone: 1192 pages used for memmap
<7>[ 0.000000] Normal zone: 0 pages reserved
<7>[ 0.000000] Normal zone: 72536 pages, LIFO batch:15
<4>[ 0.000000] liberty_init_map_io()
<6>[ 0.000000] L210 cache controller enabled
<4>[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 72536
<5>[ 0.000000] Kernel command line: mtdparts=msm_nand:0x00a00000@0x02840000(boot),0x000a0000@0x03c40000(misc),0x07200000@0x03ce0000(system),0x14000000@0x0aee0000(userdata),0x01000000@0x1c7e0000(cache)
<6>[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
<6>[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>[ 0.000000] Memory: 202MB 86MB = 288MB total
<5>[ 0.000000] Memory: 283060KB available (4268K code, 1321K data, 1148K init, 0K highmem)
<6>[ 0.000000] Hierarchical RCU implementation.
<6>[ 0.000000] NR_IRQS:277
<4>[ 0.000000] photon_init_irq()
<6>[ 0.000000] ram_console: no valid data in buffer (sig = 0x48454150)
<6>[ 0.000000] console [ram0] enabled
<6>[ 0.000000] Calibrating delay loop... 598.01 BogoMIPS (lpj=2990080)
<4>[ 0.230198] Mount-cache hash table entries: 512

############################

this is dmesg from recovery.

good luck!:D
[HD Mini Android Development] munjeni:
Thanks man! Will be good if you dump that partition to sd card with dd command?

dd if=/dev/block/mtdblock4 of=/mnt/sdcard/mtd4.bin

I want to see how looks eccloyouts inside an partition and correct it. Did you used recovery-raw.img or you used recovery from post 220??