Hi, I have a particular situation that syslinux could access a i2c bus to get some data from specific device that my hardware has. Based on these data, syslinux should or not to boot. It's feasible to create some i2c infraestructure to syslinux access i2c bus? It could be used to something more than only my needs? I digged in gpxe code and it has code to provide some i2c functionality. Thanks. -- Jo?o Henrique Ferreira de Freitas - joaohf_at_gmail.com Campinas-SP-Brasil
On 02/27/2014 07:51 AM, Jo?o Henrique Freitas wrote:> Hi, > > I have a particular situation that syslinux could access a i2c bus to get > some data from specific device that my hardware has. Based on these data, > syslinux should or not to boot. > > It's feasible to create some i2c infraestructure to syslinux access i2c > bus? It could be used to something more than only my needs? > > I digged in gpxe code and it has code to provide some i2c functionality. >I2C can be provided through an almost infinite number of controllers, and building an I2C subsystem in Syslinux would be a good step toward making it a fullblown operating system. Since we haven't had that request before, I would just do an ad hoc implementation for your needs at this time. -hpa
On Thu, 2014-02-27 at 11:49 -0800, H. Peter Anvin wrote:> On 02/27/2014 07:51 AM, Jo?o Henrique Freitas wrote: > > Hi, > > > > I have a particular situation that syslinux could access a i2c bus to get > > some data from specific device that my hardware has. Based on these data, > > syslinux should or not to boot. > > > > It's feasible to create some i2c infraestructure to syslinux access i2c > > bus? It could be used to something more than only my needs? > > > > I digged in gpxe code and it has code to provide some i2c functionality. > > > > I2C can be provided through an almost infinite number of controllers, > and building an I2C subsystem in Syslinux would be a good step toward > making it a fullblown operating system. Since we haven't had that > request before, I would just do an ad hoc implementation for your needs > at this time.Really, you should add a preemptive scheduler and protected-mode virtual memory management, and then we can do away with the need for the whole "Linux" part. :-) -- Jeff
Am 27.02.2014 20:49, schrieb H. Peter Anvin:> I2C can be provided through an almost infinite number of controllers, > and building an I2C subsystem in Syslinux would be a good step toward > making it a fullblown operating system.Why not use linux as bootloader? Booting a (rather small) linux kernel with I?C support and either shutting down or kexecing another linux kernel (plus ramdisk) might be the solution. All one needs is a busybox (statically linked against uClibc), the kernel with needed disk and network drivers baked in, a statically linked kexec and a single shell script. If Jo?o Henrique wants to take this path, I am willing to help with further details. Regards, Mattias -- Mattias Schlenker - Redaktion + EDV-Beratung + Linux-CD/DVD-Konzepte August-Bebel-Str. 74 - 04275 LEIPZIG - GERMANY Bitte fuer geschaeftliche Telefonate vorzugsweise die VoIP-Telefonnummer +49 341 39290767 verwenden, da ich diese aufs Mobiltelefon routen kann!