Porting Main_MiSTer to other ARM core

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
andrezheng
Posts: 32
Joined: Tue Aug 25, 2020 3:10 pm
Has thanked: 1 time
Been thanked: 6 times

Porting Main_MiSTer to other ARM core

Unread post 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!
Attachments
mister.jpg
mister.jpg (348.58 KiB) Viewed 5808 times
shira
Posts: 20
Joined: Sat May 30, 2020 10:54 am
Has thanked: 21 times
Been thanked: 11 times

Re: Porting Main_MiSTer to other ARM core

Unread post 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
zakk4223
Posts: 289
Joined: Sun May 24, 2020 10:55 pm
Been thanked: 120 times

Re: Porting Main_MiSTer to other ARM core

Unread post by zakk4223 »

I have to ask: why do you want to run Main_Mister on another device?
bbond007
Top Contributor
Posts: 531
Joined: Tue May 26, 2020 5:06 am
Has thanked: 87 times
Been thanked: 211 times

Re: Porting Main_MiSTer to other ARM core

Unread post 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...
bellwood420
Core Developer
Posts: 48
Joined: Fri Dec 11, 2020 2:39 pm
Has thanked: 3 times
Been thanked: 32 times

Re: Porting Main_MiSTer to other ARM core

Unread post by bellwood420 »

I don't get the purpose, too.
Without FPGA and HPS-FPGA bridge on SoC, what can Main_MiSTer do?
Slipard
Posts: 53
Joined: Tue Jun 09, 2020 9:45 am
Has thanked: 6 times
Been thanked: 10 times

Re: Porting Main_MiSTer to other ARM core

Unread post by Slipard »

This might be the reason : https://twitter.com/topapate/status/136 ... 56450?s=20

But OP will need to confirm.
andrezheng
Posts: 32
Joined: Tue Aug 25, 2020 3:10 pm
Has thanked: 1 time
Been thanked: 6 times

Re: Porting Main_MiSTer to other ARM core

Unread post 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.
Attachments
mister.jpg
mister.jpg (373.43 KiB) Viewed 5340 times
sczh01
Posts: 1
Joined: Mon May 10, 2021 12:27 am

Re: Porting Main_MiSTer to other ARM core

Unread post 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.
User avatar
amstan
Posts: 56
Joined: Sat Feb 12, 2022 8:08 am
Location: Mountain View, California
Has thanked: 5 times
Been thanked: 26 times
Contact:

Re: Porting Main_MiSTer to other ARM core

Unread post 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).
Post Reply