EEPROM: Difference between revisions

From OpenComputers: Rebooted
Jump to navigation Jump to search
m SoraFirestorm moved page Item/EEPROM to EEPROM without leaving a redirect: Page has been unified
Remove redundant link to component page
 
Line 2: Line 2:


[[File:items_eeprom.png|128px]]
[[File:items_eeprom.png|128px]]
'''Provides:''' [[Component/EEPROM|EEPROM]] component.


The EEPROM stores up to 8KiB of plain binary data and is used by an architecture to boot a computer. For example, the Lua architecture expects this to contain a script that is run as the first thing when the computer is powered up. The default Lua BIOS (which can be crafted) will look for file systems containing an <code>init.lua</code> file and run that. Custom BIOSes could be written that boot off of network devices, for example.
The EEPROM stores up to 8KiB of plain binary data and is used by an architecture to boot a computer. For example, the Lua architecture expects this to contain a script that is run as the first thing when the computer is powered up. The default Lua BIOS (which can be crafted) will look for file systems containing an <code>init.lua</code> file and run that. Custom BIOSes could be written that boot off of network devices, for example.

Latest revision as of 21:15, 14 October 2026

Overview

The EEPROM stores up to 8KiB of plain binary data and is used by an architecture to boot a computer. For example, the Lua architecture expects this to contain a script that is run as the first thing when the computer is powered up. The default Lua BIOS (which can be crafted) will look for file systems containing an init.lua file and run that. Custom BIOSes could be written that boot off of network devices, for example.

The EEPROM is crafted using the following recipe:

The EEPROM (Lua BIOS) is crafted using the following recipe:

Component API

Component name: eeprom. Callbacks:

get

get():string

Get the currently stored byte array.

set

set(data:string)

Overwrite the currently stored byte array.

getLabel

getLabel():string

Get the label of the EEPROM.

setLabel

setLabel(data:string)

Set the label of the EEPROM.

getSize

getSize():number

Gets the maximum storage capacity of the EEPROM.

getDataSize

getDataSize():number

Gets the maximum data storage capacity of the EEPROM.

getData

getData():string

Gets currently stored byte-array (usually the component address of the main boot device).

setData

setData(data:string)

Overwrites currently stored byte-array with specified string.

getChecksum

getChecksum():string

Gets Checksum of data on EEPROM.

makeReadonly

makeReadonly(checksum:string):boolean

Makes the EEPROM Read-only if it isn't. This process cannot be reversed.

Contents

Items
Components Data Card - Debug Card - Graphics Card - Internet Card - Linked Card - Network Card - Redstone Card - Wireless Network Card
Storage Devices Floppy Disk - EEPROM - Hard Disk Drive - Memory
Upgrades Angel Upgrade - Battery Upgrade - Chunkloader Upgrade - Database Upgrade - Experience Upgrade - Generator Upgrade - Hover Upgrade - Inventory Controller Upgrade - Inventory Upgrade - Leash Upgrade - Navigation Upgrade - Piston Upgrade - Sign I/O Upgrade - Solar Generator Upgrade - Tank Upgrade - Tank Controller Upgrade - Tractor Beam Upgrade
Containers Card Container - Upgrade Container - Disk Drive
Others Analyzer - Texture Picker - Component Bus - CPU - APU - Drone Case - Manual - Microcontroller Case - Nanomachines - Remote Terminal - Terminal Server - Server - Tablet Case - Tablet - Crafting Materials - Ink Cartridge - Scrench - Hover Boots - Grog - Loot Disks