https://mega.nz/#!9QwnVQqB!PKEUgEqRGSRj ... 9CFTnVdCuc
The release format is the same as recent MiSTer release, so you can use included SD install tool to update existing MiSTer SD card or make new one. You can copy files manually, but you need to update boot. So you can update boot in the SD install tool, or using updateboot command from console/ssh.
The release includes latest updates to original MiSTer release.
How it works?
If core (rbf file) has the text file with the same name, then it means MiSTer will reboot and will use additional sets of u-boot commands from that txt file. That's how alternative kernel and linux image are used.
It's not really tied to Linux only. If there will be other cores requiring special code on ARM side, then it will be run the same way. Even bare-metal projects can be loaded this way.
Release includes several versions of FPGA core which is used as a frame buffer. The name shows which resolution will be output on HDMI. But regardless output resolution every version supports any resolution up to 1920x1080. All resolutions will be upscaled/downscaled to output resolution.
By default the Linux resolution equals to output resolution. If you want to use other Linux resolution, then you need to modify TXT file by adding following options:
altvipfb.width - horizontal resolution for Linux.
altvipfb.height - vertical resolution for Linux.
altvipfb.bgwidth - box width.
altvipfb.bgheight - box height.
Box resolution is added around Linux resolution before up/down scaling. It's used to add horizontal/vertical fields in order to correct aspect ratio - i.e. letterboxing.
Example:
mmcboot=setenv bootargs console=ttyS0,115200 $v loop.max_part=8 altvipfb.width=640 altvipfb.height=480 altvipfb.bgwidth=854 root=$mmcroot loop=linux/lxde_linux.img rw rootwait;bootz $loadaddr - $fdt_addr
it will set 640x480 resolution for Linux with left and right black stripes to fit into 16:9 ratio.
Leave other text as-is if you don't know what it does. Text file uses Linux line endings, so you need to use compatible text editor if you edit it on Windows PC.
Note:
Linux image is mounted as read-write, so avoid from turning off or reset without proper shutdown! I suggest to choose "Reboot" instead of "Shutdown" so MiSTer will reboot into MiSTer menu where you can simply turn off the power. DE10-nano board has no power off feature, so if you choose "Shutdown" it will end by black screen and it will be hard to tell if shutdown procedure is finished already or not.
Every reboot from Linux will reboot to Menu core.
Linux is almost the same as the one supplied by Terasic on SD card. I just converted partition to more modern ext4 filesystem and installed Midnight commander. No other modifications have been added. Linux however needs future tweaks like using the same time zone as MiSTer, use the same WiFi settings as MiSTer, and so on.. If someone would like to help with fine tuning the Linux - you are welcome!
Linux is Ubuntu 16.04 and includes working apt environment, so you can add/remove wide range of Ubuntu applications.
Update:
Version with Audio support:
https://mega.nz/#!td5znY7J!1f-gfrmF7811 ... _5YFxHI4aQ
Just replace the files in original release.
Old RBF won't work with new kernel and vice versa. So make sure you use RBF and kernel from the same file set.
What's new:
- Audio support. Sound card has no control, so need to check if possible to use a digital volume control in Linux on top of the dummy sound card. If not, then i will need to think how to update the sound card driver.
- Single core for all resolutions. Video resolution can be set in kernel parameters.
altvipfb.video_mode - video mode - same as in MiSTer.ini (except that custom modes aren't supported). Default is 1280x720@60 - Automatic box calculation for correct aspect ratio.
altvipfb.aspect - set to 0 if you want to stretch Linux resolution to full screen. By default aspect=1. If bgwidth or bgheight are set, then aspect ratio is ignored in favor to explicit box dimensions.