您尚未登录。

楼主 #1006 2022-09-01 19:36:06

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

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


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

离线

楼主 #1007 2022-09-01 19:36:41

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@暈哥
竟然好了~哈~

离线

#1008 2022-09-02 11:44:37

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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?

离线

楼主 #1009 2022-09-02 14:42:53

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

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

离线

#1010 2022-09-02 15:19:32

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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

离线

楼主 #1011 2022-09-02 16:03:42

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

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

离线

#1012 2022-09-02 16:33:06

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

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

离线

#1013 2022-09-03 02:24:25

Apaczer
会员
注册时间: 2022-06-01
已发帖子: 5
积分: 5

Re: 研究FC3000掌機的開源可行性

@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.

离线

#1014 2022-09-03 05:19:09

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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.

最近编辑记录 neotendo (2022-09-03 05:20:16)

离线

楼主 #1015 2022-09-03 12:13:27

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

Yes, you can.
Make sure the dumped file is different with original one.
Even though you can dump from SPI flash successfully, but I cannot make sure it can be restored back to normal always, therefore, it is recommended not to touch any data saved in SPI flash for safety reason.

If your friend can port Linux OS on FC3000 IPS v2 and then share with us, we are really appreciate all of efforts.

离线

#1016 2022-09-03 14:51:46

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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?

最近编辑记录 neotendo (2022-09-03 14:55:05)

离线

楼主 #1017 2022-09-03 20:30:12

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@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.

离线

#1018 2022-09-03 22:13:58

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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.

最近编辑记录 neotendo (2022-09-03 22:15:03)

离线

#1019 2022-09-05 22:44:16

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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

最近编辑记录 neotendo (2022-09-05 23:29:18)

离线

#1020 2022-09-06 12:41:24

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

离线

#1021 2022-09-06 12:57:54

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@Hox

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

离线

#1022 2022-09-06 14:47:08

hox
会员
注册时间: 2020-02-17
已发帖子: 42
积分: 30.5

Re: 研究FC3000掌機的開源可行性

neotendo 说:

@Hox

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

No, I've already thrown it out. sad

离线

楼主 #1023 2022-09-06 15:12:55

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@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.

离线

#1024 2022-09-06 16:23:20

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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

最近编辑记录 neotendo (2022-09-06 16:23:56)

离线

#1025 2022-09-06 17:20:09

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

离线

楼主 #1026 2022-09-06 17:47:52

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

Hero ~ cool

离线

#1027 2022-09-06 18:13:53

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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

最近编辑记录 neotendo (2022-09-06 18:51:13)

离线

楼主 #1028 2022-09-06 19:44:59

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

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 ~

离线

#1029 2022-09-06 19:54:46

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

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

最近编辑记录 neotendo (2022-09-06 19:57:08)

离线

#1030 2022-09-06 20:05:39

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

离线

#1031 2022-09-07 22:35:01

Aksenenkoav1990
会员
注册时间: 2022-09-07
已发帖子: 1
积分: 1

Re: 研究FC3000掌機的開源可行性

Good afternoon, I have a question about the fc3000 v2 console, please help me find where this logo is located in the firmware and how to change it to my own? On xyc q8, I meggered with a hex editor or replaced with my own when creating u-boot. If this is possible on fc3000, then what address, through a hex editor or in which file in the firmware itself, is this logo located?-5235490457683870013_121.jpg

最近编辑记录 Aksenenkoav1990 (2022-09-07 22:37:20)

离线

#1032 2022-09-08 02:44:09

txusevas
会员
注册时间: 2022-06-12
已发帖子: 3
积分: 3

Re: 研究FC3000掌機的開源可行性

@neotendo


Incredible DOOM!

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

离线

#1033 2022-09-08 03:54:44

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@Aksenenkoav1990

@Situ
I would also be interested.

离线

楼主 #1034 2022-09-08 07:29:07

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@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

离线

#1035 2022-09-08 13:09:56

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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?

最近编辑记录 neotendo (2022-09-08 13:20:20)

离线

#1036 2022-09-08 13:22:31

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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.

离线

楼主 #1037 2022-09-08 13:26:42

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

As I remembered, this image is shown from kernel. It has been removed from kernel source already, hasn't it ?
-5235490457683870013_121.jpg

离线

楼主 #1038 2022-09-08 13:36:40

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

run X11 ? it sounds very interesting !
Here is another project that use MT7688 processor: https://whycan.com/t_8714.html
I would like to run X11 (Debian OS) on that device.
So, it is worthy to study how to run X11 on framebuffer driver.
But in order to run X11, some kernel configurations need to be turned on, ex: network.
I think I can buy FC3000 IPS handheld again and try X11 on it. lol lol


@neotendo
I am curious about what kind of game/application needs X11 ? or why did you want X11 runs on FC3000 ?

离线

#1039 2022-09-08 16:30:06

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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

离线

楼主 #1040 2022-09-08 18:05:05

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

In framebuffer driver, I switched display layer from layer-0 to layer-1 as the following image shown:
1_20220908-1757.jpg
Linux logo is always displayed on layer-0 when framebuffer driver is probed.
If you would like to show starting logo on LCD panel, here are the places you need to modify:

drivers/video/fbdev/sunivfb.c

954   mypar->app_virt->yoffset = 0;

1172   fb_prepare_logo(info, 0);
1173   fb_show_logo(info, 0);

P.S. You also need to turn Linux Logo on in kernel menu configuration.

离线

#1041 2022-09-08 19:36:33

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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;
}

最近编辑记录 neotendo (2022-09-08 19:37:54)

离线

楼主 #1042 2022-09-09 13:34:49

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

There is another way to show boot logo.
Just uncomment "memcpy" line and then provide "hex_splash" data.

Here is the example to demonstrate how to convert png/jpg into pixel array (hex_splash):
https://github.com/steward-fu/q8/releases/download/v1.1/png2hex.c

How to use:

$ gcc png2hex.c -o test -I/usr/include/SDL -lSDL -lSDL_image
$ ./test xxx.jpg > hex_splash.h

离线

#1043 2022-09-09 17:03:06

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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.

离线

#1044 2022-09-09 19:01:43

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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?

离线

楼主 #1045 2022-09-09 19:20:40

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

Yes, in order to prevent flicking, which some LCD panels show white color when RESET is active, it is turned off in uboot and framebuffer initialization stages. So, you also need to set backlight level in device tree:

kernel/arch/arm/boot/dts/fc3000.dts

27     default-brightness-level = <0>;

离线

#1046 2022-09-09 20:32:36

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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

最近编辑记录 neotendo (2022-09-09 20:35:51)

离线

楼主 #1047 2022-09-09 21:45:28

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

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

离线

#1048 2022-09-09 21:57:40

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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

最近编辑记录 neotendo (2022-09-09 22:00:25)

离线

楼主 #1049 2022-09-09 22:52:54

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

miyoo.h.zip

离线

#1050 2022-09-10 01:25:05

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@neotendo

miyoo.h.zip

Thank you

离线

#1051 2022-09-10 01:48:38

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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

最近编辑记录 neotendo (2022-09-10 01:53:38)

离线

#1052 2022-09-10 03:00:08

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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

最近编辑记录 neotendo (2022-09-10 03:21:08)

离线

#1053 2022-09-10 06:11:18

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

sdl_prob.png

离线

楼主 #1054 2022-09-10 20:35:09

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

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

离线

楼主 #1055 2022-09-10 20:36:22

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

祝大家中秋節快樂~
1_20220910-2035.jpg

离线

#1056 2022-09-10 20:44:40

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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

离线

#1057 2022-09-11 20:08:12

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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

最近编辑记录 neotendo (2022-09-11 20:42:54)

离线

楼主 #1058 2022-09-12 18:54:58

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

Got it, thanks for your information !

离线

#1059 2022-09-13 12:40:45

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

最近编辑记录 neotendo (2022-09-13 12:41:13)

离线

楼主 #1060 2022-09-13 14:06:20

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@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.

离线

#1061 2022-09-13 17:44:35

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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

最近编辑记录 neotendo (2022-09-13 17:45:26)

离线

#1062 2022-09-13 18:26:06

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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?

最近编辑记录 neotendo (2022-09-13 18:36:44)

离线

楼主 #1063 2022-09-13 19:04:59

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

Q1: 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)?
A1: It is for TFT LCD panel, not for IPS panel.
Patch file for IPS panel: https://github.com/steward-fu/fc3000/releases/download/source/kernel_fc3000ips.7z

You are welcome big_smile
Please zip kernel and uboot folders and then provide to me.
It is nice to see boot logo shown on FC3000 handheld.
Thanks for your efforts.

离线

#1064 2022-09-13 20:47:41

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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?

最近编辑记录 neotendo (2022-09-13 21:26:46)

离线

楼主 #1065 2022-09-14 19:10:36

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo

Thanks for your contributions.
I think it is time to host 2 repositories for the kernel and uboot source code even though I don't like to maintain all of them.

[Q1] i am right that the logo is schown when the kernel is loaded? is there a way to show the logo when uboot starts?
You can add the initial code (include GPIO reinitialization) at sunxi_lcdc_panel_enable() in uboot/drivers/video/sunxi/sunxi_display.c file.
This is the simplest way you can use.

离线

#1066 2022-09-14 21:37:46

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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?

最近编辑记录 neotendo (2022-09-14 21:39:11)

离线

#1067 2022-09-15 06:14:32

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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.

离线

楼主 #1068 2022-09-16 10:11:11

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@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 ~
1_20220916-1010.jpg
2_20220916-1010.jpg

离线

#1069 2022-09-16 20:59:49

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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

离线

#1070 2022-09-17 03:53:33

Apaczer
会员
注册时间: 2022-06-01
已发帖子: 5
积分: 5

Re: 研究FC3000掌機的開源可行性

is there a chance to get duke3d running on fc3000?

After compiling, eduke32 works on MIYOO but you have to press repeadetly START (skipping intro?) to boot to main menu. After that you have to disable sfx sounds to enter game. Music works as expected in game, however sprites are all glitchy and if you enable back sounds it works only for a few seconds before sfx becomes corrupted.

离线

#1071 2022-09-17 18:03:36

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@Apaczer

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

最近编辑记录 neotendo (2022-09-17 18:04:33)

离线

#1072 2022-09-17 18:42:54

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

离线

#1073 2022-09-17 19:48:58

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

最近编辑记录 neotendo (2022-09-17 19:49:28)

离线

#1074 2022-09-18 01:06:11

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

最近编辑记录 neotendo (2022-09-18 05:49:14)

离线

#1075 2022-09-19 12:10:40

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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.

离线

#1076 2022-09-20 06:29:21

Apaczer
会员
注册时间: 2022-06-01
已发帖子: 5
积分: 5

Re: 研究FC3000掌機的開源可行性

No idea about first two issues.

About the last one (music not playing), there has been lib sound (e.g. SDL_mixer) patches applied to rootfs in MiyooCFW comparingly to stock Miyoo source (see https://github.com/MiyooCFW/sdcard/blob/master/rootfs.tar.xz), so that's why its acting differently on your side.

eduke32 needs SDL_mixer to play the MIDI, which is using the native timidity config in /etc (https://github.com/Apaczer/eduke32/blob/9b03e526ab3ea8a7dcc3647631c37d6af4a09cb9/source/sdlmusic.c#L221)

You can also look here for more info: https://github.com/scooterpsu/midi-enabler

离线

#1077 2022-09-20 22:58:21

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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

离线

#1078 2022-09-21 00:24:36

卡卡cyj
会员
注册时间: 2022-09-21
已发帖子: 2
积分: 2

Re: 研究FC3000掌機的開源可行性

q20mini真的没救了吗大大,网上找了一圈都找不到包

离线

#1079 2022-09-21 08:48:59

lzgame02
会员
注册时间: 2021-07-08
已发帖子: 41
积分: 43.5

Re: 研究FC3000掌機的開源可行性

卡卡cyj 说:

q20mini真的没救了吗大大,网上找了一圈都找不到包


try this
https://rs97.bitgala.xyz/Miyoo%20Devices/PowKiddy%20V90%20Q90/Powkiddy-V90-Q90_CFW_v1.3.3_04_10_20.img.7z

离线

#1080 2022-09-22 12:15:28

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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.

离线

#1081 2022-09-22 12:16:46

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@Situ

Is your FC3000 running linux now?

离线

楼主 #1082 2022-09-22 20:31:03

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo
Yes, it is running Linux OS with booting logo on my new FC3000 handheld now. I am creating 2 repos for bootloader and kernel source code. After complete, I will share it to you. For eduke32, as Apaczer mentioned, it is base on MIDI music format but it has some limitations on current rootfs because no any timidity configuration in system. Besides, eduke32 has another memory segmentation issue that happens on drawing animation. I think I will take a look at eduke32 soon.

Here are the ideas, maybe, we can use:
1. use WAV to replace MIDI
2. port SDL2 for eduke32

@卡卡cyj
你可以試試 lzgame02 提供的燒錄檔案~

@Apaczer @lzgame02
感謝分享~

离线

#1083 2022-09-22 22:50:50

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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.

最近编辑记录 neotendo (2022-09-23 02:55:15)

离线

#1084 2022-09-23 22:40:42

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

最近编辑记录 neotendo (2022-09-23 22:43:04)

离线

#1085 2022-09-24 06:16:52

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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

最近编辑记录 neotendo (2022-09-24 06:18:21)

离线

#1086 2022-09-24 15:01:13

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

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

离线

#1087 2022-09-24 15:04:00

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@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.

离线

楼主 #1088 2022-09-24 18:30:24

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo
Thanks for your sharing and contributions. we appreciate your help very much !
I have created 2 repos to host uboot and kernel source:
U-Boot: https://github.com/steward-fu/bootloader/tree/f1c100s_fc3000_uboot-2018.01
Kernel: https://github.com/steward-fu/kernel/tree/f1c100s_fc3000_linux-4.14.0

In U-Boot, you can use menuconfig to change your LCD panel
0_20220924-1819.jpg
And run.sh has been renamed as tools/make_suniv.sh. For more detailed steps about how to build or flash into MicroSD, you can refer to the README page.

Here is the booting logo
1_20220924-1823.jpg

And here is the kernel logo
2_20220924-1823.jpg

As I remembered, you have asked something about the following desktop GUI
3_20220924-1824.jpg

How to change it as the following desktop GUI
6_20220924-1825.jpg

The answer is from theme setting
4_20220924-1825.jpg

For classical GMenu2X, you can change it to Default. But it may use Default setting if unexpected rebooting.
5_20220924-1826.jpg

And I think it is time to check eduke32 issues, lol lol

离线

#1089 2022-09-24 22:02:02

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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

离线

楼主 #1090 2022-09-24 22:37:36

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@neotendo
For sound issue as the following logs, it isn't the key point caused eduke32 crash.

Initializing music...
Error: couldn't open any of the following files:
/etc/timidity/freepats.cfg
/etc/timidity/timidity.cfg
/etc/timidity.cfg

Although no any timidity.cfg found, it still works as well. Updating rootfs is an idea for this problem as you did. For more easy way to fix this warning, you can specify the timidity.cfg path as the following (in source/sdlmusic.c)

221    static char *s[] = { "/mnt/games/eduke32/timidity.cfg", "/etc/timidity.cfg", "/etc/timidity/timidity.cfg", "/etc/timidity/freepats.cfg" };

The main problem is at renderframe()

Thread 1 "eduke32" received signal SIGSEGV, Segmentation fault.
0xb6e25e68 in memset () from /lib//libc.so.0
(gdb) bt
#0  0xb6e25e68 in memset () from /lib//libc.so.0
#1  0x001e1e68 in decodeframe (
    srcP=0xb4df2bc6 "((\v\v\026!\342Ƴ\001\263\263\263\001\263\001\361\241_,,\017`\032\032!\026(", 
    dstP=0x1d229bb <error: Cannot access memory at address 0x1d229bb>)
    at source/jmact/animlib.c:180
#2  0x001e212c in renderframe (framenumber=0, pagepointer=0xb4df0b78)
    at source/jmact/animlib.c:239
#3  0x001e2198 in drawframe (framenumber=0) at source/jmact/animlib.c:253
#4  0x001e2a98 in ANIM_DrawFrame (framenumber=1) at source/jmact/animlib.c:330
#5  0x000cf2d0 in G_PlayAnim (fn=0x26a658 "logo.anm", t=5 '\005')
    at source/anim.c:261
#6  0x0006bccc in G_DisplayLogo () at source/game.c:8668
#7  0x0007055c in app_main (argc=1, argv=0xbeedbdf4) at source/game.c:9960
#8  0x00250f20 in main (argc=1, argv=0xbeedbdf4) at src/sdlayer.c:208

I need to trace it deeply to see whether resolution is the problem


And it seems the sound driver has problem when loading MIDI sound format

Initializing sound...
ALSA lib pcm.c:8323:(snd_pcm_recover) underrun occurred

I also need to take a look at this problem


By the way, for the first time to run eduke32, you need to configure keyboard options as the following steps to make sure you can control it well
1_20220924-2235.jpg
2_20220924-2235.jpg
3_20220924-2236.jpg
4_20220924-2236.jpg

离线

#1091 2022-09-24 23:55:14

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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

离线

#1092 昨天 02:46:39

Apaczer
会员
注册时间: 2022-06-01
已发帖子: 5
积分: 5

Re: 研究FC3000掌機的開源可行性

@neotendo
good you have your music working - soundtrack&voiceovers were the main reason why I loved this game!

@司徒
Could you advice us how to debug apps on this platform without UART? Do you have QEMU setup for ARM926EJ-S with "gdb" program as a help? I see you are pasting images from sort of windowed mode and though you might be using those.

I've tried to run my port with "gdb" through terminal app on Miyoo, but it didn't display anything (I think it might be due to SDL not liking drawing over another app).

离线

#1093 昨天 05:11:21

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒


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

离线

#1094 昨天 09:31:26

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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

离线

楼主 #1095 昨天 14:23:55

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@Apaczer
[Q1] Could you advice us how to debug apps on this platform without UART ?
[A1] No, you need to debug your app via UART because you need type command from UART.

[Q2] Do you have QEMU setup for ARM926EJ-S with "gdb" program as a help ? I see you are pasting images from sort of windowed mode and though you might be using those.
[A2] I wrote render tool to show image that obtained from /dev/fb0 node.
render tool: https://github.com/steward-fu/bootloader/blob/f1c100s_fc3000_uboot-2018.01/tools/show_320x240
How to use:
On FC3000:

# cat /dev/fb0 > xxx.raw

On PC:

$ show_320x240 xxx.raw

[Q3] I've tried to run my port with "gdb" through terminal app on Miyoo, but it didn't display anything.
[A3] You may need to redirect terminal output to framebuffer driver. So, you need enable "Framebuffer Console output" to show gdb result on your LCD panel. For more convenient way to debug your app without UART, you can try to port gdb client app on FC3000. Google is your friend !


@neotendo
[Q1] do you have an FC3000 emulator ?
[A1] No.

[Q2] why does the duke nukem screenshots have a window ?
[A2] Refer to reply above.

[Q3] 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).
[A3] Fixed, thanks for reporting issue.

[Q4] 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.
[A4] Did you mean tft v1 ? As the following lines shown, they need to be changed as 0x08 ?
U-Boot: https://github.com/steward-fu/bootloader/blob/f1c100s_fc3000_uboot-2018.01/drivers/video/fc3000_tft1.c#L205
Kernel: https://github.com/steward-fu/kernel/blob/f1c100s_fc3000_linux-4.14.0/drivers/video/fbdev/sunivfb.c#L1070

[Q5] 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.
[A5] Thanks for your inforamtion. I will check it.

[Q6] 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.
[A6] Fixed, thanks for reporting issue.


I think the sound issue is still in there even if update timidity.cfg and instruments because it seems SOUND option is disabled.
1_20220925-1416.jpg

离线

#1096 昨天 23:10:45

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

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

最近编辑记录 neotendo (昨天 23:27:37)

离线

楼主 #1097 昨天 23:23:00

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

It is very weird !!!


source/jmact/animlib.c

147 static void decodeframe(uint8_t * srcP, uint8_t * dstP)
...
172         count = B_LITTLE16(*((uint16_t *)((srcP += sizeof(int16_t)) - sizeof(int16_t))));
...

It can be formatted as the following code

count = B_LITTLE16(*(uint16_t *)srcP);
srcP += sizeof(int16_t);

It is just to get the content of memory at srcP and then put into count variable.


From GDB

count = B_LITTLE16(*((uint16_t *)((srcP += sizeof(int16_t)) - sizeof(int16_t))));

(gdb) p/x count
$2 = 0x9d80

(gdb) x/16x srcP-4
0xb4dc9b81:     0x8000  0xd99d  0x0000  0x2605  0x2d80  0x00c1  0x2605  0x2826
0xb4dc9b91:     0x280b  0x0600  0x0b0b  0x0b16  0x1a16  0x1a0b  0x0b1a  0x0b1a

srcP = 0xb4dc9b83
In general, it should be *(uint_16_t*)srcP = 0xd99d
But what we got is *(uint_16_t*)srcP = 0x9d80


GDB with instruction level

(gdb) stepi
   0x001e1f08 <+304>:   sub     r3, r3, #2
=> 0x001e1f0c <+308>:   ldrh    r3, [r3]
   0x001e1f10 <+312>:   str     r3, [r11, #-8]
   0x001e1f14 <+316>:   ldr     r3, [r11, #-8]

(gdb) info r
r3             0xb4dc9b83       3034356611

(gdb) stepi
   0x001e1f08 <+304>:   sub     r3, r3, #2
   0x001e1f0c <+308>:   ldrh    r3, [r3]
=> 0x001e1f10 <+312>:   str     r3, [r11, #-8]
   0x001e1f14 <+316>:   ldr     r3, [r11, #-8]

(gdb) info r
r3             0x9d80   40320

I'm getting crazy...


So, this is a workaround to fix this shit issue

172         //count = B_LITTLE16(*((uint16_t *)((srcP += sizeof(int16_t)) - sizeof(int16_t))));
173         count = B_LITTLE16(srcP[0] + (((uint16_t)srcP[1]) << 8));
174         srcP += sizeof(int16_t);

And now, animation works !
1_20220925-2319.jpg
eduke32_fix.zip


Now, it is time to check MIDI issue...

离线

#1098 昨天 23:29:15

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

@司徒

very great new, you are amazing!!


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

离线

楼主 #1099 昨天 23:40:57

司徒
Moderator
注册时间: 2020-02-13
已发帖子: 493
积分: 157
个人网站

Re: 研究FC3000掌機的開源可行性

@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 !

离线

#1100 昨天 23:47:35

neotendo
会员
注册时间: 2022-08-19
已发帖子: 115
积分: 141

Re: 研究FC3000掌機的開源可行性

司徒 说:

@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.

离线

页脚

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

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