[PATCH v5 5/5] ieee1275: ofpath enable NVMeoF logical device translate

2025-04-29 Thread Avnish Chouhan
This patch adds code to enable the translation of logical devices to the of NVMeoFC paths. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/osdep/linux/ofpath.c | 415 +-- include/grub/util/ofpath.h | 28

[PATCH v5 4/5] ieee1275: add support for NVMeoFC

2025-04-29 Thread Avnish Chouhan
This patch implements the functions to scan and discovery of NVMeoFC. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-core/disk/ieee1275/ofdisk.c | 397 +-- 1 file changed, 298 insertions(+), 99 deletions(-) diff --git a

[PATCH v5 2/5] ieee1275: implement FCP methods for WWPN and LUNs

2025-04-29 Thread Avnish Chouhan
This patch enables the fcp-targets and fcp-luns methods which are responsible to get WWPNs and LUNs for fibre channel devices. Those methods are specially necessary if the boot directory and grub installation are in different FCP disks, allowing the dev_iterate() to find the WWPNs and LUNs when ca

[PATCH v5 1/5] ieee1275/powerpc: implements fibre channel discovery for ofpathname

2025-04-29 Thread Avnish Chouhan
grub-ofpathname doesn't work with fibre channel because there is no function currently implemented for it. This patch enables it by prividing a function that looks for the port name, building the entire path for OF devices. Signed-off-by: Diego Domingos Signed-off-by: Avnish Chouhan --- grub-co

[PATCH v5 3/5] ieee1275: change the logic of ieee1275_get_devargs()

2025-04-29 Thread Avnish Chouhan
Usually grub will parse the PFW arguments by searching for the first occurence of the character ':'. However, we can have this char more than once on NQN. This patch changes the logic to find the last occurence of this char so we can get the proper values for NVMeoFC Signed-off-by: Diego Domingo

[PATCH v5 0/5] NVMeoFC support on Grub

2025-04-29 Thread Avnish Chouhan
This patch series adds support of NVMeoFC on grub. It consists of five patches. Patch 1/5 (0001-ieee1275-powerpc-implements-fibre-channel-discovery-.patch): grub-ofpathname doesn't work with fibre channel because there is no function currently implemented for it. This patch enables it by prividing