|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
|
||||
|
Re: NAND Boot Testing - 01-07: Panel power on/off fixes
Quote:
For the code, this is what you want: Code:
LAYOUT=`/bin/grep ".*0*" /sys/class/htc_hw/machine_variant`
if [ $LAYOUT = "RHOD30000" ] ; then
echo "USING EXPERIMENTAL TILT2 LAYOUT"
cp -f /init.etc/keymaps/tilt2_microp-keypad.kl /etc/keymaps/microp-keypad.kl
cp -f /init.etc/keymaps/tilt2_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
cp -f /init.etc/keymaps/tilt2_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ $LAYOUT = "RHOD21000" ] ; then
echo "USING EXPERIMENTAL RHOD210 LAYOUT"
cp -f /init.etc/keymaps/rhod210_microp-keypad.kl /etc/keymaps/microp-keypad.kl
cp -f /init.etc/keymaps/rhod210_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
cp -f /init.etc/keymaps/rhod210_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ $LAYOUT = "RHOD40000" ] ; then
echo "USING EXPERIMENTAL RHOD400 LAYOUT"
cp -f /init.etc/keymaps/rhod400_microp-keypad.kl /etc/keymaps/microp-keypad.kl
cp -f /init.etc/keymaps/rhod400_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
#cp -f /init.etc/keymaps/rhod400_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
elif [ $LAYOUT = "RHOD50000" ] ; then
echo "USING EXPERIMENTAL RHOD500 LAYOUT"
cp -f /init.etc/keymaps/rhod500_microp-keypad.kl /etc/keymaps/microp-keypad.kl
cp -f /init.etc/keymaps/rhod500_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
#cp -f /init.etc/keymaps/rhod500_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
else
echo "DEFAULTING TO RHOD500 LAYOUT BECAUSE WE CAN'T DETERMINE YOUR MODEL TYPE AND NO .KB FILE EXISTS IN ANDBOOT FOLDER ON THE SD CARD!"
cp -f /init.etc/keymaps/rhod500_microp-keypad.kl /etc/keymaps/microp-keypad.kl
cp -f /init.etc/keymaps/rhod500_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
#cp -f /init.etc/keymaps/rhod500_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
fi
Also, no need for the following stuff since we moved these files into system: Code:
cp -af /init.etc/keymaps/qwerty.kcm.bin /init.etc/keymaps/qwerty.kl /etc/keymaps/ mount --bind /etc/keymaps /system/usr/keychars mount --bind /etc/keymaps /system/usr/keylayout |
|
||||
|
Re: NAND Boot Testing - 01-07: Panel power on/off fixes
Quote:
I dont think i have any mountbinds. If i do, let me know. I should not since they cant be used. This was a complete hack we implemented back in the day which people got too comfy with. Yes, uevend i saw while booting. I dont have it so it just errors out and skips it. what is it and what does it do ? I was actually going to remove it since i though it was more for gingerbread. Need more info on this service i suppose. If i cant get a new ril today then simlink from /bin/pppd to /system/bin/pppd will be our solution.. falling behind on the next build.. I dont see any other reason now to fully release this to more people. also fellas.. mtdparts.. someone do the math today we can agree on.. |
|
||||
|
Re: NAND Boot Testing - 01-07: Panel power on/off fixes
Quote:
So here is what we currently have: Code:
mtdparts=msm_nand:0x20000000@0x0(nand),0x01000000@0x04000000(root),0x08000000@0x05000000(system),0x13000000@0x0D000000(userdata) Code:
mtdparts=msm_nand:0x20000000@0x0(nand),0x500000@0x04000000(root),0x8F00000@0x4500000(system),0x12c00000@0xD400000(userdata)
__________________
|
|
||||
|
Re: NAND Boot Testing - 01-07: Panel power on/off fixes
Quote:
|
|
||||
|
Re: NAND Boot Testing - 01-07: Panel power on/off fixes
Quote:
Also we can change and remove these MTDParts as need be... Maybe just leave it up to the cooks. If we want to add the cache we can with no problem. Edit: I think ACL has plans for the Root... |
|
||||
|
Re: NAND Boot Testing - 01-07: Panel power on/off fixes
Quote:
0x04000000 (base 16) = 67,108,864 (base 10) 67,108,864 (bytes) / 1024 = 65,536 (kb) / 1024 = 64 (MB) The kernel and tinboot code only occupy the first 6 MB or so of NAND. I think we could safely shrink the starting point to 16 MB without any fear of overwriting stuff. How does this look: mtdparts=msm_nand: 0x20000000@0x0(nand) - 512 MB total 0x00800000@0x01000000(root) - 8 MB of space 0x0A000000@0x01800000(system) - 160 MB of space 0x14800000@0x0B800000(userdata) - 328 MB of space I think 160 MB might be a bit much for system, but that does give the chefs a lot of space to work with. 328 MB for user data will really be 310 MB of usable space since we are eating up 18 MB with modules. |
![]() |
|
|
|