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
| | |-+  Creative Zen Vision:M
« previous next »
  • Print
Pages: 1 ... 30 31 [32] 33 34 ... 46

Author Topic: Creative Zen Vision:M  (Read 617004 times)

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #465 on: February 29, 2008, 03:48:17 PM »
Quote from: Domonoky on February 28, 2008, 04:48:37 PM
hi,

i seam to remember that on some targets the bootloader doesnt have the interrupts enabled, and thats why the replace the sleep with a loop.
Perhaps this also the problem here ?

good luck..
I looked in it a bit deeper and I don't think the problem lays with the interrupts (standard all of those are disabled, except the ones for the timers).
BTW, what kind of interrupts should be enabled you're talking about?

I think it has something to do with the task switching, although I don't really know what. Maybe it is trying to access some address that it isn't allowed to touch or some address that was set up in the previous bootloader and is still in use...

Also it seems like there's some problem with the timer handling; as it gives me a panicf() for an unhandled TIMER3 interrupt while that interrupt is nowhere in the code enabled (TIMER0 is used for this)...
Logged

Offline Thorondor

  • Member
  • *
  • Posts: 1
Re: Creative Zen Vision:M
« Reply #466 on: February 29, 2008, 04:14:31 PM »
Hi,

I've been watching this thread for some time now. And I want to help too. But I cannot get the bootloader to compile. I can compile bootloaders for other targets, but not for the zvm. All I get is this message:
Code: [Select]
In file included from powermgmt.c:45:
export/font.h:30:21: error: sysfont.h: No such file or directory
make[1]: *** [/home/Dennis/rockbox/zvm/firmware/powermgmt.o] Error 1
make: *** [bin] Error 2

I am using Cygwin, the latest SVN patched with the last zvm.diff. I tried compiling with a compiled sysfont.h from another target but that doesn't work to. I also tried compiling it in native linux. Didn't work either
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #467 on: February 29, 2008, 04:18:43 PM »
Quote from: Thorondor on February 29, 2008, 04:14:31 PM
Hi,

I've been watching this thread for some time now. And I want to help too. But I cannot get the bootloader to compile. I can compile bootloaders for other targets, but not for the zvm. All I get is this message:
Code: [Select]
In file included from powermgmt.c:45:
export/font.h:30:21: error: sysfont.h: No such file or directory
make[1]: *** [/home/Dennis/rockbox/zvm/firmware/powermgmt.o] Error 1
make: *** [bin] Error 2

I am using Cygwin, the latest SVN patched with the last zvm.diff. I tried compiling with a compiled sysfont.h from another target but that doesn't work to. I also tried compiling it in native linux. Didn't work either
First, try 'tools/rockboxdev.sh': this will install the latest (needed) compilers and toolchain.

You did run 'tools/configure' correctly and selected BOOTLOADER ?
Logged

Offline Falafel

  • Member
  • *
  • Posts: 44
Re: Creative Zen Vision:M
« Reply #468 on: February 29, 2008, 04:59:06 PM »
Quote from: Thorondor on February 29, 2008, 04:14:31 PM
Hi,

I've been watching this thread for some time now. And I want to help too. But I cannot get the bootloader to compile. I can compile bootloaders for other targets, but not for the zvm. All I get is this message:
Code: [Select]
In file included from powermgmt.c:45:
export/font.h:30:21: error: sysfont.h: No such file or directory
make[1]: *** [/home/Dennis/rockbox/zvm/firmware/powermgmt.o] Error 1
make: *** [bin] Error 2

I am using Cygwin, the latest SVN patched with the last zvm.diff. I tried compiling with a compiled sysfont.h from another target but that doesn't work to. I also tried compiling it in native linux. Didn't work either

I had that problem too.
try this in the folder where you want sysfont.h: "../tools/convbdf -h -o sysfont.h ../fonts/rockbox_default.bdf"
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #469 on: February 29, 2008, 05:56:00 PM »
Ok, I finally found out what the problem was with TIMER1 who didn't want to accept any values: it just didn't get any clock :)

So now I've got the tick task working (and interrupts), but still the sleep() problem exists so this will need some more looking into...

Diff is attached (I know, it is very dirty and messy; but I don't have any real debugging tools so I just got to printf() everything I can)

edit:
re-added zvm.diff : added some USB stubs
* zvm.diff.txt (73.5 kB - downloaded 282 times.)
« Last Edit: March 01, 2008, 08:20:53 AM by mcuelenaere »
Logged

Offline Falafel

  • Member
  • *
  • Posts: 44
Re: Creative Zen Vision:M
« Reply #470 on: March 01, 2008, 10:36:43 AM »
he mcuelenaere, when I update to your new diff, it gives me a lot of warnings (which isn't so bad) but it also give me an error on how 'CLK_MOD2_TMR0' isn't declared.. which is less desirable because now it won't do stuff..
« Last Edit: March 01, 2008, 10:47:22 AM by Falafel »
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #471 on: March 01, 2008, 11:00:15 AM »
Quote from: Falafel on March 01, 2008, 10:36:43 AM
he mcuelenaere, when I update to your new diff, it gives me a lot of warnings (which isn't so bad) but it also give me an error on how 'CLK_MOD2_TMR0' isn't declared.. which is less desirable because now it won't do stuff..
Did the patch apply correctly at firmware/export/dm320.h ?
Because there's the (new) definition.
« Last Edit: March 02, 2008, 01:09:01 PM by mcuelenaere »
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #472 on: March 02, 2008, 01:07:47 PM »
Ok, so now the HDD works (although I'm not sure if ATA_CONTROL is correct; but that doesn't matter that much) *but* it requires some modifications to thread.c which are pretty bad.

Apparently load_context() just doesn't work on the ZVM; for some unknown reason it crashes/restarts when executing this code..

Also code is a bit more cleaned in this diff.
* zvm.diff.txt (76.49 kB - downloaded 254 times.)
Logged

Offline bughunter2

  • Member
  • *
  • Posts: 3
Re: Creative Zen Vision:M
« Reply #473 on: March 02, 2008, 10:00:48 PM »
Will this port also work on the Creative Zen V Plus? (Or at least, is it likely that there is a high chance?)

Keep up the good work with Rockbox.
Logged
 

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #474 on: March 03, 2008, 11:59:10 AM »
Quote from: bughunter2 on March 02, 2008, 10:00:48 PM
Will this port also work on the Creative Zen V Plus? (Or at least, is it likely that there is a high chance?)

Keep up the good work with Rockbox.
Not directly, but with some help of Creative Zen V (Plus) owners/hackers they will (hopefully) be able to use it without much effort; but I think the Zen V differs more to the ZVM than for example the Zen Vision or the Zen Vision W..

As for Rockbox, I will be focusing on getting USB up and running so I can set up a serial driver for debugging purposes (I want to thank Frank Gevaerts for doing a lot in this area :); actually I was planning myself to do the logf() thing he did yesterday, but he was faster)
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #475 on: March 05, 2008, 10:59:15 AM »
Update:

interrupts should now fully work, there remains only one problem with the TIMER1 interrupt: for some unknown reason an CCD_VD0 interrupt is given when TIMER1 interrupt is enabled..

Also it seems as the PIC gives a non-stop interrupt to GIO0 whenever a button is touched, so I presume it is waiting until the ARM starts contacting him and asking him what button has been touched (to be worked on..)

UPDATE:

Buttons work! :)
The button driver fully functions, only current limitation is that pressing 2 buttons at the same time is detected (probably because the PIC doesn't give us that information); this is only possible with the hold switch.

Next up is the RTC, but for this I need (more) (high quality) pictures of the ZVM's internals; I already opened up mine twice, but as I find it a bit too 'scary' detaching the LCD of the main board, I'm asking somebody else to do this (to a non-working player perhaps?)

So could someone upload some pictures (if possible, made with a digital SLR ;))?

Oh yeah, patch is attached..

@Falafel: I think this won't work with the Zen Vision, because the PIC used in the ZVM either isn't used in the Zen Vision or isn't at the same I²C address; if so: please say :)
* zvm.diff.txt (81.04 kB - downloaded 298 times.)
« Last Edit: March 05, 2008, 02:40:17 PM by mcuelenaere »
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: Creative Zen Vision:M
« Reply #476 on: March 05, 2008, 02:56:08 PM »
mcuelenaere: I see you are doing some great work! Maybe it is time to open a flyspray task and upload your patches there ? You'll get much more visibility from developers there. Also, take a look at docs/CONTRIBUTING for the code formatting guidelines, it will make getting your patch committed much easier :)
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #477 on: March 05, 2008, 03:03:23 PM »
Quote from: NicolasP on March 05, 2008, 02:56:08 PM
mcuelenaere: I see you are doing some great work! Maybe it is time to open a flyspray task and upload your patches there ? You'll get much more visibility from developers there. Also, take a look at docs/CONTRIBUTING for the code formatting guidelines, it will make getting your patch committed much easier :)

Ok, done.
Logged

Offline bobbaluba

  • Member
  • *
  • Posts: 6
Re: Creative Zen Vision:M
« Reply #478 on: March 08, 2008, 10:27:43 AM »
Hi, I'm trying to compile the bootloader, but I get some errors when I'm trying to apply the diff.

I downloaded the diff from the bottom of this page:
http://www.rockbox.org/tracker/task/8686?pagenum=10

I get these errors:

Code: [Select]
$ patch --binary -p0 < zvm.diff

[...]

patching file firmware/target/arm/tms320dm320/uart-dm320.c
Hunk #1 FAILED at 1.
1 out of 8 hunks FAILED -- saving rejects to file firmware/target/arm/tms320dm32
0/uart-dm320.c.rej
patching file firmware/target/arm/tms320dm320/i2c-dm320.c
patching file firmware/target/arm/tms320dm320/timer-dm320.c
Hunk #1 succeeded at 8 with fuzz 1.
patching file firmware/target/arm/tms320dm320/kernel-dm320.c
Hunk #1 FAILED at 1.
1 out of 3 hunks FAILED -- saving rejects to file firmware/target/arm/tms320dm32
0/kernel-dm320.c.rej
patching file firmware/target/arm/tms320dm320/i2c-dm320.h
patching file firmware/target/arm/tms320dm320/system-dm320.c
Hunk #1 succeeded at 8 with fuzz 1.
patching file firmware/target/arm/tms320dm320/debug-dm320.c

[...]

What am I doing wrong?
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Creative Zen Vision:M
« Reply #479 on: March 08, 2008, 10:30:46 AM »
Quote from: bobbaluba on March 08, 2008, 10:27:43 AM
Hi, I'm trying to compile the bootloader, but I get some errors when I'm trying to apply the diff.

I downloaded the diff from the bottom of this page:
http://www.rockbox.org/tracker/task/8686?pagenum=10

I get these errors:

...

What am I doing wrong?

Attached is a fresh one, try it.

Nice that you also come join in the fun bobbaluba :)
* zvm.diff.txt (95.75 kB - downloaded 380 times.)
Logged

  • Print
Pages: 1 ... 30 31 [32] 33 34 ... 46
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Creative Zen Vision:M
 

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

Page created in 0.152 seconds with 22 queries.