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
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Other - Installation/Removal
| | | |-+  Surfans F20 "NAND open error"
« previous next »
  • Print
Pages: 1 [2] 3 4

Author Topic: Surfans F20 "NAND open error"  (Read 4387 times)

Offline twotoneblue

  • Member
  • *
  • Posts: 10
Re: Surfans F20 "NAND open error"
« Reply #15 on: June 26, 2022, 06:57:04 AM »
Dear amachronic and kaas,

I hope I am not interrupting your exchange, but if it helps, here is a backup of the native bootloader taken after loading amachronic's bootloader v4 with jztool (https://drive.google.com/file/d/1xvTcsPqMgWUUic_VzPFrYSAAqe117ugT/view?usp=sharing). Albeit not requested at this point, I also made a zip archive of (all) the available debug dumps (https://drive.google.com/file/d/17irOvVhWSZW18bn6DYpiDMTG0yMFHyEo/view?usp=sharing).

As for running Rockbox from the bootloader menu; I extracted the zip of the native Rockbox (should it have been a daily hosted build?) onto the SD card and started it from the bootloader menu. It runs and plays a FLAC file with no noticeable problems. The only thing I saw was the message: "error accessing playlist control file" as I unplugged the USB connection to the computer.

Notably, while some tiny pops can be heard when plugging into the Line Out, no sound comes out of it during playback.
« Last Edit: June 26, 2022, 07:00:34 AM by twotoneblue »
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #16 on: June 26, 2022, 12:04:21 PM »
Quote from: twotoneblue on June 26, 2022, 06:57:04 AM
...
Thanks, you did everything right. Aside from line out not working, it sounds like Rockbox runs fine. But isn't that the same as the hosted build?

The ONFI info is okay and matches up with the Winbond datasheet. The raw values are correct but I got the endianness wrong in the dumper, so the text dump appears wrong. It seems there's still something wrong with the flash read, some pages are being read as 0xff intermittently and some are getting zeros prepended to them. So we're not quite there yet, but getting closer.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #17 on: June 26, 2022, 02:25:41 PM »
Turns out I didn't put the chip into buffered read mode. That's fixed, also fixed the ONFI dumper. Maybe this build will actually work? Either a full flash dump or bootloader backup should be enough to confirm.

https://drive.google.com/file/d/1a5GbTZWmyxsgglfdRjHJ4EfXoyEZBCZD/view?usp=sharing
Logged

Offline twotoneblue

  • Member
  • *
  • Posts: 10
Re: Surfans F20 "NAND open error"
« Reply #18 on: June 27, 2022, 06:08:13 AM »
Hi,

Interesting! It seems that this time the readable text (e.g. "Winbond") in the ONFI dump is gone again. Debug files and bootloader backup at https://drive.google.com/file/d/11mzSyUDyyRi6DGnfWFrtbZQOpWC43cwo/view?usp=sharing.

Rockbox runs and plays fine apparently. No USB-related error message this time. No sound in Line Out.

My sincerest thanks for your continued efforts, amachronic!
Logged

Offline twotoneblue

  • Member
  • *
  • Posts: 10
Re: Surfans F20 "NAND open error"
« Reply #19 on: June 28, 2022, 06:13:53 PM »
Quote from: amachronic on June 26, 2022, 12:04:21 PM
But isn't that the same as the hosted build?

Btw, sorry I forgot to answer this; yes, it is the same functionality as observed with the hosted build :-)
Logged

Offline kaas

  • Member
  • *
  • Posts: 11
Re: Surfans F20 "NAND open error"
« Reply #20 on: July 04, 2022, 01:10:20 PM »
Quote from: amachronic on June 26, 2022, 02:25:41 PM
Turns out I didn't put the chip into buffered read mode. That's fixed, also fixed the ONFI dumper. Maybe this build will actually work? Either a full flash dump or bootloader backup should be enough to confirm.

https://drive.google.com/file/d/1a5GbTZWmyxsgglfdRjHJ4EfXoyEZBCZD/view?usp=sharing
Hi, would it still help if I do this as well (or the one you posted previously), or is twotoneblue's backup enough for now?
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #21 on: July 06, 2022, 06:38:30 AM »
You're welcome to try another backup, but unfortunately twotoneblue's backup is showing the same issue as before and it's safe to assume yours would too. I haven't had time to investigate further.

In case anyone is interested the bootloader sources are on Gerrit, and Linux also supports this flash, so maybe that's useful as a reference.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #22 on: July 09, 2022, 06:23:41 AM »
Looks like I left all the timing parameters at the minimum defaults, so I think commands were being sent to the flash too quickly and that's why the read data was all wrong. Now I've increased the timings so the delay between commands is longer. Here's a new bootloader to try. Fingers crossed...
Logged

Offline twotoneblue

  • Member
  • *
  • Posts: 10
Re: Surfans F20 "NAND open error"
« Reply #23 on: July 09, 2022, 10:06:10 AM »
The output from this version looks very reasonable to my untrained eyes!  ;D

https://drive.google.com/file/d/1jorB9t9JSbcazm8ZPJwVyVw5aecDNvrK/view?usp=sharing
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #24 on: July 09, 2022, 04:02:09 PM »
Looks good to me! The dump matches up with the v2.7 firmware images.

All that's left to do is try installing the v6 bootloader build and see if it can boot Rockbox and the original firmware.
Logged

Offline twotoneblue

  • Member
  • *
  • Posts: 10
Re: Surfans F20 "NAND open error"
« Reply #25 on: July 09, 2022, 08:27:44 PM »
Great!

First, for good measure; a corrected zip with the bootloader backup - I forgot this file in the previous one: https://drive.google.com/file/d/1-zqsdh3BWI4Q0mxOGWuB8L2nor_43X7W/view?usp=sharing

I ran the install and update from the bootloader menu with success (having renamed the bootloader-v6 file to "bootloader.erosq" on the SD-card, else the installation gives a file not found error, naturally), and the latest native rockbox seems to start fine. Dual boot also works, so this looks good.


« Last Edit: July 09, 2022, 08:29:56 PM by twotoneblue »
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #26 on: July 10, 2022, 08:55:25 AM »
Cool! ;D

I'll update the official bootloader builds and wiki soon. I think it's pretty safe to say newer Surfans F20 units with FW v2.7 are now supported.
Logged

Offline twotoneblue

  • Member
  • *
  • Posts: 10
Re: Surfans F20 "NAND open error"
« Reply #27 on: July 11, 2022, 05:32:46 AM »
Nice work, amachronic - many thanks! :D 8)

The native dual boot setup is a good one to have, providing the rockbox goodness for headphones, but also catering for the occasional need for the line out or the bluetooth function throught the aigo player.

Speaking of which, now that the status of Surfans F20 v2.7 will be moved to supported, should I open a separate thread/issue (or even bug report) about the silence of the line out? And, would you have any ideas on how one can proceed to investigate this problem?

My sincerest thanks again for your efforts!
« Last Edit: July 11, 2022, 02:19:19 PM by twotoneblue »
Logged

Offline JosephM

  • Member
  • *
  • Posts: 7
Re: Surfans F20 "NAND open error"
« Reply #28 on: July 18, 2022, 11:16:41 PM »
Quote from: amachronic on July 10, 2022, 08:55:25 AM
Cool! ;D

I'll update the official bootloader builds and wiki soon. I think it's pretty safe to say newer Surfans F20 units with FW v2.7 are now supported.

I hate to revive the thread, but I don't think that's the case. I got a new unit today with the 2.7 FW and it seems like it has yet another flash chip. (Or at least I'm hitting the same nand read error, even with the v6 bootloader.) Using the debug code provided, I got

Code: [Select]
readID opcode  = FF C8 D1 C8
readID address = C8 D1 C8 D1
readID dummy   = D1 C8 D1 C8
sfc params0  = 06 05 04 03
sfc params1  = 02 55 AA 55
sfc params2  = 00 63 02 02
sfc params3  = A4 2F 00 00
which from looking at the Linux SPI Nand identification code makes me think it's the GigaDevice GD5F1GQ4UExxG. https://www.gigadevice.com/datasheet/gd5f1gq4xexxg/
Logged

Offline Falco98

  • Member
  • *
  • Posts: 166
Re: Surfans F20 "NAND open error"
« Reply #29 on: July 19, 2022, 11:59:16 AM »
Quote from: amachronic on July 10, 2022, 08:55:25 AM
I think it's pretty safe to say newer Surfans F20 units with FW v2.7 are now supported.

That's good news.  The unit I bought a couple months ago came with 2.7 and I felt a little "dirty" forcing a downgraded FW version (2.5) onto it, even though that worked about as well as we expect any builds to work at present (AFAIK).  Can you advise me whether I should try upgrading soon?  I've enjoyed following the tech discussion here, but must admit it's somewhat over my head.

Also, purely as an aside: this unit is eventually intended for my FIL to be his car music player (hardwired, since we already know BT is off the table for the foreseeable future), but the one thing that'll need to be working before that is for USB charging to function correctly (just fwiw); since it boots to USB now instead of to the player, i'm afraid it won't work for him since I'd be telling him to just leave it plugged in in his car.  Just mentioning this here in case anyone has any insight as to whether i should expect this to ever be fixed.
Logged

  • Print
Pages: 1 [2] 3 4
« previous next »
+  Rockbox Technical Forums
|-+  Installation / Removal
| |-+  Manual Installation
| | |-+  Other - Installation/Removal
| | | |-+  Surfans F20 "NAND open error"
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 17 queries.