Git Product home page Git Product logo

kotleta's Introduction

Kotleta

A research project started by two drunk monkeys.

Step 1. Get source code

Step 2. Build toolchain

You will need the package named arm-linux-gnueabi-gcc on Arch Linux.

Step 3. Build the kernel

export ARCH=arm
export TARGET=arm-linux-gnueabi
export CROSS_COMPILE=arm-linux-gnueabi-

make versatile_defconfig # create default .config file
make menuconfig # or 'make gconfig'
make zImage modules

Kernel will be placed in arch/arm/boot/zImage.

OH SHIT, IT DOESN'T SEE TEH FILESYSTEM

Step 4. Build the Busybox

export ARCH=arm
export TARGET=arm-linux-gnueabi
export CROSS_COMPILE=arm-linux-gnueabi-

make defconfig
make menuconfig # or 'make gconfig'
                # Turn off RPC or compiling will fail.
                # We build it statically linked.
make
make install

Files will be placed in the _install folder.

Step 5. Build the disk image

Note: in Arch Linux, kpartx is included in package multipath-tools-git.

qemu-img create -f raw kotleta.img 1G
su # following commands require root rights
losetup -f kotleta.img
fdisk /dev/loop0
# now create one partition filling the whole disk, write it and exit fdisk
kpartx -va /dev/loop0
mkfs.ext2 /dev/mapper/loop0p1
mount /dev/mapper/loop0p1 /mnt
cp -r path/to/busybox/_install/* /mnt
sync
umount /mnt
kpartx -vd /dev/loop0
losetup -d /dev/loop0

Step 6. Run

qemu-system-arm -monitor stdio -M versatilepb -kernel path/to/zImage -drive file=path/to/kotleta.img # -append 'root=/dev/something'

kotleta's People

Contributors

m1kc avatar solkin avatar

Stargazers

Ihor avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

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.