Step 3 : Boot the OS
In this program, you are going to learn
How to ?
Topics in this section,
Run runinit script file to boot and load the ecos application.
wifi:eCos-on-qemu$ ./runit.sh hello.elf
We need to run some things using sudo, so please enter your password.
Password:
+ sudo ip tuntap add dev tap15808 mode tap user wifi
+ sudo ifconfig tap15808 172.16.0.1/24 promisc up
+ qemu-system-i386 -net nic,model=rtl8139 -net tap,id=net0,ifname=tap15808,script=no,downscript=no -nographic -boot d -cdrom /tmp/grub-15808.iso -serial telnet:localhost:9876,server
QEMU 7.0.0 monitor - type help for more information
(qemu)
QEMU virutal application pops-up and the ecos application is booted.
Booting /hello.elf
kernel /hello.elf
[Multiboot-elf, <0x108000:0x39140:0x115838>, shtab=0x2571e0, entry=0x108000]
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device rltk8139_eth0
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x00140920)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x00140000)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done
BOOTP[eth0] op: REPLY
htype: Ethernet
hlen: 6
hops: 0
xid: 0x0
secs: 0
flags: 0x0
hw_addr: 52:54:00:12:34:56
client IP: 172.16.0.2
my IP: 172.16.0.2
server IP: 172.16.0.1
gateway IP: 172.16.0.1
options:
subnet mask: 255.255.255.0
IP broadcast: 172.16.0.255
gateway: 172.16.0.1
Hello, eCos world!
What is /.bashrc file?
See Answer
??