steward-fu / website

Steward's website
https://steward-fu.github.io/website/index.htm
15 stars 2 forks source link

Fc3000 #2

Closed aksenav2 closed 4 months ago

aksenav2 commented 6 months ago

Sorry for bothering, I haven't been able to solve the problem when compiling uboot for more than two weeks. Please tell me what the problem may be. IMG_20240123_142650

steward-fu commented 5 months ago

This issue is related to dtc (device tree compiler). May I know what kind of OS you are using ?

aksenav2 commented 5 months ago

This issue is related to dtc (device tree compiler). May I know what kind of OS you are using ?

I've already found a solution to this problem and have successfully compiled the kernel and bootloader. But now I'm having a problem with initializing the display. The console turns on correctly, but if you turn it off and on again, it turns on, after the first logo, with a white display, but the system is working correctly, you can start the game and you will hear a sound. But in order for the console to turn on correctly, you need to turn it off and wait for 5 minutes. And so it goes every time.

steward-fu commented 5 months ago

I think it may be related to the initial code of LCD. You can try to add sleep in each initial command.

aksenav2 commented 5 months ago

I think it may be related to the initial code of LCD. You can try to add sleep in each initial command.

I have a tft display, you can write an example of how to do it and in which code file. I'm just not very good at programming.

aksenav2 commented 5 months ago

Also, in order for my console to start correctly, when compiling kernel, I need to enter the fc3000_ips1 parameters. And when I compile boot, I can ips1 or tft2 аnd there is no difference, and either way starts correctly. Although I dismantled the console and I have a display t2815-m110-24. And my boot logo has a GRB color parameter, and the kernel is RGB

steward-fu commented 5 months ago

Could you please post the github link for your kernel and boot code ?

aksenav2 commented 5 months ago

Could you please post the github link for your kernel and boot code ?

I downloaded from your archive, this is your code.

https://github.com/steward-fu/archives/releases/download/fc3000/bootloader-f1c100s_fc3000_uboot-2018.01.zip

https://github.com/steward-fu/archives/releases/download/fc3000/kernel-f1c100s_fc3000_linux-4.14.0.zip

steward-fu commented 5 months ago

In drivers/video/fbdev/sunivfb.c file, you can try to add mdelay() after command: lcdc_wr_cmd(swapRB(0xe7)); mdelay(1);

aksenav2 commented 5 months ago

No, it didn't help. IMG_20240220_085551

aksenav2 commented 5 months ago

In this firmware, there is no such problem, but in it the start and select buttons work as a turbo (cycle press without stopping if pressed and held) https://github.com/steward-fu/archives/releases/download/fc3000/old_tft_od_no_roms.7z

steward-fu commented 5 months ago

I meant you should add sleep for each command to see whether this issue is fixed. All of LCD commands are found by reverse engineering method, therefore, it is hard to fix this issue unless reverse engineering again.

aksenav2 commented 5 months ago

Anyway, there's something messed up in the source code. Since in order for me to compile, for the display to work, I need to enter the command ./tools/make_suniv.sh. sh fc3000_ips1 And if I type ./tools/make_suniv.sh. sh fc3000_tft2 - then there is no image on the console at all and the display is not initialized.

aksenav2 commented 5 months ago

Screenshot_2024-02-27-14-18-51-856_com miui gallery

aksenav2 commented 5 months ago

Thank you for telling me where to look for a solution to the problem. I also compared the display initialization parameters in the boot and kernel source code and found that delay was omitted to the kernel, while in the sours code boot this line was present. And gradually, making various changes, I achieved the optimal result and now, initialization of the display works in 99 percent of the inclusion. IMG_20240227_160425

steward-fu commented 5 months ago

Congratulations and thanks for your sharing !

aksenav2 commented 5 months ago

I also have an xyc q8 console. Actually, I packed my firmware. But recently I wanted to flash from your archive, but it is not working, some incomprehensible hybrid (fc3000 and xyc) Please check and fix it if possible.

https://github.com/steward-fu/archives/releases/download/q8/q8_od_jutleys_no_roms.img.7z

steward-fu commented 4 months ago

These devices have been throw into trash can already. So, they will not get any update or fix.