PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #971 (permalink)  
Old 01-30-2011, 09:47 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Wirelessly posted (Vogue: Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; MSM Build/FRX03) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1)

Quote:
Originally Posted by [ACL
]Moving to the hd2 nand driver seems to make the errors go away. but i still cant write onto the partitions.

So far this is what i've done

# cat /dev/mtd/mtd0 > /sdcard/mtd0.img
# cat /dev/mtd/mtd1 > /sdcard/mtd1.img
# cat /dev/mtd/mtd2 > /sdcard/mtd2.img
# cat /dev/mtd/mtd3 > /sdcard/mtd3.img

mtd0 is the only one that has data. The rest are just empty. I'm assuming its because i wiped the whole phone ? i should have left winmo partially in there to check.

After trying to flash_image one of the partitions i tried to mount it and i get the following.

[ 518.155426] msm_nand_read_oob: unsupported ops->len, 512
[ 518.155517] end_request: I/O error, dev mtdblock3, sector 0

This doesnt look good. i know the 512 error is common but not sure why it's happening. So this is where im at..
ACL,
Great job on the progress!
Let me know if there is anything I can help with.
__________________
Reply With Quote
  #972 (permalink)  
Old 01-31-2011, 09:57 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

i dunno if i would consider this progress :-\

all of the sudden i cant boot into android. It seems that the data.img and system.img no longer mount.

grrr this is hard to figure out since i cant adb anymore. Have to just constantly butcher the init to find out where its dying. I guess we can begin to mod the initrd to make this more friendly.. im sure nate is ahead of me and prob has that all written already :-p

update: ok looks like android itself (not rootfs) is trying to mount the system and data from nand. since i havent been successful in writing to nand yet, it craps out..
__________________

Last edited by [ACL]; 01-31-2011 at 10:11 AM.
Reply With Quote
This post has been thanked 3 times.
  #973 (permalink)  
Old 01-31-2011, 10:02 AM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Well... I guess being worked on is progress!

Where can I get the files to compile the drivers?

Thanks!
Reply With Quote
This post has been thanked 1 times.
  #974 (permalink)  
Old 01-31-2011, 11:27 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Quote:
Originally Posted by Lmiller1708 View Post
Well... I guess being worked on is progress!

Where can I get the files to compile the drivers?

Thanks!
the only thing holding me back from commiting them is that i cant verify if i can write to nand yet. I need to know how to disable android from automouting the yaffs partitions.
Reply With Quote
This post has been thanked 1 times.
  #975 (permalink)  
Old 01-31-2011, 12:11 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Quote:
Originally Posted by [ACL] View Post
the only thing holding me back from commiting them is that i cant verify if i can write to nand yet. I need to know how to disable android from automouting the yaffs partitions.
To stop auto mounting try commenting out this line of code in your Rootfs init. It's about 15 lines from the top.

Code:
/bin/mount | grep mtd
notnand=$?

if [ $notnand = "0" ] ; then
  echo "running from NAND"
  /bin/mount -t yaffs2 /dev/block/mtdblock2 /system
  /bin/mount -t yaffs2 /dev/block/mtdblock3 /data
fi
Reply With Quote
This post has been thanked 1 times.
  #976 (permalink)  
Old 01-31-2011, 12:19 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Quote:
Originally Posted by Lmiller1708 View Post
To stop auto mounting try commenting out this line of code in your Rootfs init. It's about 15 lines from the top.

Code:
/bin/mount | grep mtd
notnand=$?

if [ $notnand = "0" ] ; then
  echo "running from NAND"
  /bin/mount -t yaffs2 /dev/block/mtdblock2 /system
  /bin/mount -t yaffs2 /dev/block/mtdblock3 /data
fi
I commented all that out.

This actually happens when androuid loads. The console shows yaffs trying to mount block2 and 3. And boom.. death to boot up since it cant find anything. so so close.
Reply With Quote
This post has been thanked 1 times.
  #977 (permalink)  
Old 01-31-2011, 12:26 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Quote:
Originally Posted by [ACL] View Post
I commented all that out.

This actually happens when androuid loads. The console shows yaffs trying to mount block2 and 3. And boom.. death to boot up since it cant find anything. so so close.
Ok.
Could be in the init of the initramfs.
What does your command line look like?
Reply With Quote
This post has been thanked 1 times.
  #978 (permalink)  
Old 01-31-2011, 12:41 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Quote:
Originally Posted by Lmiller1708 View Post
Ok.
Could be in the init of the initramfs.
What does your command line look like?
whatver is on the git plus the mtd parts i put in. everything else is the same.

If you want to get started and testing. You can try to download the hd2-nand.c file from the nand tree. Just remove everything in our msm-nand.c with the stuff from that file. Once you have that you should be where im at.

Last edited by [ACL]; 01-31-2011 at 12:44 PM.
Reply With Quote
This post has been thanked 2 times.
  #979 (permalink)  
Old 01-31-2011, 01:41 PM
natemcnutty's Avatar
VIP Member
Offline
Pocket PC: VZW Touch Pro 2
Carrier: Verizon Wireless
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Quote:
Originally Posted by [ACL] View Post
i dunno if i would consider this progress :-\

all of the sudden i cant boot into android. It seems that the data.img and system.img no longer mount.

grrr this is hard to figure out since i cant adb anymore. Have to just constantly butcher the init to find out where its dying. I guess we can begin to mod the initrd to make this more friendly.. im sure nate is ahead of me and prob has that all written already :-p

update: ok looks like android itself (not rootfs) is trying to mount the system and data from nand. since i havent been successful in writing to nand yet, it craps out..
Well, I had been in the process of testing moving to the Vogue's bootenv/tinboot setup when my USB died on me. Still haven't gotten USB functions back, and I've seriously tried everything I can think of.

Vogue's tinboot has some really awesome changes since wozzer ported it over for us. They now have working data during boot, ADB enabled by initramfs, and lots of other great changes.

They use bootenv git for building their initrd which they've changed to lzma instead of gzip: SourceForge - androidhtc/bootenv.git/summary

And their tinboot is here: SourceForge - androidhtc/bootenv.git/summary
Reply With Quote
  #980 (permalink)  
Old 01-31-2011, 01:49 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - 01-07: Panel power on/off fixes

Quote:
Originally Posted by natemcnutty View Post
Well, I had been in the process of testing moving to the Vogue's bootenv/tinboot setup when my USB died on me. Still haven't gotten USB functions back, and I've seriously tried everything I can think of.

Vogue's tinboot has some really awesome changes since wozzer ported it over for us. They now have working data during boot, ADB enabled by initramfs, and lots of other great changes.

They use bootenv git for building their initrd which they've changed to lzma instead of gzip: SourceForge - androidhtc/bootenv.git/summary

And their tinboot is here: SourceForge - androidhtc/bootenv.git/summary
so what you are trying to tell me is that its time to pillage code.. :-p.. you wanna champion this? im busy so if you can prep a patch ill commit.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:33 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com