Sorgelig wrote:No GRUB is required. U-boot is enough to do multiboot. MiSTer menu will have a special fake core entry. So you launch it and MiSTer will set special variables in memory and will reboot where U-boot will pick these variables and launch required kernel with specific parameters.
Partly it's implemented, but still need some more support code which is not a problem, actually.
Ok, so the fake core will let us choose a specific kernel image and a specific root partition image, possibly some extra settings (i.e. single/double core), and it will reboot in the new kernel/root combo. Once completely reset (power off, power on?) the board will boot the standard MiSTer environment again. Possibly this fake core will let us save specific configurations. Did I understand correctly?
Now, can I ask you why did you choose the fake core implementation instead of a submenu of the main MiSTer core? For the sake of functional separation/plugin implementation? Maybe in order to maintain the MiSTer main menu structure? Excuse me if I’m bothering you (please tell me), but I’m asking this in order to understand your preferred structure: let’s say I’d like to implement the “script launcher menu”, would you prefer it and accept it as a fake core?
Sorgelig wrote:I just have no time yet to extract a working .config along with source code of kernel used in Terasic Linux. Kernel requires my patches for initial loop support. Also exFAT driver should be added and compiled as built-in since linux image is on exFAT partition.
All this should work on separate SD card with same layout (new layout) as on MiSTer. - Is there anyone would like to do this?
OK. I’m still awaiting for my DE10-nano to arrive, but let’s see if I understood correctly the steps needed in order to proceed:
1. I download one of the original Terasic Linux images, i.e. “Linux LXDE Desktop (kernel 4.5)” or “Linux Console (kernel 4.5)” and prepare a bootable SD
2. I run the Terasic Linux and, if the kernel has the IKCONFIG support, I get the kernel configuration from /proc/config.gz
3. I download Terasic Kernel sources from https://github.com/altera-opensource/linux-socfpga
and apply your patches (but, if we are going to use kernel 4.5, could I download directly sources from https://github.com/MiSTer-devel/Linux-K ... 5.0_MiSTer
4. I put the .config extracted at 2 in the downloaded sources and run “make ARCH=arm menuconfig”
5. I add the static exFAT driver
6. I compile the Kernel
7. I append socfpga.dtb to the zImage in order to get zImage_dtb file (where do I get or how do I compile socfpga.dtb?)
8. I extract the root filesystem image from the Terasic SD image fiddling with sfdisk and dd
9. I prepare a regular MiSTer SD with https://github.com/MiSTer-devel/SD-Inst ... n64_MiSTer
and replace zImage_dtb and linux.img with the new ones
10. I put the SD in the DE10-nano, give it current and cross fingers…
Am I right? I think I can work on this task.
Sorgelig wrote:Then it will be ready to be merged into a single SD card - i will handle this task.
Great! I hope I'm not missing anything.
Thank you in advance.