[Dev] Android on the Universal

Search This thread

d-two

Inactive Recognized Developer
Nov 27, 2008
1,554
465
Is it just the kernel that you are changing, it works ir you switch to mines? Did you change the vold.fstab or init.rc?

No, i have only replace the Kernel from yours to mine...

AND HERE:

I have create my own small android and in this is the touchscreen work! You must have something in your android !!!
 

notime2d8

Senior Member
Jul 31, 2007
303
93
Birmingham
No, i have only replace the Kernel from yours to mine...

AND HERE:

I have create my own small android and in this is the touchscreen work! You must have something in your android !!!


Well..thats weird...i replaced the file in frameworks/base/ui with the ones from aosp...there shouldn't be anything else that was changed. Can you post you setup for the touchscreen? Did you change xmax and ymax to 640x480 and did you use the same tslib values?
 

d-two

Inactive Recognized Developer
Nov 27, 2008
1,554
465
Well..thats weird...i replaced the file in frameworks/base/ui with the ones from aosp...there shouldn't be anything else that was changed. Can you post you setup for the touchscreen? Did you change xmax and ymax to 640x480 and did you use the same tslib values?

Here is the compete source:
Code:
/* Physical address space information */

static unsigned long universal_pin_config[] __initdata = {
....
	/* SSP 1 */
	GPIO23_SSP1_SCLK,
	GPIO24_GPIO | MFP_LPM_DRIVE_HIGH,
	GPIO25_SSP1_TXD,
	GPIO26_SSP1_RXD,
...

};

/*************************************************************************
* Touchscreen - TSC2046
**************************************************************************/
/* fixed regulator for ads7846 */
static struct regulator_consumer_supply ads7846_supply =
       REGULATOR_SUPPLY("vcc", "spi1.0");

static struct regulator_init_data vads7846_regulator = {
       .constraints = {
               .valid_ops_mask         = REGULATOR_CHANGE_STATUS,
       },
       .num_consumer_supplies  = 1,
       .consumer_supplies      = &ads7846_supply,
};

static struct fixed_voltage_config vads7846 = {
       .supply_name            = "vads7846",
       .microvolts             = 3300000, /* 3.3V */
       .gpio                   = -EINVAL,
       .startup_delay          = 0,
       .init_data              = &vads7846_regulator,
};

static struct platform_device vads7846_device = {
       .name           = "reg-fixed-voltage",
       .id             = 1,
       .dev = {
               .platform_data = &vads7846,
       },
};

static const struct ads7846_platform_data tsc2046_info = {
	.model            = 7845,
	.vref_delay_usecs = 100,
	.pressure_max     = 512,
	.debounce_max     = 20,
	.debounce_tol     = 10,
	.debounce_rep     = 1,
	.gpio_pendown     = GPIOA12_TOUCHSCREEN_N,
	.x_max			  = 480,
	.y_max			  = 640,
	.calib_data		  = {9078, 26, -3438768, 36, -11665, 45389832},
};

static struct pxa2xx_spi_chip tsc2046_chip = {
	.tx_threshold = 1,
	.rx_threshold = 2,
	.timeout      = 64,
	.gpio_cs      = GPIO24_TSC2046_CS,
};


static struct spi_board_info tsc2046_board_info[] __initdata = {
	{
		.modalias        = "ads7846",
		.bus_num         = 1,
		.max_speed_hz    = 2600000, /* 100 kHz sample rate */
		.irq             = PXA_GPIO_TO_IRQ(GPIOA12_TOUCHSCREEN_N),
		.platform_data   = &tsc2046_info,
		.controller_data = &tsc2046_chip,
	},
};

static struct pxa2xx_spi_master pxa_ssp_master_info = {
	.num_chipselect = 1,
	.clock_enable   = CKEN_SSP1,
	.enable_dma     = 1,
};


static void __init universal_init(void)
{
...
	spi_register_board_info(tsc2046_board_info, 1);
	pxa2xx_set_spi_info(1, &pxa_ssp_master_info);
	platform_device_register(&vads7846_device);
...
}

Do you have an idea why the SDCard is not right detected?
 
Last edited:

notime2d8

Senior Member
Jul 31, 2007
303
93
Birmingham
Do you have an idea why the SDCard is not right detected?

No, as the kernel is booting from the sdcard so thats working....the only thing after that is android mounting the mmcblk0p1 as sdcard either manually by the init.rc or automatically by vold.fstab...

can you try adding this to your init.rc: mount vfat /dev/block/mmcblk0p1 /sdcard
 

d-two

Inactive Recognized Developer
Nov 27, 2008
1,554
465
No, as the kernel is booting from the sdcard so thats working....the only thing after that is android mounting the mmcblk0p1 as sdcard either manually by the init.rc or automatically by vold.fstab...

can you try adding this to your init.rc: mount vfat /dev/block/mmcblk0p1 /sdcard

I have use your init.rc and with your kernel is it working... also it has something todo with the kernel...

EDIT: The SDCard is mount...
EDIT: Or can you give me your kernel an i will look what is the difference...
 
Last edited:

notime2d8

Senior Member
Jul 31, 2007
303
93
Birmingham
I have use your init.rc and with your kernel is it working... also it has something todo with the kernel...

EDIT: The SDCard is mount...
EDIT: Or can you give me your kernel an i will look what is the difference...

I'm just using the kernel/common/android-3.8 from the android git... You should just go ahead and jump kernels...so you can figure out why my touch isn't working....can you post your zImage so I can test?...I reverted all my changes in frameworks/base and deleted my .idc file but still....its not working...:confused:

Sent from my SGH-T959 using xda app-developers app
 
Last edited:

d-two

Inactive Recognized Developer
Nov 27, 2008
1,554
465
I'm just using the kernel/common/android-3.8 from the android git... You should just go ahead and jump kernels...so you can figure out why my touch isn't working....can you post your zImage so I can test?...I reverted all my changes in frameworks/base and deleted my .idc file but still....its not working...:confused:

Sent from my SGH-T959 using xda app-developers app

OK, i don't know why... but after loding your config and setup a little bit more it's working :confused:

Here is my zImage...
 

Attachments

  • zImage.zip
    1.7 MB · Views: 31

notime2d8

Senior Member
Jul 31, 2007
303
93
Birmingham
I wish i had an sdio card to test....

I really would love to get sdio working/tested or someone else to.. @d-two :highfive: Because i really want to try and get one of these cards!!!

http://www.ebay.com/itm/Universal-S...070?pt=LH_DefaultDomain_0&hash=item2a2c7cc206

Wireless N, FM, and bluetooth...This one probably won't work cause it looks like some connections still need to be soldered.

I don't know where I'm going with this but everything works with USB host ... Some slowly... also the Wii and ps3 remotes work over Bluetooth...I might post another video of the USB video and Wii remote when I get double buffering and some USB cables done.
 
Last edited:

notime2d8

Senior Member
Jul 31, 2007
303
93
Birmingham
I don't know where I'm going with this but everything works with USB host ... Some slowly... also the Wii and ps3 remotes work over Bluetooth...I might post another video of the USB video and Wii remote when I get double buffering and some USB cables done.

Here's my next shaky video...with the resolution dropped down to 800x600 using a Wii remote...i didn't plan it out...it's a poorly done video...but yeah...usb mouse/video and Wii remote.


 
Last edited:
  • Like
Reactions: ALoGeNo and orb3000

NikolasV

Member
Jul 1, 2008
21
2
Kharkov
Hi!
Could someone write which exactly commands i must type in linux terminal to create partitions with needed size and copy all necessary files to them.
I using Debian live cd/
 
Last edited:

orzech2111

Member
Nov 19, 2010
45
4
Hi!
Could someone write which exactly commands i must type in linux terminal to create partitions with needed size and copy all necessary files to them.
I using Debian live cd/

You have to partition SD card, e.g. by Gparted or any tool for Windows (partition for Android must be second and at least ~200mb I think). Next: write in linux terminal: mkfs.ext2 /dev/sdb2 (it should work, but I am not responding for any problems) or just (if you have graphical environment on Debian) run GParted and format it easier and safer way.

Next you should use this commands:
mount /dev/sda2 /mnt
tar -xvf /location/of/slim.tar.gz /mnt

It should work, but I am not sure it will work well. I hope I helped.

Sorry for my English. I tried to not make many errors(?) in this post.
 
Hi dudes, I have my htc universal modded with external wifi anntena connector SMA, I'm not using it is very sad to have that piece of hardware getting dust, maybe someone is interested on it, here I let you some pics, if you are not interested maybe can do this mod for him self hehe.

NOTE: I have also 4800mAh chinese battery pretty new with big cover, if some one needs better pictures just PM, this ones are old ones, now I have better camera :p

NOTE to SomeModerator: I dont Know if I'm breaking some rule, if I do just PM please/thanks.

Cheers.

Enviado desde mi GT-I9003
 

Attachments

  • uploadfromtaptalk1371935622338.jpg
    uploadfromtaptalk1371935622338.jpg
    45.3 KB · Views: 456
  • uploadfromtaptalk1371935658833.jpg
    uploadfromtaptalk1371935658833.jpg
    40.4 KB · Views: 444
  • IMAGE_014.jpg
    IMAGE_014.jpg
    68.7 KB · Views: 415
  • IMAGE_015.jpg
    IMAGE_015.jpg
    45.5 KB · Views: 419
  • IMAGE_016.jpg
    IMAGE_016.jpg
    39 KB · Views: 415
  • IMAGE_017.jpg
    IMAGE_017.jpg
    38.1 KB · Views: 389
  • IMAGE_022.jpg
    IMAGE_022.jpg
    45.5 KB · Views: 449
  • IMAGE_024.jpg
    IMAGE_024.jpg
    48.3 KB · Views: 473
  • IMAGE_021.jpg
    IMAGE_021.jpg
    37.1 KB · Views: 436
  • IMAGE_020.jpg
    IMAGE_020.jpg
    47.6 KB · Views: 421
Last edited:
  • Like
Reactions: notime2d8
Hi notime2d8 and All,
sorry for my basic questions, but I'm getting trouble while trying to boot android with My UNI G3 64mb Device.
With Minitool Partition Wizard I partitioned My 8gb SDHC Card in two: The first partition is FAT32, c.a. 7gb, the second one is EXT4, 1gb. Also I've tried with another 2gb SD Card, partitioned in the same manner (but obviously with other partition dimensions).
Then I transfered zImage, startup.txt and haret-w.exe to the first partition; I tried several options from sourceforge site: zImage 3.10, 3.8 and the "slim" version.
Then I mounted EXT4 partition with Paragon ExtFS, and I extracted the correct content of data tar to the root of that partiton (i.e. data.tar.gz or data.lite.tar.gz with zImage 3.10 or 3.8, slim.tar.gz with the correct zImage in "slim" section of the site).
Then I checked for startup.txt options, to remove "mem=128M" and add both nothing or "mem=64M" in the boot sequence, and add
another tweaks, such as Touch Calibration parameters and other stuff.
Then I finally inserted SDHC (or SD) to the phone, I checked that bluetooth and phone were powered on and not Wi-Fi stack (I've also tried with BT off with the same results), and finally I launched "haret-w.exe".
Application starts, begins to load drivers, but after a few seconds arrives at the message I added in attachments. As you can see, the device reboots itself without any success to let it work. What am I doing wrong?
Thank you all for the patience.
 

Attachments

  • IMG_3105.JPG
    IMG_3105.JPG
    205.1 KB · Views: 237

dstyl

Senior Member
Apr 24, 2010
70
2
Heilbronn
Boot athena from USB or internal FlashDisk

For host you need a cable like this link and a powered USB hub like this link these are the ones I'm using and you'll need a kernel with host support enabled plus any drivers for the usb devices. I can do the kernel and drivers if you let me know which usb devices you are wanting to use.

Sorry i know its a bit offtopic but im having problems to boot android.I have no minisd card so the only possibilitys to boot are over the cable and than from usbstick or the internal flash of the athena 400. I tried everything but i always get kernel screen , then android and then only a black screen stays or my phone just reboots into wm. I dontknow what im doing wrong , formated usb into 2 ext2 partitions and a swap and still cant boot. If anyone knows what im doing wrong ? I just posted it because the athena forums are dead
 

OMOZ

New member
May 22, 2013
3
0
Heilbronn
HTC Universal und Android

Hello to all, I have now spent 24 hours to finally see Android on my HTC Universal and fail again on reboot after reboot comes back WM 6.1, I think the SD card partitioned'm right at the end .... although I until now everything always hinbekommen, I read often use some commands as write in linux terminal: mkfs.ext2 / dev/sdb2, how do I do that? Create file? Sorry for the stupid questions, but hope dies last, maybe even one or the other but still a hint, because somehow I take the HTC Universal regulary! Did my comment / question from German to English with Google translator translated

Regards OMOZ
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Current android versions:

    CM7.2

    Kernel Status:

    - Kernel v3.10
    - LCD
    - Keyboard
    - SDHC MMC
    - Max1587a
    - Asic3 Buttons
    - Automatic screen rotation
    - Touchscreen
    - Bluetooth (audio and mouse tested and working)
    - Usb host (supports everything USB 1.1 compliant)
    - Backlight
    - Adb and Usb mass storage
    - M24C08 Eeprom
    - Keyboard and button backlights
    - RTC8564
    - Led's - Red, Green, Blue
    - Vibrate
    - AC Charging
    - USB Charging
    - WIFI
    - Support for EXT4 filesystems
    - Modem
    - Phone Support
    - Audio Support - no input from mics, routing related.
    - Data -3g or GPRS
    - Power Management - Standby works which is a low power state, Deep sleep and suspend to mem is not working
    - DOC flash chips are supported by kernel for both g3 and g4 devices

    Not Working/To-do list::

    - Camera's - need to add V4L driver to android and dual cam support for camera app and kernel driver.
    - add video/audio decoders/encoders
    - add modem sound routing to kernel or android (AT commands )




    Link to files: (Link)

    Link to Kernel source: (Link)
    7
    New Test Build...

    I just uploaded a new test image for the 128mb users. It's the latest cm7 and only needs for the the files to be placed on the root of your memory card. It works ok after it settles and i usually have 51mb of ram free with ~9 to 12mb being used by settings so maybe 63mb free at idle with nothing running.

    Everythings working except for the wifi and the modem/phone functions.

    Here is the LINK

    The file "sdboot.zip" contains all of the files that need to be placed on the root of your memory card and the folder "sdcard" has each of the individual files

    I haven't done any real tweaks or tested if zram or swap allows it to run on my 64mb universal. I will try to post a video when i get some time of it running on mine with my class10 sd card. Before you say that its not working make sure that your memory card is being mounted when the kernel is being loaded, if not try reinsearting it before android tries to start.
    5
    I think I might have to do another update if android cooperates.

    <4>universal_acx: universal_wlan_start: done
    <4>universal_acx: universal_wlan_init: platform_device_register ...
    <4>acx: found ACX100-based wireless network card
    <4>initial debug setting is 0x000A
    <4>acx: found an ACX100-based wireless network card, irq:260, membase:0x08000000, mem_size:33, iobase:0xc88b6000acx: the initial debug setting is 0x000A
    <4>acx: using IRQ 260
    <4>acx: request_irq 260 successful
    <4>acx: ACX radio type 0x0d
    <4>acx: requesting firmware image 'WLANGEN.BIN'
    <4>acx: acx_write_fw (main): 0
    <4>acx: acx_validate_fw (main): 0
    <3>init: untracked pid 390 exited
    <4>acx: requesting firmware image 'RADIO0d.BIN'
    <3>init: untracked pid 391 exited
    <4>acx: acx_write_fw (radio): 0
    <4>acx: acx_validate_fw (radio): 0
    <4>acx: initializing max packet templates
    <4>acx copy_from_slavemem: warning! destination not word-aligned!
    <4>acx copy_from_slavemem: warning! destination not word-aligned!
    <4>acx: TotalMemoryBlocks=79 (20224 bytes)
    <4>acx: NVS_vendor_offs:0000 probe_delay:500 eof_memory:65536
    <4>acx: CCAModes:04 Diversity:01 ShortPreOpt:01 PBCC:01 ChanAgil:00 PHY:05 Temp:01
    <4>acx: AntennaID:01 Len:02 Data:1E 00
    <4>acx: PowerLevelID:0A Len:00 Data:
    <4>acx: DataRatesID:02 Len:05 Data:02 04 11 22 44
    <4>acx: DomainID:03 Len:07 Data:30 20 30 31 32 40 41
    <4>acx: ProductID:04 Len:09 Data:TI ACX100
    <4>acx: ManufacturerID:05 Len:07 Data:TI Tes:
    <4>acx: chipset TNETW1100B, radio type 0x0D (Maxim (MAX2820)), form factor 0x03 (Compact Flash), EEPROM version 0x05, uploaded firmware 'Rev 1.9.8.b'
    <4>acx copy_from_slavemem: warning! destination not word-aligned!
    <4>acx copy_from_slavemem: warning! destination not word-aligned!
    <4>acx: got antenna value 0x8D
    <4>acx copy_from_slavemem: warning! destination not word-aligned!
    <4>acx: got Energy Detect (ED) threshold 112
    <4>acx copy_from_slavemem: warning! destination not word-aligned!
    <4>acx: got Channel Clear Assessment (CCA) value 13
    <4>acx copy_from_slavemem: warning! destination not word-aligned!
    <4>acx: got regulatory domain 0x30
    <4>acx: got sensitivity value 176
    <4>acx: new ratevector: 82 84 0B 16 2C
    <4>acx: phy0: changing radio power level to 18 dBm (23)
    <4>acx: creating proc entry /proc/driver/acx_phy0/info
    <4>acx: creating proc entry /proc/driver/acx_phy0/diag
    <4>acx: creating proc entry /proc/driver/acx_phy0/eeprom
    <4>acx: creating proc entry /proc/driver/acx_phy0/phy
    <4>acx: creating proc entry /proc/driver/acx_phy0/debug
    <4>acx: creating proc entry /proc/driver/acx_phy0/sensitivity
    <4>acx: net device phy0, driver compiled against wireless extensions 22 and Linux 2.6.36+
    <7>phy0: Selected rate control algorithm 'minstrel_ht'
    <4>universal_acx: universal_wlan_init: platform_device_register: done
    # e_fw (main): 0

    :eek:
    5
    New version. I have hope notime2d8 talk more about. Now I can talk only that it is some files and you must copy it on SD.

    Link

    I finally got around to figuring out how to boot android without having to partition the SD card. All you have to do is place the files on your memory card and start haret. This is just a test build i put up. I still have to delete some of the apps off and a few things are broken like wifi, root, and the phone which is breaking wireless settings. I should have these fixed in a few days and update the first post. This is just a close to stock froyo, I haven't been able to get cyanogen froyo working yet.

    The plan is to move to how the xdandroid setup is, where you can select your image and have the option to make and install to a partition or just run from your SD card, fix and improve the kernel or move to a newer one, then try to improve android some more.