Re: Need help compiling a custom build

1,936 views
Skip to first unread message

Ketut Putu Kumajaya

unread,
Jul 17, 2012, 10:35:43 PM7/17/12
to andro...@googlegroups.com

Actually you do not have to compile anything, asus_laptop have hid_multitouch and hid_ntrig modules. You only need to change initrd.img.

For example, Android-x86 installed on /dev/sda5:

# busybox mount /dev/block/sda5 /mnt/secure
# cp /mnt/secure/android-4.0-RC2/initrd.img /data/local/
# cd /data/local
# mkdir initrd-new
# cd initrd-new
# zcat ../initrd.img | cpio -id
# vi scripts/tx2z_info

tx2z_info contents:

# This is just an example scripts for HP TX2Z
set -x

tx2z_info()
{
     PREDEV=hid_ntrig
TOUCH=hid_multitouch
EXTMOD="$EXTMOD $TOUCH"
return 1
}

detect_hardware()
{
tx2z_info
}

Save and exit from vi using ":wq" command.

# rm scripts/asus_info
# find . | cpio -H newc -o > ../initrd
# cd ..
# gzip -c initrd > initrd-new.img
# mv /mnt/secure/android-4.0-RC2/initrd.img /mnt/secure/android-4.0-RC2/initrd-orig.img
# cp initrd-new.img /mnt/secure/android-4.0-RC2/initrd.img
# sync
# busybox umount /mnt/secure
# reboot

Please note, this is just an example and untested. If something goes wrong, edit your grub command (using tab when grub boot selector appear), change "initrd /android-4.0-RC2/initrd.img" to "initrd android-4.0-RC2/initrd-orig.img". Good luck!

Best regards,
Ketut P. Kumajaya

Pada 18 Jul 2012 04:24, "Ronak Patel" <rnak...@gmail.com> menulis:

Ronak Patel

unread,
Jul 18, 2012, 5:04:03 AM7/18/12
to andro...@googlegroups.com
Thank you for taking the time for that guide.
I must confess, I am a complete newbie to android modding.

Where would I type these commands into? I've just installed a fresh copy of the tx2500 image 4.0.4 rc2 to my hard drive now.
 

ketut.k...@gmail.com

unread,
Jul 18, 2012, 12:04:51 PM7/18/12
to andro...@googlegroups.com
Please try asus_laptop ISO and report back which part of your device not working.

Regards,
Ketut P. Kumajaya
From: Ronak Patel <rnak...@gmail.com>
Date: Wed, 18 Jul 2012 02:04:03 -0700 (PDT)
Subject: Re: Need help compiling a custom build

Thank you for taking the time for that guide.
I must confess, I am a complete newbie to android modding.

Where would I type these commands into? I've just installed a fresh copy of the tx2500 image 4.0.4 rc2 to my hard drive now.
 

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/Gj3NrD-rbXkJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
Message has been deleted

Ronak Patel

unread,
Jul 18, 2012, 2:04:37 PM7/18/12
to andro...@googlegroups.com
interestingly, the asus_laptop 4.0.4 RC2 wont boot.
It does not even reach the android splash screen. The tablet reboots before it gets that far

ketut.k...@gmail.com

unread,
Jul 24, 2012, 1:44:39 AM7/24/12
to andro...@googlegroups.com
Received your message Ron. Back to the forum, after updated my Ubuntu I have prepared my system to build android-x86 kernel outside android-x86 build system. Almost ready, be patient :D

From: Ronak Patel <rnak...@gmail.com>
Date: Wed, 18 Jul 2012 11:04:37 -0700 (PDT)
Subject: Re: Need help compiling a custom build

interestingly, the asus_laptop 4.0.4 RC2 wont boot.
It does not even reach the android splash screen. The tablet reboots before it gets that far

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/eWIfSCmWI7MJ.

Ketut Putu Kumajaya

unread,
Jul 24, 2012, 3:17:47 AM7/24/12
to andro...@googlegroups.com
Hi Ron, hid_ntrig and hid_multitouch module attached. Open Terminal app, type "su" to get root access. I assume you download 3.0.36-android-x86-tx2500+_hid.tar.gz to /sdcard, in Terminal:

# mkdir -p /lib/modules/3.0.36-android-x86-tx2500+/kernel/drivers/hid
# tar zxf /sdcard/3.0.36-android-x86-tx2500+_hid.tar.gz -C /lib/modules/3.0.36-android-x86-tx2500+/kernel/drivers/hid/
# depmod -a
# modprobe hid_ntrig
# modprobe hid_multitouch

If kernel modules loaded successfully, try your touch screen. Good luck!


Best regards,
Ketut P. Kumajaya

3.0.36-android-x86-tx2500+_hid.tar.gz

Ronak Patel

unread,
Jul 24, 2012, 6:34:25 AM7/24/12
to andro...@googlegroups.com


On Tuesday, July 17, 2012 8:23:30 PM UTC+1, Ronak Patel wrote:
I Own a HP Tx2z,
It has the same hardware as the tx2500 expect for the digitizer.
The latest ICS 4.0.4 RC2 build for the tx2500 works great on my tablet, however the tousch screen does not work

From reading the fourms I need to:

- Create a custom build 
- with a new target, add put these two lines in the customized defconfig 
CONFIG_HID_MULTITOUCH=y 
CONFIG_HID_NTRIG=y  

How do I go about doing this?

Do I follow this guide?

When I do follow it, how do I ensure that I modifying the existing tx2500 sources and not a generic ics build?


Sorry about the newbieness

Thank you.

Even after having first typed su
Despite having root in the prefix as well (root@tx2500 is something like that)
I keep getting

Mkdir failed for,  /lib/modules/3.0.36-android-x86-tx2500+/kernel/drivers/hid, Read only file system
 

ketut.k...@gmail.com

unread,
Jul 24, 2012, 6:43:14 AM7/24/12
to andro...@googlegroups.com
Install Android-x86 with system read/write access.

From: Ronak Patel <rnak...@gmail.com>
Date: Tue, 24 Jul 2012 03:34:25 -0700 (PDT)
Subject: Re: Need help compiling a custom build



--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/LdZb2X61aKwJ.

Ketut Putu Kumajaya

unread,
Jul 28, 2012, 9:14:47 PM7/28/12
to andro...@googlegroups.com

I tried downloading my own attachment, extracted without problems. I have uploaded to https://www.box.com/shared/88f26f8f81dccc30bdd8 too.

On Jul 29, 2012 3:50 AM, "mohideen" <mohid...@gmail.com> wrote:
Hi BlackHawk, I tried your steps on my HP TX2 running android 4.0 RC2 ICS. I can't get beyond step 2. I get the following error when running the tar command - "Invalid gzip magic". I suspect the file is corrupt. Could you please resend the file.

Thanks
mohideen

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/A0wJYj1MLTAJ.

mohideen

unread,
Jul 29, 2012, 2:13:16 PM7/29/12
to andro...@googlegroups.com
May be a problem with my tar or something else. Even I tried extracting in my Windows and it worked fine. So, I made it a Zip archive from my Windows PC and then used a zip tool in android to extract it to the location you specified in your steps.

:), Multi-Touch Worked great. But, Touch stopped working after a restart. I will try installing again and let you know.

Thank You for your help.


On Saturday, 28 July 2012 21:14:47 UTC-4, blackhawk wrote:

I tried downloading my own attachment, extracted without problems. I have uploaded to https://www.box.com/shared/88f26f8f81dccc30bdd8 too.

Ketut Putu Kumajaya

unread,
Jul 29, 2012, 10:40:24 PM7/29/12
to andro...@googlegroups.com

When you install Android-x86 to hard drive, install /system directory as read/write.

Add:

modprobe hid_ntrig
modprobe hid_multitouch

to /etc/init.sh

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/lH1lGJkQPvsJ.
Reply all
Reply to author
Forward
0 new messages