Changes between Version 15 and Version 16 of Developer/Simulators/QEMU/CANEmulation


Ignore:
Timestamp:
Jun 17, 2013, 9:32:30 AM (6 years ago)
Author:
Jinyang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Simulators/QEMU/CANEmulation

    v15 v16  
    181181= Linux-QEMU environment =
    182182
    183 In this section, the environment is based on QEMU-1.4.0, linux-3.4.48, busybox-1.21.0 and Ubuntu 13.04. You can get those source file from their offical website.
    184 
    185 # Build the Linux kernel
    186 
    187 
    188 
     183In this section, the environment is based on QEMU-1.4.2, linux-3.4.48, busybox-1.21.0 and Ubuntu 13.04. You can get those source file from their offical website.
     184
     185 *  Build the Linux kernel
     186You can build through a default configration.
     187   make i386_defconfig
     188   make bzImage
     189However, this will waste a lot of time on compiling and running something which we do not need. So, we build a minimal kernel through the following commands.
     190   make allnoconfig
     191   make menuconfig
     192   make bzImage
     193In the 'make menuconfig' step we will chose
     194   - Bus options (PCI etc.)
     195     - PCI support
     196       - PCI Express support
     197       -   Root Port Advanced Error Reporting support
     198   - Executable file formats / Emulations
     199     - Kernel support for ELF binaries
     200   - Device Drivers
     201     - SCSI device support
     202       - SCSI disk support
     203       - SCSI generic support
     204     - Serial ATA and Parallel ATA drivers
     205       - ATA SFF support
     206         - ATA BMDMA support
     207           - Intel ESB, ICH ,PIIX3, PIIX4 PATA/SATA support
     208     - Character devices
     209       - Serial drivers
     210         - 8250/16550 and compatible serial support
     211         - Console on 8250/16550 serial ports
     212    - File systems
     213     - Ext3 journalling file system support
     214
     215 *  Build a root file system
     216This can be done through the following commands.
     217   dd if=/dev/zero of=rootfs.img bs=1024 count=80000
     218   mkfs.ext3 rootfs.img
     219   mkdir rootfs
     220   sudo mount -t ext3 -o loop rootfs.img rootfs
     221   cd rootfs
     222   mkdir dev proc sys
     223   ...... and some config files.
     224
     225 *  Build the basic commands through busybox
     226   make defconfig
     227   make menuconfig
     228   make
     229   make install CONFIG_PREFIX=~/qemu/rootfs
     230
     231 *  Start qemu
     232   qemu-system-i386 -s kernel bzImage -hda rootfs.img -append "root=/dev/sda init=/sbin/init"
     233If you want to see what has displayed to screen, you can use
     234   qemu-system-i386 -s kernel bzImage -hda rootfs.img -serial file:./linux-start.log \
     235   -append "root=/dev/sda init=/sbin/init console=ttyS0"
    189236= Adding Qemu to the RTEMS Source Builder =
    190237