MISTer (Main Core)

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, Greenious, spiny, Sorgelig, Moderator Team

paulbnl
Atari freak
Atari freak
Posts: 73
Joined: Wed Oct 24, 2018 9:43 am

Re: MISTer (Main Core)

Postby paulbnl » Thu Oct 24, 2019 9:50 am

JamesF wrote:I have problem with custom resolution that used to work on older builds.
video_mode=1920,48,32,80,1200,3,6,26,154128
When rebooting mister with this custom resolution I see static screen and OSD will not display.

But using this 1080p custom resolution video_mode=1920,48,32,80,1080,3,5,23,138653 and everything is okay.. boots normally.


Which version does it work on? I have tried older menu and MiSTer versions but couldn't get it to work at all. The oldest I tried were versions 0627.

Log:

Code: Select all

U-Boot SPL 2017.03+ (May 23 2018 - 19:09:48)
Trying to boot from MMC1


U-Boot 2017.03+ (May 23 2018 - 19:09:48 +0800)

       Watchdog enabled
DRAM:  1 GiB
socfpga_bridges_reset: FPGA not ready, aborting.
MMC:   dwmmc0@ff704000: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Autoboot in 0 seconds
reading menu.rbf
2373808 bytes read in 206 ms (11 MiB/s)
reading /linux/zImage_dtb
8821023 bytes read in 752 ms (11.2 MiB/s)
## Flattened Device Tree blob at 01863270
   Booting using the fdt blob at 0x1863270
   reserving fdt memory region: addr=0 size=1000
   Loading Device Tree to 03ff6000, end 03fff6ae ... OK

Starting kernel ...

[    0.300483] rtc-m41t80 1-0068: Can't clear HT bit
Starting logging: OK
Populating /dev using udev:
Minimig by Dennis van Weeren
ARM Controller by Jakub Bednarski
MiSTer code by Sorgelig

Version 191017

Looking for root device...
FileLoad(open) File:/media/fat/config/device.bin, error: -1.
Using SD card as a root device
Init SPI.
Identified 8BIT core
Core name is "MENU"
** altcfg: no cfg
INI_PARSER : Start INI parser for core "MENU".
INI_PARSER : Opened file MiSTer.ini with size 4424 bytes.
INI_PARSER : line(0): "[MiSTer]".
INI_PARSER : Got SECTION 'MISTER' with ID 1
INI_PARSER : line(0): "key_menu_as_rgui=0".
INI_PARSER : Got VAR 'KEY_MENU_AS_RGUI' with VALUE 0
INI_PARSER : line(0): "forced_scandoubler=0".
INI_PARSER : Got VAR 'FORCED_SCANDOUBLER' with VALUE 0
INI_PARSER : line(0): "ypbpr=0".
INI_PARSER : Got VAR 'YPBPR' with VALUE 0
INI_PARSER : line(0): "composite_sync=1".
INI_PARSER : Got VAR 'COMPOSITE_SYNC' with VALUE 1
INI_PARSER : line(0): "vga_scaler=0".
INI_PARSER : Got VAR 'VGA_SCALER' with VALUE 0
INI_PARSER : line(0): "hdmi_audio_96k=1".
INI_PARSER : Got VAR 'HDMI_AUDIO_96K' with VALUE 1
INI_PARSER : line(0): "keyrah_mode=0x18d80002".
INI_PARSER : Got VAR 'KEYRAH_MODE' with VALUE 0x18d80002
INI_PARSER : line(0): "volumectl=0".
INI_PARSER : Got VAR 'VOLUMECTL' with VALUE 0
INI_PARSER : line(0): "vscale_mode=0".
INI_PARSER : Got VAR 'VSCALE_MODE' with VALUE 0
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "vscale_border=0".
INI_PARSER : Got VAR 'VSCALE_BORDER' with VALUE 0
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "rbf_hide_datecode=0".
INI_PARSER : Got VAR 'RBF_HIDE_DATECODE' with VALUE 0
INI_PARSER : line(0): "menu_pal=0".
INI_PARSER : Got VAR 'MENU_PAL' with VALUE 0
INI_PARSER : line(0): "".
INI_PARSER : line(0): "hdmi_limited=0".
INI_PARSER : Got VAR 'HDMI_LIMITED' with VALUE 0
INI_PARSER : line(0): "fb_size=0".
INI_PARSER : Got VAR 'FB_SIZE' with VALUE 0
INI_PARSER : line(0): "fb_terminal=1".
INI_PARSER : Got VAR 'FB_TERMINAL' with VALUE 1
INI_PARSER : line(0): "osd_timeout=30".
INI_PARSER : Got VAR 'OSD_TIMEOUT' with VALUE 30
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "bootcore_timeout=10".
INI_PARSER : Got VAR 'BOOTCORE_TIMEOUT' with VALUE 10
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "reset_combo=0".
INI_PARSER : Got VAR 'RESET_COMBO' with VALUE 0
INI_PARSER : line(0): "".
INI_PARSER : line(0): "dvi_mode=0".
INI_PARSER : Got VAR 'DVI_MODE' with VALUE 0
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "video_mode=1920,48,32,80,1200,3,6,26,154128".
INI_PARSER : Got VAR 'VIDEO_MODE' with VALUE 1920,48,32,80,1200,3,6,26,154128
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "video_info=3".
INI_PARSER : Got VAR 'VIDEO_INFO' with VALUE 3
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "vsync_adjust=0".
INI_PARSER : Got VAR 'VSYNC_ADJUST' with VALUE 0
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "direct_video=0".
INI_PARSER : Got VAR 'DIRECT_VIDEO' with VALUE 0
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(0): "".
INI_PARSER : line(4): "".
Calculate PLL for 154.1280 MHz:
Fvco=462.384018, C=3, M=9, K=0.247680(1063779041) -> Fpix=154.128006
Incorrect amount of items in video_mode parameter: 0
Calculate PLL for 74.2500 MHz:
Fvco=445.500000, C=6, M=8, K=0.910000(3908420239) -> Fpix=74.250000
Incorrect amount of items in video_mode parameter: 0
Calculate PLL for 74.2500 MHz:
Fvco=445.500000, C=6, M=8, K=0.910000(3908420239) -> Fpix=74.250000
FileLoad(open) File:/media/fat/config/MENU_gamma.cfg, error: -1.
FileLoad(open) File:/media/fat/config/MENU_scaler.cfg, error: -1.
Send HDMI parameters:
video: 1920, 48, 32, 80, 1200, 3, 6, 26,
PLL: 0x4, 0x20504, 0x3, 0x10000, 0x5, 0x20201, 0x9, 0x2, 0x8, 0x7, 0x7, 0x3F67FAE1, Fpix=154.128006
FileLoad(open) File:/media/fat/config/Volume.dat, error: -1.
sending keymap: 48
Loading config MENU.CFG
Found config: 0000000A-00000000
get cfgstring 0 = MENU
get cfgstring 1 = (null)
get cfgstring 2 = (null)
**** BG DEBUG START ****
n = 5
udevadm settle failed
done

JamesF
Captain Atari
Captain Atari
Posts: 153
Joined: Sat Dec 15, 2018 6:46 am

Re: MISTer (Main Core)

Postby JamesF » Sat Oct 26, 2019 12:51 pm

@Sorgelig, paulbnl.
Do you see the problem in paulbnl's log?

Incorrect amount of items in video_mode parameter: 0

?

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5229
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Sat Oct 26, 2019 6:36 pm

i don't see problem from the log. Latest lines show the parameters sent to the core.
Anyone is welcome to improve HDMI output. From my side i've done everything i could and currently i have no plans for that.

1920x1200 is beyond the official max 1920x1080. It may work or may not.. On my MiSTer it works ok.

paulbnl
Atari freak
Atari freak
Posts: 73
Joined: Wed Oct 24, 2018 9:43 am

Re: MISTer (Main Core)

Postby paulbnl » Sun Oct 27, 2019 11:47 am

Finally found the issue. The full 1920x1200 framebuffer simply does not fit in the allocated 8MB and it hangs.

Changing the fbsize to half resolution makes it work.

onaryc29
Atari User
Atari User
Posts: 41
Joined: Mon Dec 10, 2018 9:47 am

Re: MISTer (Main Core)

Postby onaryc29 » Sun Oct 27, 2019 12:26 pm

great it works, thanks paulbnl!

Grabulosaure
Atari maniac
Atari maniac
Posts: 91
Joined: Tue Sep 05, 2017 9:35 pm
Contact:

Re: MISTer (Main Core)

Postby Grabulosaure » Sun Oct 27, 2019 1:01 pm

You can try to change the framebuffer console resolution from the command line, but using reduced colour depth :

Code: Select all

vmode f rgb16


(The scaler, when used with input video, stores only the source image, high resolution output is generated "on the fly", so it usually it doesn't uses as much memory as the framebuffer mode)

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5229
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Oct 28, 2019 9:35 pm

Half-res FB resolution on 1920x1200 is pretty much good resolution.
Anyway, MiSTer has no GPU and will have hard time to work with 1920x1200 in Linux.

P.S.: FB has no 24bit support due to extremely low performance in this mode. So only 32bit for true color is supported and it definitely wont fit to 8MB with 1920x1200. so either 16bits or half-res should be used in 1920x1200.

P.P.S: FB supports indexed 8bit color mode which is enough for text use. And it's fastest mode.

paulbnl
Atari freak
Atari freak
Posts: 73
Joined: Wed Oct 24, 2018 9:43 am

Re: MISTer (Main Core)

Postby paulbnl » Mon Oct 28, 2019 10:43 pm

Shouldn't automatic fb_size be half size above 1000 width? It seems this was intended but it still ends up full size.

https://github.com/MiSTer-devel/Main_MiSTer/blob/daeaba909d9d0719690c63db581541a96c44c9e6/video.cpp#L437

JamesF
Captain Atari
Captain Atari
Posts: 153
Joined: Sat Dec 15, 2018 6:46 am

Re: MISTer (Main Core)

Postby JamesF » Tue Oct 29, 2019 7:03 am

1. Why direct_video is not in mister.ini yet (HDMI limited 16..255 already is)?
2. To 'overcome' the HDMI artifacts I use 1440x1080 for now, it's 4:3 and full 1080p.
I'm never going to use mister with 16:9 aspect ratio anyway... I know some people like it though. 8O

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5229
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Tue Oct 29, 2019 1:03 pm

paulbnl wrote:Shouldn't automatic fb_size be half size above 1000 width? It seems this was intended but it still ends up full size.

https://github.com/MiSTer-devel/Main_MiSTer/blob/daeaba909d9d0719690c63db581541a96c44c9e6/video.cpp#L437

yes, it's supposed to be automatic halfres if fb_size=0 (or undefined).
Need to verify why it doesn't work for you.

JamesF wrote:1. Why direct_video is not in mister.ini yet (HDMI limited 16..255 already is)?

It's not a problem to omit it. It simply means direct_video=0
MiSTer may work without MiSTer.ini at all. All parameters will have default values. Just forgot to update the ini.. Will be included later.

paulbnl
Atari freak
Atari freak
Posts: 73
Joined: Wed Oct 24, 2018 9:43 am

Re: MISTer (Main Core)

Postby paulbnl » Tue Oct 29, 2019 1:12 pm


Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5229
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Tue Oct 29, 2019 2:58 pm

paulbnl wrote:Hmmm fb_size cannot be 0 because min is 1. So auto cannot work.

https://github.com/MiSTer-devel/Main_MiSTer/blob/daeaba909d9d0719690c63db581541a96c44c9e6/cfg.cpp#L55

probably it's a typo.. I will re-check the code.
Currently, if you comment fb_size out in ini file, then it will be 0.

User avatar
Xtro
Atari maniac
Atari maniac
Posts: 84
Joined: Fri Jan 09, 2015 11:47 am
Location: Spain

Re: MISTer (Main Core)

Postby Xtro » Sat Nov 09, 2019 12:04 am

Lately was noticing some jerky movement of mouse pointer in minimig core, I thought was due to recent changes to the core but found that ao486 core was showing same jerkyness. Reverting to old Mister_Main solved the issue, with butter smooth mouse movement. MiSTer_20191014 is the first framework that makes this bug happen, maybe something to do with "Fix OSD input lag"

User avatar
Paradroyd
Captain Atari
Captain Atari
Posts: 290
Joined: Tue Sep 10, 2013 10:50 pm
Contact:

Re: MISTer (Main Core)

Postby Paradroyd » Sat Nov 09, 2019 12:50 am

Xtro wrote:Lately was noticing some jerky movement of mouse pointer in minimig core, I thought was due to recent changes to the core but found that ao486 core was showing same jerkyness. Reverting to old Mister_Main solved the issue, with butter smooth mouse movement. MiSTer_20191014 is the first framework that makes this bug happen, maybe something to do with "Fix OSD input lag"


I also noticed this in the Minimig core. I can really notice it if I try to move the mouse in circles, even on a workbench desktop, but also in the terminal program "term", which in my setup runs in a HiRes, non interlaced NTSC screen.

I have not tried it in other cores yet.
- Paradroyd
@paradroyd on Twitter, @paradroyd@mastodon.sdf.org on Mastodon

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5229
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Sat Nov 09, 2019 2:07 am

Xtro wrote:Lately was noticing some jerky movement of mouse pointer in minimig core, I thought was due to recent changes to the core but found that ao486 core was showing same jerkyness. Reverting to old Mister_Main solved the issue, with butter smooth mouse movement. MiSTer_20191014 is the first framework that makes this bug happen, maybe something to do with "Fix OSD input lag"

i've tried to disable that fix for OSD and didn't notice the difference in mouse move in Minimig.
You can disable it by adding break; into line aroun 3080 in input.cpp so while(1){} will exit after first input query. So if you can, then try and see the difference.

User avatar
Xtro
Atari maniac
Atari maniac
Posts: 84
Joined: Fri Jan 09, 2015 11:47 am
Location: Spain

Re: MISTer (Main Core)

Postby Xtro » Tue Nov 12, 2019 8:40 pm

Sorgelig wrote:
Xtro wrote:Lately was noticing some jerky movement of mouse pointer in minimig core, I thought was due to recent changes to the core but found that ao486 core was showing same jerkyness. Reverting to old Mister_Main solved the issue, with butter smooth mouse movement. MiSTer_20191014 is the first framework that makes this bug happen, maybe something to do with "Fix OSD input lag"

i've tried to disable that fix for OSD and didn't notice the difference in mouse move in Minimig.
You can disable it by adding break; into line aroun 3080 in input.cpp so while(1){} will exit after first input query. So if you can, then try and see the difference.

We tried your fix and indeed it does not solve mouse jerkyness. I have tried different cores, like fxcast, macplus and ao486 and they don't exhibit this problem, only ao486 mouse movement lags when disk access happens in Windows 95, but this is normal behavior on PCs.
All minimig cores show mouse jerkyness when accesing adf disc, for example while loading workbench 1.3 if I move mouse and has this jerkyness nomatter which version of minimig core (don't remember if this was normal behaviour on real Amigas). The difference is that when finished loading disc, MiSTer_20191014 and upwards still shows this jerkyness. Maybe has something to do with disk access? I think it is not related to CPU because trying fx68k or tg68k gives same results.

Milongero
Atariator
Atariator
Posts: 29
Joined: Sun Nov 25, 2018 2:24 pm
Location: Germany

Re: MISTer (Main Core)

Postby Milongero » Tue Nov 12, 2019 9:33 pm

Sorry

I made a mistake.


Return to “MiSTer”

Who is online

Users browsing this forum: RabidWookie and 5 guests