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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Cowon D2
« previous next »
  • Print
Pages: 1 ... 6 7 [8] 9 10 ... 65

Author Topic: Cowon D2  (Read 636512 times)

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #105 on: January 05, 2008, 05:04:31 PM »
A first attempt at a patch for the D2 is at FS#8420 (thanks, saratoga). Once applied, configure should list a new target (33: Cowon D2) and its bootloader build should generate a rockbox.iaudio file suitable for uploading with tcctool. This consists of a simple test program with basic LCD, button and I2C drivers. Happy hacking!

EDIT: changed link to Flyspray.
« Last Edit: January 07, 2008, 11:16:58 AM by shotofadds »
Logged

Offline jarivk

  • Member
  • *
  • Posts: 5
Re: Cowon D2 (how to proceed with patch
« Reply #106 on: January 09, 2008, 09:56:38 AM »
Hi,
I have some doubts.
please bare with my lack of knowledge.
How to proceed with the patch provided?
I mean how to build? which tool chain? from where?

Also i tried tcctool with my D2. I used a .bin file (2.50) with some theme for testing.  Tcctool says application patched successfully. after that i had expected it to boot automatically or something..but nothing happened. Can somebody guide me?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cowon D2
« Reply #107 on: January 09, 2008, 10:29:11 AM »
http://www.rockbox.org/twiki/bin/view/Main/DocsIndex#For_Developers

Specifically the " First Time Guide to Rockbox Development" and "Working With Patches" page.
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #108 on: January 09, 2008, 10:47:23 AM »
Regarding tcctool, if it reported that the upload was successful, the .bin should execute automatically. For example, I if I upload the "d2.bin" (or "d2N.bin") from the '1' folder of a firmware download from Cowon, the D2 will boot into that firmware straight away.

(..but for safety, try to make sure the firmware version you upload is the same as the version present on your player)

Also, regarding the patch - it is necessary to apply the bugfix mentioned in comment #3 of the flyspray entry otherwise the compiled image will noot boot the player. I will upload a new patch later today.

EDIT: You're not trying to upload a d2_rs.bin or d2_font.bin, are you? That won't work since those are resource (graphics) files. Tcctool should only be used to upload executable firmware code.
« Last Edit: January 09, 2008, 10:50:01 AM by shotofadds »
Logged

Offline luck3r

  • Member
  • *
  • Posts: 15
Re: Cowon D2
« Reply #109 on: January 09, 2008, 06:25:33 PM »
Great, I can't wait until Rockbox is working on this player!

Here's a picture of what the test program displays, for those who can't compile it or don't want to:


Keep up the good work!
Logged
"All authority of any kind, especially in the field of thought and understanding, is the most destructive, evil thing. Leaders destroy the followers and followers destroy the leaders. You have to be your own teacher and your own disciple. You have to question everything that man has accepted as valuable, as necessary." -- Jiddu Krishnamurti

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #110 on: January 09, 2008, 06:52:20 PM »
Excellent, it's good to see that it works on another D2 besides my own :)

btw. Which version of the D2 do you have? Mine is a 4Gb DAB, though I suspect the only hardware difference we really need to worry about at the moment is the 2/4/8Gb flash.

At the moment I'm concentrating on making stubs for various drivers, to allow compilation of a 'Normal' (not bootloader) build. There's a bit more work to do on this, then I hope to commit an initial revision in SVN to allow others to work on it. Also I've got the dual-boot function (mktccboot) working properly now as well.

I think the next major hurdle is the flash driver...  :o
Logged

Offline luck3r

  • Member
  • *
  • Posts: 15
Re: Cowon D2
« Reply #111 on: January 09, 2008, 06:59:06 PM »
I've got a European D2 4GB. No DAB stuff.
I noticed something with GPIOB:
After starting the test app, GPIOB is 0x3DE6000<2 or 6 if a button is pressed>. As soon as the screen is touched, it changes to 1DE6000<2/6>, the 1 doesn't change anymore. Is this useful information? Maybe something like a "Cursor position" being set at another position? I really don't have a clue of programming...

Edit: I think there's only a difference between the 2/4G versions and the 8G version regarding the flash memory, I just barely remember some guy's post about having firmware issues with the 8G version on iaudiophile.net forums.
« Last Edit: January 09, 2008, 07:02:37 PM by luck3r »
Logged
"All authority of any kind, especially in the field of thought and understanding, is the most destructive, evil thing. Leaders destroy the followers and followers destroy the leaders. You have to be your own teacher and your own disciple. You have to question everything that man has accepted as valuable, as necessary." -- Jiddu Krishnamurti

Offline g00ey

  • Member
  • *
  • Posts: 10
Re: Cowon D2
« Reply #112 on: January 09, 2008, 08:18:51 PM »
Thanks for the telechips documentation paradox!
By the way; the following links are broken:

board_id=914: readme.zip
board_id=913: DMP78X_NUCLEUS009_NFS064_V071130641.zip
board_id=912: TCC78xx_DMP_PortableManual_DMP641.zip
board_id=911: DMP_SDK_Before_02.zip

Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #113 on: January 10, 2008, 04:29:55 AM »
Quote from: luck3r on January 09, 2008, 06:59:06 PM
As soon as the screen is touched, it changes to 1DE6000<2/6>, the 1 doesn't change anymore. Is this useful information?
Yep that is useful, I hadn't spotted that yet.  I know how to read the touchscreen (via the PCF50606 I2C interface) but haven't implemented anything yet. The GPIOB bit is most likely signalling that an interrupt from the PCF chip is waiting to be read (ie. the touchscreen press event).

Quote from: luck3r on January 09, 2008, 06:25:33 PM
Great, I can't wait until Rockbox is working on this player!
Do remember that even if/when a full port happens, it might not be very usable - remember the Rockbox UI is not designed for a touchscreen (yet) so will be restricted to the -/M/+ buttons and the power switch for the time being...
Logged

Offline n0tHl33t

  • Member
  • *
  • Posts: 5
Re: Cowon D2
« Reply #114 on: January 10, 2008, 09:24:58 AM »
Quote from: shotofadds on January 10, 2008, 04:29:55 AM
Do remember that even if/when a full port happens, it might not be very usable - remember the Rockbox UI is not designed for a touchscreen (yet) so will be restricted to the -/M/+ buttons and the power switch for the time being...

I am no real coder but I think that the new viewports-system would be a much better basement for touchscreen-use than the actual wps-system. but this is only only my unqualificated opinion and i know that viewports is also far away from being useable.

But maybe there is the possibility to use the Hold-Switch as a modificator and you could use the touchscreen as one big button.

For example:

Hold Switch off:

+/- = Volume (Playback-Screen) / menunavigation (Menu)
M (short button press) = Switch to Filescreen (Playback-Screen) / Select (Filescreen and menu)
M (long button press) = Switch to menu-screen (Playback-Screen) / Playlistoptions (Filescreen)
Touchscreen = Just touch anywhere on the screen to Play/Pause

Hold Switch on:
+/- (short button press) = Next/previous Track
+/- (long button press) = FFW/RW
M (short button press) = Play/Pause
Tochscreen = not used

And one idea: It is only an idea and I dont know if it is realistic but it would be worth to think of to turn the whole thing 90° for usage.

I am really thankfull for your work, shotofadds. I don´t know if it really helps but i will test your patch on my 8GB D2-non-DAB when it comes back from repair. And do you have a paypal-account? I would be willing to donate you for your work so far (not much as i don´t have much by myself but enough for a beer.  ;D).

Cheers

n0tH
Logged

Offline luck3r

  • Member
  • *
  • Posts: 15
Re: Cowon D2
« Reply #115 on: January 10, 2008, 01:30:22 PM »
Or do something like gestures.
Tap the screen = Play/Pause/Select item (at tapped position, if possible)
Move Stylus from left to right = Skip forward
Move Stylus from left to right and hold it there = FF
Move Stylus from right to left = Skip backwards
Move Stylus from right to left and hold it there = REW
And move up and down for menu navigation
So I think the touch screen could be used like 4 arrow keys, this would also make doom playable.
The buttons can be used like n0tH suggested.

I must say I only used Rockbox with the Cowon X5 simulator, so I don't know whats possible and whats not.
Logged
"All authority of any kind, especially in the field of thought and understanding, is the most destructive, evil thing. Leaders destroy the followers and followers destroy the leaders. You have to be your own teacher and your own disciple. You have to question everything that man has accepted as valuable, as necessary." -- Jiddu Krishnamurti

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Cowon D2
« Reply #116 on: January 10, 2008, 01:34:57 PM »
For me, I've always thought that if you wanted to divide the thouchscreen, rather than requiring movement of the stylus, you could just divide it into virtual "buttons".

Basically, take the whole rectangle of the screen, and cut two diagonal lines across it (from corner to corner). You get four triangles, these are the up, down, left, and right buttons. Basically, as long as your stylus is at the edge of the screen you're going left/right/up/down. Then, in the center there's a rectangle 1/4 the size of the total screen (so, it's half the screen width and half the screen height) that serves as the select or Play/Pause button depending on
A) which is more suitable
and
B) Which is more appropriate for a physical button (based on labeling of the physical buttons).

Generally, to me I prefer "Select" since this is still a "Navigation" function, which is what touchscreens are for.
Logged

Offline luck3r

  • Member
  • *
  • Posts: 15
Re: Cowon D2
« Reply #117 on: January 10, 2008, 03:54:13 PM »
This is good, too.
"Select" is the best choice in my opinion, on stock firmware I always use the M button as play/pause, even if I have to use the hold switch to do that.
Logged
"All authority of any kind, especially in the field of thought and understanding, is the most destructive, evil thing. Leaders destroy the followers and followers destroy the leaders. You have to be your own teacher and your own disciple. You have to question everything that man has accepted as valuable, as necessary." -- Jiddu Krishnamurti

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #118 on: January 11, 2008, 07:33:20 PM »
Yes, I think Llorean's suggestion is very workable (Select in the centre seems most logical) and in fact it's similar to the way cursor keys are implemented in the D2's Flash Player. Certainly it'll be useful for menu/plugin navigation, as I can't see Rockbox having a fully touchscreen-aware UI for quite some time.

The OF also has a nice feature where the +/- buttons can be enabled while the hold switch is on, which can be set to either skip tracks or change volume. On paper it sounds like a bad idea but is actually really useful when using the D2 in a pocket, etc. I think we should try to implement something similar (eventually).

Quote from: n0tHl33t on January 10, 2008, 09:24:58 AM
I am really thankfull for your work, shotofadds. I don´t know if it really helps but i will test your patch on my 8GB D2-non-DAB when it comes back from repair. And do you have a paypal-account? I would be willing to donate you for your work so far (not much as i don´t have much by myself but enough for a beer.  ;D).
Thankyou for your kind offer, but I'm doing this for fun, not profit - if you want to donate you can use the Paypal button on the Rockbox homepage, which I'm sure will go towards a worthy cause like server hosting for the project, etc.

I'm off to do some more disassembly to work out how to read the flash drive. I may be some time :-\
Logged

Offline jarivk

  • Member
  • *
  • Posts: 5
Re: Cowon D2
« Reply #119 on: January 20, 2008, 08:28:40 AM »
I had a problem in using tcctool. I tried loading file D2N_rs.bin using tool.
It says application patched successfully but D2 doesnt boot up. I had asked this before also. I am using 2.50 firmware 4GB model. I tried removing SD card too. What can be the problem??
Logged

  • Print
Pages: 1 ... 6 7 [8] 9 10 ... 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.111 seconds with 14 queries.