2022-07-15
[개발노트] esp32c3 적용.
make target=spi ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE KERNEL=$KERNEL resetpin=3
happycpu@happycpubox:~/work/testproj/esp-hosted/host/linux/host_driver/esp32$ export KERNEL=/home/happycpu/work/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61.ev1
happycpu@happycpubox:~/work/testproj/esp-hosted/host/linux/host_driver/esp32$ make target=spi ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE KERNEL=$KERNEL resetpin=3
rm -rf *.o sdio/*.o spi/*.o *.ko
make ARCH=arm CROSS_COMPILE=arm-ostl-linux-gnueabi- -C /home/happycpu/work/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61.ev1 M=/home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32 clean
make[1]: 디렉터리 '/home/happycpu/work/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61.ev1' 들어감
CLEAN /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/Module.symvers
make[1]: 디렉터리 '/home/happycpu/work/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61.ev1' 나감
make ARCH=arm CROSS_COMPILE=arm-ostl-linux-gnueabi- -C /home/happycpu/work/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61.ev1 M=/home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32 modules
make[1]: 디렉터리 '/home/happycpu/work/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61.ev1' 들어감
CC [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/esp_bt.o
CC [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/main.o
CC [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/spi/esp_spi.o
CC [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/esp_serial.o
CC [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/esp_rb.o
LD [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/esp32_spi.o
MODPOST /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/Module.symvers
CC [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/esp32_spi.mod.o
LD [M] /home/happycpu/work/testproj/esp-hosted/host/linux/host_driver/esp32/esp32_spi.ko
make[1]: 디렉터리 '/home/happycpu/work/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61.ev1' 나감
happycpu@happycpubox:~/work/testproj/esp-hosted/host/linux/host_driver/esp32$
LICENSE Module.symvers esp32_spi.ko esp32_spi.mod.c esp32_spi.o esp_bt.c esp_bt_api.h esp_rb.c esp_rb.o esp_serial.h main.c modules.order spi
Makefile esp.h esp32_spi.mod esp32_spi.mod.o esp_api.h esp_bt.o esp_if.h esp_rb.h esp_serial.c esp_serial.o main.o sdio
happycpu@happycpubox:~/work/testproj/esp-hosted/host/linux/host_driver/esp32$
insmod esp32_spi.ko resetpin=3
mknod /dev/esps0 c 221 0
chmod 666 /dev/esps0
arm-ostl-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/happycpu/work/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi -C -Wall -I/home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/../../../host_common/include/ -I/home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/../../../../common//protobuf-c/ -I/home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/../../../../common//include/ /home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/../../../../common//protobuf-c/protobuf-c/protobuf-c.c /home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/platform_wrapper.c /home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/../../../../common//esp_hosted_config.pb-c.c /home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/../../../host_common/transport_pserial.c /home/happycpu/work/esp-hosted/esp-hosted/host/linux/host_control/c_support/../../../host_common/commands.c test_api.c test.c -o test.out
happycpu@happycpubox:~/work/esp-hosted/esp-hosted/host/linux/host_control/c_support$ ls
Makefile platform_wrapper.c stress.c test.c test.out test_api.c test_api.h test_config.h
idf.py set-target esp32c3
[개발노트] i2c expander device tree파트
[개발노트] [dts] 74hc595 정통 spi모드
[기술노트] esp-hosted를 위한 spi2 device tree
[기술노트] sc16is752 device tree
[ 1.897624] serial serial0: tty port ttySC0 registered
[ 1.898114] spi1.0: ttySC1 at I/O 0x1 (irq = 56, base_baud = 115200) is a SC16IS752
[ 1.898533] serial serial1: tty port ttySC1 registered
[기술노트] 패치파일 만들기
<.patch 만들기>
diff -uNr [원본파일 또는 경로] [수정파일 또는 경로] > [패치파일명]
ex) a.cpp를 b.cpp로 수정한후 b.patch를 생성
diff -uNr a.cpp b.cpp > b.patch
<patch 적용하기>
patch [옵션] [원본파일] [패치파일]
ex) b.patch를 a.cpp에 적용하려면
patch a.cpp b.patch
2021-12-17
stm32mp1
devtool modify tf-a-stm32mp sources/boot/tf-a
devtool modify u-boot-stm32mp sources/boot/u-boot
2020-08-12
gitlab-ce naver 메일 설정
# GITLAB CE 에 네이버 이메일 설정
sudo /etc/gitlab/gitlab.rb
------------
....
gitlab_rails['gitlab_email_from'] = '로그인ID@naver.com'
gitlab_rails['gitlab_email_display_name'] = '표기 이름'
gitlab_rails['gitlab_email_reply_to'] = '로그인ID@naver.com'
....
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.naver.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "로그인ID"
gitlab_rails['smtp_password'] = "비밀번호"
gitlab_rails['smtp_domain'] = "naver.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
.....
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
2020-06-05
2020-06-03
systemd
도커 내부의 hosts에 주소 추가하기
echo "192.168.10.19 happycpu-P620.local" | sudo tee -a /etc/hosts
-
필요한사람. chagpt를 너무너무 많이 쓰는중에. 한글과 영어를 번갈아가며쓰는데, 한글다음 이응'ㅇ' 이나 'ㄹ' 을 빠르게 칠경우, 크롬의 주소창으로 이동되버리거나, 메뉴항목이 활성화되어, 내가 친 질문조합이 크롬을 종...
-
$sudo apt-get install tftpd-hpa 서버가 실행되지 않았다면 sudo service tftpd-hpa start /var/lib/tftpboot 을 기본으로 사용하게 된다. /etc/default/tftpd...