Changes between Version 46 and Version 47 of Developer/Simulators/QEMU/CANEmulation


Ignore:
Timestamp:
Aug 14, 2013, 9:50:27 AM (6 years ago)
Author:
C Rempel
Comment:

/* Starting Custom Qemu */

Legend:

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

    v46 v47  
    318318    -net tap,vlan=0,ifname=tap0,script=~/qemu/ifup-qemu
    319319
    320 This can be done through the following commands.
    321    mkdir ~/qemu
    322    cd ~/qemu
    323    ~/qemu$ dd if=/dev/zero of=rootfs.img bs=1024 count=80000
    324    ~/qemu$ mkfs.ext3 rootfs.img
    325    ~/qemu$ mkdir rootfs
    326    ~/qemu$ sudo mount -t ext3 -o loop rootfs.img rootfs
    327    ~/qemu$ cd rootfs
    328    ~/qemu/rootfs$ mkdir dev proc sys
    329    ...... and some config files. <!-- please list config files -->
    330 
    331 
    332 
    333  *  Start qemu
    334    qemu-system-i386 -s -kernel bzImage -hda rootfs.img -append "root=/dev/sda init=/sbin/init"
    335 If you want to see what has displayed to screen, you can use
    336    qemu-system-i386 -s -kernel ~/linux-3.4.48/arch/i386/boot/bzImage \
    337    -hda ~/qemu/rootfs.img \
    338    -serial file:./linux-start.log \
    339    -append "root=/dev/sda init=/sbin/init console=ttyS0"
    340 
    341320The above is an OLD one. You can get some newer update at [http://jin-yang.github.io/2013/07/24/build-minimal-linux-environment.html JinYang's Blog].
    342321=  Running the Example  =