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
  #1021 (permalink)  
Old 02-02-2011, 04:01 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
yeah reclone and take a look at the dmesg. it should show there all the partitions you put in the cmdline. If for some reason the modules arent loading right do a "modprobe mtdblock" and see if they show up then. I didnt have to do this but just a thought.
Works now! My modules were not loading... I guess we need to do this in initramfs now?
__________________
Reply With Quote
This post has been thanked 2 times.
  #1022 (permalink)  
Old 02-02-2011, 04:10 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
Works now! My modules were not loading... I guess we need to do this in initramfs now?
yeah. Were you able to write to block2 and 3 yet ? I will to post a tarball of frx4. I just untared it directly onto block2 once i mounted it.
__________________
Reply With Quote
This post has been thanked 1 times.
  #1023 (permalink)  
Old 02-02-2011, 04:29 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
yeah. Were you able to write to block2 and 3 yet ? I will to post a tarball of frx4. I just untared it directly onto block2 once i mounted it.
Nope not yet... Just was able to see them.
How do we add the modules during the initramfs? I have a general Idea from the Rootfs, but I'm not getting it to work just yet...
Reply With Quote
This post has been thanked 2 times.
  #1024 (permalink)  
Old 02-02-2011, 04:36 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
Nope not yet... Just was able to see them.
How do we add the modules during the initramfs? I have a general Idea from the Rootfs, but I'm not getting it to work just yet...
i will have to look into what is missing. i never had to modprobe but im just saying thats how you load it.

For me its all done automatically. when i boot the stuff is already there. You will need to study Dzo's code to see how he is doing everything.
Reply With Quote
This post has been thanked 2 times.
  #1025 (permalink)  
Old 02-02-2011, 06:15 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 Lmiller1708 View Post
Nope not yet... Just was able to see them.
How do we add the modules during the initramfs? I have a general Idea from the Rootfs, but I'm not getting it to work just yet...
I'm assuming you are using XDAndroid's initramfs. They do not mount data or system in initramfs, so you will have to manually add this to init. If you want to use NAND, you will do this and expand FRX04 to system:

Code:
/bin/mount -t yaffs2 /dev/block/mtdblock2 /system
/bin/mount -t yaffs2 /dev/block/mtdblock3 /data
If you want to do off the SD card, do this:
Code:
losetup /dev/block/loop0 $card/data.img
[ $? -eq 0 ] || fail "Failed to find $card/data.img on SD Card"
e2fsck -y /dev/block/loop0
mount -t ext2 -o relatime /dev/block/loop0 /data
losetup /dev/block/loop1 $card/system.ext2
[ $? -eq 0 ] || fail "Failed to reach system.ext2 on SD Card"
e2fsck -y /dev/block/loop1
mount -t ext2 -o relatime /dev/block/loop1 /system
Then you just need to mount lib and etc:
Code:
mount --bind /lib/froyo/hw /system/lib/hw
mount /data/etc /etc
cp -a /system/etc/* /etc
cp -ar /init.etc/* /etc/
cp "/init.cfg/init.$RCSCRIPT.rc" /etc/init.rc
Also, you may need this for CDMA board (put after the etc stuff):
Code:
if [ -d /sys/devices/platform/msm_sdcc.3 ]; then
     /bin/sed -i -e 's:/devices/platform/msm_sdcc\.2:/devices/platform/msm_sdcc.3:g' /etc/vold.fstab
fi
And finally, you can use the code from rootfs to do the rest:
Code:
if [ -e "$card/modules-$(uname -r).tar.gz" ] && ! `strings /data/modules/wlan.ko 2>/dev/null | grep -q "vermagic=$(uname -r)"`; then
    echo "Installing $card/modules-$(uname -r).tar.gz"
    if [ ! -d "/data/modules" ] ; then
        mkdir /data/modules
    fi
    tar xzf $card/modules-$(uname -r).tar.gz -C /data/modules
    ln -s /data/modules /data/modules/`uname -r`
else
    echo "Modules already unpacked for this kernel version -- skipping installation of $card/modules-$(uname -r).tar.gz"
fi

mount --bind /data/modules /lib/modules
mount --bind /data/modules /system/lib/modules

cp -R /etc/wifi/* /data/modules/
depmod
[ -f /etc/wifi/wlan.ko ] && rm /etc/wifi/wlan.ko

sed -i s/^#wifi/wifi/ /tmp/build.prop
Reply With Quote
This post has been thanked 4 times.
  #1026 (permalink)  
Old 02-02-2011, 06:18 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
yeah. Were you able to write to block2 and 3 yet ? I will to post a tarball of frx4. I just untared it directly onto block2 once i mounted it.
Did you use the partition table, or how did you create partitions? Did you just use the mtdpart stuff and just specify the sizes there? I haven't had a chance to flash yet, but when I get home, I'm gonna go to town on this bad boy
Reply With Quote
This post has been thanked 3 times.
  #1027 (permalink)  
Old 02-02-2011, 06:32 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
Did you use the partition table, or how did you create partitions? Did you just use the mtdpart stuff and just specify the sizes there? I haven't had a chance to flash yet, but when I get home, I'm gonna go to town on this bad boy
just that thing in the command line nothing else. Once that one done i saw the blocks and did a flash_erase /dev/mtdblock2 (and 3). and was able to mount as yaffs2
Reply With Quote
This post has been thanked 4 times.
  #1028 (permalink)  
Old 02-02-2011, 08:14 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 will have to look into what is missing. i never had to modprobe but im just saying thats how you load it.

For me its all done automatically. when i boot the stuff is already there. You will need to study Dzo's code to see how he is doing everything.
When I run the modprobe command it says my version is off from what my modules should be. This could be because I'm not remaking the whole build every time, just the NBH. I will test this shortly...

Thanks for the HELP NATE!
Reply With Quote
This post has been thanked 1 times.
  #1029 (permalink)  
Old 02-03-2011, 12:13 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

After playing around with the initramfs I decided to just try the one from the Vogue. So I took the initrd.gz and cooked that into the nbh file.
I then took a androidinstall.tgz file from HERE.... Went though the install process... And it booted on NAND! It looked very different though and as you can imagine nothing really worked.

So I then tried to extract the FRX04 system and place that into the androidinstall.tgz file and was able to get it to install but not boot to android.

Time to call it a night... I'm sure I'm missing something simple.
Reply With Quote
This post has been thanked 3 times.
  #1030 (permalink)  
Old 02-03-2011, 02:09 AM
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 Lmiller1708 View Post
After playing around with the initramfs I decided to just try the one from the Vogue. So I took the initrd.gz and cooked that into the nbh file.
I then took a androidinstall.tgz file from HERE.... Went though the install process... And it booted on NAND! It looked very different though and as you can imagine nothing really worked.

So I then tried to extract the FRX04 system and place that into the androidinstall.tgz file and was able to get it to install but not boot to android.

Time to call it a night... I'm sure I'm missing something simple.
Did you modify the initramfs to load your button mappings or something? The replimenu didn't work for me when I tried that. Also, you can try the latest tars from here: Android HTC - Browse Files at SourceForge.net
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 04:20 PM.


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