您尚未登录。

#1 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-12-02 02:43:35

Gamepad update:  The user from Spain forum has Scaned his Gamepad PCB.
There is nothing about USB hardware as you can see.
74HC165 are simply shift register, so all keys are bitbanged over GPIO pins like an SNES Gamepad.
On the underside there is a switch to select Player1 or Player2.

So without hardware modifications there is no way to support USB in CFW.

pad_02.png
pad_04.png

#2 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-11-29 23:33:28

@Situ

some news about the FC3000 USB port. In the Spanish Telegram group there is this guy who has his controller connected to a PC. and that's what his pc does. Looks like the controller is some sort of custom USB device, so you seem right, the FC3000 USB connector seems to be wired to the GPIOs, and the stock firmware uses some sort of custom USB driver.

photo_2022-11-29_16-15-30.jpgphoto_2022-11-29_16-15-32.jpgphoto_2022-11-29_16-15-34.jpgphoto_2022-11-29_16-15-37.jpgphoto_2022-11-29_16-15-38.jpg

#3 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-11-29 21:07:06

someone is willing to beta test my OverClocked CFW for V2 IPS WL-28H105-A1 ?

#4 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-11-25 19:11:42

Some Updates...

UBOOT

  • Raised RAM Speed from 156MHz to 216MHz (FC3000 did not boot with higher values)

GMENU2X

  • Using Sourcecode from @Apaczer (miyoo-beta)

  • Raised Max CPU from 864MHz(702MHz) to 960MHz (FC3000 hangs with higher values)

  • Added Reboot option to PowerDialog

  • Fixed the Battery Icons

  • Reset CPU Speed for links is set to 960MHz

TODO

  • Gather more current sourcecodes from emus/apps or executeables atleast

  • Remove Experimental USB cause it seems USB is wired to GPIO instead to USB Port on ARMCPU

  • ??? maybe still some things or EOL

#6 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-11-13 20:16:37

@situ

do you let these guys intimidate you now?  stealing the work from others (ip, copyrighted games) and encrypting it in WST files and selling it for a profit.  According to the German law, he violated some things.  and he makes stress here because of "his" operating system?  Please go ahead and let the guy talk.

#7 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-25 20:04:19

@怀旧堂

are you really the developer / inventor from the FC3000?

#9 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-18 13:52:50

@司徒   @Kike

Thank you very much <3 i will try it asap

#11 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-13 23:06:20

The v1 ips1 version is broken.

The lcd init code was wrong, uboot bootlogo has wrong colors and the L and R buttons do not work as it should.

I solved the init code and uboot bootlogo issue.

Now i need to get L and R buttons to work right.

I will upload any linux image updates to google drive, the download links keeps still the same when overwriting the file.

So my post with the download links are always uptodate.


Nice feature

#12 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-13 20:45:50

司徒 说:

@neotendo
Thanks for your information. Yes, the initial code of IPS v1 should be RB411-11A. You can provide PR to this repo for this issue.

ok, i got the RB411-11A image working, it was the wrong initial code.

#13 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-13 13:37:06

@Situ

i looked into your uboot/drivers/video/fc3000_ips1.c and fc3000_tft1.c source code, both initial codes are the same.
is it possible that something went wrong?

ips1 should be the RB411-11A initial code right?

#14 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-13 05:54:52

@Situ

i have an user from spain, he has the RB411-11A display, he downloaded my RB411-11A linux image but his display stays black.
i tried to recompile the uboot and gave him the image, stil black screen.

can you please compile a IPS1 (RB411-11A) uboot for me or look into source code why his display stays black?
maybe compiling a new uboot.img is enough and the issue lies at me.

thank you very much

PS:
I saw in the ips kernel patch file the last 2 lcd init cmd/data are

Lcd_Cmd(0x1020)
Lcd_Dat(0x1020)

But in your new kernel and uboot code, there is only

Lcd_Cmd(0x1020)

Is that correct or can be that the fault?

#15 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-12 17:11:35

@司徒


regarding your dump tool from https://whycan.com/t_6647_5.html#p81824

i have a kind user in another forum who is willing to dump his v1 tft stock rom.
can he use this tool? i think that was for dumping the old stock rom right`?

#16 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-12 16:48:40

Here is a video of the new FC3000 firmware (crappy recording, looks much better in reallife)

https://youtu.be/C0NxH0gfZoY

#17 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-12 12:00:37

司徒 说:

@neotendo
Thanks for updating download links. For SPI flash, may I know why do you need such tool or program ?

I want try to program a little logo display program or so.
My FC3000 v1 tft is wiped as i tried your images the first time (cause my device was not compatible, and flashed accidently the wrong file🤷🏻)

And as long i have no stock rom for it, i want something on the display instead a dead screen.

Just for fun

#18 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-12 01:36:10

@EVERYONE smile

here we are!!!!   the new FC3000 V2 IPS (WL-28H105-A1) Linux Firmware with Dualboot feature

You can dualboot the device with holding down SELECT button on poweron / reboot

1. Flash image with dd or win32diskimager or other tool to your sdcard
2. Resize partition to your max size of sdcard (keep the first 32MB untouched).
   (windows users can use the part tool in archive)
3. Now you can add your favorite roms/isos into the /roms dir



- added all stock roms by Steward
- added reboot link in settings section/tab
- added bootlogos (uboot by steward, kernel by neotendo)
- added experimental usb hid host/otg support (testers welcome)
- added retroarch
- added 3 Duke Nukem 3D Links in Games section (with more gore/guts)
    - Standard Atomic Edition
    - XXX Nude patch
    - Experimental Voxel Graphics
- updated snes9x4d
- updated pocketsnes
- updated fba
- added picodrive SegaCD/MegaCD link
- added regionfree sega/mega-CD bioses
- added SonicMegamix.iso
- added smsplus GameGear link
- changed some emulator settings
- added 2 new skins by TOX from 4pda forum
- and some more i can't remember smile


!!! DOWNLOADS !!!

V2 IPS (WL-28H105-A1) Image
https://drive.google.com/file/d/1sQHgIMvor9XyCdwoXLRgHMSkZN1qS8jd/view?usp=sharing

V1 TFT (T2812-M106-24C-7D) Image
https://drive.google.com/file/d/1kBBnL8WCpxwLgLxh2xZYLNaKy5R2yXvK/view?usp=sharing

V1 IPS (RB411-11A) Image
https://drive.google.com/file/d/1hssvVfCFVgUeO1uWj2B4d9mKVF-33rJE/view?usp=sharing

V2 TFT (T2815-M110-24C-25) Image
https://drive.google.com/file/d/16G0K0Dselu3h1lemog4blSduMjYsXEtA/view?usp=sharing


!!!  I SEARCH THE STOCK FIRMWARE OF THE V1 TFT T2812-M106-24C-7D,
     IS SOMEONE WILLING TO DUMP THE FIRMWARE PLEASE?   THANK YOU !!!

@MOD: Please Delete post #1187, thank's

#19 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-11 23:42:50

@Situ

is it possible to create a fc3000 flasher program for me (flash data into the internal flashrom)?
my idea is, i append my data to be flashed to the flasher program.

pseuso code

uint len_of_data = eof_flasher_program   // the len of my data is written on top of my data
uint data_to_be_flashed_offset = eof_flasher_program + 0x0A

for ... len_of_data_offset
{
   write( flash, data_to_be_flashed_offset ++ )
}

mydata

0x00                11 22 33 44 00 00 00 00 00    // "header" first 4 byte are 32bit len of data
0x0A                FF FF FF AA AA AA AA BB BB   // begin of data


hope you understand what i mean.   thank you in advance

#20 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-11 14:35:19

Updated Post #1187 with new Download Links for V1 old rev TFT and V2 IPS

@Situ
thanks for your commit, it works now.

#21 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-11 11:39:24

@司徒

Thank you very much for your words❤

I will try your commit today.

#22 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-10 22:06:29

@situ

do have have a little bit time for the old v1 tft1 uboot dual boot?
your commit did not work, sorry.

and i should tell you, a very big thank's and greetings from the 4PDA.RU forum

#23 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-09 23:42:44

zjzixuan 说:

@司徒  原固件里有屏的驱动 不知道怎么提取http://ys-j.ysepan.com/144276938/419683995/j54535S3X84M6iTVSgXb2/f1c100s.img

in most cases you can not extract an driver and use it in other linux system, only if both are based on same code or so.
besides that, you can not do much with only the driver.

hope i am right with my hypothesis.

#24 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-09 19:27:02

@zjzixuan

I saw your lcd ribbon and pcb pictures, looks not like an FC3000 handheld.
So our FC3000 images are not for your hardware if i see it correct.

#25 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-09 19:22:40

@司徒


The Master of the Universe,how talented you are!?
Very impressive.

Do the fc3000 has otg support?  I mean you can connect an joypad, maybe you can connect otg adapter, usb hub, mouse + keyboard and so on

#26 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-09 02:54:42

司徒 说:

CPU Usage is pretty well on Debian 10 xfce4 (F1C100S @486MHz) ~
https://whycan.com/files/members/3145/2_20221009-0003.jpg

what a genius!!!


now add 3D acceleration support , hahaha , just kidding

#27 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-08 23:20:07

司徒 说:

Debian 10 (Buster) with XFCE4 Desktop on FC3000 handheld (ARM9 486MHz)
https://whycan.com/files/members/3145/2_20221008-2249.jpg

just amazing <3  , looks like bpp / pitch or something is wrong, but looking very good so far.

#28 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-08 19:58:18

zjzixuan 说:

@neotendo  屏上的信息 YZTM081 JH011611

ok, another unknown display. do you tried different images?
if not, try the ips2 first please.

hint: if you look from an another angle onto your display and your images stays the the, you have an IPS display, if your image differs or inverts / change colors, you have an TFT display.


https://github.com/steward-fu/fc3000/releases/download/v1.0/fc3000_ips2_od_jutleys_no_roms.img.7z
https://github.com/steward-fu/fc3000/releases/download/v1.0/fc3000_old_tft_od_no_roms.7z
https://github.com/steward-fu/fc3000/releases/download/v1.0/fc3000_tft1_T2812_M106_24C_7D.7z

#29 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-08 04:03:52

@司徒

your start.S commit did not work, sorry.

#30 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-08 03:38:54

@zjzixuan

can you provide what is written on your LCD or LCD Ribbon cable?

ex:  WL-28H105-A1 or T2812-M106-24C-7D

#32 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-07 03:28:25

@Situ

i just found out that your dual boot uboot did not start on the tft1 (variant=3) version, nothing happens(or it starts the stock rom, cant really tell cause my stock rom is wiped).
i tried an older working uboot source code and copied over your patched start.s and uboot did not boot into linux.

the tft1 version has no multiplex lines, SELECT is on (4*32)+3  (PE3)



PS: I bypassed your dual boot function for the FC3000 V1 TFT T2812-M106-24C-7D until you maybe feel like fixing it
(i have no clue of arm assembler).





kind regards and thank you so much for your work and help

#33 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-06 19:40:16

@司徒

yeah, duke is runing good now, finaly.

thank you very much, i am curios about your X11 attempt or whatever you have in mind.
i will take a look into enabling TV out, or do you allready have a clue how to enable it?


for partition resizeing in windows i recommend this tool, it is portable and can resize the partition without erasing the first 32MB
mde-free-portable.zip

#34 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-06 19:05:06

@Situ

what do you think about my solution with dualboot?
remount /boot as RW and mount it as /mnt, and the fsck if dirty bit is set script?

#35 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-06 18:45:45

@司徒

yes, all seemed to work now, only savegame/loadgame and demo loading/saving did not work.
demo is based on savegame/loadgame so i think if you got fixed save/load-game demo playback should work too then.

PS: you do not need the wst file in root of your image file

#36 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-06 17:58:33

@司徒

Why making an image?
My purpose was that we do not need an image anymore.
So the enduser did not have to resize partitons.

ok, after rethinking about it, i believe writing an image to sdcard and resize it is easier for an end-user.
maybe we can make a little tool for that? anyway, good job Stewen.


i got eduke32 source code from the official website i think.
would be great if we can compile higher versions.
you need todo some work to compile that code (Makefiles, Code editing etc).

https://dukeworld.duke4.net/eduke32/synthesis/old/2013/20131102-4128/

PS: i added more gore/guts and xxx patch (complete naked girls)

nude patched grp file
duke3d_20221006-1817.7z

more guts/gore GAME.CON (put file in dir where eduke32 executeable is)
GAME_CON.7z

#37 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-06 09:35:04

@Situ

have you already tried my linux files for dual boot?


here is the new eduke32 executeable
eduke32.7z

#38 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-06 09:33:36

ZOMBIE 说:

@neotendo
I've tried uploading Google Drive, see if you can download it, if not I'll try another cloud drive.
https://drive.google.com/drive/folders/17VYuMTCWv7RpX3pcxKqRSbfWl5-Fzw5O?usp=sharing

thank you, it is compressing an eternity and downloads 3 x 2GB archive files.

#39 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-05 22:26:00

ZOMBIE 说:

給大家一點小小的幫助,FBA0.2.96.86的完整全套rom,共1379個rom。
A little help, the complete set of FBA 0.2.96.86, a total of 1379 roms.
链接:https://pan.baidu.com/s/1MbySGZ8CzSAYfKtTFcrJHg?pwd=gggg
提取码:gggg

cool, thank you, but i can't download it. website is not loading, maybe too far away from germany!?
can you upload to mega.nz or gdrive?

#40 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-05 09:08:08

ok, just fixed eduke32....

compiled eduke32_20131102-4128 successfully and it is working without disappearing/flicker issues.
still savegame and demo not working. and playanim() function need to be fixed again.

decodeframe() function patched, animations playing back again.

maybe i will try to compile higher versions.

#41 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-05 06:30:49

@Situ

looks like some datatypes are not compatible with f1c100s.
i can not load save game nor demos (demos are based on savegames/snapshots), it gives me error when loading savegame or a demo.
demo recorded in QEMU, FC3000 says wrong demo version, bypassing version check, same error as when loading savegame, eduke32 crashing, Demo and Savegames are ok in QEMU.

so i assume it is the same thing with the X,Y,Z issue (datatypes).

very confusing



eduke32.log before bypassing demo version
===========================
Incompatible demo version. Expected 0.2.196, found 0.2.50180
There were errors opening demo 1(code: 2).



eduke32.log after bypass version check
========================
sv_loadsnapshot: size: 8106826 bytes.
ud: 343
sws: 3590660
script: 2103296
animisc: 2397343
ERROR: NULL weapon!  WTF?!
Wrote eduke32.cfg
Wrote settings.cfg
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
hash_find(): table not initialized!
ERROR: NULL weapon!  WTF?!
Wrote eduke32.cfg
Wrote settings.cfg


just wanted let you know that.

#42 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-05 00:15:59

@司徒

man, you are so skilled.
really strange how this CPU seems to not had math lessons in the elementary school, hahahha.


here is the "image" (!! FOR TESTING PURPOSE ONLY, NO FINAL IMAGE GUYS !!)
https://drive.google.com/file/d/1eEUu4_tPvH7hVs_U-Gwim441el1uvHnv/view?usp=sharing

1.    Create Partition 1 with 32MB in size (FS is not important)

2.    Create Partition 2 with the rest of your sdcard (fat32)
    (Windows does not allow bigger partitions than 32GB, only with third party tools like minitool partition wizard)

3.    Save Partition table to disk

4.    Delete Partition 1 so it is unallocated, save Partition table to disk

5.    DD your current/dualboot uboot.img to Partition 1

6.    Extract archive to the Fat32 Partition

7.    i added a fsck.vfat script when dirty bit is set (unclean shutdown), so it can take some time
    to boot if dirty bit is set.
    i do not know how important it is on an fat32 fs, but i added it because my solution is
    to remount /boot as RW and mount /boot on /mnt in inittab.
    maybe you can make it better (script is in /etc/vfatfsck.sh and is called in /etc/main).

- updated gmenu2x (press menu button for poweroff option)
- added reboot link in settings section

#43 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-04 18:27:18

@Situ

I will try to upload the linux files today

#44 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-04 06:08:06

@司徒

you are soooo amazing man!!!!    so it seems a math error on fc3000 hardware. i will take a look into G_MoveActors().
but I think that not only X is the problem, I think Y and Z are also affected.

PS: bypassing A_GetZLimits(int32_t iActor) in source/gameexec.c keeps the enemies on screen. they still have some bugs but did not disappear or flicker (i can fight against them).

finaly some results!!!! 
thank you so much for your info <3

PPS: looks like the issue lies in getzrange() in build/src/engine.c, bypassing getzrange() in A_GetZLimits() has the same effekt as bypassing A_GetZLimits() complete.

#45 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-02 23:53:32

司徒 说:

@neotendo
Thanks for your efforts.
Could you share this image to us ? I would like to try it on my FC3000. wink

I have no image, but i will 7z the modified rootfs and other needed files later.

#46 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-02 05:12:29

@Situ

new system done!!

Created 2 partitions with minitool partition wizard, one 32MB and one with the rest of sdcard (win10 did not allow create fat32 partitions bigger than 32GB).
Deleted the first 32MB partition (32MB unalocated, 57GB Fat32).
dd uboot+kernel into the unallocated 32MB partition.
copied over my modded linux systemfiles to the big Fat32 partition, now the stock firmware and linux can access the /roms folder.
But looks like that the Stock NeoGeo emu accepts WST roms only.

- updated gngeo

EDUKE32
i think the error lies in drawsprite() function in engine.c, but i have not such a fast eye for buggy source code as you wink.



newos1.jpg
newos2.jpg
newos3.jpg
newos4.jpg
newos5.png
newos6.png

#47 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-01 23:27:25

@司徒

I didn't say anything against retroarch, just that the video filters weren't that good for this hardware.
yes that's right, the eduke32 code is hard to understand.
even voxel based enemies are glitching, damn.


*user needs to resize...
but then you would have to have the roms twice on the sd card.

I'm trying to make the whole system on one partition, was able to mount /dev/mmcblk0p1 as rw and mounted partition 1 on /romdir.
have created /roms/sfc on partition 1, can access it with stock and linux.

in theory all contents from partition 2 can copy over to partition 1 and mounted on /mnt instead /romdir.

I also wrote a script which tests the fat partition for dirty bits and then runs fsck.vfat if the system was simply switched off (because of partition 1 rw mode).

updated snes9x4D and pocketSNES also.

#48 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-01 20:02:17

@Situ

i tried your dual boot feature. we have the problem now, stock firmware search roms on the first partition (FC3000) where the rootfs is.
this partition has not enough space and our other roms are on the second partition (OD).

only solution that came in mind is to put all files in first partition and mount that as /mnt, so we have /roms folder in stock firmware and /mnt/roms in linux firmware.

or link the folders if possible, idk.

#49 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-01 19:10:39

@Apaczer

I do not think that the FC3000 is powerfull enough for video filters, atleast without overclocking.

But we have now a fully emulation beast.

We can run linux, linux based emulators, retroarch and now the stock system, all with one big sd card.

I updated gmenu2x, fba
Added retroarch and eduke32(still buggy)
I will try to update some other emulators
Flashed the current kernel and uboot.

@Situ
My baterry icon still has no function. It is only changed from a dead icon(in older kernel/gmenu2x) to a cable(charge) icon.

#50 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-01 01:34:25

@Situ

I solved the sound problem!
The FC3000 hardware doesn't seem to like the original VOC sound files.
I have now extracted all VOC files from duke3d.grp, converted them to WAV, renamed it to VOC and put it back into duke3d.grp.
no currupted sounds anymore!


duke3d.7z

#51 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-10-01 00:05:52

something went realy wrong on FC3000 hardware.

Savegame from eduke32 FC3000 Hardware on QEMU(looks same on FC3000)
fc3000_eduke32.png

#52 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-30 23:03:39

司徒 说:

@neotendo
Yes, you need put needed files in MicroSD for stock system but it is more handy to switch system without removing MicroSD.

You can save state by using "save game" option and then provide the saved state to me.
https://whycan.com/files/members/3145/1_20220930-2229.jpg

i saved it, but preview picture is currupt, can not load back the save game, errors or savegame currupt in log file.

regarding sound issues:

i created a EDUKE.CON file with
"definesound ID FILE 0 0 0 0 0"
entrys from ID 0 to ID 2500.
every sound was replaced with a dummy wav file(a door close sound), no more currupt sounds, confused!

SAVEGAME + LOG
egam0.7z
eduke32.log.txt

MY EDUKE.CON + WAV FILE
EDUKE.CON.txt
NULL.7z

#53 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-30 21:51:49

@司徒

very handy, but you must change the sdcard anyway or use a bigger one and put the needed files on the card (V1/V2 Stock files).
but cool solution.

#54 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-30 21:50:13

司徒 说:

@neotendo
Please provide the save state to me.

sorry, what do you mean exactly with savestate?

#55 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-30 20:24:57

司徒 说:

@neotendo
Try to "OR" SDL_DOUBLEBUF when call SDL_SetVideoMode() function.

SDL_SetVideoMode(1, 1, 8, SDL_NOFRAME | SURFACE_FLAGS | ((fs&1)?SDL_FULLSCREEN:0) | SDL_DOUBLEBUF);

P.S. Update all of SDL_SetVideoMode() functions.


@Apaczer
Thanks for your information.

Too sad, it was not the solution. That's so strange and makes me angry.

Still glitching and disappearing
https://youtu.be/m1EGq6mR0QM

#56 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-30 16:44:57

司徒 说:

@neotendo
Try to "OR" SDL_DOUBLEBUF when call SDL_SetVideoMode() function.

SDL_SetVideoMode(1, 1, 8, SDL_NOFRAME | SURFACE_FLAGS | ((fs&1)?SDL_FULLSCREEN:0) | SDL_DOUBLEBUF);

P.S. Update all of SDL_SetVideoMode() functions.


@Apaczer
Thanks for your information.

Thank's i will try that

#57 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-30 16:44:28

@Apaczer

I have retroarch already running on FC3000.
Just downloaded the miyoo version from retroarch website.

#58 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-30 00:14:01

@Situ

i try to change sounds from .grp file to wav/voc/ogg maybe that helps.

I play the same version on qemu and fc3000, on qemu eduke works fine but on fc3000 the enemies seems to fall trough the floor. (i saw 2 enemies in water but they had to be on the ground above).
enemies sometimes flicker or disappearing, very strange.

do you have any clue? i do not!

#59 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-29 22:46:53

@司徒

The enemies do in fact flicker sometimes, it is a mix of disappearing, flickering and going trough walls

#60 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-29 17:17:16

@Situ

duke has no sound problems in qemu, still has underruns but sound is not currupt as on the FC3000 hardware, enemies do not disappear in qemu also.

whats the difference between FC3000 HW and QEMU?

eduke32 is running without issues on QEMU!

#61 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-29 15:40:03

@Situ

Just amazing, i will download your new source codes with patched battery and try qemu. Very great work

#62 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-28 23:33:36

司徒 说:

@neotendo
The maximum CPU clock we can use on the FC3000 without hardware modding is around 702MHz. So, you cannot set the CPU clock that exceeds 702MHz.

Ahh, ok, get it. So if i want above 702 i must change the resistors like on the first pages, ok

#63 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-28 22:29:12

司徒 说:

@neotendo
Yes, you can do overclock on your FC3000 handheld under GMenu2X setting. If you need high CPU speed, ex: 900MHz, you need to do hardware modding. If not, I think 702MHz is the best choice.

But i need to update gmenu2x right?
I tried deleting gmenu2x.conf too, but everytime when i set clock speed above 702mhz, fc3000 hangs.

#64 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-28 17:05:15

Does it mean i can overclock the fc3000 now?
Everytime system hangs while starting an app when i set cpu over 702mhz.
Or is a resistor change mandatory?

#66 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-25 23:47:35

司徒 说:

@neotendo
Okay, it is playable at least and sound quality is acceptable. If so, I think I will spend time on X11 porting.
Thanks for your help again !


X11?

does your gdb show something while the enemies are disappearing? maybe thats another kind of memory problem.

#67 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-25 23:29:15

@司徒

very great new, you are amazing!!


we have no midi issue, look at my video above (after mod approved it)

#68 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-25 23:10:45

@司徒

A4) yes the V1 one but only in uboot L204, kernel is ok

regarding duke, you can set sound to on, sound is playing but distorted and currupt. it sounds like sound engine is not stoping playback, or has problems with alsa.

timidity has nothing todo with the game sound.

here is my rootfs with working tmidity setup if you want
https://mega.nz/file/qKogBI5J#c8q3Leo4VioMvaECa_SBZvKscKSh2fjJZ3L8tj9aqdY


Video of my Eduke32 sound and enemies issues
https://youtu.be/qUdhwwFIhHs

#69 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-25 09:31:26

@司徒

1) - had to change command binman to binman.py in Makefile (make gives error 'binman.py not found'), and change #!/bin/sh to #!/bin/bash in make_suniv.sh(maybe only on my system cause i use a linux subsystem on windows).

2) - fc3000_ips1 - do not ask me why, but i had to change the lcd color order from BGR to RGB (the last 0x36 command in lcd init, change data 0x09 to 0x08), uboot bootlogo was kind of inverted colors.

3) - i narrowed down eduke32 segmentation fault at animation playing to the decodeframe procedure in animlib.c, bypassing this function allows eduke32 to start and plays the animation sound without animation of course.

4) - do not know if it happens a second time, but when i do 'make clean' in new uboot folder, i can not compile it again. mkimage not found.
       but i will try it another time again, maybe i got something wrong.


<3

#70 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-25 05:11:21

@司徒


do you have an FC3000 emulator?  why does the duke nukem screenshots have a window?

#71 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-24 23:55:14

@司徒

my eduke32 is running, i had to disable the playback of anm files, midi is playing fine with my rootfs, i added /etc/timidity.cfg, /etc/instruments, and used the libSDL_mixer.so from a miyoo rootfs.

Alsa gives me (snd_pcm_recover) underrun occurred warnings

Game plays fine but enemies are disappearing or glitching

Thanks for looking into that

#72 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-24 22:02:02

@司徒

Thank you very much <3 for the kind words.

It's amazing how you changed the compilation process and added the uboot logo, very good work.

A lot of people are contacting me over youtube for the linux images, looks like we helped a lot of users.

I will try it tomorrow.

Thank you for your help, i am curious about eduke32

#73 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-24 15:04:00

@situ

I added timidity and a timidity libSDL_mixer.so to rootfs and Eduke32 has now music , but still sound and enemies(most sprites) issues.

#74 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-24 15:01:13

Has anyone a clue why some emulators on linux are a bit slower than on the stock firmware.

#75 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-24 06:16:52

@neotendo

!! Updated TFT V1 (T2812-M106-24C-7D) Version !!

L1/R1 are hard coded to A/B so I added an L1/R1 simulation.
Hold X and tap DPAD Left for L1.
Hold X and tap DPAD Right for R1.
This allows you to switch sections in the menu.


!! NEW INSTALLATION PROCEDURE !!
https://youtu.be/WzH5UnQ9kCs


Download link for "FC3000_TFT_V1_(T2812_M106_24C_7D).7z"
https://mega.nz/file/mHxxAT6S#WEbO1RbM4e7ef681znHvwWmPG03Hl-iPUxTPEa3vUZo


FC3000 in Action
https://youtu.be/h37twdx07OQ

#76 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-23 22:40:42

Hi there,

here is my IPS V2 (WL-28h105-A1) Linux image.

- updated FBA
- added RetroArch
- added Duke3D Atomic Edition (but buggy as hell, sound and enemie issues)
- added Bootlogo
- Some little fixes

!! this time it has a new installation method in windows, watch my video !!

https://youtu.be/WzH5UnQ9kCs
https://mega.nz/file/mbQGHSBZ#MKj7x0QSqlqnXtuLDNwyUMAHtgTtl41zLdezMIIf5Io

FC3000 in action
https://youtu.be/BlkkFCp-XCE

#77 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-22 22:50:50

@司徒

Nice to hear that, thank you.

Eduke32 is running,  i unpacked the FC3000 and MIYOO rootfs, copied over the libSDL_mixer.so , timidity.cfg and intruments to the FC3000 rootfs, repacked it and eduke32 has music now.

And i had to bypass the play_anim() routine to execute it, eduke32 cannot playabck the movie files.

#79 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-22 12:15:28

Anyone here familiar with the source code of eduke32?

I'm still having trouble with it.

The enemies or many sprites disappear into the ground, flicker or go through walls.
The sound also sounds broken, in a log I read something about "alsa pcm underrun".

I would appreciate information, thank you.

#80 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-20 22:58:21

@Apaczer

thank you very much, eduke32 has now music.
I copied over timidity.cfg, instruments/ and libSDL_mixer.so libs from miyoo rootfs and put it into the FC3000 rootfs.

todo...

- sound is very curupted (cracking and seems to play every sound file in the grp file)
- enemies deisappearing when duke looks at them or gets closer

#81 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-19 12:10:40

@Apaczer

Yes, nearly the same on fc3000.

I had to hardcode the source to enter main menu directly.
Enemies are disappearing.
Sound is corrupted.
Music is not playing.

#82 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-18 01:06:11

ok guys, eduke32 is starting now...

- no music playing
- sound is distorted
- had to change in game.c var logoflags to (logoflags = LOGO_TITLESCREEN) in G_DisplayLogo() else eduke32 is exiting
- no mouse of course, was able to control duke with dpad

20220917_185105.jpg

#83 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-17 19:48:58

eduke32 is starting now...

created a duke3d.sh file

export SDL_MOUSEDEV="/dev/null"
export SDL_NOMOUSE="1"
eduke32

but now eduke is failing to init music/sound

#84 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-17 18:42:54

Ok, found out that libmi_sys.so is for an sigmastar cpu or something, maybe a miyoo needed library.

#85 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-17 18:03:36

@Apaczer

No , my eduke32 is not starting into the intro. It is aborting with error message when i try to execute it.

#86 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-16 20:59:49

司徒 说:

@neotendo

[Q1] is there a chance to get duke3d running on fc3000?
[Q2] i have the backlight problem in uboot aswell, no light.
I will check these issues soon.

My new FC3000 arrived ~
https://whycan.com/files/members/3145/1_20220916-1010.jpg
https://whycan.com/files/members/3145/2_20220916-1010.jpg


ahhh very cool, another CPU but a known LCD, uboot_ips2.img should work out of the box

#87 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-15 06:14:32

@司徒

i have the backlight problem in uboot aswell, no light.
my ugly PE6,1 method did not work, ok, sad, but it is not soo important, would just a nice gimmick to display the logo earlier.

#88 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-14 21:37:46

@司徒

thank you very much. i have no clue about repos and maintaining them.
maybe you can look over mykernel and myuboot and replace your kernel and uboot sources (backup your kernel/uboot of course)
oh, the battery symbol is not showing the current battery level, maybe that needs to fix.

just found eduke32 on your website, i compiled it but on fc3000 init is failed cause no mouse found and libmi_sys.so not found.
is there a chance to get duke3d running on fc3000?

#89 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-13 20:47:41

@司徒

all right, i created all known variants.

./run.sh
...
  echo "usage: run.sh /dev/sdX [pocketgo|trimui|fc3000]|[fc3000_ips1]|[fc3000_tft]|[fc3000_ips2]"
  echo "fc3000_ips1 = RB411-11A         ->  V? IPS"
  echo "fc3000_ips2 = WL-28H105-A1      ->  V2 IPS"
  echo "fc3000_tft = T2812-M106-24C-7D  ->  V1 TFT (old version)"
...


i did a ugly backlight patch, i added gpio_set_value( PE6, 1) in sunivfb.c


mykernel.tar.gz  =  your kernel source with my modifications
myuboot.tar.gz   =  your uboot (i think not modified but run.sh)


ready uboot image versions
=================
normal  = your normal fc3000 option
ips1      = ips patch from your github (LCD: RB411-11A)
ips2        = my v2 ips (LCD: WL-28H105-A1)
tft        = my v1 tft (old version) (LCD: T2812-M106-24C-7D)



to change bootlogo create a hex_splash.h file
with 16Bit RGB565 raw datas

uint16_t hex_splash[]={
};

i used lcd-image-converter or png2hex/img2hex


hopefully i did not ruined the source code and you can use it,
thank you very much for your linux, effort and help <3

premade uboot images
https://drive.google.com/file/d/1ife8acluRxljk0O5hSw9CjgOqrbOFkVy/view?usp=sharing

uboot source code
https://drive.google.com/file/d/1CvxLPG-WMmwAezmEHv3-6AyqPO8zeeJM/view?usp=sharing

kernel source code
https://drive.google.com/file/d/1VkSLqAICzeq3SNva4Wh_2iZTD1xzID8O/view?usp=sharing

bootlogo tools
https://drive.google.com/file/d/1Zs9owQ_c6c-6_f7Fjq1x2UwIy6k_oasA/view?usp=sharing


!!! KEEP IN MIND, MYKERNEL AND MYUBOOT EXTRACTS TO
    KERNEL/ AND UBOOT/. DO NOT OVERWRITE YOUR FILES !!!


Reagrding bootlogo:  i am right that the logo is schown when the kernel is loaded? is there a way to show the logo when uboot starts?

#90 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-13 18:26:06

@Situ

i saw in your kernel source code you already patched in the ips init code, do you have the old tft init code still
(your lcd init code in sunivfb.c matches the kernel_fc3000_ips.patch)?

user @Aksenenkoav1990 is using the fc3000_tft_od_jckl_no_roms.img.7z image.
and i wanted to compile a uboot with his bootlogo for him.

PS: it looks like the same code atleast. or do the two displays have almost the same init code?

#91 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-13 17:44:35

司徒 说:

@neotendo

Thanks for your efforts.
Is it possible to share the flash file (FC3000 IPS v2) for MicroSD to us ?

Since my new FC3000 will arrive soon, is it possible to provide the patch file for kernel source to me ?
Thanks in advance.

Thank you.  Of course i give you the image , its all based on your work.
I only do not know how to create patch files.
I can compress my kernel and uboot folder if you want.

I even got the bootlogo working now

https://youtu.be/C_okX7TBnH4

#92 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-13 12:40:45

Forget the png2hex thing, here is a better tool i got from @Aksenenkoav1990

only thing you need is to add things like "uint16_t hex_splash[]={" and "};" manually

lcd-image-converter.7z

#93 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-11 20:08:12

@Situ

your png2hex tool is now working on windows. looks like the tool did not like my png file, i converted an bmp now correctly.
only thing is, win32 version outputs the data into stdout.txt

and your (*p)++ seems wrong, i changed it to *(p++)
changed your source code to win and linux version

img2hex_20220911-2008.7z

https://youtu.be/TysAPYiQlYI

#94 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-10 20:44:40

司徒 说:

@neotendo

For splash issue, I will take a look later.
Thanks for your testing.


All right, i will still try it. Hope your FC3000 arrives fast 😄🤗.

I do not know this day, but happy midfall day

#95 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-10 06:11:18

even reload the header file into the sdl surface went wrong, what the heck?!#

sdl_prob.png

#96 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-10 03:00:08

@Situ

ok, i converted your png2hex program to FreeBASIC, but something went wrong, bugfixing time... again!

buggy source code and windows executeable
img2hex.7z

screenshot
20220909_205714.jpg

#97 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-10 01:48:38

司徒 说:

@neotendo

miyoo.h.zip

^

your png2hex didn't work, it counts up, nothing more.
I saw this on my compiled png2hex test, it dumped a lot of ncurses garbage and some uint16 stuff in between, but all values just count up, just like your miyoo.h.

I don't have any developer toolchain or anything like that on Windows, only Freebasic, I use it to "script" something quickly, but my attempt with png2hex wasn't good enough, maybe because my PNG is 24-bit.
Cross Compile to windows in linux shell is pure hell.

*Bootlogo still shows only shortly before gmenu starts
20220909_194449.jpg

#99 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-09 21:57:40

司徒 说:

@neotendo

Okay, thanks for your testing ~
I will check this issue when get my new FC3000, lol lol ~


hahahaha, really?  ok, i will be waiting

can you compile png2hex.c and convert this test logo for me please?
i only have linux subsystem in window 10, and it does not allow me to use hardware such GraphicSystem (SDL not working)
i even do not know how to create a 16bit png file.

logo.png

#100 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-09 20:32:36

@司徒

no, sadly did not work either. 
tft - screen flashes bright shortly, blackscreen/no backlight, logo flashes shortly before gmenu starts.
ips -screen flashes shortly but dimmed, blackscreen/no backlight, logo flashes shortly before gmenu starts.

i think there must be a (backlight on/off) command somewhere in the code.
ps: my logo seems a 24bit image, must create a 16bit.

https://youtu.be/mTNIlMzeqyE

#101 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-09 19:01:43

@Situ

yes, the boot logo is only displayed for a very short time when Gmenu starts, before that my background lighting is not on.
at which point in the source code is the backlight activated?

#102 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-09 17:03:06

@司徒

I will try it, but i think my backlight is off during this, seems like backlight is going on shortly before gmenu kicks in.
On the IPS FC3000 atleast.

#103 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-08 19:36:33

@司徒

Unfortunately it doesn't work, the screen only gets light up shortly before the menu.



nano suniv_defconfig -> CONFIG_LOGO=y, menuconfig enabled logo.

sunivfb.c
======

static void lcd_delay_init( XX )
...
  //memcpy((uint8_t*)mypar->vram_virt + (320 * 240 * 2 * 1), hex_splash, 320 * 240 * 2);
  //
  // Enable Boot Logo
  //
  //mypar->app_virt->yoffset = 240;     // Disable
  mypar->app_virt->yoffset = 0;         // Enable
...


static int myfb_probe( XXX )
....
  //
  // Boot Logo
  //
  fb_prepare_logo(info, 0);
  fb_show_logo(info, 0);

        setup_timer(&mytimer, lcd_delay_init, 0);
  mod_timer(&mytimer, jiffies + HZ);
  device_create_file(&device->dev, &dev_attr_variant);
  return 0;
}

#104 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-08 16:30:06

@司徒

i do not want X11, it is an option for someone who is able to code linux. this device is allready open now and is running linux, in theory X11 on framebuffer should be doable, but i do not need it.

PS: just got the keypad working correctly now.

only thing i could need is how to enable boot logo again, i tried many things, but no logo was shown during boot

#105 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-08 13:22:31

司徒 说:

@Aksenenkoav1990

Basically, you can build uboot and kernel from scratch.
These logos have been removed from source code.
Source: https://github.com/steward-fu/fc3000

I tried to display a logo, but somehow it didn't work.

#106 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-08 13:09:56

txusevas 说:

@neotendo


Incredible DOOM!

Does that mean it is possible to run linux on FC3000 V2 IPS (WL-28H105-A1)?

it is currently running linux without X11 but with an SDL based menu.
there is Doom, Quake, Lot of Emulators, Audio/Video Player ....

but i need to fix some butons, when you press L1, SELECT key is pressed too, R1 is START also.

are you a user(Txuseol) from a spanish forum?

#107 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-08 03:54:44

@Aksenenkoav1990

@Situ
I would also be interested.

#108 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-06 20:05:39

Apaczer 说:

@neotendo
You can try latest port of the FBA: https://github.com/Rezzy-dev/fba-miyoo-playable/releases/tag/release

It fixes some stuff and you can open Menu with RESET button. For recompiling use Miyoo toolchain from steward's repo.


Thank you, i just downloaded your fba binary, works great

#109 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-06 19:54:46

司徒 说:

Wow, amazing !
Since such LCD panel lacks of tearing signal, it is not possible to fix.
I think you have done the best thing that Linux OS can run on FC3000 handheld and you also extended their life, lol lol ~

the stock rom seems to run faster or something, there is less tearing (it seems to me atleast).
i love the aspect that linux is running on this device, you can run X11 or simething also in theory.
SNES emulation is a bit slow, whyever, but you can now play all other things on this device.

thank you so much for your help and warm words <3

i will upload a new linux image when i get the keypad working correctly

#110 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-06 18:13:53

@Situ
Thank you very much <3


I present you..... DOOM runing on the FC3000 V2 IPS (WL-28H105-A1) but guess what, the buttons are mapped different or my keyboard.c code is messed up.

feels like L1 is strafe left and SELECT, R1 is strafe right and START at the same time in Doom.
START and SELECT do nothing in Doom.

and I noticed with both FC3000 that the image has tearing, as if no vsync is on or something. can we fix that?

20220906_121445.jpg

#111 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-06 17:20:09

Update:  Looks like a i am on the right track, shot was taken during RGB Stripes Drawing. I edit the ST7789 initial code in RB Swap order.

20220906_111654.jpg

#112 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-06 16:23:20

司徒 说:

@neotendo

lol Yes, the LCD panel is same as my IPS FC3000.
Unfortunately, it has been put into Taiwan garbage truck gracefully...

The possible way to initialize the LCD panel properly is to collect all of LCD models and then try each initial code on this device.

hahaha, farewell FC3000.

i tried already some init codes, only st7789 in swap RB order give me some garbage on screen and i can see that your test program tries to write data on the left side (the RGB stripes), but they are all Black and White

20220906_102046.jpg

#113 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-06 12:57:54

@Hox

Do you still have your FC3000 and have you tried my Linux version?

#114 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-06 12:41:24

Just saw you already have an wl-28h105-a1 stock dump on github.  Only need to figure out what driver this display use

#115 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-05 22:44:16

@Situ

I see it coming and i need your help at the end again 😄
Disasembled the FC3000, found nothing about the LCD (WL-26 or 28 H105-A1)

20220905_140045.jpg

#116 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-03 22:13:58

司徒 说:

@neotendo

You ? ha ha, sound great !
According to the spec of TL866, it can dump data from SPI flash and supports W25QXXX used in FC3000.

Yeah, me hahaha, i only need the display initial code as i learned.

I tried your lcd test image and i got garbage on screen, ips linux image shows nothing only backlight.

I must see how i can read the flash, in circuit or desolder it and try to solder pins on or something, as i do not have such adapter.

#117 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-03 14:51:46

@司徒

Ok, thank you.  I has to port it again, my friend has nothing to do with programming.

PS: i have a tl866 eprom reader/writer, i can dump and write the spi flash with that device in theory or not?

#118 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-03 05:19:09

@Situ

a friend of mine brought an FC3000 v2 IPS, can i use the dump image you gave me to dump his stock rom.
he wants linux on his too, but i want to backup his stock rom first for safety reasons.

#119 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-02 16:33:06

司徒 说:

As I known, it should be "SELECT + START + L" for FBA menu.


I press START+SELECT and i got this menu, thank you for the hint.

20220902_103028.jpg

#120 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-02 15:19:32

司徒 说:

@neotendo

Make sure we are on the same page. How did you know this issue ?

What? You mean fba?   I was playing a game and wanted load another rom, but "I" menu key did nothing.

I compiled the kernel source from you via wget from your github

#121 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-02 11:44:37

司徒 说:

@neotendo
It only happened in old kernel source and has been fixed already.


@暈哥
第6頁的那個連結無法按下,幫忙看下,感謝啦~

Old source?  But i compiled your source, is that old source?

#122 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-09-01 04:40:43

I know somebody already mentioned that the I(Menu) key us not working in FBA, is there a solution or source code?

#123 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-31 20:14:14

司徒 说:

@neotendo

Thanks for your efforts.
I will put this file on my github.
Thanks

you're welcome, was lot of fun, and maybe we can help 1 or 2 people with this port.
PS: Added an "FC3000 in Action" video to post #1000.

#124 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-31 19:23:49

司徒 说:

快要可以看到第6頁了~哈~

hahaha 😊 
PS: it is done! happy downloading

#125 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-31 16:42:38

!!! Celebrating Post #1000!!!

I proudly present.... Linux for the (originally incompatible) TFT FC3000 (old version)


A notice:
L1/R1 are hard coded to A/B so I added an L1/R1 simulation.
Hold X and tap DPAD Left for L1.
Hold X and tap DPAD Right for R1.
This allows you to switch sections in the menu.

Hopefully someone can use this firmware, thanks Situ for your hard work and help to port your linux to my FC3000 (old version).

Download link for "fc3000_old_tft_od_no_roms.7z"
https://mega.nz/file/jbxiWRZa#JmnwkdG57oYORvfYo9LbUwHZ1CRjU52H_5ppMoCuh80

FC3000 in Action
https://youtu.be/h37twdx07OQ

#126 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-31 14:15:28

@司徒

Noise is gone when setting backlight to 100.
Unmodded= you provided me the code for "dac.c" to poweron the amp chip, but only what happend was that the green led lights up.
So i bypassed the shutdown pin from the sound amplifier to 3.3v, cause uboot did not poweron the amplifier.
I got it working in "dac.c", green led on, and amp on.
So, everyone can use our linux version without modify the hardware.


I want to dump my OS like your linux images...

Partition 1 - 32MB empty (uboot)
Partition 2 - 256MB fat32 FC3000 (rootfs,mininit)
Partition 3 - ~2GB fat32 OD (folders,configs,menu etc)

All in one .img file.

The user has to expand Partition 3 after flashing on sdcard to the rest space

#127 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-31 05:59:50

@Situ

All right, sound is working with unmodded connection.
Now the firmware is able to run on unmodified fc3000 old version.

I need to flash your linux firmware without roms, and dump it with my uboot.

Can you tell me how to dump only the needed data like your linux images (~2GB)?
dd ..... bs=2048M count=1 ?

I do not want to dump a 32GB sdcard.

The kernel source code needs still some cleanup, but i was abe to compile it with

./run.sh fc3000_old

PS: only thing left, maybe fixing the battery level icon (shows dead/empty battery all the time)

#128 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-30 22:34:41

@司徒

thank you, i will add variant 3 for fc3000_old

#129 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-30 20:01:34

@Situ

Thank's for the L1/R1 information, i will try it.
i will try to edit the u-boot code to add an fc3000_old variant, so everyone can compile kernel/uboot atleast.
i still have an rootfs problem. rootfs is too small and does not boot, but as long i can boot your linux with my u-boot, i am happy with that.

#130 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-30 19:53:14

@司徒

[A1] no problem, not important

[A2] "I" now working without modification  "I_MENU    = ((32 * 0) + 3);"

[A3] ahhh, that's logical then

[A4] till now i do not knew how to set the brightness, now after configure the system to 100% brightness, all went fine

[A5] Danke<3

[A6] just came in my head, only an idea

I thank you so much for your help, my FC3000 would be complete dump without you. i am happy to work with you, was a lot of fun.
i wil try to optimice the modified code, maybe add a new variant (fc3000_old).
i will even try to enable the snd_shutdown pin via gpio, so everyone who needs this firmware can use it without hardware modification.
can you tell me how i can add a new variant?

i saw in an other forum that someone got the .wst files decrypted, do you have the tool or can you maybe ask the user for his tool please (User: aoa)?
https://boards.dingoonity.org/other-game-systems/fc3000-linux-porting-from-scratch/100/

#131 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-30 15:10:48

@Situ

I got all buttons working, only need to cut traces from L1,R1 and connect it to free io pins on mcu if possible.
do_input_request(I_MENU,"menu") and gpio_get_value(I_MENU) like all other Inputs.
L1 and R1 are simulated (L1 = Y+LEFT, R1 = Y+RIGHT) to change sections in gmenu2x atleast.

MY 5 CENTS: i guess the encryption/decryption chip is only for the roms when inserting the "cartridge". these roms (ziped files found in folder pro/rom) ends with .ky and looks enrypted in hexeditor.

suniv-keypad.c_20220830-1548.txt

#132 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-30 04:51:24

@Situ

All buttons but I(Menu) working now.
Since my I button connects to PA3 i think this pin is not in input mode!?
PS: when reading ((32 *4) + 6) system does not boot when Green LED is on via DAC.C (your attempt to enable sound but only did the Green LED Light up)

AND....  the coil noise is gone when setting backlight to 100%

PPS: Thats not me in the twitch stream


BUTTONS_OK.png

#133 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-29 21:17:34

here are the photos my friend
PS: Just found out, TV-OUT does not function either (not important)

20220829_151419.jpg
20220829_150524.jpg
20220829_150719.jpg
20220829_150745.jpg
20220829_151926.jpg
20220829_151959.jpg

#134 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-29 20:57:15

@司徒

L1/R1 are electrical connected with A/B, i must cut the trace and connect it to any free pin on the mcu if possible.
atleast i want to get A,B,X,Y,START,SELECT,I working.
the whinig noise in the speaker comes from the LCD, when i press I the noise is little lower.

i will take photos from the pcb for you of course.

#135 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-29 19:47:32

i changed some code  for testing in...

static void fc3000_handler(unsigned long unused)
and
static int __init kbd_init(void)



now a have sega buttons A,B,C (FC3000 Buttons X,B,A) in Picodrive Emulator working

suniv-keypad.c_20220829-2012.txt

PS: FC 3000 buttons A and B working. when i press A or B in menu, they are corresponded with (B=Cancel, A Select).
funny, traced the lines, for example A goes to PE7 but has to write PE5 in the code

and here is a video about the "whining" sound
https://youtu.be/RFDxZAKQIuo

my FC3000 came from hell

#136 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-29 19:28:08

司徒 说:

@neotendo

May I know how did you debug this issue on your FC3000 ? Using multimeter only ?


yes, multimeter and my eyes with magnification glas smile
The line from start and select beeps when I check the negative pole of the battery

START -> PE4
SELECT -> PE3

Button_GND_20220829-1938.png

#137 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-29 18:30:14

@司徒

as far i can tell,  I,L,R,START,SELECT are switching against GND (i hold one probe on GND, one probe on START for example, got connection when i press it (BEEP).

PS: looks like every button switches against GND, so no multiplexing

#138 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-28 23:18:50

@Situ

Tracing my buttons done!
L1 = A
R1 = B

Buttons.png

i tried this, but results are not as expected (UP/DOWN/LEFT/RIGHT are working)

suniv-keypad.c in function static int __init kbd_init(void)



else if(suniv_variant == 2) {

        I_UP    = ((32 * 5) + 0);
        I_DOWN  = ((32 * 5) + 5);
        I_LEFT  = ((32 * 5) + 4);
        I_RIGHT = ((32 * 4) + 2);
        I_A     = ((32 * 4) + 7);       //PE7
        I_B     = ((32 * 4) + 5);       //PE5
        I_X     = ((32 * 4) + 9);       //PE9
        I_Y     = ((32 * 4) + 8);       //PE8
        I_L1    = ((32 * 4) + 7);       //PE7 (L1 = A)
        I_R1    = ((32 * 4) + 5);       //PE5 (R1 = B)
        I_MENU  = ((32 * 0) + 3);       //PA3
        I_L2    = ((32 * 4) + 10);
        I_R2    = ((32 * 4) + 7);
...

#139 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-28 21:21:41

司徒 说:

@neotendo

ha ha, it seems very different compared with our FC3000.
It is more easy to resolve the sound issue if cut the SHUTDOWN line and then connect to 3.3v.
For debug purpose, you can also use UART0 for debug log.

Haha, ok, i bypassed the shutdown pin to 3v from the spi flash, sound is working now but there is a whining noise (from display or a coil)

I try to trace the buttons at the moment, i found out that L1 and R1 are connected to A and B, what a shame.

#140 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-28 18:03:20

@Situ

yes, my board has lot differences, my UART1 RX pad from your picture is GND on my board.
seems my CPU is a chinese knockoff or much different version

I can't thank you enough for helping me <3

PA2_GND.png

#141 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-28 17:20:57

@Situ

I'm going crazy smile, the only thing that happens is that the green LED lights up hahaha
The Green LED is connected at Pin 65(PA1)

i slowy believe that my board has many different pinouts / connections then yours

maybe i cut the shutdown line and wire it to the green LED, so i can use the uart1 later for debugging if needed, because snd shutdown line is connected to UART1 RX (PA2 Pin 64)

PA1_GreenLED.png

#142 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-28 01:47:03

@Situ

I checked the sound chip (4890s), shutdown pin = 0-1.2v (low or floating), traced the pin to cpu (see pictures)

Hopefully my cpu is f1c100s pin compatible (i can not find the PAx pins)

20220827_221356.jpg
20220827_192906.jpg

#143 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-27 23:38:35

@司徒

As I said, I just pressed a few keys or something and after a restart it suddenly looked like this, no idea

#144 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-27 18:56:46

@司徒

No idea how I got there, but the menu looked something like this (every time after booting)

68747470733a2f2f6c68362e676f6f676c6575736572636f6e74656e742e636f6d2f374c78306a4836374d4b6a7734703548.png

#145 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-27 03:43:03

@司徒

hmmm, ok... i have no main in my selfmade rootfs (i think buildroot does not compile all what is needed, i believe there is no SDL, X11 or whatever either)

this is in the main file from your prebuild linux images

#!/bin/sh
export HOME=/mnt
export SDL_NOMOUSE=1

swapon /mnt/.swap.img > /dev/null 2>&1
/usr/bin/daemon&
while [ 1 ]
do
  cd /mnt/gmenu2x
  ./gmenu2x > /dev/null 2>&1
done


And it boots into that menu

20220826_214349.jpg

But i want to switch to the "filebrowser" menu

#146 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-27 00:02:27

@司徒

thank you very much, you are the best <3

#147 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-26 19:34:58

@司徒

(injecting lcd code into stock rom) - thats too much for me smile
(wrong colors) - Fixed
(Green LED) - Not important
(Sound) - Can you point me to the right file?  I then have to find out the port/pin and then change it in the file, right?
(Buttons) - I then have to find out the port/pin and then change it in the file, right?

ps: how i can enter the gmenu2x app? i accidentally accessed it yesterday and fc3000 boots into gmenu2x everytime, now it's gone after flashing linux image of course.

pps: fc 3000 does not boot with my rootfs, filesize is only 25MB, it's missing the boot folder, but fc3000 does even not boot after manually adding boot folder.

kind regards

#149 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 23:42:18

@司徒

IT'S ALIVE!!!

But it seems this hardware is much different then yours...

- sound not working
- most buttons not working
- colors wrong (ps: i only updated uboot atm, device is not booting with my rootfs and mininit)
- green power led not working

atleast fc3000 is running your linux image
thank you very much for your help <3

ps: is it possible to inject the new lcd code into an stock v1 or v2 rom?

20220825_171359.jpg
20220825_173232.jpg

#150 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 19:44:48

@Situ

can you convert the lcd_wr assembler routine to c#?   i am not able to convert assembler to c#.
i think i have to modify sunivfb.c and lcdc.h atleast

i will try the reset routine by my self, it is hard for me either, hahaha

#151 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 17:54:14

司徒 说:

@neotendo

Since I have stopped maintaining FC3000 some time ago, it is recommended to port by yourself.
If you need help or suffer from problem, it is welcome to post your question.


I don't think I'll be able to do it, I have no idea where to start or which files to change.
I have no idea how and where I swap R and B, for example.

#152 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 16:11:17

司徒 说:

@neotendo

Congratulations ! smile


Thank you so much! what do you think, could you do something on the linux kernel now?

#153 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 14:41:29

@Situ

screen orientation seems wrong.  your display starts from top with color blue, my display starts with red color from left
pps: switched the mode from RGB to BGR and changed MX,MY,ML (cmd 0x16, dat 0x20), changed window area

i think we can shorten the init routine, looks to much, but atleast we have some good results

used datasheets
HX8347-D_Himax.pdf
HX8347.pdf

main.s_20220825-1600.txt
20220825_095742.jpg

#154 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 12:36:05

@司徒

again, nothing , all white / only backlight

ps: i did it!!! took your test_6 with the "snow" and added command 0x22 at the end of init
(cmd 0x22, write sram, hx8347)
main.s.txt

pps: test_7.s works also, added ldr r0, =0x22(bl lcd_cmd) at the end of init

20220825_072442.jpg

#155 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 00:08:42

@司徒

you are awesome,
but sorry, nothing. all images show white screen.

Except for these DB15...DB0 images swapping R and B again, I wouldn't think of anything now either

#156 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-25 00:00:20

@hox

thank you very much


Unfortunately I don't have a logic analyzer. it was the same for me, I read that I can make my v1 a v2, then I thought that I would start a dump program, but unfortunately it was an ips flasher. nothing is possible without stock old v1. apart from what Situ and I try, we can't do anything else for the device. unless someone has the same old v1 and would dump the rom

keep your device if you still have it, maybe we can run situ's linux on them later

#157 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-24 20:59:50

@司徒


How about reversing the pins from DB0-DB15 left to right -> DB15-DB0 left to right? (your FC3000 diagram: so DB0 starts from the right then)

i think RST,CS,RS,WR,RD are ok else we would see nothing


Screenshot%202022-08-24%20150026.png

#159 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-24 20:25:39

@司徒

right, of course. silly me. the data runs naturally over this bus. I'm excited, seems like we're on the right track.
many thanks for your effort

ps: i know much about electronics, i know that the hx8347 for example is an mcu, i simply forgotten some logic in my brain, hahaha

I would work with the test_6 source code, test_7 seems to do something different somehow. did you program the "snow" like this or should it be 3 color bars?

#160 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-24 18:26:04

hox 说:
neotendo 说:

@Situ

fc3000 starts with a white screen now. is that right?

here is website i found about screen, (https://www.skytech.ir/product_details.aspx?ID_Parts=4919&T2812-m106-24c-7d-2.8inch-lcd-tft-hx8347-driver)

i can't open it, hope this could help you


thank you very much, unfortunately there is no information or downloads on their site, I wrote via the contact link, let's see.

#161 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-24 18:10:50

@Situ

something new my brother.
all test files shows white screen, only test_6 and test_7 are different, they showed a colored "snow" image
ps:the sound from the video comes from the power switch (not speaker)

TEST_6
20220824_120447.jpg

TEST_7

#162 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-24 17:53:30

@Situ

if R and B are swapped, shouldn't it just be wrong colors?
i try your test files now

#163 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-24 04:19:32

@Situ

i checked our displays, both connections look similar but mirrored somehow (different pinout?)

Screenshot%202022-08-23%20221219.png
Screenshot%202022-08-23%20221139.png

#164 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-23 22:35:42

@Situ

Here are some photos from the display and connector, maybe you can use it

20220823_163035.jpg
20220823_163118.jpg

#165 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-23 21:54:41

@Situ

None of the images gives color on screen, boots only in white (backlight) screen.
as you mentioned it before, another driver or pinout i guess

#166 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-23 21:34:49

@Situ

was able now to compile it. gcc version 8 and higher has a problem with null pointer strings, i had to change 2 lines in gdbusmessage.c and gdbusauth.c

why do you think it's not hx8347?

thanks <3,you are a master, i will try the images now

#168 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-23 12:35:48

@Situ

ps: i do not hear any sound when booting linux

I don't know. Maybe an older V1 version. As my mcu is an M800 and not M900.
SPI flash is on the other side

20220822_122718.jpg

#170 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-23 05:36:23

@Situ

fc3000 starts with a white screen now. is that right?

#171 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-23 01:27:42

@Situ

Thank you very much, I'll try that.  Had already tried to compile that yesterday, but I had errors in the gdb compilation.

#172 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-22 21:02:02

@Hox

Yes, I saw it, that's why I didn't even ask you.  I accidentally bricked mine too.  I thought I started a dump program, but then it was an ips flasher.  I hope that I can at least get linux running on it through situ before I throw it away

#173 Re: 全志 SOC » Baremetal hardware JPEG-decoder example (F1C100S) » 2022-08-22 19:03:14

wow, thats looks cool. keep up, very good work bro

#176 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-22 18:24:10

@Situ

A1: Thank you very much, maybe i can find someone with the same model, a dump tool would be handy.

A2: my device has an tft display i think (T2812-M106-24C-7D, maybe an HX8347 driver) cpu is M800.

i would be very grateful if you would help me there at least to have linux on it
thank you

20220822_120849.jpg
20220822_120909.jpg
20220822_122718.jpg

#178 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-19 19:03:58

hox 说:

@司徒  最近入了一个 FC3000 V2, 说是 IPS 屏,拆机发现屏的型号是 T2812-M106-024C-7D , 网上查得驱动 IC 型号为 HX8347, 不知是否对你有帮助

i have the same model, my cpu is M800 and i bricked mine, i need help, the stock v1 rom or how i can port the linux over

#179 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-08-19 18:37:09

hi there, i have bricked my v1 old version, was trying to dump the stock rom but used a flasher image instead.

does anybody have the stock rom from the v1 old version (M800 cpu, tft t2812-m106-24c-7d) or can anyone point me in a direction to port the linux to this device?

thank you very much

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn