Git Product home page Git Product logo

qemu-arm-rpi-kernel's Introduction

makefile and resources for building the raspberry pi fork of the linux kernel 
for use with qemu and the arch linux raspberry pi image.

this was all derived from the tutorial at http://xecdesign.com/compiling-a-kernel/.

arch linux notes:
  * config: CONFIG_CGROUPS=y
  * config: CONFIG_VFAT_FS=y
  * config: CONFIG_NLS_CODEPAGE_437=y
  * config: CONFIG_NLS_ISO8859_1=y
  * reference: github.com/johnlane/rpi-utils
  * disk image: fstab must be changed; s/\/dev\/mmcblk0p1/\/dev\/sda1/
  * note: systemd fails to start kernel modules target; im not sure if this is a problem.

boot command line for arch linux:
~~~
qemu-system-arm -cpu arm1176 -m 256 -M versatilepb \
	-no-reboot -nographic \
	-kernel kernel-qemu-arm.gz -append "root=/dev/sda2 panic=2 console=ttyAMA0 rw" \
	-hda <disk image> \
	-net nic -net user,hostfwd=tcp::9999-:22
~~~


resizing raw disk image partition/filesystem:
~~~
qemu-img resize <disk.img> <N>G
fdisk <disk.img>
~~~
delete partition and create new partition of the same type and starting at the same block.
~~~
sudo losetup -o $((<block start> * <block size>)) -f <disk.img>
sudo file -s /dev/loop0
sudo resize2fs /dev/loop0
sudo losetup -d /dev/loop0
~~~

converting raw disk image to qcow2 format:
`qemu-img convert -p -f raw -O qcow2 <disk.img> <disk.qcow2>`


qemu-arm-rpi-kernel's People

Watchers

 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.