Skip to content

Commit

Permalink
[docs] Update how-to-build-runtime-tizen-gbs-rpi4.md (#9077)
Browse files Browse the repository at this point in the history
It updates howto document about tizen-rpi4 expecially the section for
setting ip on boot automatically.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
  • Loading branch information
glistening committed May 2, 2022
1 parent 06a21b9 commit 50fc63a
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions docs/howto/how-to-build-runtime-tizen-gbs-rpi4.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,34 +174,26 @@ $ vi j2/etc/systemd/system/ip.service
and set as like:
```
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/bin/sh /bin/ip.sh
ExecStart=/bin/sh -c "ifconfig eth0 192.168.x.y netmask 255.255.255.0 up"
[Install]
WantedBy=multi-user.target
```
Replace 192.168.x.y to your actual ip address.

(5-3) Add a new file
```
$ vi j2/bin/ip.sh
```
and set with IP address for your RPi4:
```
ifconfig eth0 192.168.x.y netmask 255.255.255.0 up
```
where you should update `192.168.x.y` part to your actual IP address.

(5-4) Add a symbolic link
(5-3) Add a symbolic link
```
$ sudo mkdir -p j2/etc/systemd/system/multi-user.target.wants/
$ pushd j2/etc/systemd/system/multi-user.target.wants/
$ sudo ln -s ../../system/ip.service .
$ popd
```

(5-5) Now that every thing is ready, unmount and unplug your memory card and plug into
(5-4) Now that every thing is ready, unmount and unplug your memory card and plug into
RPi4, turn on the power.
```
$ sync
Expand Down

0 comments on commit 50fc63a

Please sign in to comment.