@@ -45,99 +45,16 @@ are: `busybox`, `openssl`, `curl` and `azure_sdk`.
45
45
[ Here] ( https://github.com/phoenix-rtos/phoenix-rtos-doc/blob/master/building/script.md ) you can find more about
46
46
building scripts.
47
47
48
- Next, you will need an internet connection. Here is an example of how to set up a network connection on
49
- ` ia32-generic-qemu ` :
48
+ Next, you will need an internet connection.
49
+ [ Here] ( ../quickstart/ia32-generic-qemu.md#network-setup-on-ia32-generic-qemu )
50
+ is an example of how to set up a network connection on ` ia32-generic-qemu ` .
50
51
51
- ## Network setup on ia32-generic-qemu
52
+ - To complete the configuration please set the current date using ` date ` applet, like below:
52
53
53
- - Note: This guide was tested on ` Ubuntu 20.04 LTS ` host OS.
54
+ ![ Image ] ( _images/azure_date.png )
54
55
55
- There are few steps to follow:
56
-
57
- 1 . Create and set up ` vibr0 ` bridge on a host using ` qemu-bridge-helper ` :
58
-
59
- - Install the required package and ensure that ` libvirtd ` is running:
60
-
61
- ``` console
62
- sudo apt-get update
63
- sudo apt-get install qemu-system-common
64
- systemctl enable libvirtd.service
65
- systemctl start libvirtd.service
66
- ```
67
-
68
- - Start the default network bridge, and configure it to run on startup.
69
-
70
- ```console
71
- sudo virsh net-autostart --network default
72
- sudo virsh net-start --network default
73
- ```
74
-
75
- - After that verify that the IP range `192.168.122.1/24` is reported by the `vibr0` bridge:
76
-
77
- ```console
78
- ip addr show virbr0
79
- ```
80
-
81
- - The expected output:
82
-
83
- ```console
84
- virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
85
- link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
86
- inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
87
- valid_lft forever preferred_lft forever
88
- ```
89
-
90
- - Set up `qemu-bridge-helper` (`chmod` is used here to allow running QEMU without root privileges)
91
-
92
- ```console
93
- echo "allow virbr0" > /etc/qemu/bridge.conf
94
- sudo chmod a+rw /etc/qemu/bridge.conf
95
- ```
96
-
97
- - If `/etc/qemu` directory does not exist, create it and provide required privileges:
98
-
99
- ```console
100
- sudo mkdir /etc/qemu
101
- sudo chmod a+rw /etc/qemu
102
- echo "allow virbr0" > /etc/qemu/bridge.conf
103
- sudo chmod a+rw /etc/qemu/bridge.conf
104
- ```
105
-
106
- 
107
-
108
- - Sources: <https://apiraino.github.io/qemu-bridge-networking/>,
109
- <https://mike42.me/blog/2019-08-how-to-use-the-qemu-bridge-helper-on-debian-10>
110
-
111
- 2. Launch `qemu` using a starting script with `net` suffix:
112
-
113
- ```console
114
- ./scripts/ia32-generic-qemu-net.sh
115
- ```
116
-
117
- 3. Configure network and run `ash` (Busybox applet) using `rc` script:
118
-
119
- - Note: By default `IP` is assigned using `DHCP`. For other possibilities please check the configuration file
120
- located in `_projects/ia32-generic-qemu/rootfs-overlay/etc/rc.conf.d/network`
121
-
122
- - Note: There are other programs executed by the script. For more information please check the content of the `rc`
123
- file for `ia32-generic-qemu` in `_projects/ia32-generic-qemu/rootfs-overlay/etc/rc`
124
-
125
- ```console
126
- /linuxrc
127
- ```
128
-
129
- - As you can see, the advanced version of `Phoenix-RTOS` with `POSIX` shell has been started:
130
-
131
- 
132
-
133
- - Now you can check the internet connection using the `ping` applet.
134
-
135
- - To complete the configuration please set the current date using `date` applet, like below:
136
-
137
- 
138
-
139
- - Note: The required argument entered after `@` is EPOCH (POSIX time format) - you can gt it for example from
140
- [here](https://www.epochconverter.com/).
56
+ - Note: The required argument entered after ` @ ` is EPOCH (POSIX time format) - you can gt it for example from
57
+ [ here] ( https://www.epochconverter.com/ ) .
141
58
142
59
## Running the IoThub Client sample
143
60
0 commit comments