Page 1 of 1

Porting Main_MiSTer to other ARM core

Posted: Fri Mar 12, 2021 2:12 pm
by andrezheng
Hi everyone,

I'm trying to port the Main_MiSTer project to other ARM core(Raspberry Pi Zero W). I met some compile issue for below two variables in video.cpp.
extern uint8_t _binary_logo_png_start[], _binary_logo_png_end[];

I searched all the project files and found nothing. Could anyone please help tell me where are these two variables located? Which file? Thank you so much!

Re: Porting Main_MiSTer to other ARM core

Posted: Fri Mar 12, 2021 4:14 pm
by shira
From what i gather, those are only symbols in object files generated from *.png files.
See https://github.com/MiSTer-devel/Main_Mi ... le#L77-L79

Re: Porting Main_MiSTer to other ARM core

Posted: Fri Mar 12, 2021 5:25 pm
by zakk4223
I have to ask: why do you want to run Main_Mister on another device?

Re: Porting Main_MiSTer to other ARM core

Posted: Fri Mar 12, 2021 9:16 pm
by bbond007
zakk4223 wrote: Fri Mar 12, 2021 5:25 pm I have to ask: why do you want to run Main_Mister on another device?
Wondering that myself - Without the FPGA it won't even be abe to even draw the OSD...

Re: Porting Main_MiSTer to other ARM core

Posted: Sat Mar 13, 2021 12:19 am
by bellwood420
I don't get the purpose, too.
Without FPGA and HPS-FPGA bridge on SoC, what can Main_MiSTer do?

Re: Porting Main_MiSTer to other ARM core

Posted: Sat Mar 13, 2021 7:15 am
by Slipard
This might be the reason : https://twitter.com/topapate/status/136 ... 56450?s=20

But OP will need to confirm.

Re: Porting Main_MiSTer to other ARM core

Posted: Sat Mar 13, 2021 12:05 pm
by andrezheng
5CSEBA6U23 costs around $200. That's why want to throw the De-10 Nano away. In replacement, I'll spend $15 to buy a Raspberry Pi Zero W or another ARM chip with Linux system. And spend less than $100 for Cyclone V 5CEFA7F23(150K LE) or Xilinx XC7A200T.

After I comment these two variables, the Mister Main can running on Raspberry Pi now.
pi@raspberrypi:~$
Minimig by Dennis van Weeren
ARM Controller by Jakub Bednarski
MiSTer code by Sorgelig

Version 000000

Looking for root device...
FileOpenEx(open) File:/media/fat/config/device.bin, error: No such file or directory.
Using SD card as a root device
[1;34mINI_PARSER : Start INI parser for core "".[0m
FileOpenEx(open) File:/media/fat/MiSTer.ini, error: No such file or directory.
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
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
FileOpenEx(open) File:/media/fat/config/_gamma.cfg, error: No such file or directory.
FileOpenEx(open) File:/media/fat/gamma/, error: No such file or directory.
FileOpenEx(open) File:/media/fat/config/_scaler.cfg, error: No such file or directory.
FileOpenEx(open) File:/media/fat/filters/, error: No such file or directory.
Send HDMI parameters:
video: 1280(1280), 110(110), 40(40), 220(220), 720(720), 5(5), 5(5), 20(20),
PLL: 0x4, 0x404, 0x3, 0x10000, 0x5, 0x303, 0x9, 0x2, 0x8, 0x7, 0x7, 0xE8F5C28F, Fpix=74.250000
sh: 1: cannot create /sys/module/MiSTer_fb/parameters/mode: Directory nonexistent
FileOpenEx(open) File:/media/fat/config/_afilter.cfg, error: No such file or directory.
FileOpenEx(open) File:/media/fat/config/Volume.dat, error: No such file or directory.
FileOpenEx(open) File:/media/fat/config/_volume.cfg, error: No such file or directory.
sending keymap: 0
Unable to identify core (55)!
sh: 1: uartmode: not found
sh: 1: uartmode: not found
Unable to create UINPUT device.Open up to 30 input devices.
opened 0( 0): /dev/input/event1 (081f:e401) 0 "usb-20980000.usb-1.3/input0" "USB gamepad "
opened 1( 1): /dev/input/event0 (081f:e401) 0 "usb-20980000.usb-1.4/input0" "USB gamepad "

FileOpenEx(open) File:/media/fat/config/inputs/input_081f_e401_v3.map, error: No such file or directory.
FileOpenEx(open) File:/media/fat/config/input_081f_e401_v3.map, error: No such file or directory.
FileOpenEx(open) File:/media/fat/config/inputs/_input_081f_e401_v3.map, error: No such file or directory.
FileOpenEx(open) File:/media/fat/config/_input_081f_e401_v3.map, error: No such file or directory.

Re: Porting Main_MiSTer to other ARM core

Posted: Mon May 10, 2021 12:36 am
by sczh01
Hi andrezheng,

It looks good for your porting. Your meaning is we can combine the cheap Arm board(Raspberry ...) and Pure FPGA board(K7 100AT/200AT ...).
It is a great idea.

Re: Porting Main_MiSTer to other ARM core

Posted: Sun Feb 13, 2022 7:54 am
by amstan
Not to mention the faster ARM processor.

You know what would be cool? The a standalone FPGA running MiSTer cores on a motherboard that has a raspberry-pi compute module connected to the FPGA via pcie (for the memory sharing).