• FOG Project Image Capture on Raspberry Pi 4 (ARM64) via U-Boot

    Unsolved FOG Problems
    15
    0 Votes
    15 Posts
    177 Views
    Tom ElliottT

    @Jeremy Last time I told you FOG’s server had no U-Boot support and your two
    options were to keep hand-rolling it or put UEFI firmware on the Pi. That’s no
    longer true - I built the server side. It’s merged into working-1.6 as of
    1.6.0-beta.4318, so update and you’ll have it.

    There’s a new endpoint:

    http://<fogserver>/fog/service/uboot/boot.php?mac=<the Pi's MAC>

    It answers with an extlinux.conf-style document, computed live from the
    database. If the host has a task queued you get kernel/initrd/append for FOS;
    if it doesn’t, you get localboot and U-Boot falls through to the disk. Fetch it
    with curl first - the whole thing is plain text and readable, which is the
    point.

    On the Pi:

    dhcp setenv pxefile_addr_r 0x02000000 wget ${pxefile_addr_r} http://<fogserver>/fog/service/uboot/boot.php?mac=${ethaddr} pxe boot ${pxefile_addr_r}

    Use pxe boot, not sysboot. Every extlinux example you’ll find online shows
    sysboot, and it’s wrong here - sysboot reads a config off a filesystem on a
    block device, so it can’t see what wget just put in memory and does nothing
    visible. That’s the one I’d expect to catch people out.

    This should also fix your truncation. “Unknown request type :: Null” was $type
    arriving empty because your bootargs were being cut short, and I pointed at
    U-Boot’s command buffer rather than the kernel. pxe boot doesn’t go through
    that buffer - it parses the append line out of the loaded file straight into
    bootargs, so the ceiling you were hitting isn’t in the path any more. Worth
    confirming, since I’m reasoning about your build rather than looking at it.

    Two deliberate omissions, both because they’re properties of your board and not
    of FOG:

    FOG serves no device tree. No fdt or fdtdir directive, so you keep the tree at
    ${fdtcontroladdr} - the one VideoCore just built for the exact board revision
    it’s running on, which is better than anything I could serve you. Load
    addresses stay yours for the same reason.

    And FOG writes no pxelinux.cfg files. The endpoint is stateless: the board asks
    by MAC and gets an answer out of the database, so there’s nothing on disk to
    drift from what’s actually queued and nothing to clean up when a task finishes.

    One thing to check before you start: if your FOG install has netboot set to
    HTTPS, none of this will work. U-Boot’s wget is HTTP-only with no TLS at all,
    so it can’t even fail a certificate check - the redirect just ends the boot with
    nothing on screen. The installer now exempts service/uboot/ from the HTTP-to-
    HTTPS redirect the same way it does service/ipxe/, but only when netboot is
    configured for HTTP in the first place.

    Full write-up is in docs/UBOOT_ARM_BOOT.md in the repo.

    Being straight about what this is: the emitted config is pinned byte-for-byte
    by tests and the decisions behind it are the same code the iPXE path runs, so I
    know FOG emits what I intended. What I can’t tell you is that a real U-Boot
    consumes it, because nobody here has a Pi. You’re the only person who can prove
    that, and if it’s wrong I’d rather hear it than not.

  • FOG Secure Boot with Shim

    Tutorials
    28
    2 Votes
    28 Posts
    14k Views
    K

    @jmeyer The first screenshot, I can’t really say what’s wrong beyond for some reason, shim either immediately exits or doesn’t start so the EFI instead moves onto the next boot option which is IPv6.

    The second one, MOK.DER is being loaded, but mokmanager itself (which does the enrolling) is failing to load. Exec format error is usually caused either by trying to load a binary built for the wrong architecture (e.g arm on an x86 CPU) or when you have Secure Boot enabled, but the binary you’re trying to load isn’t signed by one of the keys enrolled in the firmware.

    So, for the second one, double check that you have the Microsoft keys enrolled in the firmware, or try it with secureboot off and see if that fixes it.

    I’m not quite sure what to suggest for the first one, other than maybe try network booting with secureboot off to the standard snponly.efi binary.

  • iPXE build failing

    Unsolved FOG Problems
    7
    0 Votes
    7 Posts
    70 Views
    Tom ElliottT

    @astrugatch Okay thanks and sorry there was that issue.

    Can you pull and try installing again?

    Thank you!

  • Failed to Update Database and Host

    Unsolved FOG Problems
    22
    0 Votes
    22 Posts
    249 Views
    Tom ElliottT

    @maxcarpone I would ask you, if you’re daring/willing (it’s considered beta but uses the same pipeline with a lot more modern ui, I need people testing, and Fog_newb can likely attest the new ui look and feel though I think they ran into an issue and needed to get functional right away so the snapshotted back)

    Upgrade to working-1.6.

    I have a goal (along with @JJ-Fullmer ) to try to get working-1.6 to be master/stable branch by October.

    1.6 has been “stagnant” since around 2017 and was in relatively stable grounds back then even.

    With AI (as you undoubtly can see I’m using to help drive some things) it’s allowed us to get a lot more coding/refactoring and will hopefully present a much better experience of things on the UI side. Without testing I cannot fix UI bugs though.

    AI can do some cool things, but it doesn’t know what “wrong/right” looks like, and JJ and I are only 2 people.

    There are others on working-1.6 but more feedback is always good.

  • Fog - Supported OS

    Unsolved FOG Problems
    3
    0 Votes
    3 Posts
    81 Views
    J

    Thank you Tom, I got updated to Working-1.6beta.4105 and that issue is fixed. Not sure if it is just this particular install or not.

    Some Issues I am noticing is Host registration is not showing up whether from the fog menu or the client. I can see it is trying but does not appear to be writing to sql.

    36f170d3-0a3b-4de3-b327-4233bc53534b-image.png

    Deployment: Getting invalid mac errors it seems on all devices. The task seems to be populating alright.

    No viable macs to use

  • 0 Votes
    1 Posts
    20 Views
    No one has replied
  • Fog driver injection in 2026.

    Tutorials
    9
    0 Votes
    9 Posts
    139 Views
    P

    OK that makes sense. This got me going for driver deployment. Thank you for your help!

  • 1.5.10.2328 - Failed to check in. Going back to 2294, all good.

    Solved FOG Problems
    5
    0 Votes
    5 Posts
    147 Views
    F

    @Tom-Elliott Thanks Tom. 1.5.10.2344 seems to be capturing fine. No additional null tasks were created and the PC had no problem checking in and starting the capture.

    I’d swear, not only with this version but the earlier ones that were malfunctioning during check in and creating additional tasks, I had to create the task twice. Like I went through the process of setting up a capture but nothing showed up under tasks then had to do it again.

    I can’t seem to duplicate it though. Setting up a 2nd capture for the laptop, I only had to do it once (and no additional null tasks were created).

    PC finished the capture no problem and laptop checked in and is capturing now. Looks like 2344 did it!

    Thanks again.

  • 0 Votes
    3 Posts
    63 Views
    E

    Resolved. I’m sharing FOG with as many people as I can. Love this project!

  • Regenerate certificate on each installation.

    Unsolved FOG Problems
    2
    0 Votes
    2 Posts
    67 Views
    M

    And I can’t add any hosts—whether via the web interface or by booting over the network—; ultimately, the new host doesn’t appear in the database…

    Failed to query: Error: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `fog`.`moduleStatusByHost`.`msHostID` at row 1 Error Message: Error Code: "22007", Error Message: ["22007",1366,"Incorrect integer value: '' for column `fog`.`moduleStatusByHost`.`msHostID` at row 1"], Debug: SQL: [629] INSERT INTO `moduleStatusByHost` (`msHostID`,`msModuleID`,`msState`) VALUES (:hostID_0,:moduleID_0,:state_0),(:hostID_1,:moduleID_1,:state_1),(:hostID_2,:moduleID_2,:state_2),(:hostID_3,:moduleID_3,:state_3),(:hostID_4,:moduleID_4,:state_4),(:hostID_5,:moduleID_5,:state_5),(:hostID_6,:moduleID_6,:state_6),(:hostID_7,:moduleID_7,:state_7),(:hostID_8,:moduleID_8,:state_8),(:hostID_9,:moduleID_9,:state_9),(:hostID_10,:moduleID_10,:state_10),(:hostID_11,:moduleID_11,:state_11),(:hostID_12,:moduleID_12,:state_12) ON DUPLICATE KEY UPDATE `msHostID`=VALUES(`msHostID`),`msModuleID`=VALUES(`msModuleID`),`msState`=VALUES(`msState`)
  • REFInd-Initializing - hangs

    FOG Problems
    43
    0 Votes
    43 Posts
    27k Views
    D

    Just fyi, I resolved my issues with this by turning off DMA protection in the bios/uefi.

  • Image copy hangs at start of copy - PXE boot OK

    Unsolved FOG Problems
    5
    0 Votes
    5 Posts
    125 Views
    T

    @Tom-Elliott I did update to version 1.6.2254 and the first multicast that worked was the first one I tried after the upgrade. This second one is now hanging like the one that prompted this thread.

    Where in the logs can I find any clues?

  • From /images/dev to /images issue

    Unsolved FOG Problems
    5
    0 Votes
    5 Posts
    309 Views
    C

    Encountered the same issue, version: 1.5.10

    I can successfully capture the image and then see the size of it in the web panel but then it’s not being moved to /images/ by fog. Requiring me to move them manually which works but I’m kinda concerned.

    FTP works fine even though I am afraid I don’t understand why I need FTP to move some files inside a directory on a singular server.

  • atheros ipxe woes "No configuration method succeeded"

    Unsolved FOG Problems
    3
    0 Votes
    3 Posts
    112 Views
    C

    @Tom-Elliott thanks Tom - using the excellent fog-docker from 88fingerslukee - so will wait to hear his response

  • How to upgrade to FOG 1.6?

    General
    10
    0 Votes
    10 Posts
    366 Views
    Tom ElliottT

    @Valer This should be fixed in latest/greatest

  • Will not PXE boot when in Windows 10

    Unsolved Windows Problems
    2
    0 Votes
    2 Posts
    82 Views
    V

    What version of FOG are you running?

  • FOG 1.6 own plugin

    General
    2
    0 Votes
    2 Posts
    157 Views
    Tom ElliottT

    @Valer I think we need to understand what this plugin is doing.

    CSS isn’t something we’ve allowed to be injectable though it could be.

    You can still use your own CSS but that’s more at the FOG Configuration -> FOG Setting -> FOG_THEME, but you would need to put it on your server in a location you type the path too here.

    https://docs.fogproject.org/en/latest/development/plugin-development

    This is a good toolkit for understanding how to build your own plugin.

  • Upgraded from FOG 1.5.9 to 1.5.10.1903 and having issues

    Unsolved FOG Problems
    28
    0 Votes
    28 Posts
    2k Views
    Tom ElliottT

    @Strahd Have you been able to make progress?

  • 0 Votes
    3 Posts
    251 Views
    L

    @Tom-Elliott Hi, Yes with the proposed fix, it works now.

  • 0 Votes
    3 Posts
    200 Views
    E

    @Tom-Elliott
    The fix worked perfectly! The menu issue is now resolved.

    Thanks for the support!