summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--targets/via/epia/Config.512kflash.linuxtiny.lb21
-rw-r--r--util/buildrom/buildrom.c6
2 files changed, 25 insertions, 2 deletions
diff --git a/targets/via/epia/Config.512kflash.linuxtiny.lb b/targets/via/epia/Config.512kflash.linuxtiny.lb
new file mode 100644
index 0000000000..8056fb3ed5
--- /dev/null
+++ b/targets/via/epia/Config.512kflash.linuxtiny.lb
@@ -0,0 +1,21 @@
+# Sample config file for EPIA
+# This will make a target directory of ./epia.512kflash
+
+target epia.512kflash.linuxtiny
+mainboard via/epia
+
+option ROM_SIZE=524288
+option FALLBACK_SIZE=ROM_SIZE
+option MAXIMUM_CONSOLE_LOGLEVEL=10
+option DEFAULT_CONSOLE_LOGLEVEL=10
+
+romimage "fallback"
+ option USE_FALLBACK_IMAGE=1
+ option ROM_IMAGE_SIZE=64*1024
+ option LINUXBIOS_EXTRA_VERSION=".0Fallback"
+# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf
+# payload ../../../../tg3--ide_disk.zelf
+ payload /tmp/linux.elf
+end
+
+buildrom ./linuxbios.rom ROM_SIZE "fallback"
diff --git a/util/buildrom/buildrom.c b/util/buildrom/buildrom.c
index 9dde492d0f..36c2443d78 100644
--- a/util/buildrom/buildrom.c
+++ b/util/buildrom/buildrom.c
@@ -64,8 +64,10 @@ int main(int argc, char *argv[])
if (fstat(payloadfd, &payloadbuf) < 0)
fatal("stat of infile");
- if (payloadbuf.st_size > (romsize - size))
- fatal("payload + linuxbios size larger than ROM size!\n");
+ if (payloadbuf.st_size > (romsize - size)){
+ fprintf(stderr, "payload (%d) + linuxbios (%d) size larger than ROM (%d) size!\n", payloadbuf.st_size, size, romsize);
+ exit(1);
+ }
cp = malloc(romsize);
if (!cp)