Code Monkey home page Code Monkey logo

luakernel's People

Contributors

ers35 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luakernel's Issues

Persistence

Hi,

Been playing around with this for a few hours. Neat project! I wonder though, is there a way to persist files to a local file system? I've noticed that there is a syscall wrapper for open/write etc. calls, but it isn't used in the actual lua demo.

What I want to do is basically build a disk image, instead of an ISO, so files can be written/read from the "OS".

Side question: Is there a technical reason why this uses lua, instead of luajit? Could it be easily replaced?

Installation

                shutit.install('git')
                shutit.install('make')
                shutit.install('gcc')
                shutit.install('mlocate')
                shutit.install('libc6-dev-i386')
                shutit.install('lua5.2')
                shutit.send('updatedb')
                shutit.send('export CPATH=/usr/include/x86_64-linux-gnu:/usr/include')
                shutit.send('git clone https://github.com/ers35/luakernel.git')
                shutit.send('cd luakernel')
                shutit.send('make')

Running the above commands (with the shutit commands taken out) on docker ubuntu 14.04 I get this error:

./musl-custom-gcc -std=gnu99 -m64 -fno-PIC -nostdlib -nodefaultlibs -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -masm=intel -O1 -g -c init.S -o bin/initS.o
gcc -std=gnu99 -m64 -fno-PIC -nostdlib -nodefaultlibs -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -masm=intel -O1 -g -c -m32 init.c -o bin/init.o
objcopy -I elf32-i386 -O elf64-x86-64 bin/init.o bin/init.o
./generate-lua-bundle.sh
./musl-custom-gcc -std=gnu99 -m64 -fno-PIC -nostdlib -nodefaultlibs -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -masm=intel -O1 -g -c -Idep/lua-5.2.3/src -Idep/sqlite3 luakernel.c -fno-stack-protector -o bin/luakernel.o
In file included from /usr/include/libio.h:31:0,
                 from /usr/include/stdio.h:74,
                 from luakernel.c:3:
/usr/include/_G_config.h:46:20: error: unknown type name '__gnuc_va_list'
 #define _G_va_list __gnuc_va_list
                    ^
/usr/include/libio.h:44:21: note: in expansion of macro '_G_va_list'
 #define _IO_va_list _G_va_list
                     ^
/usr/include/libio.h:465:4: note: in expansion of macro '_IO_va_list'
    _IO_va_list, int *__restrict);
    ^
...

Tried fiddling with err.h includes with no success.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.