Giter Site home page Giter Site logo

Comments (6)

 avatar commented on September 23, 2024

from starlinux.

AwlsomeAlex avatar AwlsomeAlex commented on September 23, 2024

@protonesso At this point would I need a disk image containing the filesystem? The InitramFS isn't created to handle StarLinux without a filesystem.

from starlinux.

AwlsomeAlex avatar AwlsomeAlex commented on September 23, 2024

I found the command which will run everything to a certain point:
qemu-system-x86_64 -m 128 -kernel kernel-$KERN_VER.xz -initrd initramfs-$KERN_VER.xz -hda hdd.img -append "root=/dev/sda"
The hdd.img was generated by this command to the filesystem folder:
mkisofs -o hdd.img filesystem/

Now the problem is StarINIT tries to mount /dev/sda1 to /mnt/root, however QEMU will only mount hdd.img as /dev/sda. So I need to work on StarINIT so it can tell if it's in a QEMU Virtual Environment and if so, boot it a different way.

This will probably be completed by creating a init_qemu function in the starinit.lib that boots the system a different way than the normal init.

from starlinux.

 avatar commented on September 23, 2024

make a raw image lol not with mkisofs. also you could make a "proc command line grabber"

from starlinux.

AwlsomeAlex avatar AwlsomeAlex commented on September 23, 2024

What is this "proc command line grabber" you speak of?
And yeah a Raw Image might fix the problem completely. @protonesso

from starlinux.

AwlsomeAlex avatar AwlsomeAlex commented on September 23, 2024

Well yeah that helped making it a raw image, as mkisofs screwed up the symlinks and caused a kernel panic after manual init, but QEMU still mounts the .img as /dev/sda which my init scripts are only made to boot off of /dev/sda1. It does work after manual init.

from starlinux.

Related Issues (14)

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.