-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTODO_1.1_NOTES
69 lines (43 loc) · 1.92 KB
/
TODO_1.1_NOTES
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
1.1 - (jsmoeller): PoC for signature lock
Step #1 build and lock signatures:
##################################
(SYSTEM = debian 8.8)
(NO rm_work ... seems to break things)
# default
SSTATE_DIR = "${TOPDIR}/sstate-cache"
-->>
bitbake agl-demo-platform
bitbake -S none agl-demo-platform
<<--
==> Writing locked sigs to /home/dl9pf/repobuild/build-rpi3/locked-sigs.inc
Step #2 generate cache matching locked signatures:
##################################################
# syntax: gen-lockedsig-cache <locked-sigs.inc> <input-cachedir> <output-cachedir> <nativelsbstring> [filterfile]
-->>
gen-lockedsig-cache locked-sigs.inc ./sstate-cache ./locked-cache universal-4.9
<<--
ISSUE 1: NATIVELSBSTRING = "universal-4.9" <--- EEEK "universal-4.8"/"universal-4.9" or "universal" for gcc >= 5.0
Step #3 use locked signature to recreate build.
###############################################
#cp locked-sigs.inc to conf/
-->>
cp locked-sigs.inc conf/
<<--
#change local.conf to use locked-cache as SSTATE_MIRROR and change SSTATE_DIR to validate new input:
-->>
cat << EOF >> conf/local.conf
SSTATE_DIR := "\${TOPDIR}/sstate-cache-from-locked"
SSTATE_MIRRORS := " file://.* file://home/dl9pf/repo-clone-AGL/build-rpi3/locked-cache/PATH \n "
require locked-sigs.inc
EOF
<<--
# now rebuild with sigs locked from locked-cache
-->>
rm -rf tmp
bitbake agl-demo-platform
<<--
ISSUE 2: ERROR: The agl-demo-platform-crosssdk:do_bundle_initramfs sig is computed to be d3c9c33199c7f0e8682a66b9e1688537, but the sig is locked to 3f647c1a5c497814008c802cc4ee5f7b in SIGGEN_LOCKEDSIGS_t-raspberrypi3
ISSUE 2: likely the images (possibly also the initramfs) should not be in the locked signatures need to investigate further
quick'n'dirty hack
sed -i -e "/agl-demo-platform-crosssdk:/d" conf/locked-sigs.inc
ISSUE 3: Seems like -native is not used properly from cache ... could be bug in gen-lockedsig-cache or procedure above . Need to investigate eSDK .