• Re: New Lenovo M75s don’t Connect to FOG
    I have also several lenovo M75s-1. And to do appear the fog menu, i write in the option 67 of my DHCP “snponly.efi”.
    Thanks to that, i can now see the fog menu when i boot on my network card in uefi. But when i want to upload the image of this computer or to register my computer on the fog, i have this error message :
    “Could not select: Exec format error (http://ipxe.org/2e008081)”
    I tried to change the kernel but nothing change.
    Can you help me ?
    (fog version : 1.5.9 / kernel: 4.19.143 arm64)

  • Senior Developer

    @amirbfc said in Lenovo M75s-1 boot on uefi:

    “Could not select: Exec format error (http://ipxe.org/2e008081)”

    Is secure boot disabled in the UEFI settings?

  • Moderator

    @amirbfc You know a ryzen processor may be breaking some of the fog code. Do you have time for a test?

    What I’m thinking, there is logic in the /tftpboot/default.ipxe file that first gets called with iPXE loads.

    This is what the default code looks like

    cpuid --ext 29 && set arch x86_64 || set arch ${buildarch}
    param mac0 ${net0/mac}
    param arch ${arch}
    param platform ${platform}
    param product ${product}
    param manufacturer ${product}
    param ipxever ${version}
    param filename ${filename}
    param sysuuid ${uuid}
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    chain http://<fog_server_ip>/fog/service/ipxe/boot.php##params

    This line right here I think is a problem

    cpuid --ext 29 && set arch x86_64 || set arch ${buildarch}

    That queries a specific cpu register to find out if the target computer is x86 or x64. I found out when testing imaging with raspberry pi that of course that command is not available for cortex ARM processors. When that is not set right then inside fog code it thinks its a x86 intel computer.

    I outline the issues I found with ARM processors here: https://forums.fogproject.org/topic/14959/raspberry-pi-4-unable-to-pxe-boot

    So if you have time I would like to see what iPXE thinks about this ryzen processor.

  • @george1421
    It was the soluce. I installed the kernel 5.6.18 and it runs if i put snponly.efi in my dhcp.
    I have only this problem with the M75S-1. I have others lenovo like the M75q-1. I must put ipxe.efi in dhcp to download or upload an image with the same kernel.
    Perhaps is it because they have ryzen processor ?
    But, thanks for the quick answer.

  • Moderator

    @amirbfc Upgrade your FOS Linux kernel to 5.6.18 under FOG Configuraiton -> Kernel menu. Install both the x64 and x32 bit kernels. The 4.19.x series of kernels is probably missing the driver.

    But looking at the error message you posted it says it doesn’t understand the kernel or the initrd format. (I would still upgrade to 5.6.18 anyway). Does other uefi based computers boot with your current configuraiton and just the M75s don’t? I’m questioning if your FOG setup is broken or its just the M75s that are broken.