FreeCalypso > hg > fc-magnetite
annotate components/bootloader @ 673:62a5285e014a
Lorekeeping: allow tpudrv-leonardo.lib on Leonardo/Tango
Back in 2015 the Mother's idea was to produce a FreeCalypso development
board that would be a clone of TI Leonardo, including the original
quadband RFFE; one major additional stipulation was that this board
needed to be able to run original unmodified TCS211-20070608 firmware
with all blobs intact, with only minimal binary patches to main.lib
and tpudrv.lib. The necessary patched libs were produced at that time
in the tcs211-patches repository.
That plan was changed and we produced FCDEV3B instead, with Openmoko's
triband RFFE instead of Leonardo quadband, but when FC Magnetite started
in 2016, a TPUDRV_blob= provision was still made, allowing the possibility
of patching OM's tpudrv.lib for a restored Leonardo RFFE.
Now in 2020 we have FC Tango which is essentially a verbatim clone of
Leonardo core, including the original quadband RFFE. We have also
deblobbed our firmware so much that we have absolutely no real need
for a blob version of tpudrv.lib - but I thought it would be neat to put
the ancient TPUDRV_blob= mechanism (classic config) to its originally
intended use, just for the heck of it.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 29 May 2020 03:55:36 +0000 |
parents | 07d0dc4431f4 |
children | 8cf3029429f3 |
rev | line source |
---|---|
68
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # Building bootloader.lib |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 SRCDIR=$SRC/cs/system/bootloader/src |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 # Assembly modules |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 ASMFLAGS=-me |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 ASMFLAGS="$ASMFLAGS -dBOARD=41" |
392
30203d5aeb74
components/*: -DCHIPSET=$CHIPSET instead of fixed -DCHIPSET=10
Mychaela Falconia <falcon@freecalypso.org>
parents:
68
diff
changeset
|
9 ASMFLAGS="$ASMFLAGS -dCHIPSET=$CHIPSET" |
68
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 ASMFLAGS="$ASMFLAGS -dLONG_JUMP=3" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 ASMFLAGS="$ASMFLAGS -dTOOL_CHOICE=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 ASMFLAGS="$ASMFLAGS -dR2D_ASM=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 ASMFLAGS="$ASMFLAGS -dR2D_LCD_TEST=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 ASMFLAGS="$ASMFLAGS -dTI_PROFILER=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 ASMFLAGS="$ASMFLAGS -dTI_NUC_MONITOR=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 ASMFLAGS="$ASMFLAGS -dOP_WCP=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
605
07d0dc4431f4
bootloader.s: same MEMIF fix as in int.s plus DPLL BYPASS fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
392
diff
changeset
|
20 if [ "$RF" = 12 ] |
07d0dc4431f4
bootloader.s: same MEMIF fix as in int.s plus DPLL BYPASS fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
392
diff
changeset
|
21 then |
07d0dc4431f4
bootloader.s: same MEMIF fix as in int.s plus DPLL BYPASS fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
392
diff
changeset
|
22 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=1" |
07d0dc4431f4
bootloader.s: same MEMIF fix as in int.s plus DPLL BYPASS fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
392
diff
changeset
|
23 else |
07d0dc4431f4
bootloader.s: same MEMIF fix as in int.s plus DPLL BYPASS fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
392
diff
changeset
|
24 ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=0" |
07d0dc4431f4
bootloader.s: same MEMIF fix as in int.s plus DPLL BYPASS fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
392
diff
changeset
|
25 fi |
07d0dc4431f4
bootloader.s: same MEMIF fix as in int.s plus DPLL BYPASS fix
Mychaela Falconia <falcon@freecalypso.org>
parents:
392
diff
changeset
|
26 |
68
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 asm_file $SRCDIR/bootloader.s |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 ASMFLAGS="-mt -me" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 ASMFLAGS="$ASMFLAGS -dBOARD=41" |
392
30203d5aeb74
components/*: -DCHIPSET=$CHIPSET instead of fixed -DCHIPSET=10
Mychaela Falconia <falcon@freecalypso.org>
parents:
68
diff
changeset
|
31 ASMFLAGS="$ASMFLAGS -dCHIPSET=$CHIPSET" |
68
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 ASMFLAGS="$ASMFLAGS -dLONG_JUMP=3" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 ASMFLAGS="$ASMFLAGS -dTOOL_CHOICE=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 ASMFLAGS="$ASMFLAGS -dR2D_ASM=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 ASMFLAGS="$ASMFLAGS -dR2D_LCD_TEST=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 ASMFLAGS="$ASMFLAGS -dTI_PROFILER=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 ASMFLAGS="$ASMFLAGS -dTI_NUC_MONITOR=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 ASMFLAGS="$ASMFLAGS -dOP_WCP=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 asm_file $SRCDIR/branch_in_RAM.s |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 # C modules |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 CFLAGS="-mn -mt -mw -me -pw2" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 # Includes |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 CPPFLAGS="$CPPFLAGS -I$SRC/cs/os/nucleus" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 CPPFLAGS="$CPPFLAGS -I.." |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 CPPFLAGS="$CPPFLAGS -I../config" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/inc" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 CPPFLAGS="$CPPFLAGS -I$SRC/$GPF/frame/cust_os" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 CPPFLAGS="$CPPFLAGS -I$SRC/cs/system" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera/rv" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 CPPFLAGS="$CPPFLAGS -I$SRC/cs/services" |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 cfile_plain $SRCDIR/cmdboot.c |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 cfile_plain $SRCDIR/command.c |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 cfile_plain $SRCDIR/convert.c |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 cfile_plain $SRCDIR/optboot.c |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 cfile_plain $SRCDIR/serial.c |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 cfile_plain $SRCDIR/start.c |
838717193e09
eliminated the use of bootloader.lib binary blob
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 cfile_plain $SRCDIR/boot.c |