레이블이 stm32mp인 게시물을 표시합니다. 모든 게시물 표시
레이블이 stm32mp인 게시물을 표시합니다. 모든 게시물 표시

2022-07-18

[개발노트] Distribution-package의 u-boot 수정 및 컴파및 수정 [ums 이용]

1. devtool modify u-boot-stm32mp
(뭔가 잘못됬을시에는 devtool reset u-boot-stm32mp )

2. 소스수정. 위치는 workspace/source........

3. devtool build u-boot-stm32mp

4. bitbake u-boot-stm32mp -c deploy

5. bitbake tf-a-stm32mp -c deploy -f

최종폴더 fip에 결합된 fipXXX.bin파일이 있음.

u-boot> ums 0 mmc 1
PC$> ls -l /dev/disk/by-partlabel/
lrwxrwxrwx 1 root root 10  7월 18 14:47  boot -> ../../sdd2
lrwxrwxrwx 1 root root 10  7월 18 14:47  fip -> ../../sdd1
lrwxrwxrwx 1 root root 10  7월 18 14:47  rootfs -> ../../sdd4
lrwxrwxrwx 1 root root 10  7월 18 14:47  vendorfs -> ../../sdd3

sudo dd if=tmp-glibc/deploy/images/stm32mp153d-ssonic/fip/fip-stm32mp153d-ssonic-trusted.bin of=/dev/sdd1 bs=1M conv=fdatasync
[sudo] happycpu 암호:
0+1 레코드 들어옴
0+1 레코드 나감
1042421 bytes (1.0 MB, 1018 KiB) copied, 0.0663301 s, 15.7 MB/s

u-boot> reset


암호화 + base64 하고 쉘스크립트.

 #!/bin/bash # IV와 UserKey를 설정합니다 (아스키 문자열을 그대로 사용). IV="0123456789abcdef"  UserKey="0123456789abcdef" # IV와 UserKey를 16...