PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 Development (http://forum.ppcgeeks.com/forumdisplay.php?f=319)
-   -   NAND Testing - 05-25 Update: New LK, Recovery.img, Kernel Updates through Recovery (http://forum.ppcgeeks.com/showthread.php?t=134598)

Lmiller1708 02-02-2011 04:01 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2049806)
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?

[ACL] 02-02-2011 04:10 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by Lmiller1708 (Post 2049824)
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.

Lmiller1708 02-02-2011 04:29 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2049833)
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...

[ACL] 02-02-2011 04:36 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by Lmiller1708 (Post 2049842)
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.

natemcnutty 02-02-2011 06:15 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by Lmiller1708 (Post 2049842)
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


natemcnutty 02-02-2011 06:18 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2049833)
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 :)

[ACL] 02-02-2011 06:32 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by natemcnutty (Post 2049904)
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

Lmiller1708 02-02-2011 08:14 PM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by [ACL] (Post 2049843)
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!

Lmiller1708 02-03-2011 12:13 AM

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. ;)

natemcnutty 02-03-2011 02:09 AM

Re: NAND Boot Testing - 01-07: Panel power on/off fixes
 
Quote:

Originally Posted by Lmiller1708 (Post 2050055)
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


All times are GMT -4. The time now is 11:52 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0