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
|-+  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 4388 times)

Offline SelectOkay

  • Member
  • *
  • Posts: 2
Surfans F20 "NAND open error"
« on: May 16, 2022, 05:21:35 PM »
I'm new to the forums and Rockbox, but I've installed it on a Sandisk Clip Zip without much issue. The problem is  I bought a Surfans F20 and I can't install Rockbox on it.
I've tried using the Rockbox Utility but after using the firmware from the company itself, the utility constantly crashes.
SO I tried to use the native port and got farther, but now it's telling me "NAND open error (5)" I tried using two different mircoSD cards and even changing the partition from GPT to MBR but it's not working. Does anyone have any advice or help? I'm kinda stumped here.
Logged

Offline SelectOkay

  • Member
  • *
  • Posts: 2
Re: Surfans F20 "NAND open error"
« Reply #1 on: May 16, 2022, 08:41:47 PM »
Update: I manually installed the bootloader and that fixed all my problems. I guess I'm newer to all this than I thought. Whoops!
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #2 on: May 17, 2022, 07:08:52 AM »
I'm not sure if the native port has been tested on the Surfans F20. The NAND open error is a bit odd. Usually this would mean your flash chip is not supported, but since it worked eventually... meh. It's good you got it working, though!
Logged

Offline dconrad

  • Developer
  • Member
  • *
  • Posts: 135
Re: Surfans F20 "NAND open error"
« Reply #3 on: May 17, 2022, 11:02:24 AM »
Nevermind, ignore
« Last Edit: May 17, 2022, 11:22:44 AM by dconrad »
Logged

Offline kaas

  • Member
  • *
  • Posts: 11
Re: Surfans F20 "NAND open error"
« Reply #4 on: May 29, 2022, 11:48:13 AM »
Quote from: SelectOkay on May 16, 2022, 08:41:47 PM
Update: I manually installed the bootloader and that fixed all my problems. I guess I'm newer to all this than I thought. Whoops!
Did you manage to install the native port, or are you running the hosted port now? If you installed the native port, I'd love to hear how you did it, as I'm having the exact same issue.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #5 on: May 29, 2022, 12:57:15 PM »
kaas - The F20 may have a different flash chip that isn't recognized. I'm happy to assist, but we need to figure out is what flash chip is used. If you are willing and able to take apart the player, that's the fastest way to find out. The other option is probing the flash in software, but that'll require a modified bootloader.
Logged

Offline kaas

  • Member
  • *
  • Posts: 11
Re: Surfans F20 "NAND open error"
« Reply #6 on: May 29, 2022, 01:49:29 PM »
Quote from: amachronic on May 29, 2022, 12:57:15 PM
kaas - The F20 may have a different flash chip that isn't recognized. I'm happy to assist, but we need to figure out is what flash chip is used. If you are willing and able to take apart the player, that's the fastest way to find out. The other option is probing the flash in software, but that'll require a modified bootloader.
Thanks very much, I would prefer to go the software route as I'm not very comfortable taking it apart (don't even see any screws so it would probably involve at least some amount of breakage..). I assume in that case you can send me the required bootloader, and I'll run it with jztool?

Edit: I've since resolved my issue with the hosted port (see this bug), which was why I wanted to try the native port in the first place. So from my end, there's no particular hurry to get the native port working on my specific player. I'd still be glad to assist, though.
« Last Edit: May 30, 2022, 11:57:54 AM by kaas »
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #7 on: May 31, 2022, 01:30:07 PM »
Quote from: kaas on May 29, 2022, 01:49:29 PM
Quote from: amachronic on May 29, 2022, 12:57:15 PM
kaas - The F20 may have a different flash chip that isn't recognized. I'm happy to assist, but we need to figure out is what flash chip is used. If you are willing and able to take apart the player, that's the fastest way to find out. The other option is probing the flash in software, but that'll require a modified bootloader.
Thanks very much, I would prefer to go the software route as I'm not very comfortable taking it apart (don't even see any screws so it would probably involve at least some amount of breakage..). I assume in that case you can send me the required bootloader, and I'll run it with jztool?

Edit: I've since resolved my issue with the hosted port (see this bug), which was why I wanted to try the native port in the first place. So from my end, there's no particular hurry to get the native port working on my specific player. I'd still be glad to assist, though.

Okay, I added a flash info command to the bootloader, download link here: https://drive.google.com/file/d/1BgvDvGBKBSnWTDBHfE_uii3fjpSARqxt/view
(which is patch g#4566)

If you load that with jztool and select Debug tools > Flash info from the menu, it will dump some info to a file called flash_info.txt on the SD card. Copy & paste the file contents here. It'll show the ID bytes and some additional info - whether the chip is NAND or NOR and the page and block sizes. The probing method is basically the same as what the CPU does on boot to identify the flash, and it's read-only, so it should be safe. I also tested it on my players as a sanity check and it's working as expected.
Logged

Offline kaas

  • Member
  • *
  • Posts: 11
Re: Surfans F20 "NAND open error"
« Reply #8 on: June 07, 2022, 07:15:29 AM »
Here you go :)

Quote
readID opcode  = FF EF AA 21
readID address = EF AA 21 00
readID dummy   = EF AA 21 00
sfc params0  = 06 05 04 03
sfc params1  = 02 55 AA 55
sfc params2  = 00 63 02 02
sfc params3  = A4 2F 00 00
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #9 on: June 08, 2022, 06:10:45 AM »
Thanks, it appears to be a Winbond W25N01GV based on the ID bytes.

Here's an updated bootloader which supports that chip: https://drive.google.com/file/d/1zj8gq1G8DK-9581uVWq-9FmKXLlPuw5w/view?usp=sharing

This one has a "Flash ONFI info" option which you can run, paste the flash_onfi_info.txt file here. If the info matches up with the datasheet (8.2.27 Parameter Page Data Definitions) then we can be pretty confident the chip is correct. If you also take a normal bootloader backup and upload it somewhere, I can check that out to make sure it looks sane.
Logged

Offline kaas

  • Member
  • *
  • Posts: 11
Re: Surfans F20 "NAND open error"
« Reply #10 on: June 13, 2022, 03:46:57 AM »
Quote from: flash_onfi_info.txt
signature = 2222AAAA
revision = AAAA
manufacturer = "ÿÿÿÿÿÿÿÿÿÿÿÿ"
device model = "ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ"
JEDEC mf. id = FF
data bytes per page = 4294967295
spare bytes per page = 65535
pages per block = 4294967295
blocks per lun = 4294967295
number of luns = 255
bits per cell = 255
max bad blocks = 65535
block endurance = 65535
programs per page = 255
page program time = 65535
block erase time = 65535
page read time = 65535
And here is the bootloader backup. Although using the bootloader went fine I did not go ahead flashing it, since the datasheet values don't seem to match up (e.g. spare bytes per page is 4x higher in the txt than in the datasheet), I may be misinterpreting it however.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #11 on: June 13, 2022, 06:54:28 AM »
It's not reading data off the chip properly, the data is mostly 0xff, so yeah flashing it would be a really bad idea. Not sure what's wrong. I'll try reducing the clock speed & disable quad I/O, and double check for any mistakes I might've made.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #12 on: June 20, 2022, 04:16:21 PM »
Here's another build, try dumping the ONFI info and take a bootloader backup again. I wouldn't advise flashing it.
https://drive.google.com/file/d/1IJjG_zZxdSxNZK3XM-nAeaJzVnR2oHcK/view?usp=sharing
Logged

Offline kaas

  • Member
  • *
  • Posts: 11
Re: Surfans F20 "NAND open error"
« Reply #13 on: June 22, 2022, 06:19:40 AM »
Quote from: flash_onfi_info.txt
probed chip ID = EF AA 21
signature = FFFFFFFF
revision = FFFF
manufacturer = "ÿÿÿÿÿÿÿÿÿÿÿÿ"
device model = "ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ"
JEDEC mf. id = FF
data bytes per page = 4294967295
spare bytes per page = 65535
pages per block = 4294967295
blocks per lun = 4294967295
number of luns = 255
bits per cell = 255
max bad blocks = 65535
block endurance = 65535
programs per page = 255
page program time = 65535
block erase time = 65535
page read time = 65535
Bootloader backup. Thanks again for your continued efforts.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 271
Re: Surfans F20 "NAND open error"
« Reply #14 on: June 23, 2022, 12:16:02 PM »
That last dump was almost good but shifted by one byte. This build should fix it.
https://drive.google.com/file/d/1LQtakDKCNTGvXU-u9QVYc056nN78CkDl/view?usp=sharing

Try another bootloader backup. No need to bother with the ONFI info this time.

Also, could you unzip a daily build to your SD and run rockbox directly from the bootloader? You don't need to install the bootloader, just select the Rockbox boot option while you're in the bootloader. EDIT: I forgot to mention, this is so you can check if rockbox actually works. If they changed the flash there's no guarantee the rest of the hardware is the same as older units.
« Last Edit: June 24, 2022, 09:01:09 AM by amachronic »
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.047 seconds with 17 queries.