On Thursday, August 25, 2011 5:00:39 AM UTC-4, ramon wrote: > > Hey, > I working on AT91SAM9M10 evaluation board currently running android > 2.1. > during kernel device development, I'm working with buildroot, for > easier module manipulation. > I finished writing my char device, and it's working on build root. > once you open the device file, and read from it, you get the right > data back. > however, when I replaced build root with the androidfs. when I'm > running the same test program, I get different results from the > device. > The kernel is the same, so I don't really understand why I get > different results. >
Does the device file have the same major/minor number and permissions in each case? What is the nature of the failure? This could help you narrow down the possible causes. If you are switching between an ordinary embedded linux and an android distro, you are changing a lot of things, from early system setup all the way through a substitution of the entire C library. Also consider using printk's to have the kernel module give commentary on what is happening from it's point of view, and compare with the two userlands. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
