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 ... 13 14 [15] 16 17 ... 65

Author Topic: Cowon D2  (Read 636537 times)

Offline cybergrind

  • Member
  • *
  • Posts: 23
Re: Cowon D2
« Reply #210 on: March 25, 2008, 10:31:14 AM »
I used rm * -R to clean =) and compiled normal build
and have same problems (lcd off's after I press button)
http://cybergrind.jino-net.ru/rbx.rar - contains files, that you request (~ 200 Kb)
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #211 on: March 25, 2008, 05:05:40 PM »
Thanks, I get the same behaviour when running your rockbox.iaudio on my D2. Your file looks to have been built ok, and the .map seems fine. It seems I have broken something in the latest SVN build :/

Could you try this version: http://www.megaupload.com/?d=L0WRRFXN

Edit: can you also tell which which version of GCC you are running (arm-elf-gcc --version). Make sure you are using the version installed by the rockboxdev.sh script (4.0.3 plus multilibs patch).
« Last Edit: March 25, 2008, 05:45:25 PM by shotofadds »
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #212 on: March 25, 2008, 05:42:57 PM »
@shotofadds
with yours rockob.iaudio I do see Rockbox and usb logos. I even see some garbage as menu and can navigate up and down in this garbage.
BTW, my rockbox.iaudio is 760 bytes bigger than yours.

[Update] Now I'm setting the vmware image and trying to build on a real linux (not cygwin  :))
« Last Edit: March 25, 2008, 06:04:19 PM by andiator »
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #213 on: March 25, 2008, 05:46:02 PM »
@andiator, yes the LCD driver is broken. I just spotted that and will fix it later.
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #214 on: March 25, 2008, 07:08:23 PM »
After more than 10 tries I've got past "Read failed" and did seen the rockbox logo!
Well. after that got a panic: something reading not aligned ... Yes I know, the ATA driver isn't ready yet  :-[

I build it on the rockbox vmware image (debian), so it seems like the problem is the cygwin environment, although the arm-elf-gcc version is 4.0.3.
(And the compile speed was much more better)
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #215 on: March 25, 2008, 07:19:11 PM »
The non-aligned read error is also fixed by the new ATA driver - I forgot to mention that, sorry. A temporary work-in-progress version is attached, so try using that instead. Be aware that it is not complete, so it is still not 100% perfect, and there are several compiler warnings (largely because of leftover debug code).

Once you have a working build, you can also try removing all of the code from inside lcd_update_rect() in lcd-cowond2.c, and inserting a single call to lcd_update() instead. That should temporarily fix the garbled display.

At some stage I will also try building with cygwin to see if I can confirm whether that is indeed the problem. I've been using the Rockbox VMware image with no significant problems so far.

Good luck!  :)

EDIT: Removed attachment since this is now in SVN.
« Last Edit: March 29, 2008, 03:11:03 PM by shotofadds »
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #216 on: March 25, 2008, 09:22:01 PM »
That is much better! Thanks shotofadds!
Booting into the menu, even watching some images  ;D
No garbage on lcd without any changes

Besides, the line 33

#include "../../../bootloader/common.c"

should read:

#include "../../../bootloader/common.h"
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #217 on: March 26, 2008, 06:20:37 AM »
Well, I did say there was temporary debug code left... ;)

Can you confirm whether any of the plugins work (eg. the game Invadrox should work well without changes)? You may first need to familiarise yourself with the buggy button behaviour in order to navigate the menu, though.

You should also find that things like the JPEG viewer work - eg. go to Files and browse for some .jpg files (it works quite well in slideshow mode). Most other things are unusable at this stage due to the limited button mappings available.

Unfortunately I won't have any more time to work on this until the weekend. :-\
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #218 on: March 26, 2008, 08:02:39 AM »
Yes, I confirm that the image viewer and some plugins work.

Do you have a clue why and where this buttons "hopping" happens? I would like to try to fix this, if I only knew where to start from...
button_read_device() in button-cowond2.c seems to be ok.

And now back to cygwin:
Yesterday, I'd started tools/rockboxdev.sh - it took over 4(!) hours, so I was going to bed at about 4 am. Luky me having this week free. (note to me: don't install cygwin on an external usb harddrive, it at least doubles the run/compile time).
Today "make clean" and "make -j": and it did work! I got in the rockbox menu.

But I don't want to use cygwin anymore, it takes too long to compile.
« Last Edit: March 26, 2008, 08:33:53 AM by andiator »
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #219 on: March 26, 2008, 08:26:51 AM »
Quote from: andiator on March 26, 2008, 08:02:39 AM
Yes, I confirm that the image viewer and some plugins work.
Excellent. At least I know it's not just me now! ;D

Quote from: andiator on March 26, 2008, 08:02:39 AM
Do you have a clue why and where this buttons "hopping" happens? I would like to try to fix this, if I only knew where to start from...
button_read_device() in button-cowond2.c seems to be ok.
Yes. Reading from ADC 0 appears to return incorrect values if it is read too frequently (I've seen this behaviour before in the old bootloader test program). I need to re-work the ADC driver to be timer driven, so that each adc_read() just returns a cached value, rather than performing a fresh read each time. It's on the TODO list...

Quote from: andiator on March 26, 2008, 08:02:39 AM
And now back to cygwin:
Yesterday, I'd started tools/rockboxdev.sh - it took over 4(!) hours, so I was going to bed at about 4 am. Luky me having this week free. (note to me: don't install cygwin on an external usb harddrive, it at least doubles the run/compile time).
Today "make clean" and "make -j": and it did work! I got in the rockbox menu.
Good to hear it - I wanted to make sure there wasn't a general problem building in cygwin. I found VMware to be at least 2x faster, so I use that now.
« Last Edit: March 26, 2008, 08:29:10 AM by shotofadds »
Logged

Offline cybergrind

  • Member
  • *
  • Posts: 23
Re: Cowon D2
« Reply #220 on: March 26, 2008, 09:33:49 AM »
I am using gcc 3.4.4 with cygwin
with your rockbox.iaudio I still have the same problem (after loading rockbox.iaudio LCD off's)
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #221 on: March 26, 2008, 09:53:54 AM »
@cybergrind
I think you typed "gcc --version"? I did the same mistake. It should be "arm-elf-gcc --version".

As it seems it is important to run tools/rockboxdev.sh - beware: it can take a lot of time, so 2 to 4 hours.
And you need to have curl-package installed. Run cygwins setup.exe choose some url and under "Net", I think, is the curl package.

But I would advise to use the vmware image since it much more faster. http://www.rockbox.org/twiki/bin/view/Main/VMwareDevelopmentPlatform
The vmware player can be downloaded for free from http://www.vmware.com. Then do as the first link says plus run the tools/rockboxdev.sh (10 - 30 mins).
The image has already a net drive mounted under "\\debian" with user = "user" und pw = "rockbox", so you can use your favorite editor in windows, build on linux and use the tcctool from your cygwin directory to upload the binaries.
« Last Edit: March 26, 2008, 09:55:32 AM by andiator »
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #222 on: March 26, 2008, 10:13:29 AM »
If you're going to run rockboxdev.sh, you only need to select the ARM toolchain - if you choose the other two it'll take three times as long...
Logged

Offline Yeeze

  • Member
  • *
  • Posts: 40
Re: Cowon D2
« Reply #223 on: March 26, 2008, 10:39:36 AM »
I compiled a botloader with cygwin and arm-elf-gcc --version said:
arm-elf-gcc (GCC) 4.0.3 [...]

I patched the bootloader into the Cowon firmware and uppdated the resulting image using tcctool.

This was displayed: *PANIC* BMPM tag not present

UPDATE: Ok I tried it with you image from megaupload... But the Screen stayed always just black and I needed to push the reset button...

« Last Edit: March 26, 2008, 10:53:05 AM by Yeeze »
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #224 on: March 26, 2008, 10:44:56 AM »
Yeeze, have you built in the updated ata-nand driver I posted?

If you did, do you remember the nand_chip_select() fix you did a while back? Could you try that again (read a few pages back in the forum if you forget...)

Pesky 2Gb players  :-\
Logged

  • Print
Pages: 1 ... 13 14 [15] 16 17 ... 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.085 seconds with 14 queries.