Jump to content











Photo
- - - - -

Syslinux module ifplop.c32: check if PLoP is already loaded


  • Please log in to reply
3 replies to this topic

#1 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 11 June 2010 - 03:46 PM

In the attachment, you can find a COM32 for Syslinux (ifplop.c32), which detects if PLoP has booted an USB stick or a CDROM drive (INT13 hook present).

An example of a syslinux.cfg, which shows the possibilities of the ifplop.c32 module:
default plopcheck



# Check for the presence of PLoP (run by default)

#   When PLoP INT13 hook is found, run the first label

#   When PLoP INT13 hook isn't found, run the second label

label plopcheck

	com32 ifplop.c32

	append plop_detected -- plop_not_detected



# When PLoP INT13 hook was found, boot the menu system.

# PLoP can have added USB2.0 speed, so the entries we want to boot

# will be read from disk much faster (supposing that we have a BIOS

# that only supports USB1.1 speed).

label plop_detected

	com32 menu.c32

	append syslinux.cfg



# PLoP INT13 hook wasn't found, so we boot PLoP

label plop_not_detected

	linux plpbt.bin
You need to install Syslinux 3.86 (COM32 modules should match the Syslinux version number).

Cross-reference: http://forum.plop.at...opic,165.0.html

Attached Files



#2 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 15 June 2010 - 09:47 PM

Support for the use of full commands (allow spaces) instead of labels only:
LABEL plopcheck

	COM32 ifplop.c32

	APPEND menu.c32 another.cfg -- plpbt.bin hiddenusb usb1=2
To pass 'hiddenusb usb1=2' to PLoP you need v5.0.11-test2 or later:
http://www.boot-land...iew=getlastpost

Source code: http://git.zytor.com...fed132301257dfc

Attached Files



#3 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 04 July 2010 - 11:40 PM

ifplop.c32 is now included in syslinux-4.01.

#4 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 12 July 2010 - 10:37 PM

Wiki page for ifplop.c32:
http://syslinux.zyto....php/Ifplop.c32




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users