Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
« previous next »
  • Print
Pages: 1 ... 91 92 [93] 94 95 ... 129

Author Topic: SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2  (Read 1337456 times)

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1380 on: January 30, 2010, 05:47:13 PM »
It may just be differences in battery capacity.  You could test the OF to be sure (record the OF via line in on your PC and see how long it takes the wav to go silent). 

Logged

Offline FlynDice

  • Developer
  • Member
  • *
  • Posts: 166
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1381 on: January 31, 2010, 01:05:29 AM »
I got 9:48 on my e280v2 with r24382

No clip+ today, hoping for Monday now.
« Last Edit: January 31, 2010, 01:24:39 AM by FlynDice »
Logged
e280v2    fuzev1 2gb   clip+4gb   8GB Transcend cl6 uSD    access to fuzev2 4GB       clip+2gb R.I.P.

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1382 on: January 31, 2010, 12:48:13 PM »
In fact it seems my battery won't go past 91%, running bench with backlight always on
Logged
a wise man said: "a wise man said"

Offline mc2739

  • Developer
  • Member
  • *
  • Posts: 262
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1383 on: February 01, 2010, 06:55:27 AM »
@funman

Normal battery bench results posted on SansaRuntime

Battery bench with backlight on resulted in 7:10:14.
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1384 on: February 01, 2010, 07:12:09 AM »
With BATTERY_CAPACITY = 730,

That gives:

CURRENT_NORMAL = 730 / (10+37/60.) = 69mA per hour
CURRENT_BACKLIGHT = (730/(7+10/60.)) - (730 / (10+37/60.)) = 33mA per hour

EDIT: not sure if mA per hour makes sense ..
Logged
a wise man said: "a wise man said"

Offline mc2739

  • Developer
  • Member
  • *
  • Posts: 262
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1385 on: February 01, 2010, 07:35:50 AM »
funman,

my battery capacity is 750mAH, not 730mAh.

It was bought as a refurb, so may not have the original battery.
Logged

Offline tessarakt

  • Member
  • *
  • Posts: 4
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1386 on: February 01, 2010, 10:16:34 AM »
Is it normal that the battery percentage jumps up and down? It was at 39%, then I had the light on and it moved down until 34%, then it went up to 40% again while I did not touch it, now it is at 35% again ...
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1387 on: February 01, 2010, 11:29:01 AM »
Quote from: funman on February 01, 2010, 07:12:09 AM

EDIT: not sure if mA per hour makes sense ..

Battery capacity has units of mA*hours, so its actually mA*hours per hour which is simply mA.
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1388 on: February 01, 2010, 11:32:20 AM »
Quote from: tessarakt on February 01, 2010, 10:16:34 AM
Is it normal that the battery percentage jumps up and down? It was at 39%, then I had the light on and it moved down until 34%, then it went up to 40% again while I did not touch it, now it is at 35% again ...

Which model ?

With "I had the light on", do you mean the LCD backlight was active ?

What is your setting for backlight timeout ?

If you go into the debug screen of battery you can see a graph with the voltage, is it jumping up and down or only decreasing ?

(I assume yes, but are you using a current build of today?)
Logged
a wise man said: "a wise man said"

Offline tessarakt

  • Member
  • *
  • Posts: 4
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1389 on: February 01, 2010, 12:36:04 PM »
e280v2. Yes, I mean active LCD backlight. I have to look for the exact settings later, but it switches off after some seconds without input. (It seems as if the battery "recovers" in phases where the backlight is off.) I'll look at the battery debug screen later. Yes, I updated to a build of today this afternoon.
Logged

Offline FlynDice

  • Developer
  • Member
  • *
  • Posts: 166
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1390 on: February 01, 2010, 09:55:52 PM »
@funman:

I have flashed my clip+ with the unmodified dualboot.S code.  It seems to work just fine but there does not seem to be a any extra delay in addition to the boot time for an unpatched firmware(as it appeared there should be from looking at dualboot.S).  I tried upping the delay value from 0x500000 to 0x5000000 & 0x50000000  with no difference in the results.  Looking closer now and scratching my head.  Am I being a bit too paranoid do you suppose? ???


Edit:
After looking through the code more closely I still think I should be seeing a delay with the patched firmware in relation to the unpatched and I do not.  After I copy the newly patched firmware file to my clip+ it does do the upgrading firmware routine.  And when I turn it back on it starts up asking for settings like it normally does after a firmware upgrade.  However, there is no added delay when booting.  In all cases there is about a 1 sec lag between pushing the power switch and seeing the OF splash start up.  This leads me to believe that the delay code(5 sec in SVN & much more in my modified) in dualboot.S is somehow not running.

Here are the steps I used to produce my patched firmware:
- I built a clipv2 bootloader (I don't really think this matters as I'm not running actual rockbox code yet....)
- I used scramble -add=cli+  to produce bootloader-cli+.sansa
- I modified mkamsboot to work for clip+(just removing the #if (0)) and built it.
- I ran mkamsboot to produce patched firmware named Rclppa.bin
- I loaded the patched firmware on the clip+ and renamed to clppa.bin
- After seeing no delay the first time, I modified dualboot.S to try to increase the delay but was not successful.

Here is the diff and console output that I saw.       http://pastie.org/807886

The patched firmware that I used seemed to work identically to the unpatched. 
« Last Edit: February 03, 2010, 01:14:09 PM by FlynDice »
Logged
e280v2    fuzev1 2gb   clip+4gb   8GB Transcend cl6 uSD    access to fuzev2 4GB       clip+2gb R.I.P.

Offline mc2739

  • Developer
  • Member
  • *
  • Posts: 262
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1391 on: February 03, 2010, 06:18:51 PM »
@FlynDice

Check your forum PMs
Logged

Offline FlynDice

  • Developer
  • Member
  • *
  • Posts: 166
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1392 on: February 03, 2010, 07:15:04 PM »
@ mc2739:

You got it exactly right Thanks!!!!   ;D

I still had to modify the delay as the 0x500000 only delayed about .5 secs and was not very obvious.  I wonder if this means the processor is being clocked a lot higher?  We'll see!



EDIT:

I'm attaching a .pdf with my results for GPIOA.  I've got to figure out where to go from here so If someone has an idea please speak up. 

I would find it odd if this wasn't a keyscan type thing similar to the clip & clipv2 but I can't make it fit together in my head just yet.  Moving on to GPIOB,C,D with the same code does not seem logical to me.

EDIT:

Just went back & found funman's post with some hints --> http://forums.rockbox.org/index.php?topic=14064.msg160803#msg160803

EDIT:

I've found all of the buttons except pwr now.  There is no hold button.  The OF implements the hold function with a long home press.
New .pdf attached.

EDIT:

I now have Dualboot working with left button.  No Rockbox code yet, just a delay to simulate branching to rockbox.
* clip+_buttons_GPIO.pdf (83.58 kB - downloaded 342 times.)
« Last Edit: February 04, 2010, 11:08:15 PM by FlynDice »
Logged
e280v2    fuzev1 2gb   clip+4gb   8GB Transcend cl6 uSD    access to fuzev2 4GB       clip+2gb R.I.P.

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1393 on: February 05, 2010, 07:23:43 AM »
good job!

Did you forget to update dualboot.c / dualboot.h when the delay wasn't changed?

I have one remark before you commit your diff:

You should find the USB pin: I see that the OF writes GPIOB before reading buttons, if you skip this step reading the left button might just not work on some specific Clip+.

That's the same process than checking buttons, you can add the check after checking for left button since you know it works on your Clip+.
EDIT: only add the check after left button in your test build, once you found the USB pin it should be the first check (as it is in dualboot.S) as I believe it's much less likely to fail than a button check.


Once it's done you should commit it, so you can start LCD code and maybe be helped by others :)

I'll look at making the Clip+ bootloader target build
« Last Edit: February 05, 2010, 07:42:48 AM by funman »
Logged
a wise man said: "a wise man said"

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 v4, clip v1, v2 & +, and Fuze v1 & v2
« Reply #1394 on: February 05, 2010, 10:59:25 AM »
Just found this on google.

In the first post:
Quote
WARNING: drivers/usb/host/as352xhcd.o(.text+0x2be0)

In the third post:
Quote
AS353X NAND Driver, (c) 2010 austriamicrosystems

And a bit more down:
Quote
insmod /lib/modules/2.6.28.4-as353x-patch-svn1406/kernel/drivers/usb/gadget/dwc_otg/dwc_otg.ko
dwc_otg: version 2.60a 05-JUN-2009
...
dwc_otg: Detected: Synopsys DWC OTG 2.60a Core

If one of you can write chinese and feel like asking them where they got their linux sources and if they are willing to share, perhaps we could find some SD code!

Note we already have the source for dwc_otg (link on the SansaAMS page)
Logged
a wise man said: "a wise man said"

  • Print
Pages: 1 ... 91 92 [93] 94 95 ... 129
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.097 seconds with 14 queries.