forked from prplfoundation/qemu
-
Notifications
You must be signed in to change notification settings - Fork 7
LiteBSD Example
Serge Vakulenko edited this page Jan 21, 2015
·
1 revision
Files:
- boot-wifire.hex - bootloader image for chipKIT WiFire board
- vmunix.hex - kernel of LiteBSD operating system for WiFire board
- litebsd.img - filesystem image for LiteBSD (download and unzip)
- Sources
Run LiteBSD on on WiFire board:
/usr/local/qemu-mips/bin/qemu-system-mipsel -machine pic32mz-wifire \
-nographic \
-monitor none \
-serial vc \
-serial vc \
-serial vc \
-serial stdio \
-bios boot-wifire.hex \
-kernel vmunix.hex \
-sd litebsd.img
Result:
Board: chipKIT WiFire
Processor: microAptivP
RAM size: 512 kbytes
Load file: 'boot-wifire.hex', 6916 bytes
Load file: 'vmunix.hex', 522408 bytes
Card0 image 'litebsd.img', 339969 kbytes
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
4.4BSD-Lite build 13 compiled 2015-01-20
sergev@ubuntu-sergev:LiteBSD/sys/compile/WIFIRE.pic32
cpu: PIC32MZ2048ECG100 rev A4, 200 MHz
oscillator: system PLL div 1:6 mult x50
real mem = 512 kbytes
avail mem = 344 kbytes
using 18 buffers containing 73728 bytes of memory
spi1 at pins sdi=D14/sdo=C1/sck=D1
spi2 at pins sdi=F0/sdo=D11/sck=G6
spi3 at pins sdi=B10/sdo=C4/sck=B14
spi4 at pins sdi=F5/sdo=G0/sck=D10
uart1 at pins rx=F1/tx=D15, interrupts 112/113/114
uart4 at pins rx=F2/tx=F8, interrupts 170/171/172, console
sd0 at port spi3, pin cs=C3
sd0: type I, size 339968 kbytes, speed 12 Mbit/sec
sd0a: partition type b7, sector 2, size 204800 kbytes
sd0b: partition type b8, sector 409602, size 32768 kbytes
sd0c: partition type b7, sector 475138, size 102400 kbytes
bpf: sl0 attached
bpf: lo0 attached
WARNING: preposterous clock chip time -- CHECK AND RESET THE DATE!
starting file system checks.
/dev/rsd0a: file system is clean; not checking
starting network
clearing /tmp
standard daemons: update.
Wed Dec 10 21:06:39 PST 2014
4.4BSD-Lite (bsd.net) (tty4)
login: root
Last login: Wed Dec 10 21:06:36 on tty4
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
4.4BSD-Lite UNIX #1: Fri Apr 01 00:00:00 PDT 1994
Welcome to 4.4BSD-Lite!
erase ^H, kill ^U, intr ^C status ^T
Don't login as root, use the su command.
# ps alx
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND
0 0 0 0 -18 0 0 0 schedu DLs ?? 0:00.01 (swapper)
0 1 0 0 10 0 172 0 wait Ss ?? 0:00.05 /sbin/init
0 2 0 3 -18 0 0 0 - RL ?? 0:00.14 (pagedaemon)
0 28 1 0 18 0 20 0 pause Ss ?? 0:00.00 update
0 35 1 1 10 0 244 52 wait Ss 4 0:00.15 -sh (sh)
0 37 35 0 28 0 200 88 - R+ 4 0:00.02 (ps)
# halt -q
syncing disks... done
halted