embeded/orange pi2022. 12. 7. 23:50

일단.. 메모리가 후달리겠지만 시도는 해볼까?

램 2GB에 eMMC 8GB 인걸로 기억하는데 SD 메모리 꽂고 스왑으로 쓰는게 나을까?

 

[링크 : http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-3.html]

[링크 : https://www.youtube.com/watch?v=mGY3yfVUpm4]

[링크 : https://drive.google.com/drive/folders/1Urh9-yljq9Mrrafp7ZWRVf_s_AdjUoTQ]

 

 

+

해당 이미지가 1GB 밖에 되지 않아, 4GB SD에 넣고 부팅을 하니 다음과 같은 화면 하나만 덜렁 나오고 끝이다.

아마도 eMMC에 복사하는 과정인 것 같은데, 여기까지 진행되면 전원 뽑고, SD 빼고 다시 켜면 끝

처음 켤때는 android 초기화 때문에 좀 오래 걸리지만 두번째 부팅에는 10초 정도? 걸린 것 같다.

youtube 앱(?)도 실은 firefox로 접속하게 하는거고 android 7이라 요즘 앱들은 설치하기 힘들듯.

'embeded > orange pi' 카테고리의 다른 글

orange pi 3 install_to_emmc 는 실패, dd는 성공  (0) 2023.07.06
rk3588 HDMI RX interface  (0) 2023.06.30
allwinner A시리즈 백도어  (0) 2022.11.06
orange pi 3 관련 문서  (0) 2022.01.03
oragne pi 3 / eMMC와 sd 부팅  (0) 2022.01.03
Posted by 구차니
embeded/raspberry pi2022. 11. 30. 15:53

LED 중 빨간색(전원)만 들어오고 노란색(SD)가 들어오지 않아서

3.3V와 5V를 재보니 5V는 나오는데(당연히 USB 전원 bypass니..)

3.3V가 한개는 0, 다른 한개는 1.6V 이런식으로 뜬다.

 

찾아보니 MxL 인지 먼지 써있던 상단부 IC가 PMIC인데 Programmable... -_-

칩을 구매한다고 해도 i2c를 통해서 PMIC를 프로그래밍 해야 원하는 전압으로 셋팅이 되서 작동이 가능하다는 의미

 

 

VOUT1 - 3.3V

VOUT2 - 1.8V

VOUT3 - 1.2V

VOUT4 - ? (reduced schematic에 안나옴)

[링크 : https://datasheets.raspberrypi.com/rpi3/raspberry-pi-3-b-plus-reduced-schematics.pdf]

 

VOUT1 - 3.3V

VOUT2 - 1.8V

VOUT3 - 1.35V > 1.2V

VOUT4 - 1.2V  ? 

기본값으로 쓰면 DDR에 데미지 줄 가능성이 존재하고.

VOUT4의 전압을 모르니(살아있는 놈을 재보면 되지만.) 애매하다..

게다가 주변부는 캐패시터랑 부피큰놈들이 떼는걸 더욱 어렵게 하는 중..

[링크 : https://assets.maxlinear.com/web/documents/mxl7704.pdf]

 

결론 : 걍 포기하면 편해. 35$ 밖에 안하잖아?

[링크 : https://iotforgeeks.com/dead-raspberry-pi-3b/]

 

'embeded > raspberry pi' 카테고리의 다른 글

rpi win 10 IoT  (0) 2023.02.02
i2cdetect UU  (0) 2023.01.18
rpi4 eeprom recovery  (0) 2022.10.14
라즈베리 파이4 apm 설치시 php 작동 안될 경우  (0) 2022.08.30
adxl345 spi  (0) 2022.08.17
Posted by 구차니
embeded/arduino(genuino)2022. 11. 14. 17:35

온도 습도 1도, 1% 단위로 측정 가능한 녀석.

그나저나 내부 계산을 하는지 float 형으로 온도와 습도를 전달한다.

 

+

23.09.18

DHT11은 습도 범위 20~80%

DHT22는 0~100% 범위를 읽을 수 있다.

 

[링크 : https://github.com/adafruit/DHT-sensor-library]

[링크 : https://github.com/adafruit/DHT-sensor-library/blob/master/DHT.cpp]

[링크 : https://learn.adafruit.com/dht]

 

'embeded > arduino(genuino)' 카테고리의 다른 글

433MHz RF 통신  (0) 2023.12.07
mcp2515 can  (0) 2023.10.30
아두이노 Serial.print()와 Serial.write()  (0) 2022.11.14
아두이노 USB HID  (0) 2021.05.07
아두이노 시리얼 플로터  (0) 2020.09.08
Posted by 구차니
embeded/arduino(genuino)2022. 11. 14. 16:20

print는 포맷에 맞추어서 출력하고

write는 변환없이 (%c ?) 출력하는 듯.

 

To send data without conversion to its representation as characters, use Serial.write().

[링크 : https://www.arduino.cc/reference/en/language/functions/communication/serial/print/

 

구조체 만들고

세번째 방식으로 출력하면 되려나?

Serial.write(val)
Serial.write(str)
Serial.write(buf, len)

[링크 : https://www.arduino.cc/reference/en/language/functions/communication/serial/write/]

'embeded > arduino(genuino)' 카테고리의 다른 글

mcp2515 can  (0) 2023.10.30
아두이노 dht11  (0) 2022.11.14
아두이노 USB HID  (0) 2021.05.07
아두이노 시리얼 플로터  (0) 2020.09.08
TEA5767 살까 말까..  (0) 2020.06.15
Posted by 구차니
embeded/orange pi2022. 11. 6. 19:54

orange pi 는 그래도 H 시리즈이긴 한데 검색해보면 영 꺼림직 하네..

걍 봉인해야 하나?

 

[링크 : https://www.reddit.com/r/OrangePI/comments/4ir1um/orange_pi_has_root_debugger_backdoor/]

[링크 : https://github.com/armbian/build/issues/282]

 

echo "rootmydevice" > /proc/sunxi_debug/sunxi_debug

[링크 : https://namu.wiki/w/Allwinner]

 

The sunxi-debug driver in Allwinner 3.4 legacy kernel for H3, A83T and H8 devices allows local users to gain root privileges by sending "rootmydevice" to /proc/sunxi_debug/sunxi_debug.

[링크 : https://nvd.nist.gov/vuln/detail/CVE-2016-10225]

 

 

+

5.10.75-sunxi64  커널이었네.. 받았을 당시에는 백도어 생각을 못해서 넘어갔는데 흐음..

2021.12.28 - [embeded/orange pi] - orange pi 3 기동

'embeded > orange pi' 카테고리의 다른 글

rk3588 HDMI RX interface  (0) 2023.06.30
android on orange pi 3  (0) 2022.12.07
orange pi 3 관련 문서  (0) 2022.01.03
oragne pi 3 / eMMC와 sd 부팅  (0) 2022.01.03
allwinner(orange pi 3) vs amlogic(odroid c2)  (0) 2022.01.01
Posted by 구차니
embeded/FPGA - XILINX2022. 11. 2. 15:14

정체 불명의 EBAZ4205 라는 보드

12V 몰렉스 3x2 핀이 필요하지만 장난질(?) 치면 그냥도 켤 순 있을 것 같은데, 가격도 착하고 끌린다!

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=C764788575]

[링크 : https://github.com/KeitetsuWorks/EBAZ4205]

[링크 : https://theokelo.co.ke/getting-starting-with-ebaz4205-zynq-7000/]

 

원래 35위안/5달러 근처의  ASIC 마이터 제어용 보드인 듯.

근데.. ASIC 돌리는데 왜 굳이 zynq를...?

This development board was the control card of Ebit E9+ BTC miner. In mainland China, it cost about 5 dollars (<35 CNY) on the secondhand market.

[링크 : https://github.com/xjtuecho/EBAZ4205]

[링크 : https://www.asicminervalue.com/miners/ebang/ebit-e9]

 

2.54mm 아니고 2.00mm pitch 핀헤더로, 14 * 3 = 42개 GPIO가 나와있긴 하다.

 

아날로그 쪽은 최대한 빠져있긴 한데, MIO 쪽은 별로 없어서 어떻게 쓸 수 있을지 모르겠다. 

FPGA의 ADC를 이용해서 온도 모니터링 하려고 zynq로 한건가?

 

+

[링크 : https://ko.aliexpress.com/item/1005004052650225.html] 49203 + 5103 = 54306 / 174주문 <<

[링크 : https://ko.aliexpress.com/item/1005004460394748.html] 49075 + 5776 = 54851 / 60주문

'embeded > FPGA - XILINX' 카테고리의 다른 글

xilinx - partial bitstream  (0) 2023.04.24
vivado 설치 하려고 했더니.  (0) 2023.01.08
xvc - xilinx virtual cable  (0) 2021.08.24
microzed..  (0) 2021.04.07
pmod pinout  (0) 2021.04.02
Posted by 구차니
embeded/raspberry pi2022. 10. 14. 07:01

라즈베리 4 되면서 3랑은 구조가 달라졌는데

uboot 외에도 eeprom으로 탑재된 독립된 부트로더가 존재한다

그래서 라즈베리 4는 켜면 먼가.. 그래픽 하게 PC 같은 느낌으로 나온다.

[링크 : https://raspberrypi.stackexchange.com/questions/117098/how-to-remove-the-bootloader-startup-screen-on-rpi-4-buster]

 

아무튼 얘가 날아갔을 때 복구이려나?

[링크 : https://www.fastoe.com/blog/rpi-4_400-eeprom-recovery-guide]

 

'embeded > raspberry pi' 카테고리의 다른 글

i2cdetect UU  (0) 2023.01.18
rpi 3b+ PMIC 손상  (0) 2022.11.30
라즈베리 파이4 apm 설치시 php 작동 안될 경우  (0) 2022.08.30
adxl345 spi  (0) 2022.08.17
tea5767 모듈 땜질  (0) 2022.08.17
Posted by 구차니
embeded/raspberry pi2022. 8. 30. 10:48

apahce2 mariadb php7.4 를 설치해도

phpinfo()가 작동안되서 한참을 헤맸다 -_

 

$ sudo apt-get install libapache2-mod-php7.4

[링크 : https://oopaque.tistory.com/91]

'embeded > raspberry pi' 카테고리의 다른 글

rpi 3b+ PMIC 손상  (0) 2022.11.30
rpi4 eeprom recovery  (0) 2022.10.14
adxl345 spi  (0) 2022.08.17
tea5767 모듈 땜질  (0) 2022.08.17
rpi3b에서 wayvnc 빌드 + 실행하기  (0) 2022.08.10
Posted by 구차니
embeded/Cortex-M3 STM2022. 8. 29. 10:37

STM32F는 이렇게 단순한데

 

검색한 내용중에 H와 G 시리즈가 걸려 나와서

STM32G로 검색해서 가장 위에 있던 STM32G030C6Tx로

프로젝트 구성해보니 내용이 많이 나온다. 눈에 띄는건.. MSB First 라는 항목

 

main.c는 아래와 같이 생성되었고

  /* USER CODE END USART1_Init 1 */
  huart1.Instance = USART1;
  huart1.Init.BaudRate = 115200;
  huart1.Init.WordLength = UART_WORDLENGTH_8B;
  huart1.Init.StopBits = UART_STOPBITS_1;
  huart1.Init.Parity = UART_PARITY_NONE;
  huart1.Init.Mode = UART_MODE_TX_RX;
  huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_DMADISABLEONERROR_INIT|UART_ADVFEATURE_MSBFIRST_INIT;
  huart1.AdvancedInit.DMADisableonRxError = UART_ADVFEATURE_DMA_DISABLEONRXERROR;
  huart1.AdvancedInit.MSBFirst = UART_ADVFEATURE_MSBFIRST_ENABLE;

 

Stm32g0xx_hal_uart.h를 따라가면 아래와 같이 먼가 있긴 하다.(귀찮아..)

#define UART_ADVFEATURE_NO_INIT                 0x00000000U          /*!< No advanced feature initialization       */
#define UART_ADVFEATURE_TXINVERT_INIT           0x00000001U          /*!< TX pin active level inversion            */
#define UART_ADVFEATURE_RXINVERT_INIT           0x00000002U          /*!< RX pin active level inversion            */
#define UART_ADVFEATURE_DATAINVERT_INIT         0x00000004U          /*!< Binary data inversion                    */
#define UART_ADVFEATURE_SWAP_INIT               0x00000008U          /*!< TX/RX pins swap                          */
#define UART_ADVFEATURE_RXOVERRUNDISABLE_INIT   0x00000010U          /*!< RX overrun disable                       */
#define UART_ADVFEATURE_DMADISABLEONERROR_INIT  0x00000020U          /*!< DMA disable on Reception Error           */
#define UART_ADVFEATURE_AUTOBAUDRATE_INIT       0x00000040U          /*!< Auto Baud rate detection initialization  */
#define UART_ADVFEATURE_MSBFIRST_INIT           0x00000080U          /*!< Most significant bit sent/received first */


#define USART_CR2_MSBFIRST_Pos       (19U)
#define USART_CR2_MSBFIRST_Msk       (0x1UL << USART_CR2_MSBFIRST_Pos)         /*!< 0x00080000 */
#define USART_CR2_MSBFIRST           USART_CR2_MSBFIRST_Msk                    /*!< Most Significant Bit First */


#define UART_ADVFEATURE_MSBFIRST_DISABLE    0x00000000U             /*!< Most significant bit sent/received
                                                                         first disable                      */
#define UART_ADVFEATURE_MSBFIRST_ENABLE     USART_CR2_MSBFIRST      /*!< Most significant bit sent/received
                                                                         first enable                       */

 

The USART can also communicate synchronously. It can operate as a SPI in Master or Slave mode with programmable clock polarity (CPOL) and phase (CPHA) and programmable data order with MSB or LSB first. The clock is output (in case of Master mode) or input (in case of Slave mode) on the CK pin. No clock pulses are provided during the start and stop bits. When the USART is configured in SPI slave mode, it supports the Transmit underrun error and the NSS hardware or software management.

[링크 : https://www.st.com/.../en.STM32G0-Peripheral-USART-interface-USART.pdf]

[링크 : https://www.st.com/.../en.STM32H7-Peripheral-USART_interface_USART.pdf]

'embeded > Cortex-M3 STM' 카테고리의 다른 글

stm32 reset 없이 JTAG 붙이기  (0) 2023.07.19
stm32 wdg 최대 설정시간  (0) 2021.08.09
stm32 RST pull-up reset fail  (0) 2021.08.02
STM32 RDP(ReaD Protection)  (0) 2021.07.02
stm32 uart echo  (0) 2021.02.04
Posted by 구차니
embeded/ARM2022. 8. 26. 18:25

왜 찾게 되었냐면.. 알고 싶지 않았습니다.. -_-

[링크 : https://stackoverflow.com/questions/20436466/lsb-to-msb-bit-reversal-on-arm]

 

RBIT
Reverse the bit order in a 32-bit word.

Syntax
RBIT{cond} Rd, Rn

[링크 : https://developer.arm.com/documentation/dui0473/m/arm-and-thumb-instructions/rbit]

 

REV
Reverse the byte order in a word.

Syntax
REV{cond} Rd, Rnn

[링크 : https://developer.arm.com/documentation/dui0473/m/arm-and-thumb-instructions/rev]

'embeded > ARM' 카테고리의 다른 글

i.mx8m plus arm trust zone  (0) 2023.02.24
ampere altra / 기가바이트 R272-P30 / 우분투  (0) 2023.02.03
vfp, neon cycle  (0) 2022.01.23
cortex-a9 neon  (0) 2021.06.21
EIM (external interface module)  (0) 2021.06.21
Posted by 구차니