2015-10-13 10:12:26 -07:00
|
|
|
# LK
|
2013-02-09 13:25:38 -08:00
|
|
|
|
2015-06-25 14:31:13 -07:00
|
|
|
The LK embedded kernel. An SMP-aware kernel designed for small systems.
|
|
|
|
|
|
|
|
|
|
See travisg/lk for the latest version.
|
|
|
|
|
|
2015-10-13 10:12:26 -07:00
|
|
|
## to build and test for ARM on linux
|
2015-06-25 14:31:13 -07:00
|
|
|
|
2015-10-13 10:12:26 -07:00
|
|
|
1. install or build qemu. v2.4 and above is recommended.
|
2015-06-25 14:31:13 -07:00
|
|
|
2. install gcc for embedded arm (see note 1)
|
2015-10-13 10:12:26 -07:00
|
|
|
3. run scripts/do-qemuarm (from the lk directory)
|
2015-06-25 14:31:13 -07:00
|
|
|
4. you should see 'welcome to lk/MP'
|
|
|
|
|
|
|
|
|
|
This will get you a interactive prompt into LK which is running in qemu
|
2015-10-13 10:12:26 -07:00
|
|
|
arm machine 'virt' emulation. type 'help' for commands.
|
2015-06-25 14:31:13 -07:00
|
|
|
|
2015-10-13 10:12:26 -07:00
|
|
|
note 1: for ubuntu:
|
2015-06-25 14:31:13 -07:00
|
|
|
sudo apt-get install gcc-arm-none-eabi
|
2015-10-13 10:12:26 -07:00
|
|
|
or fetch a prebuilt toolchain from
|
|
|
|
|
http://newos.org/toolchains/arm-eabi-5.2.0-Linux-x86_64.tar.xz
|