Adding new software packages to your Yocto
Build RPM package on host server (Ubuntu)
Example shows how to add program 'tree':
- Build rpm:
bitbake tree
Result will be in:
$TMPDIR/deploy/rpm/cortexa9t2hf_neon/tree-2.1.1-r0.cortexa9t2hf_neon.rpm
- Add also sudo to your system.
Install new package on target (Zybo board)
- Connect Zybo board to Ethernet (cable).
- Check if your board Zybo is connected to the Internet:
ping 8.8.8.8 64 bytes from 8.8.8.8: seq=0 ttl=113 time=27.431 ms 64 bytes from 8.8.8.8: seq=1 ttl=113 time=27.036 ms 64 bytes from 8.8.8.8: seq=2 ttl=113 time=27.192 ms
- Get board's IP address:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 42:8d:41:cc:5e:2b brd ff:ff:ff:ff:ff:ff
inet 192.168.44.124/24 brd 192.168.44.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::408d:41ff:fecc:5e2b/64 scope link
valid_lft forever preferred_lft forever
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
- Copy via SSH the RPMs from host to the Zybo board:
#[On Linux machine]: scp <USER_NAME>@<IP_ADDRESS>:yocto_scarthgap_tmp/deploy/rpm/cortexa9t2hf_neon/tree-2.1.1-r0.cortexa9t2hf_neon.rpm . # i.e. scp user1@153.19.56.85:yocto_tmp/deploy/rpm/cortexa9t2hf_neon/tree-2.1.1-r0.cortexa9t2hf_neon.rpm . #[On Zybo board]: scp -r <USER_NAME>@intel1:yocto_tmp/deploy/rpm/cortexa9t2hf_neon/tree-2.1.1-r0.cortexa9t2hf_neon.rpm . # i.e.: scp -r user1@intel1:yocto_tmp/deploy/rpm/cortexa9t2hf_neon/tree-2.1.1-r0.cortexa9t2hf_neon.rpm .
- Install RPM on Zybo board:
rpm -ivh tree-2.1.1-r0.cortexa9t2hf_neon.rpm
| Previous step: Build FSBL, Device Tree, u-Boot, Linux for Zybo Z7-20 board (Yocto Scarthgap) | Next step: Simple Python software to control GPIO |




