2012年3月22日 星期四

TI WLAN NLCP calibration

Platform: Nook Color ICS with WiFi Direct

1. mount system partition readable/write-able
mount -o rw,remount /dev/block/mmcblk0p5 /system
2. unload driver
rmmod wl12xx_sdio
3 generate reference nvs for calibration
calibrator set ref_nvs /system/etc/wifi/ini_files/127x_TQS_S_2.6.ini /system/etc/firmware/ti-connectivity/wl1271-nvs.bin
4. reload the driver 
insmod wl12xx_sdio
5. Power on the device in PLT mode
calibrator wlan0 plt power_mode on
6. TX-BIP procedure
calibrator wlan0 plt tune_channel 0 7
calibrator wlan0 plt nvs_ver 0x0403
calibrator wlan0 plt tx_bip 1 0 0 0 0 0 0 0 /system/etc/firmware/ti-connectivity/wl1271-nvs.bin
7. Write MAC
calibrator set nvs_mac /system/etc/firmware/ti-connectivity/wl1271-nvs.bin 08:00:28:31:32:33

ICS WiFi Direct understanding

The Android 4.0 (ICS) WiFi Direct didn't support any service discovery or any default application ( one demo program) .
The implementation only take care the connection.
That mean the ICS take care two p2p device set up the TCP/IP networking well and other is application specific job.

Moto Defy MB525 CM7/CM9 TIWLAN MCP Calibration step by step

Turn on USB ADB debugging
Connect to defy through adb

1. Turn off Wifi First
svc wifi disable
2. load wifi driver
insmod /system/lib/modules/tiwlan_drv.ko
3. load wifi firmware
/system/bin/wlan_loader -f /system/etc/wifi/fw_wlan1271.bin -i /system/etc/wifi/tiwlan.ini
4. turn on tiwlan0
ifconfig tiwlan0 up
5. execute wlan_cu utility
wlan_cu -b
6. execute following command
/ w p 1
/ w l 2
/ w f 2
/ t r h 0 7
/ t b b 375 128 0
/ t b t 1 0 0 0 0 0 0 0
/ q
7. copy new calibration data to default path
cp /data/misc/wifi/nvs_map.bin /pds/wifi/nvs_map.bin
sync
sync

8. unload TI wlan driver
rmmod tiwlan_drv

2010年3月5日 星期五

Build Andorid environment setting

Ubuntu Linux (64-bit x86)

This has not been as well tested. Please send success or failure reports to android-porting@googlegroups.com.

The Android build requires a 32-bit build environment as well as some other tools:
  • Required Packages:
    • Git, JDK, flex, and the other packages as listed above in the i386 instructions:
    • JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @Override.
    • Pieces from the 32-bit cross-building environment
    • X11 development
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
  • Set the system to use the right version of java by default:

    $ sudo update-java-alternatives -s
    java-1.5.0-sun
  • X11: Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command:

    $ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so

Android DNS search priority

code frameworks/base/core/java/android/net/MobileDataStateTracker.java

default code

mDnsPropNames = new String[] {
"net.rmnet0.dns1",
"net.rmnet0.dns2",
"net.eth0.dns1",
"net.eth0.dns2",
"net.eth0.dns3",
"net.eth0.dns4",
"net.gprs.dns1",
"net.gprs.dns2",
"net.ppp0.dns1",
"net.ppp0.dns2"};

}

2010年2月12日 星期五

uuid for block device

claud@claud-desktop:~$ sudo blkid
[sudo] password for claud:
/dev/sda1: UUID="0E20C84620C8368D" TYPE="ntfs"
/dev/sda2: UUID="904ACCCB4ACCAF72" TYPE="ntfs"
/dev/sda5: UUID="2A84C32184C2EE7F" LABEL="?????" TYPE="ntfs"
/dev/sda6: UUID="644e3f61-bbbf-4893-99c8-8446f4e4531c" TYPE="swap"
/dev/sda7: UUID="f5cd54bd-1489-49ba-9c47-d1cb6ad34e6f" TYPE="ext4"
/dev/sda8: UUID="f2d635b7-a02b-45dd-ae3e-4601652a9dd1" TYPE="ext4"
claud@claud-desktop:~$