kendallgoto / ilo4_unlock

A toolkit for patching HPE's iLO 4 Firmware with access to previously inaccessible utilities
GNU General Public License v3.0
357 stars 46 forks source link

"Segmentation fault" error when running the flash_ilo4 tool on Ubuntu Live. #21

Closed marcandrer closed 8 months ago

marcandrer commented 8 months ago

I've tried to patch 2 servers (HP DL160 G8 & DL360 G9). Both servers gave me the same "Segmentation fault" error when running the "sudo ./flash_ilo4 --direct" command. I tried running it from Ubuntu Live CD 21.10 and the latest Ubuntu Live CD version.

I'm not sure if this could affect anything, but I ran the build.sh scripts from WSL - Windowos Subsystem for Linux (Ubuntu distro). I got the BIN file properly patched, as far as I can tell.

Is there any other way to install the patched BIN?

Thank you!

kendallgoto commented 8 months ago

hi @marcandrer - were you able to solve this? if so, can you share more details in case it comes up for someone else? I haven't heard of this issue before.

marcandrer commented 8 months ago

@kendallgoto, I'm not sure what my issue was, but downloading the already patched 2.77 firmware from a reddit post, then downloading CP027911.scexe, and manually extracting the files with "sh ./CP027911.scexe --unpack=ilo_250" fixed the issue.

I don't remember getting any errors when I ran the "build.sh" scripts in WSL, so I'm not sure why that wasn't working.

Porting everything to Python 3 might really help as I found it is getting really hard to install anything Python 2 related.

kendallgoto commented 8 months ago

OK - thanks for sharing. sorry for the troubles on the python scripts; it's on the todo list lately.

marcandrer commented 8 months ago

Awesome, thank you for your work on this :)