Re: [android-kernel] Re: Want to develop new HAL and device driver for Android

2012-04-25 Thread William W.-Y. Liang
Hi, I have some introductory slides at the following link, for your reference. http://www.ntut.edu.tw/~wyliang/#Download BRs, William W.-Y. Liang http://www.ntut.edu.tw/~wyliang --- this mail was sent from my phone --- 2012-4-26 上午8:46 於 "Chirag Shah" 寫道: > Hi All, > > T

Re: [android-kernel] Want to develop new HAL and device driver for Android

2012-04-24 Thread William W.-Y. Liang
Hi Chirag, I would recommend that you start with LightService, which contains a relatively simple HAL implementation in AOSP. Best Regards, William Liang http://www.ntut.edu.tw/~wyliang 2012/4/25 Chirag Shah > Hi All, > I have compiled and loaded android ICS into pandaboard ES. I also > down

Re: [android-kernel] Downloading Android kernel for emulator

2012-04-13 Thread William W.-Y. Liang
Hi, you have to specify the target images. One simple way is to set the environment variable ANDROID_TARGET_OUT to /out/target/product/generic/ before launching the emulator. BRs, William W.-Y. Liang http://www.ntut.edu.tw/~wyliang --- this mail was sent from my phone --- 2012-4-14 上午12:23 於

Re: [android-kernel] Re: [android-porting] how to autoload tun.ko

2011-11-07 Thread William W.-Y. Liang
Hi Preetam, No problem. You are welcome. :) - William 2011/11/7 preetam m.n > Hi William Liang, > > Thanks for correcting me. > > Regards, > Preetam > > > On Sat, Nov 5, 2011 at 7:49 PM, William W.-Y. Liang < > wyli...@mail.ntut.edu.tw> wrote: > >>

Re: [android-kernel] Re: [android-porting] how to autoload tun.ko

2011-11-05 Thread William W.-Y. Liang
Hi, init.rc (and the root file system) actually exists in a ramdisk (ramdisk.img). As a result, any modification to it only occurs in memory, not in the image itself. (ramdisk.img combines with the kernel to form the boot.img) William Liang www.ntut.edu.tw/~wyliang 2011/11/5 preetam m.n > Corr

Re: [android-kernel] remove apk in /system/app

2011-10-31 Thread William W.-Y. Liang
Is it possible that it was caused by the full-of-file-system problem? That is, the operation could not be performed normally because the partition has been out of space? BRs, William Liang 2011/11/1 allstars > Hi > I download the android sdk and create an avd for android-10 > then I launch the

Re: [android-kernel] What permissions does AndroidManifest.xml need to access a custom device driver?

2011-10-15 Thread William W.-Y. Liang
you have the device file named /dev/my_devfile. Set it with the following command: chmod 0666 /dev/my_devfile. BRs, William W.-Y. Liang 2011/10/15 Anil > I am calling the driver from an Android program (OMAP4/Blaze). It > calls a c++ program via JNI which then calls the device driver. &g

Re: [android-kernel] Re: Problem on Building and Flashing Custom Kernel

2011-09-27 Thread William W.-Y. Liang
Hi, as I remember, the boot image will also include the ramdisk image, in addition to the kernel image. for your reference. (Produced by mkbootfs.) William Liang 2011/9/28 Franky > Have you already flash cyanogenmod to your phone? I don't think a > cyanogenmod kernel + a standard Android system

Re: [android-kernel] Why use "call_constructors()" during initialization of the LK? (little kernel)

2011-09-27 Thread William W.-Y. Liang
Hi, Ivan, __ctor_list and __ctor_end are defined by the linker script, for a special section for 'constructors' defined in the kernel. William Liang http://www.ntut.edu.tw/~wyliang 2011/9/27 ivan > Hi, guys > > When I read the code of lk/kernel/main.c, I feel confused about using > "call_const

Re: [android-kernel] help on dalvik VM.

2011-09-15 Thread William W.-Y. Liang
I think Tim meant the 'core' class library, which is pre-loaded into memory for the purposes that Tim has mentioned. You can check the file frameworks/base/core/java/com/android/internal/os/ZygoteInit.java. William Liang 2011/9/16 Pratik Prajapati > > > On Thu, Sep 15, 2011 at 10:16 AM, Tim Bir

Re: [android-kernel] Re: bcm4329 wifi module

2011-09-10 Thread William W.-Y. Liang
ut the module > refuses to load, the original wifi module does work with the new > kernel that i built. the new bcm4329.ko is about 40k bytes bigger two > > On Sep 10, 9:18 pm, "William W.-Y. Liang" > wrote: > > Sorry, I've typed a wrong option. It should be CONFIG_M

Re: [android-kernel] Re: bcm4329 wifi module

2011-09-10 Thread William W.-Y. Liang
t; > On Sep 10, 7:17 pm, "William W.-Y. Liang" > wrote: > > insmod doesn't work, probably because the MODULE_LOAD option is not > enabled > > in the kernel. > > > > William Liang > > > > 2011 9 11 08:50 於 "Vadim"

Re: [android-kernel] Re: bcm4329 wifi module

2011-09-10 Thread William W.-Y. Liang
insmod doesn't work, probably because the MODULE_LOAD option is not enabled in the kernel. William Liang 2011 9 11 08:50 於 "Vadim" 寫道: > hi, this is the kernel source, > http://www.huaweidevice.com/worldwide/downloadCenter.do?method=toDownloadFile&flay=software&softid=NDAzNzg= > i have gotten it

Re: [android-kernel] Re: Regarding Android Device driver development

2011-08-31 Thread William W.-Y. Liang
Just a supplement here. If you don't want to download the whole Android source, the prebuilt toolchain in the NDK can also be used. :) William Liang 2011/8/30 joerg simon > Dear Ramya, > > They are not binary but afaik source compatible. I am 100% sure for > the SKULL driver, you can compile it

Re: [android-kernel] Regarding Android Device driver development

2011-08-30 Thread William W.-Y. Liang
Android kernel has added some new features in the original Linux kernel, such as binder IPC, ashmem, logcat, wakelock, etc. As a result, you can not run the user-space Android software stack on the traditional (mainline) Linux kernel. You need to download Android's version of the kernel from androi

Re: [android-kernel] Re: Wifi fails on "Obtaining an IP Address"

2011-08-27 Thread William W.-Y. Liang
Here is just an observation form your log, for your reference. Not a solution to your problem. >From the log (extracted as below), it looks that the DHCP client has ever successfully connected to a DHCP server and was assigned an IP address. Somehow, it terminated itself by exit(0) after forking i

Re: [android-kernel] Device driver architecture

2011-08-22 Thread William W.-Y. Liang
Hi, I'm not sure what type of device you are working on. As a result, implementing it as an input device may not be the best choice. Anyway, we may solve the problem by treating it as a generic character device driver. Below is one of the solutions for your reference. First, you may need to imple

Re: [android-kernel] Help regarding developing a loadable kernel module for Android

2011-08-20 Thread William W.-Y. Liang
t;> >> >> 2011/8/19 J Freyensee >> >>> You should also look at this book...in my opinion its a little better than >>> Oreilly: >>> www.elinuxdd.com >>> On Aug 19, 2011 5:49 AM, "Ruturaj Patil" >>> wrote: >>> >

Re: [android-kernel] Help regarding developing a loadable kernel module for Android

2011-08-19 Thread William W.-Y. Liang
Hi Ruturaj, Android kernel programming is exactly the same as Linux kernel programming. You may refer to the book Linux Device Driver, O'Reilly, for how to get the loadable kernel module work. William Liang 2011 8 19 03:56 於 "Ruturaj" 寫道: > Hello everyone, I'm an engineering student from Pune U

Re: [android-kernel] panic ! who can help me!

2011-07-29 Thread William W.-Y. Liang
The last message indicates format error for netd. Is it possible that you have ever compiled it separately with different toolchain? 2011 7 30 05:25 於 "yuzaipiaofei" 寫道: > i am porting android2.2 to mtk6516, when i boot os , the deivice happen this! > who can help me ? > > thanks so much! > > [ 4

Re: [android-kernel] Re: How to compile a kernel and flsh it in a device

2011-07-28 Thread William W.-Y. Liang
t; > >> But as per as android kernel is concern the tool chain should be > arm-eabi- > > >> complaint, because Apps need not use full gcc. > > > > >> Regards, > > >> Jagan. > > > > >> On Fri, Jul 22, 2011 at 2:52 PM, William W.

Re: [android-kernel] Re: Load Module At Boot time Help

2011-07-27 Thread William W.-Y. Liang
Understood. I've been de-focused... Yes, I agree. In responding to the subject, using insmod in init.rc, with the modules prepared in the image, is the solution. Thank you, Chris. William Liang 2011/7/28 Chris Stratton > On Wednesday, July 27, 2011 9:03:48 PM UTC-4, William W.-Y. Lia

Re: [android-kernel] Re: Load Module At Boot time Help

2011-07-27 Thread William W.-Y. Liang
that by default on boot, the module > will get automatically loaded. > -AR > > On Wed, Jul 27, 2011 at 6:03 PM, William W.-Y. Liang < > wyli...@mail.ntut.edu.tw> wrote: > >> Chris, >> >> I think Dani is asking how the module can be loaded dynamically when

Re: [android-kernel] Re: Load Module At Boot time Help

2011-07-27 Thread William W.-Y. Liang
Chris, I think Dani is asking how the module can be loaded dynamically when a peripheral device has been plugged in during the run time. (Assume the .ko files have been put in the image file.) To Dani, that is about the hotplug mechanism in the kernel, including platform driver, sysfs issues, etc

Re: [android-kernel] Load Module At Boot time Help

2011-07-25 Thread William W.-Y. Liang
config stage? > it's an external module not a part of the kernel, it's for a specific HW. > I would like the driver to load automatically when hw is connected to the > board > > > > On Mon, Jul 25, 2011 at 9:46 AM, William W.-Y. Liang < > wyli...@mail.ntut.ed

Re: [android-kernel] Load Module At Boot time Help

2011-07-24 Thread William W.-Y. Liang
Have you enabled the Module feature in the config stage? William Liang 2011 7 25 14:37 於 "dani maoz" 寫道: > Hi > I am using pandaboard with Gingerbread image. > I would like to load a kernel module at start up. i have tried to update > depmod.dep but no luck. > when i try to run depmod command i

Re: [android-kernel] Re: How to compile a kernel and flsh it in a device

2011-07-22 Thread William W.-Y. Liang
2ja...@gmail.com> > But as per as android kernel is concern the tool chain should be arm-eabi- > complaint, because Apps need not use full gcc. > > Regards, > Jagan. > > On Fri, Jul 22, 2011 at 2:52 PM, William W.-Y. Liang < > wyli...@mail.ntut.edu.tw> wrote: > &g

Re: [android-kernel] Re: How to compile a kernel and flsh it in a device

2011-07-22 Thread William W.-Y. Liang
A minor update to the previous comment: I think it will be "arm-linux-androideabi-" instead of "arm-eabi-" for 4.4.3. PS. Correct me if anything goes wrong here, plz. Tks. BRs, William Liang 2011/7/22 jagan <402ja...@gmail.com> > Ok. > > Just follow these steps.. > > $ cd kernel > $ make ARCH=

Re: [android-kernel] Compilation of Linux kernel source for android

2011-07-18 Thread William W.-Y. Liang
Sorry, typo in the previous mail. Locate->logcat Omen->pmem -William 2011 7 19 08:52 於 "William W.-Y. Liang" 寫道: > Hi, > > Isn't it that the Android kernel patches have been excluded from kernel.org? > > > Or, the new staffs provided by Android kerne

Re: [android-kernel] Compilation of Linux kernel source for android

2011-07-18 Thread William W.-Y. Liang
Hi, Isn't it that the Android kernel patches have been excluded from kernel.org? Or, the new staffs provided by Android kernel (such binder IPC, ashmem, wake-lock, locate, omen, etc) have been merged again in Linux kernel 3.0? -William 2011 7 19 02:10 於 "Karthik Balakrishnan" 寫道: > All, > Has