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
translations translations
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
| | |-+  Surfans F28
« previous next »
  • Print
Pages: [1] 2

Author Topic: Surfans F28  (Read 6793 times)

Offline schatteneis

  • Member
  • *
  • Posts: 17
Surfans F28
« on: November 13, 2023, 07:52:27 PM »
Hello, iam new here and was intreseted in learning more about the my Surfans F28, i saw the F20 getting support already so i was wondering if its possible to rockbox the F28?
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 656
Re: Surfans F28
« Reply #1 on: November 13, 2023, 10:22:02 PM »
Quote from: schatteneis on November 13, 2023, 07:52:27 PM
Hello, iam new here and was intreseted in learning more about the my Surfans F28, i saw the F20 getting support already so i was wondering if its possible to rockbox the F28?

A quick look shows that this is based on the X1000E SoC and surprisingly, they provide a firmware updae for the unit.  Poking into that it appears to be built on the same HibyOS platform as their F20 player (and several others rockbox already has ports for)

It probably wouldn't take that much work to produce a hosted port to this thing -- we'd need to patch the firmware update image to enable adb, and start poking around.  Once we get some basic operational parameters (mainly screen resolution) a bootloader binary can be generated, and from there, the complete rockbox applicaiton will just require mappings for buttons and audio interaction.
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #2 on: November 13, 2023, 11:48:59 PM »
Sounds good! How can I help?
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #3 on: November 13, 2023, 11:54:42 PM »
there are already some things i can report, pressing power and previous track flashes the firmware update thats on the sd card, and pressing power and next track puts the device in an black screen mode, dont know for sure what thats for though
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #4 on: November 14, 2023, 06:32:54 AM »
Quote from: speachy on November 13, 2023, 10:22:02 PM
Quote from: schatteneis on November 13, 2023, 07:52:27 PM
Hello, iam new here and was intreseted in learning more about the my Surfans F28, i saw the F20 getting support already so i was wondering if its possible to rockbox the F28?

A quick look shows that this is based on the X1000E SoC and surprisingly, they provide a firmware updae for the unit.  Poking into that it appears to be built on the same HibyOS platform as their F20 player (and several others rockbox already has ports for)

It probably wouldn't take that much work to produce a hosted port to this thing -- we'd need to patch the firmware update image to enable adb, and start poking around.  Once we get some basic operational parameters (mainly screen resolution) a bootloader binary can be generated, and from there, the complete rockbox applicaiton will just require mappings for buttons and audio interaction.

ok, so, the power + next track key combo is usb boot, however after getting a linux usb and installing adb and booting it with the erosq/jztool method i only got a black screen with the backlight on
Logged

Offline vitt13

  • Member
  • *
  • Posts: 93
Re: Surfans F28
« Reply #5 on: November 14, 2023, 11:34:13 AM »
Quote from: schatteneis on November 14, 2023, 06:32:54 AM
installing adb
What do you mean "installing adb"? It has to unpack *.upt firmware, then extract system.ubi content with ubireader_extract_files utility, then rename /etc/init.d/K90adb to S90adb and rebuild back the firmware. It looks similar to HiBy R3Pro2022 fw that I have.
The steps are similar to this https://www.head-fi.org/threads/hiby-r3-pro-portable-bluetooth-dap.916299/post-17496314
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #6 on: November 14, 2023, 01:32:23 PM »
Quote from: vitt13 on November 14, 2023, 11:34:13 AM
Quote from: schatteneis on November 14, 2023, 06:32:54 AM
installing adb
What do you mean "installing adb"? It has to unpack *.upt firmware, then extract system.ubi content with ubireader_extract_files utility, then rename /etc/init.d/K90adb to S90adb and rebuild back the firmware. It looks similar to HiBy R3Pro2022 fw that I have.
The steps are similar to this https://www.head-fi.org/threads/hiby-r3-pro-portable-bluetooth-dap.916299/post-17496314
I had to install adb on Ubuntu for the next track + power button mode to work so I could use jztool, else it would complain about missing drivers
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #7 on: November 14, 2023, 02:10:17 PM »
Quote from: schatteneis on November 14, 2023, 01:32:23 PM
Quote from: vitt13 on November 14, 2023, 11:34:13 AM
Quote from: schatteneis on November 14, 2023, 06:32:54 AM
installing adb
What do you mean "installing adb"? It has to unpack *.upt firmware, then extract system.ubi content with ubireader_extract_files utility, then rename /etc/init.d/K90adb to S90adb and rebuild back the firmware. It looks similar to HiBy R3Pro2022 fw that I have.
The steps are similar to this https://www.head-fi.org/threads/hiby-r3-pro-portable-bluetooth-dap.916299/post-17496314
I had to install adb on Ubuntu for the next track + power button mode to work so I could use jztool, else it would complain about missing drivers

but yeah, i can confirm that this works one to one, expect that its all lowercase and there is an extra file in the upt, i have uploaded the adb enabled firmware to google drive https://drive.google.com/drive/folders/1XzRtyR7ESuYpipRFmwS5KvdVJI2C4O6r?usp=sharing
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #8 on: November 14, 2023, 02:29:12 PM »
Quote from: speachy on November 13, 2023, 10:22:02 PM
Quote from: schatteneis on November 13, 2023, 07:52:27 PM
Hello, iam new here and was intreseted in learning more about the my Surfans F28, i saw the F20 getting support already so i was wondering if its possible to rockbox the F28?

A quick look shows that this is based on the X1000E SoC and surprisingly, they provide a firmware updae for the unit.  Poking into that it appears to be built on the same HibyOS platform as their F20 player (and several others rockbox already has ports for)

It probably wouldn't take that much work to produce a hosted port to this thing -- we'd need to patch the firmware update image to enable adb, and start poking around.  Once we get some basic operational parameters (mainly screen resolution) a bootloader binary can be generated, and from there, the complete rockbox applicaiton will just require mappings for buttons and audio interaction.

also to get back on this, poking around a bit the screen resolution is 320x480 and can be either 50hz or 60hz

Code: [Select]
cat /sys/class/graphics/fb0/modes
U:320x480p-60
U:320x480p-50
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #9 on: November 15, 2023, 06:29:57 AM »
Now, with ADB enabled ofw in hand, how can one go about with making a hosted port? Are there any resources I can follow?
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 305
Re: Surfans F28
« Reply #10 on: November 15, 2023, 10:25:07 AM »
There are some pages that explain this on the wiki but they're quite outdated.

Some knowledge of C is good but not strictly necessary.

You need to clone the Rockbox source code, and install a MIPS hosted toolchain (just follow the rockboxdev.sh method).

PortingHowTo seems about right for actually adding a new port to the build system and getting something compile-able. Since your target is similar to the existing ErosQ hosted port you could use that as a guide. I think the F20's hosted bootloader is bootloader/rocker_linux.c, and you could probably add support for the F28 with minor tweaks.
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #11 on: November 15, 2023, 11:06:37 AM »
Quote from: amachronic on November 15, 2023, 10:25:07 AM
MIPS hosted

did you mean mips-linux in rockbox.sh?
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #12 on: November 15, 2023, 11:18:30 AM »
also hey, bug in the rockbox.sh. zlib 1.2.13 is no longer hosted so i switched it to 1.3
Logged

Offline schatteneis

  • Member
  • *
  • Posts: 17
Re: Surfans F28
« Reply #13 on: November 15, 2023, 12:05:56 PM »
yeah, i am probably gonna need some help for this iam not very good at understanging the porting process, however i can offer hardware specs by poking around the system with adb
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 656
Re: Surfans F28
« Reply #14 on: November 15, 2023, 05:15:19 PM »
Quote from: schatteneis on November 15, 2023, 11:18:30 AM
also hey, bug in the rockbox.sh. zlib 1.2.13 is no longer hosted so i switched it to 1.3

Unless zlib 1.3 is ABI-compatible with 1.2.13 (and uses the same SONAME), this will result in the toolchain creating stuff won't work properly on the actual target.

Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Surfans F28
 

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

Page created in 0.113 seconds with 21 queries.