2024.02.20 (화)
ubuntu@ubuntu09:~/ipc$ cp -r /mnt/lect_nfs/iot_socket/ .
ubuntu@ubuntu09:~/ipc$ ls
iot_socket msqrcv.c sharedmemory.c sigkill.c
messagequeue.c pipe.c sigkill sigloop.c
ubuntu@ubuntu09:~/ipc$ cd iot_socket/
ubuntu@ubuntu09:~/ipc/iot_socket$ ls
Makefile iot_client.c iot_server.c
ubuntu@ubuntu09:~/ipc/iot_socket$ ls -l
합계 16
-rwxr--r-- 1 ubuntu ubuntu 446 2월 20 09:50 Makefile
-rwxr--r-- 1 ubuntu ubuntu 3038 2월 20 09:50 iot_client.c
-rwxr--r-- 1 ubuntu ubuntu 7366 2월 20 09:50 iot_server.c
ubuntu@ubuntu09:~/ipc/iot_socket$ chmod u-x *
ubuntu@ubuntu09:~/ipc/iot_socket$ ls -l
합계 16
-rw-r--r-- 1 ubuntu ubuntu 446 2월 20 09:50 Makefile
-rw-r--r-- 1 ubuntu ubuntu 3038 2월 20 09:50 iot_client.c
-rw-r--r-- 1 ubuntu ubuntu 7366 2월 20 09:50 iot_server.c
ubuntu@ubuntu09:~/ipc/iot_socket$ make
gcc -c -o iot_server.o iot_server.c
gcc -o iot_server iot_server.o -D_REENTRANT -pthread
gcc -c -o iot_client.o iot_client.c
gcc -o iot_client iot_client.o -D_REENTRANT -pthread
ubuntu@ubuntu09:~/ipc/iot_socket$ ls
Makefile iot_client.c iot_server iot_server.o
iot_client iot_client.o iot_server.c
ubuntu@ubuntu09:~/ipc/iot_socket$ ./iot_client 10.10.15.71 5000 17
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build$ cd tmp/deploy/images/raspberrypi4/
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build/tmp/deploy/images/raspberrypi4$ ls *ext3
core-image-minimal-raspberrypi4-20240219004418.rootfs.ext3
core-image-minimal-raspberrypi4.ext3
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build/tmp/deploy/images/raspberrypi4$ sudo umount /dev/sdb?
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build/tmp/deploy/images/raspberrypi4$ sudo dd if=core-image-minimal-raspberrypi4.ext3 of=/dev/sdb2 bs=1M status=progress
if : input file
of : output file
bs : block speed
status를 출력해달라(progress)
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky$ cp /mnt/lect_nfs/meta-rpilinux.tar .
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky$ tar xvf meta-rpilinux.tar
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build/conf$ vi bblayers.conf
1 # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
2 # changes incompatibly
3 POKY_BBLAYERS_CONF_VERSION = "2"
4
5 BBPATH = "${TOPDIR}"
6 BBFILES ?= ""
7
8 BBLAYERS ?= " \
9 /home/ubuntu/pi_bsp/rootfs/yocto/poky/meta \
10 /home/ubuntu/pi_bsp/rootfs/yocto/poky/meta-poky \
11 /home/ubuntu/pi_bsp/rootfs/yocto/poky/meta-yocto-bsp \
12 /home/ubuntu/pi_bsp/rootfs/yocto/poky/meta-raspberrypi \
13 /home/ubuntu/pi_bsp/rootfs/yocto/poky/meta-rpilinux \
14 "
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build$ bitbake -s core-image-minimal | grep openssh
nativesdk-openssh :8.9p1-r0
openssh :8.9p1-r0
packagegroup-core-ssh-openssh :1.0-r1
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky$ source oe-init-build-env
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build$ bitbake -c cleanall
ubuntu@ubuntu09:~/pi_bsp/rootfs/yocto/poky/build$ bitbake rpilinux-image