-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
104 lines (74 loc) · 3.68 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
NOTES:
Jaguar Sentai Board
- Build CI by pushing to Foundries rpo on `main-jaguar-sentai branch`
- Develop locally by building lmp-base image. This makes f/s writeable and DTD is loaded from /mnt/boot (currently imx8mm-evkb.dtb)
- Add an initial development DTB and SSIDs by adding to machine features in `conf/machine/imx8mm-jaguar-sentai.conf`
```
MACHINE_FEATURES:append:imx8mm-jaguar-sentai = " nxpiw612-sdio dev"
```
- Remove nxpiw612-sdio if you want to build an SDK with `-c populate_sdk` as there's some conflict with `linux-firmware`
- Update to a new development DTB by changing file `recipes-support/default-dtb/default-dtb/imx8mm-jaguar-sentai.bb
- You can find this in `build-jaguar-sentai/deploy/images/imx8mm-jaguar-sentai/devicetree/imx8mm-jaguar-sentai.dtb`
- Update with your own SSID for nmcli by changing the script in `recipes-support/default-ssids/default-ssids.bb`
- Run a build docker container with the following (my fork includes nano). See Dockerfile here for the build details
```
docker run --rm -u builder --name lmp-sdk -v .:/build -it dynamicdevices/lmp-sdk:93
```
- Build a lmp-base image for local development
```
DISTRO=lmp-base MACHINE=imx8mm-jaguar-sentai source setup-environment build-jaguar-sentai
DISTRO=lmp-base MACHINE=imx8mm-jaguar-sentai bitbake lmp-factory-image
```
- Build a new DTB
```
DISTRO=lmp-base MACHINE=imx8mm-jaguar-sentai source setup-environment build-jaguar-sentai
DISTRO=lmp-base MACHINE=imx8mm-jaguar-sentai bitbake lmp-device-tree
```
- Program a full image
```
sudo mfgtool-files-imx8mm-jaguar-sentai/uuu mfgtool-files-imx8mm-jaguar-sentai/full_image.uuu
```
Example uuu file
```
ajlennon@ajlennon-Laptop-12th-Gen-Intel-Core:/data_drive/sentai/foundries/programming$ cat mfgtool-files-imx8mm-jaguar-sentai/full_image.uuu
uuu_version 1.2.39
SDP: boot -f imx-boot-mfgtool
SDPV: delay 1000
SDPV: write -f u-boot-mfgtool.itb
SDPV: jump
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev} 1; mmc erase 0 0x2000
FB: flash -raw2sparse all ../lmp-factory-image-imx8mm-jaguar-sentai.wic.gz/*
FB: flash bootloader ../imx-boot-imx8mm-jaguar-sentai
FB: flash bootloader2 ../u-boot-imx8mm-jaguar-sentai.itb
FB: flash bootloader_s ../imx-boot-imx8mm-jaguar-sentai
FB: flash bootloader2_s ../u-boot-imx8mm-jaguar-sentai.itb
FB: flash sit ../sit-imx8mm-jaguar-sentai.bin
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done
```
- Program a base image
```
sudo mfgtool-files-imx8mm-jaguar-sentai/uuu mfgtool-files-imx8mm-jaguar-sentai/base_image_local.uuu
```
Example uuu file
```
uuu_version 1.2.39
SDP: boot -f imx-boot-mfgtool
SDPV: delay 1000
SDPV: write -f u-boot-mfgtool.itb
SDPV: jump
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev} 1; mmc erase 0 0x2000
FB: flash -raw2sparse all ../../localbuild/dynamic-devices/build-jaguar-sentai/deploy/images/imx8mm-jaguar-sentai/lmp-factory-image-imx8mm-jaguar-sentai.wic.gz/*
FB: flash bootloader ../../localbuild/dynamic-devices/build-jaguar-sentai/deploy/images/imx8mm-jaguar-sentai/imx-boot-imx8mm-jaguar-sentai
FB: flash bootloader2 ../../localbuild/dynamic-devices/build-jaguar-sentai/deploy/images/imx8mm-jaguar-sentai/u-boot-imx8mm-jaguar-sentai.itb
FB: flash bootloader_s ../../localbuild/dynamic-devices/build-jaguar-sentai/deploy/images/imx8mm-jaguar-sentai/imx-boot-imx8mm-jaguar-sentai
FB: flash bootloader2_s ../../localbuild/dynamic-devices/build-jaguar-sentai/deploy/images/imx8mm-jaguar-sentai/u-boot-imx8mm-jaguar-sentai.itb
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done
```