• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. SotY
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 10
    • Groups 0

    SotY

    @SotY

    1
    Reputation
    1
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    SotY Unfollow Follow

    Best posts made by SotY

    • RE: Quick Registration and Invenotry not working

      @christop I will try to test each version since 1.5.10.1660 to see when problem starts for me

      btw. newerssl.com is down now so scripts hangs at “Testing internet connection”. Easiest to fix for now is to remove this site from functions.sh

      edit: so I was able to test 1.5.10.1667 and 1.5.10.1673 so far and both work correctly. I will test more tomorrow and update.

      posted in FOG Problems
      S
      SotY

    Latest posts made by SotY

    • RE: Quick Registration and Invenotry not working

      @Tom-Elliott

      So f144ad5 is the last working commit. In case anyone else have the same problem, this is my script to grab it and modify so it works fine with EFI keyboard in some PCs as discussed here: https://forums.fogproject.org/topic/17870/fog-ipxe-menu-no-input. It also removes neverssl.com site because it’s down now so script hangs on checking internet connection. Don’t mind main sed part, it’s probably overcomplicated since I used ChatGPT for it, but it works fine so who cares 😉

      #!/bin/bash
      
      # Checkout last working FOG project commit
      cd git
      git clone https://github.com/FOGProject/fogproject.git
      cd fogproject
      git checkout f144ad5a30bdab23be4d207b471ca80057e367fd
      
      # Modify functions.sh to remove non working neverssl.com site
      cd ~/git/fogproject/lib/common
      sed -i 's+http_sites=("neverssl.com" "httpbin.org")+http_sites=("httpbin.org")+g' functions.sh
      
      # Modify buildipxe.sh to grab last working ipxe commit and fix EFI USB drivers
      cd ~/git/fogproject/utils/FOGiPXE
      
      cat > transform_buildipxe.sed <<'SED'
      /^[[:space:]]*git pull$/a\
        git checkout 6cccb3bdc00359068c07125258d71ce24db5118a
      
      /^  cd \${BASE}\/ipxe\/src\/$/c\
        cd \${BASE}/ipxe/\
        git checkout 6cccb3bdc00359068c07125258d71ce24db5118a\
        cd \${BASE}/ipxe/src/
      
      /^  cd \${BASE}\/ipxe-efi\/src\/$/c\
        cd \${BASE}/ipxe-efi/\
        git checkout 6cccb3bdc00359068c07125258d71ce24db5118a\
        cd \${BASE}/ipxe-efi/src/
      
      /^sed -i 's+#define[[:space:]]*USB_HCD_USBIO+\/\/\#define[[:space:]]*USB_HCD_USBIO+g' config\/usb\.h$/c\
      sed -i 's+#define<----->USB_HCD_USBIO+//#define>USB_HCD_USBIO+g' config/usb.h
      
      /^sed -i 's+\/\/\#define[[:space:]]*USB_HCD_USBIO+\#define[[:space:]]*USB_HCD_USBIO+g' config\/usb\.h$/, /^sed -i 's+\/\/\#undef[[:space:]]*USB_EFI+\#undef[[:space:]]*USB_EFI+g' config\/usb\.h$
      #sed -i 's+//#define\tUSB_HCD_USBIO+#define\tUSB_HCD_USBIO+g' config/usb.h\
      #sed -i 's+//#undef\tUSB_KEYBOARD+#define\tUSB_KEYBOARD+g' config/usb.h\
      #sed -i 's+//#undef\tUSB_EFI+#undef\tUSB_EFI+g' config/usb.h\
      sed -i 's+//#define+#define+g' config/usb.h\
      sed -i 's+#define USB_CMD+//#define USB_CMD+g' config/general.h
      SED
      
      sed -i -f transform_buildipxe.sed buildipxe.sh
      rm -f transform_buildipxe.sed
      
      # Start FOG install/update
      cd ~/git/fogproject/bin
      ./installfog.sh
      
      posted in FOG Problems
      S
      SotY
    • RE: Quick Registration and Invenotry not working

      @Tom-Elliott said in Quick Registration and Invenotry not working:

      @SotY I know roughly when the error was introduced (1.5.10.1748) and I even know where it’s happening, what I don’t always know is the why.

      You are right. Last one working correctly that is available at github is 1.5.10.1734. 1.5.10.1751 doesn’t work.

      It seems like the host nmed TEST was created/updated? I don’t see history showing it as successfully created, but maybe there’s just no history log of new host creation.

      TEST was created manually from web GUI just to check if it’s working that way. It seems that history does not contain anything related to hosts registrations from ipxe, only from web. I tested this on both working and not working versions and neither have anything in history.

      posted in FOG Problems
      S
      SotY
    • RE: Quick Registration and Invenotry not working

      @christop I will try to test each version since 1.5.10.1660 to see when problem starts for me

      btw. newerssl.com is down now so scripts hangs at “Testing internet connection”. Easiest to fix for now is to remove this site from functions.sh

      edit: so I was able to test 1.5.10.1667 and 1.5.10.1673 so far and both work correctly. I will test more tomorrow and update.

      posted in FOG Problems
      S
      SotY
    • RE: Quick Registration and Invenotry not working

      @Tom-Elliott

      It’s definitely something with new FOG’s version code itself. I started update from 1.5.10.1660 to 1.5.10.1754 and tried to register host before installation script started ipxe compilation, when it asks to update database schema and waiting for enter, it failed. I also tried to use old fos by replacing all files in service/ipxe from version 1.5.10.1660 and it also failed to register new host.

      posted in FOG Problems
      S
      SotY
    • RE: Quick Registration and Invenotry not working

      @Tom-Elliott said in Quick Registration and Invenotry not working:

      @SotY Can you get into your mariadb/mysql and run:

      select * from history;

      I suspect there’s some inventory item expected thati"M just missing.

      | 223 | [2026-02-04 17:38:37] HookEvent ID: 170 NAME: USER_FIELDS has been successfully updated.                                 | admin | 2026-02-04 17:38:37 | 172.22.4.10   |
      | 224 | [2026-02-04 17:38:37] HookEvent ID: 171 NAME: USER_EDIT has been successfully updated.                                   | admin | 2026-02-04 17:38:37 | 172.22.4.10   |
      | 225 | [2026-02-04 17:38:37] HookEvent ID: 172 NAME: USER_PW_EDIT has been successfully updated.                                | admin | 2026-02-04 17:38:37 | 172.22.4.10   |
      | 226 | [2026-02-04 17:38:37] HookEvent ID: 173 NAME: USER_API_EDIT has been successfully updated.                               | admin | 2026-02-04 17:38:37 | 172.22.4.10   |
      | 227 | [2026-02-04 17:38:37] HookEvent ID: 174 NAME: USER_EDIT_EXTRA has been successfully updated.                             | admin | 2026-02-04 17:38:37 | 172.22.4.10   |
      | 228 | [2026-02-04 18:11:15] Host ID: 8 NAME: TEST has been successfully updated.                                               | admin | 2026-02-04 18:11:15 | 172.22.4.10   |
      | 229 | [2026-02-04 18:11:15] MACAddressAssociation ID: 24 has been successfully updated.                                        | admin | 2026-02-04 18:11:15 | 172.22.4.10   
      

      That’s all there is from today when I noticed this problem. I rolled back to version 1.5.10.1660 that I had before and quick registration of the same PC works fine on it.

      posted in FOG Problems
      S
      SotY
    • Quick Registration and Invenotry not working

      So quick registration is not working on latest 1.5.10.1754 version. Everything looks good and process completes fine, but host is not added into inventory. Adding host trough “Perform Full Host Registration and Inventory” menu or manually trough web GUI both work fine.

      fog.png

      posted in FOG Problems
      S
      SotY
    • RE: Fog iPXE Menu no input

      There are multiple new problems related to this issue.

      First one is buildipxe.sh script and ipxe with commits after 01/14/26. It does not enable USB_HCD_USBIO correctly.:

      sed -i 's+//#define     USB_HCD_USBIO+#define   USB_HCD_USBIO+g' config/usb.h
      sed -i 's+//#undef      USB_KEYBOARD+#define    USB_KEYBOARD+g' config/usb.h
      sed -i 's+//#undef      USB_EFI+#undef  USB_EFI+g' config/usb.h
      

      but it doesn’t work correctly with latest ipxe source files because of the tabs. It should be:

      sed -i 's+//#define USB_HCD_USBIO+#define USB_HCD_USBIO+g' config/usb.h
      sed -i 's+#undef USB_KEYBOARD+#define USB_KEYBOARD+g' config/usb.h
      

      USB_EFI is already defined in the source, so last sed is not needed.

      But after fixing this and compiling, keyboard does not work anyway. There were significant commits to ipxe source on 1/15/26. They changed usb.h along with defaults. I was able to make it work again by going back to 6cccb3bdc00359068c07125258d71ce24db5118a commit, enabling USB_HCD_USBIO in usb.h and disabling “#define USB_CMD” in general.h that FOG uses (without this it won’t compile giving error about multiple definition of `usbio_driver’).

      posted in FOG Problems
      S
      SotY
    • RE: Fog iPXE Menu no input

      @Tom-Elliott said in Fog iPXE Menu no input:

      @SotY The files of console.h/general.h/settings.h were updated 2 - 4 months ago. I don’t think anything here is the cause of the failure. I’ve attempted building and am seeing the same error.

      This leads me to think something changed with ipxe code particularly surrounding USB_HCD_USBIO and efi built binaries. It seems the efi builder has a native compiler point for it’s own USBIO that’s being constructed separately from the “common” source.

      If you just build the binaries without the USBIO configured, does it break things? I know you found a fix and wanted to try it, but it seems mcb30 (main developer of ipxe) made a change that seems to make the usbio drivers act differently in the past. What those changes were, I do not know at this time.

      I am more surprised, in my quick review of things, that this even worked before as the components I see erroring haven’t change significantly.

      If I change the usbio_driver line to efi_usbio_driver in the drivers/usb/usbio.c file, and re-run the builder, things build successfully. (Including the ncm–ecm-axge.).

      If that works, I can put my diff file and copy it with the build script but I’m scared something I’m doing in the driver/usb/usb.c file might be unintentionally making things worse (not better) even though I’m getting successful builds now.

      I have config files from previous version and all 3 were changed. I just narrowed it down to changes in general.h file. Compiling with USB_HCD_USBIO enabled works fine when using previous general.h and new console.h and settings.h files. I need more time to find out which change broke it. These are the changes:

      ------------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
                                                       -+ #define	NET_PROTO_EAPOL		/* EAP over LAN protocol */
                                                          #define NET_PROTO_LLDP	    /* Link Layer Discovery protocol */
      ------------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
                                                       -+  * 802.1x EAP authentication methods
                                                           *
                                                           */
                                                          #define EAP_METHOD_MD5		/* MD5-Challenge port authentication */
                                                          //#define EAP_METHOD_MSCHAPV2	/* MS-CHAPv2 port authentication */
      
                                                          /*
      ------------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
                                                       -+ #define	IMAGE_ZLIB		/* ZLIB image support */
                                                          #define	IMAGE_GZIP		/* GZIP image support */
                                                          //#define	IMAGE_UCODE		/* Microcode update image support */
      ------------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
                                                       -+ #define FORM_CMD		/* Form commands */
      ------------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
                                                       -+ //#define IMAGE_CRYPT_CMD	/* Image encryption management commands */
      ------------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
      #define PARAM_CMD		/* Form parameter commands */ <> #define PARAM_CMD		/* Request parameter commands */
      ------------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
                                                       -+ #define IMAGE_MEM_CMD		/* Read memory command */
                                                          #define IMAGE_ARCHIVE_CMD	/* Archive image management commands */
                                                          #define SHIM_CMD		/* EFI shim command (or dummy command) */
                                                          #define USB_CMD		/* USB commands */
                                                          //#define FDT_CMD		/* Flattened Device Tree commands */
      
                                                          /*
                                                           * Certificate sources
                                                           *
                                                           */
                                                          //#undef CERTS_EFI		/* EFI certificate sources */
      ------------------------------------------------------------------------------------------------------------------------
      

      It’s weird, git shows the last update for general.h on May 11, but I installed FOG on June 10 and that’s when I did git clone and back then the files were different than they are now. These are the files I got on June 10:

      console.h: https://pastebin.com/wmy449T0
      general.h: https://pastebin.com/GUyqbY3F
      settings.h: https://pastebin.com/Ta738Fmn

      posted in FOG Problems
      S
      SotY
    • RE: Fog iPXE Menu no input

      @SotY said in Fog iPXE Menu no input:

      I’m new to FOG and this is an issue I also faced from the beggining. We have multiple Lenovo tiny computers: M710q, M910q, M70q gen 2, M70q gen 3 and usb keyboard is not working in iPXE menu for any of them when booting in EFI mode. Everything is fine when booting in bios mode.

      I found this discussion on iPXE project github: https://github.com/ipxe/ipxe/discussions/308
      After recompiling iPXE binaries with define>USB_HCD_USBIO uncommented keyboard started working for all in EFI mode. I used FOG build script but had to modify it a little bit. Compilation of ncm–ecm–axge.efi fails when USB_HCD_USBIO is enabled, but I won’t use it, so I just disabled compilation of it. All other images compile just fine. I also modified make to use all available cpu cores to make compilation faster. This is modified script: https://pastebin.com/9ViJBATg

      After upgrading FOG from release 1.5.10.1660 to release 1.5.10.1667 iPXE images won’t compile with USB_HCD_USBIO enabled. I didn’t dig deep yet, but it seems that changes in console.h, general.h or settings.h that script use causes this.

      posted in FOG Problems
      S
      SotY
    • RE: Fog iPXE Menu no input

      I’m new to FOG and this is an issue I also faced from the beggining. We have multiple Lenovo tiny computers: M710q, M910q, M70q gen 2, M70q gen 3 and usb keyboard is not working in iPXE menu for any of them when booting in EFI mode. Everything is fine when booting in bios mode.

      I found this discussion on iPXE project github: https://github.com/ipxe/ipxe/discussions/308
      After recompiling iPXE binaries with define>USB_HCD_USBIO uncommented keyboard started working for all in EFI mode. I used FOG build script but had to modify it a little bit. Compilation of ncm–ecm–axge.efi fails when USB_HCD_USBIO is enabled, but I won’t use it, so I just disabled compilation of it. All other images compile just fine. I also modified make to use all available cpu cores to make compilation faster. This is modified script: https://pastebin.com/9ViJBATg

      posted in FOG Problems
      S
      SotY