similar to: Lua.c32 wiki page

Displaying 20 results from an estimated 10000 matches similar to: "Lua.c32 wiki page"

2016 Feb 19
6
Building a http query string including SMBIOS Serial Number to load a specific kernel
Hello folks, There is a way to get the system serial number from SMBIOS and pass it as HTTP query string to get the kernel and initrd? Something like this: LABEL OS Download MENU LABEL Clonezilla MENU INDENT 1 KERNEL http://192.168.10.10/kernel.php?type=kernel ( http://myserver/kernel.php?SN=SMBIOS_SERIAL_NUMBER&type=kernel )&SN=SMBIOS_SERIAL_NUMBER APPEND
2011 May 09
3
Lua.c32 - user input / scripting
I'm trying to get this bit of code to work with the lua.c32 interpreter: --- sample, the goal is to build a script that will allow me to enter a 4digit mt and load the bios iso accordingly print ("enter machine type :") mt = io.read() print ("you entered...",mt) doStuff() if (mt == "8141") then syslinux.run_command("memdisk
2008 Sep 24
1
VPD information, macros and syslinux
Hi, I would be very interested in a possibility to create variables or macros within syslinux. One of the things I would like to have is a way to query DMI/VPD information, and use that as kernel parameters or to influence eg menu's or boot labels (based on system information). One of those very specific needs is to get the MAC address of the first onboard interface (which is available
2014 Sep 25
1
localboot.lua: a lua.c32 script that uses DMI data to decide between localboot/chainloading
Hi, we use PXELINUX in our product to show a boot menu on client computers, with options like "Boot from local hard disk", "Install Windows", etc. Unfortunately, a lot of computers seem to have broken BIOSes and won't boot with the LOCALBOOT command, and need to be booted with chain.c32 instead. We also have encountered some computers where it works only the other way -
2014 Nov 10
1
pxelinux 6.03 lua module not loading syslinux.c32 dmi.c32 etc
I'm running pxelinux configured to use the path /bios on the tftp server for all the comboot files. The problem is dmi,syslinux,vesa etc modules are not being loaded in lua. Syslinux.version() returns not found in global index as does dmi.supported() For k,v in pairs(package.loaded) do print (k,v) end; shows that these modules that are normally loaded by lua are not loading. I got an idea
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
From: Hung-chi Lihn <hlihn at google.com> In the current Lua.c32 DMI implementation, it is a flat table with dotted names in table entries. It also misses a number DMI sub-tables. This patch, cleans up the DMI table structure using Lua's nested table structure and adds all missing DMI sub-tables. If a DMI sub-table is not supported by the hardware (not filled), then the corresponding
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi, This series targets automatic boot menu generation, but most of it is the Lua upgrade, because I got tired reading deprecated API docs. It's mostly a straightforward forward port of the earlier Syslinux specific changes to Lua 5.1, except that: * I chose the add a stub getenv() implementation to the COM32 API instead of #ifdefing out all the references in Lua, and * I kept oslib
2011 Mar 21
1
LUA scripting in syslinux
Hi, Can we for syslinux 4.05 look to improve the LUA scripting functionality ? Functionality we are looking for is: - accessing filesystem (ext2, fat) - alternatively, access network services (tftp, ftp, http) - creating menu's from LUA - alternatively, generating and reloading syslinux.cfg The use-case would be to create a lua-script that, on boot, can scan eg. a
2016 Dec 24
1
lua.c32 : run_command() does not work if ALLOWOPTIONS from menu is set to 0
Good day, If I set allowoptions to 0 to hide editing menu entries and then select to run lua.c32 from menu , run_command() from inside the script it seems to invoke kernel/com32 modules without any parameter. For example pxechn.c32 will never be happy no matter what the command line is. But if you set allowoptions to 1 everything starts to work as expected, except the menu itself.
2010 Jul 04
1
Merge LUA branch of Marcel Ritter
Since Syslinux 4.01-pre2, lua is the master branch. This lua.c32 moudule doesn't support much. There is a much recent lua.c32, made by Marcel Ritter's: http://syslinux.zytor.com/archives/2009-October/013383.html The last time he wrote about the state of his lua branch: ============================================================ The current state is: - VESA: - switching to vesa mode
2008 Dec 10
0
[PATCH 2/2] COM32: lua - add dmi library
Hi again, this is the second part of the patch extending lua. This time it adds the dmi functions (com32/modules/dmi*) to lua: dmi.supported(): returns true if DMI is supported dmi.gettable(): returns array of key, value pairs containing system info Sorry, but this patch does not apply cleanly if [PATCH 1/2] was applied before. There's just one line to fix in com32/lua/src/linit.c
2008 Dec 10
1
[PATCH 1/2] COM32: lua - add syslinux library
Hi, the attached patch adds a new call to lua (patch is against latest lua branch): syslinux.run_command(...) It's just a little glue to call syslinux_run_command() from lua. Other syslinux functions should be easy to add. usage: syslinux.run_command("memdisk initrd=/dos/BIOS/FSC-P7935-108.img raw") Bye, Marcel -------------- next part -------------- A non-text attachment
2014 Jun 04
3
lua and other modules in 6.03-pre
The following are new Lua c32 modules in 6.03-pre*: cmenu.c32: cpu.c32: dhcp.c32: dmi.c32: lfs.c32: pci.c32: syslinux.c32: vesa.c32: I am wondering whether the following modules, which are _not_ new and are also included in 6.03-pre*, have _any_ relation either to the above list or to Lua: cpuid.c32: cpuidtest.c32: dmitest.c32: pcitest.c32: vesainfo.c32: TIA, Ady.
2010 Aug 28
0
LUA script to emulate PXE boot on USB
Hello Here is an attempt to reproduce PXE-like booting (having different config per MAC address) on other bootable media (ex : USB) It's a lua script that analyze dmi information and load a config file. As MAC address is not available in DMI (no driver has been loaded), selection is made by UUID, serial, product, manufacturer. Otherwise, default.cfg is loaded It can be usefull to have a USB
2008 Dec 12
4
[PATCH 1/1] COM32: lua - enable (parts of) liolib
Hi again, the attached patch (re-)enables parts of lua's liolib.c, especially io.write() for formatted output (similar to printf() ): Example: -- define printf() function printf = function(s,...) return io.write(s:format(...)) end -- function printf("Hallo, this is hex %04x\n", 64321) Bye, Marcel -------------- next part -------------- A non-text
2011 Oct 04
1
Added DHCPINFO Tables to the lua.c32 Implementation - syslinux-4.04
Greetings All. We wanted to be able to parse the DHCP values and options and write a lua script based on the information found. We are also using the CPU flags, but thankfully in at least version 4.04 there is already some CPU value parsing even if it isn't documented. Using the information from the CPU table we wanted to be able to choose the kernel to boot. Using the DHCP table
2011 Dec 09
2
FOSDEM 2012
Hi, Probably too late for the main tracks, but it would be nice to see a syslinux-related presentation at FOSDEM 2012. There are a few tracks where syslinux fits in (Configuration and Systems Management, Embedded, Distribution ?) so it shouldn't be hard to get one or more slots. I enjoyed Peter's presence two years ago and it lead to an uptake of the project (I remember Erwan
2014 Jun 30
2
lua not working on syslinux-6.03-pre18
I've upgraded from syslinux-4.05 to syslinux-6.03-pre18 (pre11 was the same) and am having some issues getting lua.c32 to work. I'm using lpxelinux.0 if that's relevant. My boot file and the contents of default.lua are below. As you can see they are fantastically simple. Essentially I'm just using lua to put the results of ipappend in the right place on the command line. The
2012 Sep 19
1
[PATCH 1/1] lua: Enabling io.read() in Lua.c32 with some restrictions
From: Hung-chi Lihn <hlihn at google.com> The current Lua.c32 does not enable io.read() due to some missing library functions. However, this strongly limits the Lua script from getting user inputs and reading files (even in pxelinux via TFTP). This patch enables io.read() in Lua.c32 with some restrictions: 1. the io.read("*line") is fully supported. 2. the
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
ldisk.c32 is a Lua module that provides information about disks to Lua scripts The example script com32/lua/test/detect_disks.lua uses it to implement some- thing akin to 'disk.c32'. The name 'ldisk.c32' was chosen to avoid a name-clash with 'disk.c32'. --- com32/lua/src/Makefile | 1 + com32/lua/src/ldisk.c | 103