New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
scrizz
Old
#211  
scrizz's Avatar
Recognized Developer
Thanks Meter 619
Posts: 3,346
Join Date: Apr 2010
Location: Tampa, FL

 
DONATE TO ME
I"m sure the BT driver will help
PAST: T-mobile G1/iphone/N900/T-mobile HD2/BB 8520/Vibrant/T-mobile G2/Nokia N8/LG G2x/32GB HP Touchpad/Playbook/Vibrant
CURRENT: Nexus 7 /BB Z10


Vibrant Modems Here!
ლ(ಠ益ಠლ)
Y U NO BE SMARTER
 
tanner314
Old
#212  
Member
Thanks Meter 3
Posts: 46
Join Date: Feb 2012
Quote:
Originally Posted by UserNumberZero View Post
that could potentially be big news. i just downloaded the kernel myself and will take a look at it here shortly.
I will try the kernel as well!
 
JesusFreak316
Old
(Last edited by JesusFreak316; 10th February 2012 at 11:27 PM.)
#213  
Senior Member
Thanks Meter 44
Posts: 451
Join Date: Aug 2009
Default (Hopefully) fixed install script for 32GB

PLEASE DON'T TRY RUNNING THIS JUST YET; IT SHOULD BE SAFE BUT I HAVEN'T TESTED IT YET; I AM JUST POSTING IT FOR PEER REVIEW.

I've been on the code.google.com page discussing the install script and with the help of some on there, I've made some changes that I think should fix it. I haven't tested it yet but I'd like to get some input on it. I basically just fixed the dropbox link for the rootfs, incorporated nerd65's (on the code page) recommendation for making curl and tar one command, fixed the rc.local location, and what I'm actually proud of (because I figured it out myself after some googling :P) I got the MAC Address to auto copy from ifconfig, put most of the echo commands in one line, and moved exit 0 to the end.

script bad, removed

Let me know what you think!
Device history:
Bunch of dumbphones
Samsung SCH-I760
HTC Fuze (Raph 110) O2 Wireless prepaid to avoid paying for data
HTC HD2 Running Americanandroid and YukiXDA WP7
HP Touchpad 32GB (Got it for $150 )

My projects:
Rockbox VGA port
The Following User Says Thank You to JesusFreak316 For This Useful Post: [ Click to Expand ]
 
tanner314
Old
(Last edited by tanner314; 9th February 2012 at 05:18 AM.)
#214  
Member
Thanks Meter 3
Posts: 46
Join Date: Feb 2012
Quote:
Originally Posted by JesusFreak316 View Post
PLEASE DON'T TRY RUNNING THIS JUST YET; IT SHOULD BE SAFE BUT I HAVEN'T TESTED IT YET; I AM JUST POSTING IT FOR PEER REVIEW.

I've been on the code.google.com page discussing the install script and with the help of some on there, I've made some changes that I think should fix it. I haven't tested it yet but I'd like to get some input on it. I basically just fixed the dropbox link for the rootfs, incorporated nerd65's (on the code page) recommendation for making curl and tar one command, fixed the rc.local location, and what I'm actually proud of (because I figured it out myself after some googling :P) I got the MAC Address to auto copy from ifconfig, put most of the echo commands in one line, and moved exit 0 to the end.

http://dl.dropbox.com/u/11867712/Tou...tuallyFixed.sh

Let me know what you think!
Excellent work! I appreciate this I will try it. I was the one who commented about the curl commands, (I was dumb though because I didn't have wifi on) easiest mistake whatsoever. I have waited for wifi to work. I will test out the rc.local commands. And nice autocopy Mac Address with ifconfig
Jesus is good!

Edit: Oops despite the large font I didn't realize you said not to test it sorry
The Following User Says Thank You to tanner314 For This Useful Post: [ Click to Expand ]
 
JesusFreak316
Old
(Last edited by JesusFreak316; 9th February 2012 at 05:37 AM.)
#215  
Senior Member
Thanks Meter 44
Posts: 451
Join Date: Aug 2009
Quote:
Originally Posted by tanner314 View Post
Excellent work! I appreciate this I will try it. I was the one who commented about the curl commands, (I was dumb though because I didn't have wifi on) easiest mistake whatsoever. I have waited for wifi to work. I will test out the rc.local commands. And nice autocopy Mac Address with ifconfig
Jesus is good!

Edit: Oops despite the large font I didn't realize you said not to test it sorry
Thanks. I don't know if this will do anything for wifi, I think can't be fixed in a script very easily, and bodenm will probably fix it in 0.0.5 so I wouldn't get your hopes up there. If you want to try it, back up your android through clockwork mod then backup your media partition just to be safe. There's no good reason it should do anything bad, I just didn't want some person with no linux knowledge to try it. If you know your way around a terminal feel free to try it. I would do it myself but I have an early class tomorrow so I need to get some sleep. If you already have a partition from the meta-doctor it is kind of annoying to get the space back but if you've only ever tried bodenm's script you should be fine as this will recreate and reformat the ext3 partition. And yes He is.

Edit: Actually hold off, this doesn't seem to be resizing the fat partition correctly which can lead to corrupt data on /media/internal. We need to use " resizefat /dev/store/media ****M) with ****M replaced by the current size of your media partition minus 8GB. I think I could make the current size another variable and subtract 8GB from that part of the script. To find the current usage we could use " lvm.static lvdisplay -c store/media | awk -F: '{print $7/2048}'" (stolen from the arch install page on github).
Device history:
Bunch of dumbphones
Samsung SCH-I760
HTC Fuze (Raph 110) O2 Wireless prepaid to avoid paying for data
HTC HD2 Running Americanandroid and YukiXDA WP7
HP Touchpad 32GB (Got it for $150 )

My projects:
Rockbox VGA port
The Following User Says Thank You to JesusFreak316 For This Useful Post: [ Click to Expand ]
 
tanner314
Old
(Last edited by tanner314; 9th February 2012 at 06:14 AM.)
#216  
Member
Thanks Meter 3
Posts: 46
Join Date: Feb 2012
Quote:
Originally Posted by JesusFreak316 View Post
Thanks. I don't know if this will do anything for wifi, I think can't be fixed in a script very easily, and bodenm will probably fix it in 0.0.5 so I wouldn't get your hopes up there. If you want to try it, back up your android through clockwork mod then backup your media partition just to be safe. There's no good reason it should do anything bad, I just didn't want some person with no linux knowledge to try it. If you know your way around a terminal feel free to try it. I would do it myself but I have an early class tomorrow so I need to get some sleep. If you already have a partition from the meta-doctor it is kind of annoying to get the space back but if you've only ever tried bodenm's script you should be fine as this will recreate and reformat the ext3 partition. And yes He is.

Edit: Actually hold off, this doesn't seem to be resizing the fat partition correctly which can lead to corrupt data on /media/internal. We need to use " resizefat /dev/store/media ****M) with ****M replaced by the current size of your media partition minus 8GB. I think I could make the current size another variable and subtract 8GB from that part of the script. To find the current usage we could use " lvm.static lvdisplay -c store/media | awk -F: '{print $7/2048}'" (stolen from the arch install page on github).
Alternatively, I could use lvresize -L command and then use the resizefat. This script fixed the touchscreen ts_srv. Unfortunately wifi does not work as you said as a script may not generally fix it. I will use lvscan to make sure partitions are correct. 8GB is the correct size. I can't wait for 0.0.5!
Edit: Also I forgot to mention someone should test the new Android kernel HP released. There may be potential fixes, such as wifi! I also wonder if tri-boot capabilities are possible with a new kernel(most likely not) The /boot isn't big enough
 
UserNumberZero
Old
#217  
Junior Member
Thanks Meter 1
Posts: 16
Join Date: Dec 2011
ive been feeling really adventurous lately, so i have been messing around with chroot, and have a rootfs i made from scratch, which i made from an Ubuntu-minimal and added GNOME components to. i have thus far been unable to get it to boot, but i think i may know what the problem is. in /sbin/ there is a file called "init" that i believe should be marked as executable, but its not and for whatever reason i cannot change it to executable. everything else should be in place.
 
JesusFreak316
Old
(Last edited by JesusFreak316; 10th February 2012 at 11:25 PM.)
#218  
Senior Member
Thanks Meter 44
Posts: 451
Join Date: Aug 2009
Edit 2: Since I slightly messed up the fix touchscreen and mac address parts of the previous linked scripts (fixed now), here's a simple script you can run to fix the touchscreen and mac address and nothing else. Unlike the others, this doesn't have to by run from /tmp but you can copy it to your internal memory then just run sh /media/internal/fixrclocal.sh and it should run and reboot. http://dl.dropbox.com/u/11867712/fixrclocal.sh

Edit: Ok, well I tested my script and it installed correctly, however the touchscreen didn't get fixed. I reverted the last few lines to the ones from the original script with exit 0 moved to the bottom. It should work now. Bottom line, this should be safe to install. I created two scripts, one to install with a 4GB partition and another to reinstall if you already have a partition created. http://dl.dropbox.com/u/11867712/4GBUbuntuInstall.sh and http://dl.dropbox.com/u/11867712/4GBUbuntuReinstall.sh Try them out. Touch screen is still overly sensitive but I don't think that's script related either, just waiting for 0.0.5 for that.

Ok, here's my new script. I incorporated asking for the desired partition size instead of hard coding it, auto calculated the size to shrink the fat volume to, and added comments. As I'm still new to this I'd still hold off on testing out just yet. Anyone got any comments or suggestions?

Code:
 
#!/bin/bash
# This script partitions your TouchPad 32GB and installs TouchPadBuntu
echo "Mount boot writable."
mount -o rw,remount /boot
echo "Download and install moboot."
cd /tmp
curl -O http://moboot.googlecode.com/files/moboot_0.3.5.zip
unzip moboot_0.3.5.zip
mv uImage.moboot_0.3.5 /boot/uImage.moboot
cd /boot
rm uImage
ln -s uImage.moboot uImage
ln -s uImage-2.6.35-palm-tenderloin uImage.webOS
echo "yes" > moboot.verbose.TouchPadBuntu sync
echo "Download and install Ubuntu kennel."
curl -O http://dl.dropbox.com/u/4357827/TouchPadBuntu/uImage.TouchPadBuntu
cd /tmp
echo "Repartition to create ext3 volume for Ubuntu."
pkill -SIGUSR1 cryptofs
umount /media/internal
echo "What size do you want your ext3 partition in megabytes? 4096=4GB, 8192=8GB, etc. 4GB recommended minimum."
read PARTITION
echo "Your chosen partition is ${PARTITION}MB."
CURRENTSIZE=$(lvm.static lvdisplay -c store/media | awk -F: '{print $7/2048}')
echo "Your current media partition is ${CURRENTSIZE}MB."
NEWSIZE=$(($CURRENTSIZE - $PARTITION))
echo "Your new partition layout will include a $PARTITION megabyte ext3 partition and a $NEWSIZE megabyte media partition."
echo "Now resizing your media partition and creating the ext3 partition for Ubuntu."
resizefat /dev/store/media ${NEWSIZE}M
lvresize -L -${PARTITION}M /dev/store/media
lvcreate -L ${PARTITION}M -n ubuntu-root store
mkfs.ext3 /dev/store/ubuntu-root 
mkdir /tmp/linux
mount /dev/store/ubuntu-root /tmp/linux
echo "Download and install Ubuntu main system."
cd /tmp/linux
curl http://dl.dropbox.com/u/4357827/TouchPadBuntu/TouchPadBuntuRootfs.tgz | tar xz
curl http://dl.dropbox.com/u/4357827/TouchPadBuntu/TouchPadBuntuModules.tar.gz | tar xz
echo "Fix touchscreen and other things."
sed -i '/^exit 0/d' ./etc/rc.local
YourMAC=$(ifconfig eth0 | awk '/HWaddr/ {print $5}')
echo palm_mac_address=$YourMAC >> ./etc/rc.local
echo "insmod /ar6000.ko /usr/bin/ts_srv & (sleep 20; /sbin/initctl stop udev) &" >> ./etc/rc.local
echo "exit 0" >> ./etc/rc.local
echo "Rebooting..."
reboot
Device history:
Bunch of dumbphones
Samsung SCH-I760
HTC Fuze (Raph 110) O2 Wireless prepaid to avoid paying for data
HTC HD2 Running Americanandroid and YukiXDA WP7
HP Touchpad 32GB (Got it for $150 )

My projects:
Rockbox VGA port
The Following User Says Thank You to JesusFreak316 For This Useful Post: [ Click to Expand ]
 
tanner314
Old
#219  
Member
Thanks Meter 3
Posts: 46
Join Date: Feb 2012
Quote:
Originally Posted by JesusFreak316 View Post
Edit 2: Since I slightly messed up the fix touchscreen and mac address parts of the previous linked scripts (fixed now), here's a simple script you can run to fix the touchscreen and mac address and nothing else. Unlike the others, this doesn't have to by run from /tmp but you can copy it to your internal memory then just run sh /media/internal/fixrclocal.sh and it should run and reboot. http://dl.dropbox.com/u/11867712/fixrclocal.sh

Edit: Ok, well I tested my script and it installed correctly, however the touchscreen didn't get fixed. I reverted the last few lines to the ones from the original script with exit 0 moved to the bottom. It should work now. Bottom line, this should be safe to install. I created two scripts, one to install with a 4GB partition and another to reinstall if you already have a partition created. http://dl.dropbox.com/u/11867712/4GBUbuntuInstall.sh and http://dl.dropbox.com/u/11867712/4GBUbuntuReinstall.sh Try them out. Touch screen is still overly sensitive but I don't think that's script related either, just waiting for 0.0.5 for that.

Ok, here's my new script. I incorporated asking for the desired partition size instead of hard coding it, auto calculated the size to shrink the fat volume to, and added comments. As I'm still new to this I'd still hold off on testing out just yet. Anyone got any comments or suggestions?

Code:
 
#!/bin/bash
# This script partitions your TouchPad 32GB and installs TouchPadBuntu
echo "Mount boot writable."
mount -o rw,remount /boot
echo "Download and install moboot."
cd /tmp
curl -O http://moboot.googlecode.com/files/moboot_0.3.5.zip
unzip moboot_0.3.5.zip
mv uImage.moboot_0.3.5 /boot/uImage.moboot
cd /boot
rm uImage
ln -s uImage.moboot uImage
ln -s uImage-2.6.35-palm-tenderloin uImage.webOS
echo "yes" > moboot.verbose.TouchPadBuntu sync
echo "Download and install Ubuntu kennel."
curl -O http://dl.dropbox.com/u/4357827/TouchPadBuntu/uImage.TouchPadBuntu
cd /tmp
echo "Repartition to create ext3 volume for Ubuntu."
pkill -SIGUSR1 cryptofs
umount /media/internal
echo "What size do you want your ext3 partition in megabytes? 4096=4GB, 8192=8GB, etc. 4GB recommended minimum."
read PARTITION
echo "Your chosen partition is ${PARTITION}MB."
CURRENTSIZE=$(lvm.static lvdisplay -c store/media | awk -F: '{print $7/2048}')
echo "Your current media partition is ${CURRENTSIZE}MB."
NEWSIZE=$(($CURRENTSIZE - $PARTITION))
echo "Your new partition layout will include a $PARTITION megabyte ext3 partition and a $NEWSIZE megabyte media partition."
echo "Now resizing your media partition and creating the ext3 partition for Ubuntu."
resizefat /dev/store/media ${NEWSIZE}M
lvresize -L -${PARTITION}M /dev/store/media
lvcreate -L ${PARTITION}M -n ubuntu-root store
mkfs.ext3 /dev/store/ubuntu-root 
mkdir /tmp/linux
mount /dev/store/ubuntu-root /tmp/linux
echo "Download and install Ubuntu main system."
cd /tmp/linux
curl http://dl.dropbox.com/u/4357827/TouchPadBuntu/TouchPadBuntuRootfs.tgz | tar xz
curl http://dl.dropbox.com/u/4357827/TouchPadBuntu/TouchPadBuntuModules.tar.gz | tar xz
echo "Fix touchscreen and other things."
sed -i '/^exit 0/d' ./etc/rc.local
YourMAC=$(ifconfig eth0 | awk '/HWaddr/ {print $5}')
echo palm_mac_address=$YourMAC >> ./etc/rc.local
echo "insmod /ar6000.ko /usr/bin/ts_srv & (sleep 20; /sbin/initctl stop udev) &" >> ./etc/rc.local
echo "exit 0" >> ./etc/rc.local
echo "Rebooting..."
reboot
so whats the point of fixing the mac address did the script fix the wifi?
 
JesusFreak316
Old
(Last edited by JesusFreak316; 3rd March 2012 at 05:19 PM.)
#220  
Senior Member
Thanks Meter 44
Posts: 451
Join Date: Aug 2009
Default Easy guide to getting Ubuntu installed with working touchscreen (wifi too now!)

Edit 2: Here's an experimental uninstaller: removed This should remove the ext3 partition and the Ubuntu kernel from /boot and resize media. Please don't try it just yet; this one is currently only for peer review.

Edit: Thanks to joshuat6's work on post #190 I got wifi working and touchscreen somewhat better. My scripts are now updated and if you just want to replace the two files that fix the wifi and improve the touchscreen here's another script: http://dl.dropbox.com/u/11867712/fixwifits.sh. Again, just copy it to your storage, open novaterm and run:
Code:
cd /media/internal
sh fixwifits.sh
Hopefully this should fix your wifi.

First off, sorry about the double post, I wanted to just get one clean post for the tutorial. Hopefully, by the time you are done here, you'll have a functional ubuntu install, though we're waiting for bodenm to release version 0.0.5 with fixed touchscreen sensitivity, wifi, and sound.

1. Enable developer mode on your Touchpad and get novacom and novaterm set up on your PC. You probably have this already. If not, google it.

2. There are two files you have to choose from: 4GBUbuntuInstall.sh or 4GBUbuntuReinstall.sh. The only difference between them is that the first one will create the partition needed to install Ubuntu while the second one will just do the install. So, if it's your first time doing anything with Ubuntu, run the install script, and if the big download failed, you are updating to a newer version, or you just know you already have the partition created correctly (via lvscan), run the reinstaller.

3. Download the desired script and copy it to your Touchpad internal media through the usb storage mode.

4. Connect to wifi. (It's a > 500MB download so it takes a while and if something goes wrong it has to restart. Again, if the download fails, run it again but using the reinstall script this time.)

5. Exit usb storage mode and activate novaterm.

6. Type the following: For install:
Code:
cp /media/internal/4GBUbuntuInstall.sh /tmp
cd /tmp
sh 4GBUbuntuInstall.sh
For reinstall:
Code:
cp /media/internal/4GBUbuntuReinstall.sh /tmp
cd /tmp
sh 4GBUbuntuReinstall.sh
7. Cross your fingers.

8. After a while your Touchpad should reboot into moboot. Select Boot TouchPadBuntu, and if all goes well, you should boot Ubuntu with a functional, yet difficult touchscreen. If the boot fails, try running the reinstall script. If that fails, post a reply. I am considering consolidating the install and reinstall script into one, but am thinking about how to best do that.

---------- Post added at 06:46 PM ---------- Previous post was at 06:44 PM ----------

Quote:
Originally Posted by tanner314 View Post
so whats the point of fixing the mac address did the script fix the wifi?
Nah, not that I can tell. I think the wifi module included is broken or something. There was some discussion a few pages back on it. We'll have to wait for 0.0.5 for that. This is just to get an easy install ready. What this does is, for when wifi is fixed, Ubuntu will have the same MAC address as Webos and not an arbitrary or blank one.
Device history:
Bunch of dumbphones
Samsung SCH-I760
HTC Fuze (Raph 110) O2 Wireless prepaid to avoid paying for data
HTC HD2 Running Americanandroid and YukiXDA WP7
HP Touchpad 32GB (Got it for $150 )

My projects:
Rockbox VGA port

The Following 4 Users Say Thank You to JesusFreak316 For This Useful Post: [ Click to Expand ]