[linux-sunxi] Re: Reported battery percentage lower than it should be

2015-01-15 Thread Dave McLaughlin
Digging through another Android Linux source I found one for the Marsboard version 3.3 and it too has the same strange mV value for the voltage_min_design and uV value for voltage_max_design. I dug through both code and there is no multiplier added to voltage_min_design when it is used. At one

[linux-sunxi] Reported battery percentage lower than it should be

2015-01-13 Thread Dave McLaughlin
I am running Android sunxi-linux 3.4 and on boot up, with battery power only, I see the following in the debug output. [0.148] boot1 version : 2.0.0 [0.149] script installed early ok [0.149] pmu type = 3 [0.253] bat vol = 3894 mv This corresponds pretty much with what I am reading with a

Re: [linux-sunxi] Battery charge status not consistent

2014-09-20 Thread Dave McLaughlin
Hi Bruno, The battery voltages I assume are set internally to the AXP209 as I don't see any way to set these. I did find a listing for these. Yes, this is the Android Linux 3.4 kernel. When I get the likes of 18% showing on the Android status bar and check the actual voltage of the battery it

Re: [linux-sunxi] Battery charge status not consistent

2014-09-20 Thread Dave McLaughlin
On Saturday, 20 September 2014 22:40:04 UTC+7, Bruno Prémont wrote: Hi Dave, Does it happen for each suspend oder just sporadically? If sporadically it might be a race condition where some AXP data got read before suspend, the rest after resume - ending up with incoherent data and

[linux-sunxi] Battery charge status not consistent

2014-09-19 Thread Dave McLaughlin
With an A20 board I have found that if I power up with external DC connected, the battery shows the correct charge percentage. If I run on batter and make sure it never sleeps (through the app I am developing) it discharges as expected. If I disconnect DC and run on the battery and *put it

[linux-sunxi] pmu_adpdet - What are the inputs for this

2014-09-10 Thread Dave McLaughlin
Looking at the FEX file for an Olimex-A20 and a Cubieboard this entry looks like this. pmu_adpdet = port:PH020defaultdefaultdefault But on the Olimex-A20 this pin is connected to a notification LED. It is not used in the schematic of the Cubieboard that I found. Looking at the AXP209 I found

[linux-sunxi] Re: How to Flash android in NAND in custom A20 Board (No OTG port)

2014-04-25 Thread Dave McLaughlin
I think this is very possible from a suitably written custom SD boot option but you are going to have to write your own drivers to do this. From what I can tell, the A20 looks on the SD for a boot partition so if you can create your own boot you could do this. Trouble is, I don't know if

[linux-sunxi] initlogo.rle file size miss-match error

2014-04-01 Thread Dave McLaughlin
I have followed the instructions on how to create a new initlogo file but the size does not match when init tries to use it. I used the following on a png file that is 800 x 480 and the file size is 119,306 bytes. After I run *convert -depth 8 initlogo.png rgb:initlogo.raw* the .raw file is

[linux-sunxi] Re: How do I add I2C RTC driver to platform?

2014-03-31 Thread Dave McLaughlin
I got it working by changing the name as below. static struct i2c_board_info __initdata ds1307_i2c_board_info[] = { { .type = ds1307, .addr = 0x68, }, }; The bit that got this working was the change of the name to ds1307 instead of rtc-ds1307 which was the name of the

[linux-sunxi] GPIO EINT driver showing gpio_irq_hdl: handler failed

2014-03-24 Thread Dave McLaughlin
I've ported a touch driver to my system and each time the interrupt handler fires I am seeing this in the debug output. gpio_irq_hdl: handler failed I've checked the handler and it is passing back IRQ_HANDLED to this function so it appears to be a bug in the code here. if

Re: [linux-sunxi] When does the I2C probe function get called

2014-03-23 Thread Dave McLaughlin
Hi Oliver, I finally got it working this weekend and posted the results on my blog. I had to add some code to the Fusion driver to pass back detection state and also make changes to use the AllWinner GPIO drivers and read the sysconfig.fex during init. There was also a bug in the eint driver

[linux-sunxi] A20 EINT pins are wrong in A20 document

2014-03-22 Thread Dave McLaughlin
I am trying to get an interrupt input to but I get an error when I try to set PC19 as an interrupt input. According to the datasheet on page 243 it can be EINT12 but elsewhere in the doc, EINT12 is shown for PH12. It looks like the document is wrong. -- You received this message because you

[linux-sunxi] When does the I2C probe function get called

2014-03-21 Thread Dave McLaughlin
I am trying to port a touchscreen driver to my system and I have the module building and installing. I have added it to the auto detect code in device.c and I can see in dmesg that the driver from i2c-core gets detected and the init function is called. What never gets called is the probe

[linux-sunxi] Re: Linux boots but Android fails to boot

2014-02-17 Thread Dave McLaughlin
Hi Alejandro, I ran a diff and ended up with a 384MB patch file. My first time using this so I need to see how to filter the input so that only source files are compared. :) -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe

Re: [linux-sunxi] UART1 on A13-olinuxino not working through GPIO

2014-02-16 Thread Dave McLaughlin
Check with your hardware guy on the voltage of the TX line as you do not want to be putting anything near 5V into the A20. It is not 5V tolerant on the GPIO pins and will most likely damage the A20 IO. The datasheet quotes the max input as 3.6V. On Sunday, 16 February 2014 19:01:53 UTC+7,

Re: [linux-sunxi] UART1 on A13-olinuxino not working through GPIO

2014-02-15 Thread Dave McLaughlin
You say it works with a USB to Serial cable? Is that adapter at RS232 levels or TTL? That's important as the GPIO would be at 3.3V which is commonly called TTL even though most still refer to this as 5V the term is often used to mean processor voltage levels. If your custom board is an

Re: [linux-sunxi] Linux boots but Android fails to boot

2014-02-12 Thread Dave McLaughlin
Hi Emilio, My kernel build seems to be OK. I look at what you said and using imgRePacker I replaced the working Android image with my faulty Android image and this way I would be using the working Linux kernel and it gives the same error. I then tried the other way around and used my Linux

Re: [linux-sunxi] Linux boots but Android fails to boot

2014-02-12 Thread Dave McLaughlin
I think I may have tracked the problem down or at least found out why it is failing to load the display drivers. I added some debug to the hardware.c file to show which modules where being loaded and looked up. This is what happened with the display module W/HAL ( 1160): Loading module

[linux-sunxi] Modified script.bin not being read

2014-02-11 Thread Dave McLaughlin
Hi all, I am new to the group. I have an Olinuxino-A20 board that I have been trying to get Android working on. The source builds but surfaceflinger crashes during the boot cycle. Something I am still working on in trying to get Olimex to supply ALL of the files as some configuration are