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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Cowon D2
« previous next »
  • Print
Pages: 1 ... 14 15 [16] 17 18 ... 65

Author Topic: Cowon D2  (Read 636541 times)

Offline Yeeze

  • Member
  • *
  • Posts: 40
Re: Cowon D2
« Reply #225 on: March 26, 2008, 10:53:45 AM »
Ah I will try that!
Logged

Offline Yeeze

  • Member
  • *
  • Posts: 40
Re: Cowon D2
« Reply #226 on: March 26, 2008, 11:01:32 AM »
Well now I have: *PANIC* Unknown NAND: 0x06 0x06 0x06 0x06 0x06

EDIT: You ment this little fix?
Quote
In the nand_chip_select() function (ata-nand-tcc780x.c) could you try changing the "if (chip & 1)" line to "if (!(chip & 1))" and tell me if your D2 still reports 1 bank * .... as it did before.
« Last Edit: March 26, 2008, 11:08:59 AM by Yeeze »
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #227 on: March 26, 2008, 11:41:27 AM »
Yes, I meant that one - I guess it wasn't the problem... I need to think about it and get back to you (like I say, pesky 2Gb players  ;) )
Logged

Offline carsten

  • Member
  • *
  • Posts: 3
Re: Cowon D2
« Reply #228 on: March 26, 2008, 11:52:13 AM »
I'm still having the same problems with the new nand-driver. I never got beyond "unaligned read-buffer", most of the time I have a read error... :-/

edit: forgot to mention: 4gb d2
« Last Edit: March 26, 2008, 11:54:12 AM by carsten »
Logged

Offline stel

  • Member
  • *
  • Posts: 7
Re: Cowon D2
« Reply #229 on: March 26, 2008, 05:32:02 PM »
Hi,

I've just been trying out andiators d2_patched.bin file with mixed results.
Firstly I tried andiators rockbox.zip - This gave me the black screen after mounting.
Then I tried shotofadds rockbox.iaudio (post#211) and got the same results as andiators(post#212) so I then compiled my own rockbox.zip and now I get the *PANIC* nand_read_raw() non_aligned input buffer message as soon as I disconnect USB

The above info probably doesn't help much but I'm willing to try any suggestions to help out.

I've got a 8Gb D2
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #230 on: March 26, 2008, 06:42:33 PM »
If you are getting the "non-aligned buffer" error, then the updated ata-nand code (post #215) has not been built in successfully. The new version does not contain that error message - but you may need to alter it slightly in order to build without errors, as andiator reported.

Sorry about this mess - I will update SVN when I get a chance, but I don't have a lot of spare time this week (aka. none at all).  >:(
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #231 on: March 27, 2008, 07:35:42 AM »
I was playing with the adc code and I don't think that it causing the button problem. Yes, there is some jitter at the press or release, but it would cause a random behavior. And Yes, we still have to fix this in an extra thread.
The idea is to run a thread with sleep and waiting for() for the stabilized adc value to avoid the transition values from press to release and back

But the actual behavior is too systematic: it seems to happens only with plus and minus buttons and ONLY when you switch to the other buttons. So more investigation needed.
« Last Edit: March 27, 2008, 08:19:46 AM by andiator »
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #232 on: March 27, 2008, 08:20:53 AM »
Well, probably not a new thread but a tick task (fixed 100Hz timer) which periodically requests a new reading for each of the four ADCs and exits immediately. An ADC IRQ handler would then retrieve the new values when ready, and if they are within some abritrary level of tolerance of the last value read, make the new value available to adc_read(). That is my intention, anyway.
« Last Edit: March 27, 2008, 08:22:26 AM by shotofadds »
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #233 on: March 27, 2008, 08:43:07 AM »
For our three buttons the tick task is fine, but what about the touchpad? I don't think it's a good idea to do longer operations in timer task.
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #234 on: March 27, 2008, 09:59:43 AM »
I was purely talking about the ADC driver using a tick task. The touchpad is accessed through the PCF50606 (via I2C), and yes that might need some thought about how to implement it correctly. I need to check how other targets do periodic I2C polling.

Edit: This discussion would probably best be held in IRC where devs who know best about such things can comment (but I think it can wait until I've fixed the ata-nand driver and ADCs first)...
« Last Edit: March 27, 2008, 10:25:56 AM by shotofadds »
Logged

Offline carsten

  • Member
  • *
  • Posts: 3
Re: Cowon D2
« Reply #235 on: March 27, 2008, 11:25:21 AM »
Quote from: shotofadds on March 26, 2008, 06:42:33 PM
If you are getting the "non-aligned buffer" error, then the updated ata-nand code (post #215) has not been built in successfully. The new version does not contain that error message - but you may need to alter it slightly in order to build without errors, as andiator reported.

Yes, I don't get the non-aligned buffer error anymore, but the read error given by the bootloader is still there. Now I got it to boot, but it's still a matter of luck... (and I definitely build it with the new driver...)

andiator: I've a little home-server running on a nslu2 with debian ;) if you just need a little space for things like that, I can arrange that... 512kbits upstream though
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #236 on: March 27, 2008, 01:00:38 PM »
Thanks carsten, but one hour before your post there was a parcel delivered to me - and what was inside? nslu2!  ;D and my upload is 1024 Kbit.

But back to topic. Did you rebuild the bootloader with the newer ata-driver? And did you do the ../tools/mktccboot ... stuff?

I played again with buttons and copied/inserted the touchpad test code into button_read_device(). Well, the virtual buttons work normaly, so the problem has to be the adc, but I don't get it since the code is so simple.
I uploaded the new binaries for testing. This touchpad stuff is really only for testing. It will be done right in future, so don't say it works badly  ;)
In bootloader screen simply tip on the screen to get further.
Logged
D2 8Gb + 128Gb µSD

Offline stel

  • Member
  • *
  • Posts: 7
Re: Cowon D2
« Reply #237 on: March 28, 2008, 04:05:15 AM »
I'm up and running now as described in the previous posts and the majority of the demo plugins work fine. The only thing I've come across so far that I don't think has been mentioned is that the lcd seems to cut off a couple of rows from the top and displays them at the bottom.
I'm really impressed, you've done some great work shotofadds.
 I probably won't be able to help much with the coding but I will certainly start taking a look at the weekend.
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #238 on: March 28, 2008, 05:30:24 AM »
Quote from: stel on March 28, 2008, 04:05:15 AM
The only thing I've come across so far that I don't think has been mentioned is that the lcd seems to cut off a couple of rows from the top and displays them at the bottom.
Yep, that's a consequence of not fully understanding the LCD controller initialisation. I get the same here (but not every time) - it'll be fixed eventually.  :)

I'll hopefully have more time to work on this next week. My priorities at the moment are fixing the button/ADC code, getting the flash driver into a reasonable state and reducing the compiler warnings so we can get the D2 builds added to the Rockbox build table. Shouldn't take long... ::)

EDIT: The updated NAND driver has now been committed so I've removed it from the previous post. "svn update" is your friend.  :)
« Last Edit: March 29, 2008, 03:13:20 PM by shotofadds »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Cowon D2
« Reply #239 on: March 29, 2008, 07:21:28 PM »
Any particular reason for decreasing the CPU frequency? Seems like it should stay at "max" until scaling works, to maximize the range of things that won't suffer from CPU speed limitations.
Logged

  • Print
Pages: 1 ... 14 15 [16] 17 18 ... 65
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Cowon D2
 

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

Page created in 0.102 seconds with 14 queries.