<div dir="ltr">Hi Zoran,<div><br></div><div>Ok.. I will try that. </div><div><br></div><div><br></div><div>After adding below menuentry in grub.cfg( , </div><div><br></div><div><div><div><span style="font-size:12.8px"><i>menuentry "ONIE: Embed ONIE" --class gnu-linux --class onie {</i></span></div><div><span style="font-size:12.8px"><i> echo "ONIE: Embedding ONIE ..."</i></span></div><div><span style="font-size:12.8px"><i><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>set gfxpayload=keep</i></span></div><div><span style="font-size:12.8px"><i> insmod gzio</i></span></div><div><span style="font-size:12.8px"><i> insmod part_msdos</i></span></div><div><span style="font-size:12.8px"><i> insmod ext2</i></span></div><div><span style="font-size:12.8px"><i> <span class="gmail-Apple-tab-span" style="white-space:pre"> </span>#onie_entry_start</i></span></div><div><span style="font-size:12.8px"><i> set root='USB0' </i></span></div><div><span style="font-size:12.8px"><i><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>set isofile='USB0'/onie-recovery-x86_64-accton_as7512_32x-r0.iso</i></span></div><div><span style="font-size:12.8px"><i><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>loopback loop $isofile</i></span></div><div><span style="font-size:12.8px"><i> <span class="gmail-Apple-tab-span" style="white-space:pre"> </span>linux (loop)/live/vmlinuz $ONIE_CMDLINE_LINUX boot_reason=embed install_url=file:///lib/onie/onie-updater</i></span></div><div><span style="font-size:12.8px"><i> <span class="gmail-Apple-tab-span" style="white-space:pre"> </span> initrd (loop)/live/initrd.xz</i></span></div><div><span style="font-size:12.8px"><i> <span class="gmail-Apple-tab-span" style="white-space:pre"> </span>#onie_entry_end</i></span></div><div><span style="font-size:12.8px"><i>}</i></span></div></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am getting below error,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b><i>error: file `/boot/grub/i386-coreboot/loopback.mod' not found</i></b></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Actually, my ONIE .iso has<b> i386-PC</b>, not <b>i386-coreboot</b>. But GRUB is looking for<b> i386-coreboot</b>. </div><div style="font-size:12.8px">I am trying to solve this issue. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Dhanasekar</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 16, 2017 at 1:22 PM, Zoran Stojsavljevic <span dir="ltr"><<a href="mailto:zoran.stojsavljevic@gmail.com" target="_blank">zoran.stojsavljevic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">To simplify your tests...<div><br></div><div>If you have enough space on your /boot on your HDD, you can do the following:</div><div><br></div><div>[1] Copy your ONIE-live-XYZ.iso (or whatever the true name is) there from USB stick to /boot partition;</div><div><br></div><div>[2] Simplify the grub.cfg script like this:</div><div><br></div><div><span class=""><div style="font-size:12.8px">menuentry "ONIE: Embed ONIE" --class gnu-linux --class onie {</div><div style="font-size:12.8px"> echo "ONIE: Embedding ONIE ..."</div><div style="font-size:12.8px"> onie_entry_start</div></span><div style="font-size:12.8px"> set root='hd0,msdos1' ## hd0 is your HDD, 1 is /boot -> /dev/sda1)</div><div style="font-size:12.8px"> set isofile=/ONIE-live-XYZ.iso ## or whatever your ONIE... .iso image is named</div><span class=""><div style="font-size:12.8px"> loopback loop $isofile</div><div style="font-size:12.8px"> <b><i><u><font color="#ff0000">linux (loop)/live/vmlinuz</font></u></i></b> $ONIE_<wbr>CMDLINE_LINUX boot_reason=embed install_url=file:///lib/onie/o<wbr>nie-updater</div><div style="font-size:12.8px"> <b><i><u><font color="#ff0000">initrd (loop)/live/initrd.xz</font></u></i></b></div><div style="font-size:12.8px"> onie_entry_end</div></span></div><div><br></div><div>If this does work, U R Cool. But you need to have at least size of ~ 2GB for /boot (assuming your .iso is no more than ~1.5 GB in size).</div><div><br></div><div>This is why I ALWAYS assign to /boot (/dev/sda1) NO LESS that 2GB in space! ;-)</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Zoran</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 3:37 PM, Dhanasekar Jaganathan <span dir="ltr"><<a href="mailto:jdhanasekarmca@gmail.com" target="_blank">jdhanasekarmca@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Zoran,<div><br></div><div>Thanks for the info.</div><div><br></div><div>With previously attached grub.cfg + Vendor BIOS, I can able to install ONIE from USB.</div><div>But with Coreboot + GRUB2 + previously attached grub.cfg, I am unable to install ONIE from USB. </div><div><br></div><div>I am going to try your changes, I will let you know. </div><div><br></div><div>Thanks,</div><div>Dhanasekar</div></div><div class="m_-7804682102146907580HOEnZb"><div class="m_-7804682102146907580h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 6:51 PM, Zoran Stojsavljevic <span dir="ltr"><<a href="mailto:zoran.stojsavljevic@gmail.com" target="_blank">zoran.stojsavljevic@gmail.com</a><wbr>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Dhanasekar,<div><br></div><div>This, I guess, is not (entirely) correct:</div><div><br></div><div><div>menuentry "ONIE: Embed ONIE" --class gnu-linux --class onie {</div><div> echo "ONIE: Embedding ONIE ..."</div><div> onie_entry_start</div><div> <b><i><u>linux /vmlinuz</u></i></b> $ONIE_CMDLINE_LINUX boot_reason=embed install_url=file:///lib/onie/o<wbr>nie-updater</div><div> <b><i><u> initrd /initrd.xz</u></i></b></div><div> onie_entry_end</div></div><div><br></div><div>You should have something similar to the following:<br></div><div><br></div><div><div>menuentry "ONIE: Embed ONIE" --class gnu-linux --class onie {</div><div> echo "ONIE: Embedding ONIE ..."</div><div> onie_entry_start</div><div> set root='hdX,msdosY' ## hdX is your USB stick, Y partition, U R booting from, U should find going to GRUB2 monitor (with > prompt)</div><div> set isofile=/<dir path>/ONIE-live-XYZ.iso ## or whatever your ONIE... .iso image is named</div><div> loopback loop $isofile</div><div> <b><i><u><font color="#ff0000">linux (loop)/live/vmlinuz</font></u></i></b> $ONIE_CMDLINE_LINUX boot_reason=embed install_url=file:///lib/onie/o<wbr>nie-updater</div><div> <b><i><u><font color="#ff0000">initrd (loop)/live/initrd.xz</font></u></i></b></div><div> onie_entry_end</div></div><div><br></div><div>Please, investigate a bit more using <a href="http://google.com" target="_blank">google.com</a>! And let us know if you did solve the problem (post the final grub2 menyentry which works for you).</div><div><br></div><div>Hope this helps to the whole community. ;-)</div><div><br></div><div>Zoran</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-7804682102146907580m_-3977064000634948410h5">On Thu, Jun 15, 2017 at 2:33 PM, Dhanasekar Jaganathan <span dir="ltr"><<a href="mailto:jdhanasekarmca@gmail.com" target="_blank">jdhanasekarmca@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-7804682102146907580m_-3977064000634948410h5"><div dir="ltr">Hi Nico,<div><br></div><div>Sorry, It is typo. I have tried with <b>configfile (usb0)/boot/grub/grub.cfg</b> only.. </div><div><br></div><div>with a new <b>boot/grub/grub.cfg</b>, I am getting following error,</div><div><br></div><div><b><i>error: file '/vmlinuz' not found.</i></b></div><div><b><i><br></i></b></div><div><b><i>error: you need to load the kernel first. </i></b></div><div><br></div><div><br></div><div>FYR, I have attached /boot/grub/grub.cfg(which is present in USB). </div><div><br></div><div>Thanks,</div><div>Dhanasekar</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="m_-7804682102146907580m_-3977064000634948410m_-7152126827285707823HOEnZb"><div class="m_-7804682102146907580m_-3977064000634948410m_-7152126827285707823h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 4:59 PM, Nico Huber <span dir="ltr"><<a href="mailto:nico.h@gmx.de" target="_blank">nico.h@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15.06.2017 07:31, Dhanasekar Jaganathan wrote:<br>
> Hi Nico/Taiidan,<br>
><br>
> After entering "*syslinux_configfile (*", when I press *TAB, I* I am not<br>
<span>> seeing anything (nothing is coming)..<br>
><br>
</span>> So, I have tried this command *"syslinux_configfile<br>
> (usb0)/boot/grub/grub.cfg" *and got the error (Kernel without label).<br>
<br>
Read what Taiidan wrote carefully:<br>
<span><br>
>>>> also configfile (ahci0,msdos1)/grub2/grub.cfg to load a grub cfg<br>
<br>
</span>For a grub.cfg, it's a plain *configfile* (not syslinux_configfile).<br>
<br>
Nico<br>
<span><br>
><br>
> My USB ONIE installers has following files,<br>
><br>
</span>> */initrd.xz*<br>
><br>
> */vmlinuz*<br>
><br>
> */boot/<a href="http://boot.cat" rel="noreferrer" target="_blank">boot.cat</a> <<a href="http://boot.cat" rel="noreferrer" target="_blank">http://boot.cat</a>>*<br>
><br>
> */boot/eltorito.img*<br>
><br>
> */boot/grub/gurb.cfg*<br>
><br>
> */boot/i386-PC/ *.mod (Lot of .mod files)*<br>
<div class="m_-7804682102146907580m_-3977064000634948410m_-7152126827285707823m_-3891632859363329643HOEnZb"><div class="m_-7804682102146907580m_-3977064000634948410m_-7152126827285707823m_-3891632859363329643h5">><br>
><br>
> Thanks,<br>
> Dhanasekar<br>
><br>
><br>
><br>
> On Thu, Jun 15, 2017 at 5:01 AM, Nico Huber <<a href="mailto:nico.h@gmx.de" target="_blank">nico.h@gmx.de</a>> wrote:<br>
><br>
>> Hi Dhanasekar,<br>
>><br>
>> On 14.06.2017 11:21, Dhanasekar Jaganathan wrote:<br>
>>> Hi Taiidan,<br>
>>><br>
>>> My USB ONIE installers don't have "isolinux/syslinux.cfg". It has<br>
>>> "boot/grub/grub.cfg".<br>
>>><br>
>>> When I try to run "syslinux_configfile (usb0)/boot/grub/grub.cfg" in GRUB<br>
>>> command line, I am getting "*kernel without label*" error.<br>
>>><br>
>>> Please provide your commands<br>
>><br>
>> Taiidan already told you the correct command name (33 lines below). You<br>
>> might have missed it ;)<br>
>><br>
>> Nico<br>
>><br>
>>><br>
>>> Thanks,<br>
>>> Dhanasekar<br>
>>><br>
>>> On Wed, Jun 14, 2017 at 3:22 AM, <a href="mailto:Taiidan@gmx.com" target="_blank">Taiidan@gmx.com</a> <<a href="mailto:Taiidan@gmx.com" target="_blank">Taiidan@gmx.com</a>><br>
>> wrote:<br>
>>><br>
>>>> On 06/13/2017 10:22 AM, Dhanasekar Jaganathan wrote:<br>
>>>><br>
>>>> Hi All,<br>
>>>>><br>
>>>>> I am trying to install ONIE from USB which has ONIE installer.<br>
>> Actually, I<br>
>>>>> am using GRUB2 as a payload. If Coreboot display list of bootable<br>
>>>>> device,I<br>
>>>>> can select USB which will install a OS in the hard disk. As I<br>
>> understood<br>
>>>>> that Coreboot won't display list of available bootable device (not like<br>
>>>>> vendor bios).I don't know how to give control to bootable USB or boot a<br>
>>>>> bootable USB by coreboot. Can you please help me on this?.<br>
>>>>><br>
>>>>><br>
>>>>> Thanks,<br>
>>>>> Dhanasekar<br>
>>>>><br>
>>>> Assuming you are booting a standard linux distro iso:<br>
>>>> syslinux_configfile (*TAB* to see what is available<br>
>>>><br>
>>>> then simply for instance syslinux_configfile (usb0,msdos1)/isolinux/<br>
>> syslinux.cfg<br>
>>>> (or w/e)<br>
>>>><br>
>>>> also configfile (ahci0,msdos1)/grub2/grub.cfg to load a grub cfg<br>
>>>><br>
>>>> Ideally you would add a grub cfg to the coreboot image that does<br>
>> something<br>
>>>> like load a config file from a specified local disk so that it is easy<br>
>> to<br>
>>>> update (ie: no re-flashing) instructions for that are on the wiki.<br>
>>>><br>
>>>> SeaBIOS would provide the classic AMI style F12 selection menu, but I<br>
>>>> don't like it due to how many times I have accidentally enabled option<br>
>> rom<br>
>>>> execution by forgetting to include the configuration file.<br>
>>>><br>
>>><br>
>>><br>
>>><br>
>><br>
>><br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></div><br></div></div><span class="m_-7804682102146907580m_-3977064000634948410HOEnZb"><font color="#888888">--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
<a href="https://mail.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://mail.coreboot.org/mail<wbr>man/listinfo/coreboot</a><br></font></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>