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 ... 11 12 [13] 14 15 ... 65

Author Topic: Cowon D2  (Read 636531 times)

Offline ChristianGmeiner

  • Member
  • *
  • Posts: 6
Re: Cowon D2
« Reply #180 on: February 15, 2008, 12:03:10 PM »
Yes I can run code on the target.. a nice way to develop :)

This is what I get when starting:

ATA
2 banks
* 1048576 pages
* 2048 bytes per page
707 sequential segments found (707Mb)
KEYPRESS
mount
Hello World!
...

Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #181 on: February 17, 2008, 04:58:33 PM »
I'm not convinced that the power-off code is working as intended.

As I understand it, the PCF50606 automatically powers the unit off when a) the power key has been pressed for >1sec and b) its ONKEY1S interrupt has gone unacknowledged for 8 seconds. I think that is the behaviour currently being seen (hence the delay).

Yeeze: I got your PM, thanks for the screen caps. I'm currently digesting the information in there, should be useful. Now I need sleep :P
« Last Edit: February 17, 2008, 05:01:24 PM by shotofadds »
Logged

Offline phi

  • Member
  • *
  • Posts: 1
Re: Cowon D2
« Reply #182 on: March 01, 2008, 11:50:36 AM »
Hi all,

I just submitted a patch to enable ECC in the NAND driver. The error rate on my D2 seems to be fairly low, but I figured we'd need this eventually so here it is.

FS#8669

You won't actually notice anything different in the bootloader unless you've written code to test file reading.
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #183 on: March 01, 2008, 12:01:08 PM »
Much appreciated, that was on the to-do list.

I'm currently in the process of re-working the NAND driver to make use of the write cache (block type 0x15) segments. When that is done we should have a reliable read-only filesystem and the 'real' work can begin to boot the main Rockbox image. 8-)

/me kicks himself to update the TelechipsNAND wiki page...
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #184 on: March 08, 2008, 11:09:57 AM »
There's not much progress to report this week I'm afraid (I've been spending too long killing off my brain cells with beer ;D) but I thought those following this thread might be interested in a quick photo:



This is what I failed to show at 'DevConPub' this week: it shows the D2 booting as far as the Rockbox logo and version number, and then freezing soon afterwards.  But it's good progress all the same... 8-)
Logged

Offline Michael66

  • Member
  • *
  • Posts: 1
Re: Cowon D2
« Reply #185 on: March 09, 2008, 06:52:42 AM »
Thanks for the info, shotofadds! I'm following this thread for a while now and really appreciate all the work you guys put into making Rockbox work on the D2. :)
The official firmware releases seem to degenerate by the minute (according to the discussions at iaudiophile.net), so what you do here is probably the only hope left for the D2 community.
Logged

Offline cybergrind

  • Member
  • *
  • Posts: 23
Re: Cowon D2
« Reply #186 on: March 09, 2008, 02:25:08 PM »
I'v compiled file with "B" option, copied .bin to device. load:
see :
Code: [Select]
ATA
1 banks
....

when I pressed any-key:
Code: [Select]
*PANIC*
Stkov scroll

I try to comment
Code: [Select]
    if(((unsigned int *)old->stack)[0] != DEADBEEF)
        thread_stkov(old);
in thread.c, to view pre-panic messages, and have:
Code: [Select]
mount
No partition found

2 Gb version.

+P.S. when I removed check in telechips.c:
Code: [Select]
//    if (rc<=0)
//    {
//        error(EDISK,rc);
//    }
All seems work... what i doing wrong?
« Last Edit: March 09, 2008, 02:30:15 PM by cybergrind »
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #187 on: March 09, 2008, 04:24:50 PM »
I don't think you're doing anything wrong. Yeeze reported a similar problem on his 2Gb player, but I've not yet had time to investigate the problem. I will look into it, but I may need you to run some tests for me.

In other news, this afternoon I got the Rockbox menu to boot, but nothing is working yet ;D
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #188 on: March 09, 2008, 05:17:11 PM »
Added button definitions for plugins, wps and settings menu. The simulator is now usable.
FS#8708 http://www.rockbox.org/tracker/task/8708

@shotofadds:  Coooool
« Last Edit: March 09, 2008, 07:35:35 PM by andiator »
Logged
D2 8Gb + 128Gb µSD

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #189 on: March 09, 2008, 08:11:17 PM »
Thanks for that, andiator - I'll get those merged in soon. The keymaps will probably have to evolve over time, but it's certainly a good starting point.

Your real name (for the credits) is listed on the tracker, right?
Logged

Offline andiator

  • Member
  • *
  • Posts: 44
Re: Cowon D2
« Reply #190 on: March 10, 2008, 04:03:08 AM »
@shotofadds
Yes it's me.
For the WPS and menu are the four direction buttons (up/down...) enough. Some plugins need more. And yes, the mappings have to be altered to be usefull.
Logged
D2 8Gb + 128Gb µSD

Offline cybergrind

  • Member
  • *
  • Posts: 23
Re: Cowon D2
« Reply #191 on: March 10, 2008, 05:51:56 AM »
I tryed add some printf in disk.c and fat.c, and get log:
Code: [Select]
mount
start mounting disks. fat_init. NUM_VOLUMES : 1

start disk_mount(0)

start fat_mount()
fat_mount() - BPB is not sane

start fat_mount()
fat_mount() - Couldn't read BPB (error code -1)

start fat_mount()
fat_mount() - BPB is not sane

start fat_mount()
This is not FAT32. Go away!

No partition foudn, trying to mount sector 0.
start fat_mount()

after this I comment, near 360 line in fat.c:
Code: [Select]
#else /* #ifdef HAVE_FAT16SUPPORT */
//        DEBUGF("This is not FAT32. Go away!\n");
//        printf("This is not FAT32. Go away!");
//        return -2;

above this fragment we have such code:
Code: [Select]
#ifdef HAVE_FAT16SUPPORT
        fat_bpb->is_fat16 = true;
        if (fat_bpb->dataclusters < 4085)
        { /* FAT12 */
            DEBUGF("This is FAT12. Go away!\n");
            printf("This is FAT12. Go away!");
            return -2;
        }
maybe some defines is missed (2 GB model)?
« Last Edit: March 10, 2008, 05:54:23 AM by cybergrind »
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #192 on: March 10, 2008, 07:00:06 AM »
The first 4 "start fat_mount()" lines are because Rockbox attempts to mount each partition in the partition table in turn - but the D2 has no valid partition table, since it is formatted in "superfloppy" mode. The code in disk.c and fat.c is fine, don't worry about this.

The last line "No partition found, trying to mount sector 0. start fat_mount()" is the important one - what happens after this?

Are you familiar with the linux 'dd' utility (or it's Windows equivalent)? A dump of the first 512 bytes from your D2 would be useful at this point.
Logged

Offline cybergrind

  • Member
  • *
  • Posts: 23
Re: Cowon D2
« Reply #193 on: March 10, 2008, 07:31:39 AM »
Oh I'm sorry, not all log, last message
Code: [Select]
This is not FAT32. Go away!

When I added in config-cowond2.h:
Code: [Select]
#define HAVE_FAT16SUPPORT
All seems ok. Maybe this trouble appeared only in 2 Gb version, because defaulf system is fat16 =)

dump (attached) shows that filesystem is Fat16.

Another problem: something strange with screen during shutdown,
maybe we should add
Code: [Select]
#define HAVE_LCD_SHUTDOWN
into config-cowond2.h

and rename:
Code: [Select]
static void lcd_display_off(void)
to:
Code: [Select]
void lcd_shutdown(void)
in lcd-cowond2.c

and use it during shutdown.

P.S. I didn't familiar with ROCKBOX rules, maybe I should create and commit patches for this issues?
* dump.bin (0.5 kB - downloaded 180 times.)
« Last Edit: March 10, 2008, 07:34:01 AM by cybergrind »
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Cowon D2
« Reply #194 on: March 10, 2008, 07:56:39 AM »
I thought that might be the case: the missing log message was the important one ;D. I'll add in HAVE_FAT16SUPPORT next time I update the code.

Shutdown/poweroff does not currently work - this requires some more thought (more than just the LCD driver - powering off the CPU & hardware needs to be done too).

If you make patches, it's best to submit them to the tracker (Flyspray). But if they're just 1-liners like the above, post them here.
Logged

  • Print
Pages: 1 ... 11 12 [13] 14 15 ... 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.103 seconds with 14 queries.