forked from tbird20d/ttc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathttc.conf.sample2
1302 lines (1076 loc) · 44.4 KB
/
ttc.conf.sample2
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Some notes on syntax and conventions
# Attributes that end in "_cmd" are assumed to be shell
# commands, which will be executed in shell context
# Each line of a multi-line _cmd will be executed
# in its own sub-shell. (i.e. don't count on
# exports or cd's being persistent from one line to
# the next)
#
# The get_kernel_cmd should output the kernel source
# to the directory specified by $KERNEL_SRC
#===========================================================
target=.config_defaults
KBUILD_OUTPUT=../build/%(target)s
INSTALL_MOD_PATH=../modules/%(target)s
KERNEL_SRC=linux
TMPDIR=/tmp
get_kernel_cmd=git clone nserv.sm.sony.co.jp:/export/git/linux-3.0.y-BRANCH_SS-RT $KERNEL_SRC
kbuild_cmd=time make -j 8 %(kimage)s
login_cmd=telnet %(real_board)s
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/%(real_board)s/$dest
copy_from_cmd=cp $copy_args /target/%(real_board)s/$src $dest
rm_cmd=rm /target/%(real_board)s/$dest
run_cmd=telnet_exec -t %(real_board)s -u root -c "$COMMAND"
reset_cmd=telnet_exec -t %(real_board)s -u root -c "reboot"
console_cmd=minicom -w %(usb_port)s-115k
#===========================================================
target=master
get_kernel_cmd=git clone nserv.sm.sony.co.jp:/export/git/linux-2.6.35-BRANCH_SS $KERNEL_SRC
description="""This is a fake board, used for a direct-from-nserv get_kernel operation
This is useful to populate the /home/tbird/work/ss-35/branch_ss directory.
Use the command 'tc master get_kernel -o branch_ss' to do this."""
#===========================================================
target=osk2
inherit_from=.config_defaults
real_board=osk2
description="""TI OMAP Starter Kit (OSK):
OMAP5912 processor (ARM926EJ-S core and a C55x DSP)
The ARM core runs at 192 MHZ.
The board has 32 meg. of flash and 32 meg. Mobile DDR SDRAM,
10 Mbit Ethernet interface, USB Host interface
and a AIC23 stereo codec."""
ipaddr=192.168.1.72
#usb_port=USB4
TOOL_PATH=/usr/local/arm-sony-linux/devel/bin
ARCH=arm
CROSS_COMPILE=arm-sony-linux-
kimage=uImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/osk2
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/uImage /target/osk2/boot/uImage.osk2
cp -v $KBUILD_OUTPUT/System.map /target/osk2/boot/System.map
cp -v $KBUILD_OUTPUT/vmlinux /target/osk2/boot
cp -v $KBUILD_OUTPUT/System.map /target/osk2/tmp"""
get_config_cmd=make osk_defconfig
#===========================================================
target=osk2-kernel.org
inherit_from=osk2
get_kernel_cmd="""get-kernel 2.6.27-rc1
if [ -d linux-2.6.27-rc1 ] ; then echo "error - kernel directory already present" ; exit 1 ; fi
tar -xjvf linux-2.6.27-rc1.tar.bz2
mv linux-2.6.27-rc1 $KERNEL_SOURCE """
get_config_cmd="""make omap_osk_5912_defconfig
ttc set_config CONFIG_CMDLINE=\"console=ttyS0,115200\"
ttc set_config CONFIG_AEABI=n """
#===========================================================
target=osk2-git
inherit_from=osk2-kernel.org
get_kernel_cmd="""git clone /home/tbird/work/git.kernel.org/linux-2.6/
mv linux-2.6 $KERNEL_SOURCE """
#===========================================================
target=osk2_size_test
inherit_from=osk2
CROSS_COMPILE=ccache arm-sony-linux-
get_kernel_cmd=cp -a /home/tbird/work/osk/linux-2.6.25 $KERNEL_SRC
get_config_cmd=cp -v /home/tbird/work/osk/kernel.org-osk-config-plus $KBUILD_OUTPUT/.config
#===========================================================
target=osk2_kft
real_board=osk2
description="""TI OMAP Starter Kit (OSK):
OMAP5912 processor (ARM926EJ-S core and a C55x DSP)
The ARM core runs at 192 MHZ.
The board has 32 meg. of flash and 32 meg. Mobile DDR SDRAM,
10 Mbit Ethernet interface, USB Host interface
and a AIC23 stereo codec."""
ipaddr=192.168.1.72
login_cmd=telnet osk2
console_cmd=minicom -w osk2
TOOL_PATH=/usr/local/arm-sony-linux/devel/bin
ARCH=arm
CROSS_COMPILE=arm-sony-linux-
kimage=uImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/osk2_kft
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/uImage /target/osk2/boot/uImage.osk2
cp $KBUILD_OUTPUT/System.map /target/osk2/boot/System.map
cp $KBUILD_OUTPUT/vmlinux /target/osk2/boot
cp $KBUILD_OUTPUT/System.map /target/osk2/tmp"""
#reset_cmd=echo "remote reset not supported" ; false
#reset_cmd=echo "Please manually reset the OSK board, by pressing the white button on the board" ; sleep 10 ; true
reset_cmd=telnet_exec -t osk2 -u root -c "reboot"
get_kernel_cmd=tla get -A alp@oak--linux-3 alp-linux--dev-3--3.1 $KERNEL_SRC
get_config_cmd=make alp_linux_osk_defconfig
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/osk2/$dest
copy_from_cmd=cp $copy_args /target/osk2/$src $dest
rm_cmd=rm /target/osk2/$dest
run_cmd=telnet_exec -t osk2 -u root -c "$COMMAND"
#===========================================================
target=osk2_mix
real_board=osk2
description="""TI OMAP Starter Kit (OSK):
OMAP5912 processor (ARM926EJ-S core and a C55x DSP)
The ARM core runs at 192 MHZ.
The board has 32 meg. of flash and 32 meg. Mobile DDR SDRAM,
10 Mbit Ethernet interface, USB Host interface
and a AIC23 stereo codec."""
ipaddr=192.168.1.72
login_cmd=telnet osk2
console_cmd=minicom -w osk2
TOOL_PATH=/usr/local/arm-sony-linux/devel/bin
ARCH=arm
CROSS_COMPILE=arm-sony-linux-
kimage=uImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/osk2_mix
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/uImage /target/osk2/boot/uImage.osk2
cp $KBUILD_OUTPUT/System.map /target/osk2/boot/System.map
cp $KBUILD_OUTPUT/vmlinux /target/osk2/boot
cp $KBUILD_OUTPUT/System.map /target/osk2/tmp"""
#reset_cmd=echo "remote reset not supported" ; false
#reset_cmd=echo "Please manually reset the OSK board, by pressing the white button on the board" ; sleep 10 ; true
reset_cmd=telnet_exec -t osk2 -u root -c "reboot"
get_kernel_cmd=tla get -A alp@oak--linux-3 alp-linux--dev-3--3.1 $KERNEL_SRC
get_config_cmd=make alp_linux_osk_defconfig
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/osk2/$dest
copy_from_cmd=cp $copy_args /target/osk2/$src $dest
rm_cmd=rm /target/osk2/$dest
run_cmd=telnet_exec -t osk2 -u root -c "$COMMAND"
#===========================================================
target=osk2-11
real_board=osk2
description="""TI OMAP Starter Kit (OSK):
OMAP5912 processor (ARM926EJ-S core and a C55x DSP)
The ARM core runs at 192 MHZ.
The board has 32 meg. of flash and 32 meg. Mobile DDR SDRAM,
10 Mbit Ethernet interface, USB Host interface
and a AIC23 stereo codec."""
ipaddr=192.168.1.72
login_cmd=telnet osk2
console_cmd=minicom -w osk2
TOOL_PATH=/usr/local/arm-sony-linux/devel/bin
ARCH=arm
CROSS_COMPILE=arm-sony-linux-
kimage=uImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/osk2-11
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/uImage /target/osk2/boot/uImage.osk2
cp $KBUILD_OUTPUT/System.map /target/osk2/tmp"""
#reset_cmd=echo "remote reset not supported" ; false
#reset_cmd=echo "Please manually reset the OSK board, by pressing the white button on the board" ; sleep 10 ; true
reset_cmd=telnet_exec -t osk2 -u root -c "reboot"
#old_get_kernel_cmd=export CVSRSH=/usr/bin/ssh ; cvs -d :ext:oak.sm.sony.co.jp:/var/cvsroot co -r branch_ALP_LINUX -d $KERNEL_SRC linux-2.6
get_kernel_cmd=tla get -A alp@oak--linux-2 alp-linux--dev-2-6-11--1.15 $KERNEL_SRC
get_config_cmd=make alp_linux_osk_defconfig
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/osk2/$dest
copy_from_cmd=cp $copy_args /target/osk2/$src $dest
rm_cmd=rm /target/osk2/$dest
run_cmd=telnet_exec -t osk2 -u root -c "$COMMAND"
#===========================================================
target=adp1
description="""Android Developer Phone 1 with a
Qualcomm MSM7201 ARM-based CPU, running at 528 MHZ
96M RAM and 256M Flash"""
ipaddr=192.168.1.72
#login_cmd=telnet android
login_cmd=adb shell
console_cmd=adb shell
TOOL_PATH=/a/home/tbird/work/ss-android/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
ARCH=arm
CROSS_COMPILE=arm-eabi-
kimage=zImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/adp1
kbuild_cmd=make $kimage
kinstall_cmd=cp $KBUILD_OUTPUT/arch/arm/boot/zImage
get_kernel_cmd=git clone git://android.git.kernel.org/kernel/msm.git $KERNEL_SRC
get_config_cmd=make msm_defconfig
# also: get_config_cmd=adb pull /proc/config.gz . ; zcat config.gz >$KBUILD_OUTPUT/.config
copy_to_cmd=adb push $src $dest
copy_from_cmd=adb pull $src $dest
rm_cmd=adb shell rm $dest
run_cmd=adb shell "$COMMAND"
#===========================================================
target=goldfish
description="""Android Emulator
To set up environment, go to 'work/mydroid' and do:
source build/envsetup.sh
source setup-mydroid-build-env.sh
"""
ipaddr=
#login_cmd=telnet android
login_cmd=adb shell
console_cmd=adb shell
TOOL_PATH=/a/home/tbird/work/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
ARCH=arm
CROSS_COMPILE=arm-eabi-
kimage=zImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/goldfish
kbuild_cmd=make $kimage
kinstall_cmd=cp $KBUILD_OUTPUT/arch/arm/boot/zImage $ANDROID_PRODUCT_OUT/kernel-qemu
get_kernel_cmd="""git clone git://android.git.kernel.org/kernel/common.git $KERNEL_SRC
cd $KERNEL_SRC ; git checkout origin/android-goldfish-2.6.29"""
get_config_cmd=make goldfish_defconfig
# also: get_config_cmd=adb pull /proc/config.gz . ; zcat config.gz >$KBUILD_OUTPUT/.config
copy_to_cmd=adb push $src $dest
copy_from_cmd=adb pull $src $dest
rm_cmd=adb shell rm $dest
run_cmd=adb shell "$COMMAND"
#===========================================================
target=g1
description="""Android Developer Phone 1 with a
Qualcomm MSM7201 ARM-based CPU, running at 528 MHZ
96M RAM and 256M Flash"""
ipaddr=192.168.1.72
#login_cmd=telnet android
login_cmd=adb shell
console_cmd=adb shell
TOOL_PATH=/a/home/tbird/work/ss-android/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
ARCH=arm
CROSS_COMPILE=arm-eabi-
kimage=zImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/g1
kbuild_cmd=make $kimage
kinstall_cmd_recovery=cd ../build ; update-recovery-kernel.sh g1/arch/arm/boot/zImage
kinstall_cmd="""echo "reboot phone into fastboot mode \(camera+power, then \'back\' key\)"
cd ../build ; fastboot boot g1/arch/arm/boot/zImage recovery.img-ramdisk.cpio.gz
"""
get_kernel_cmd=git clone git://android.git.kernel.org/kernel/msm.git $KERNEL_SRC
get_config_cmd=make msm_defconfig
# also: get_config_cmd=adb pull /proc/config.gz . ; zcat config.gz >$KBUILD_OUTPUT/.config
copy_to_cmd=adb push $src $dest
copy_from_cmd=adb pull $src $dest
rm_cmd=adb shell rm $dest
run_cmd=adb shell "$COMMAND"
#===========================================================
target=timdesk_fedora
description="""Tim's current desktop machine.
DELL Studio XPS, running a quadcore I7 975 at 3.33 GHz
8 Gig. RAM, 400 Gig. disk"""
ipaddr=43.135.148.222
KBUILD_OUTPUT=../build/timdesk
kimage=bzImage
KERNEL_SRC=linux
TMPDIR=/tmp
kbuild_cmd=make -j 10 $kimage
kinstall_cmd="""sudo cp -v arch/x86_64/boot/bzImage /boot/vmlinuz-%(kernel_version)s
sudo cp -v .config /boot/config-%(kernel_version)s
sudo cp -v System.map /boot/System.map-%(kernel_version)s
"""
get_kernel_cmd=git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git $KERNEL_SRC
#get_config_cmd=cp /a/home/tbird/work/timdesk/configs/config-2.6.33-rc8-x86_64 .config
#get_config_cmd=cp /boot/config-2.6.32.9-67.fc12.x86_64 .config
get_config_cmd=cp /boot/config-2.6.34-rc7 $(KBUILD_OUTPUT)/.config
#===========================================================
target=seq
real_board=seq
inherit_from=.config_defaults
description="""AMCC "Sequoia" board
PowerPC 440 EPx Evaluation kit
"""
ipaddr=192.168.1.72
TOOL_PATH=/usr/local/arm-sony-linux/devel/bin
ARCH=arm
CROSS_COMPILE=arm-sony-linux-
kimage=uImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/seq
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/uImage /target/osk2/boot/uImage.osk2
cp $KBUILD_OUTPUT/System.map /target/osk2/boot/System.map
cp $KBUILD_OUTPUT/vmlinux /target/osk2/boot
cp $KBUILD_OUTPUT/System.map /target/osk2/tmp"""
#reset_cmd=echo "remote reset not supported" ; false
#reset_cmd=echo "Please manually reset the OSK board, by pressing the white button on the board" ; sleep 10 ; true
reset_cmd=telnet_exec -t %(target)s -u root -c "reboot"
get_kernel_cmd=tla get -A alp@oak--linux-3 alp-linux--dev-3--3.1 $KERNEL_SRC
get_config_cmd=make alp_linux_osk_defconfig
#===========================================================
target=.ss_local_respository
get_kernel_cmd=cg clone git+ssh://home/tbird/work/ss-23/branch_ss $KERNEL_SRC
#===========================================================
target=seq-ccache-ss
inherit_from=.ss_local_respository, seq
CROSS_COMPILE=ccache arm-sony-linux-
#===========================================================
target=seq2
inherit_from=seq-ccache-ss
KBUILD_OUTPUT=../foo/bar/baz/bat
#===========================================================
target=nut
description="""Nut is an x86-based desktop computer, with:
Intel Celeron processor, running at 2 GHz.
The machine has 128 meg. of RAM and a 40G IDE hard drive."""
reset_cmd=nut-reset
console_cmd=minicom -w nut
login_cmd=telnet nut
#ipaddr=192.168.1.14
#TOOL_PATH=/usr/local/i386-sony-linux/devel/bin
ARCH=i386
#CROSS_COMPILE=i386-sony-linux-
INSTALL_PATH=/target/nut/boot
KERNEL_SRC=linux
KBUILD_OUTPUT=../build/nut
INSTALL_MOD_PATH=/target/nut
kimage=bzImage
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/i386/boot/bzImage /target/nut/boot/vmlinuz
cp $KBUILD_OUTPUT/System.map /target/nut/boot
cp $KBUILD_OUTPUT/System.map /target/nut/tmp"""
#kinstall_cmd=make INSTALL_PATH=$INSTALL_PATH install
#get_kernel_cmd="""tar -xjf /home/rbatest/base/linux-2.6.10.tar.bz2
# mv linux-2.6.10 $KERNEL_SRC"""
get_kernel_cmd=tla get -A alp@oak--linux-2 alp-linux--dev-2 $KERNEL_SRC
get_config_cmd=make alp_linux_pc_defconfig
copy_to_cmd=cp $copy_args $src /target/nut/$dest
copy_from_cmd=cp $copy_args /target/nut/$src $dest
rm_cmd=rm /target/nut/$dest
run_cmd=telnet_exec -t nut -u root -c "$COMMAND"
#===========================================================
target=ebony_fake
description="""Ebony (San Jose) is an IBM PowerPC development baord, with:
PowerPC 440GP processor, running at 400? GHz.
The machine has 128 meg. of RAM."""
ipaddr=192.168.1.54
reset_cmd=ebony-reset
console_cmd=minicom -w ebony
login_cmd=telnet ebony
TOOL_PATH=/usr/local/powerpc-sony-linux/devel/bin
ARCH=ppc
CROSS_COMPILE=powerpc-sony-linux-
TMPDIR=/tmp
KERNEL_SRC=linux
KBUILD_OUTPUT=../build/ebony
kimage=zImage
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/ppc/boot/images/zImage.ebony /target/ebony/boot
cp $KBUILD_OUTPUT/System.map /target/ebony/tmp"""
get_kernel_cmd=tla get -A alp@oak--linux-2 alp-linux--dev-2 $KERNEL_SRC
#get_config_cmd="""export CVSRSH=/usr/bin/ssh ; cd $TMPDIR ; cvs -d :ext:oak.sm.sony.co.jp:/var/cvsroot co local-dev/team/configs/config-ebony-baseline ; cd -
# cp $TMPDIR/local-dev/team/configs/config-ebony-baseline $KBUILD_OUTPUT/.config"""
get_config_cmd=make alp_linux_ebony_defconfig
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/ebony$dest
copy_from_cmd=cp $copy_args /target/ebony$src $dest
rm_cmd=rm -f /target/ebony/$dest
run_cmd=telnet_exec -t ebony -u root -c "$COMMAND"
#===========================================================
target=g5_fake
description=Macintosh G5
TOOL_PATH=/opt/crosstool/ppc64/bin
ARCH=powerpc
CROSS_COMPILE=powerpc64-unknown-linux-gnu-
kimage=zImage
#kimage=zImage.vmode
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/g5
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/ppc64/boot/$kimage /target/g5/boot
cp $KBUILD_OUTPUT/System.map /target/g5/tmp"""
reset_cmd=echo "Remote reset not supported" ; false
get_kernel_cmd=tla get -A alp@oak--linux-2 alp-linux--dev-2 $KERNEL_SRC
get_config_cmd=make alp_linux_g5_defconfig
login_cmd=echo root password is \"r\" ; ssh root@g5
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/g5/$dest
copy_from_cmd=cp $copy_args /target/g5/$src $dest
rm_cmd=rm /target/g5/$dest
run_cmd=telnet_exec -t g5 -u root -c "$COMMAND"
#===========================================================
target=tx49_fake
description=tx49xx board with MIPS processor
TOOL_PATH=/usr/local/mips-sony-linux/devel/bin
ARCH=mips
CROSS_COMPILE=mips-sony-linux-
kimage=vmlinux
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/tx49
kbuild_cmd=make CROSS_COMPILE=mips-sony-linux- vmlinux
kinstall_cmd_cheat="""cp -v $KBUILD_OUTPUT/vmlinux /target/tx49/boot
cp $KBUILD_OUTPUT/System.map /target/tx49/boot
echo Please type 'load -E' in the PMON bootloader
#read -p "Press enter to continue:"
echo On the host, please type:
echo "cd /target/tx49/boot ; tftp -m binary tx49 -c put vmlinux ; cd -"
echo Please type 'g' in the PMON bootloader"""
kinstall_cmd="""cp -v $KBUILD_OUTPUT/vmlinux /target/tx49/boot
cp $KBUILD_OUTPUT/System.map /target/tx49/boot
echo Please type 'load -E' in the PMON bootloader
read -p "Press enter to continue:"
cd /target/tx49/boot ; tftp -m binary tx49 -c put vmlinux ; cd -
echo Please type 'g' in the PMON bootloader"""
#reset_cmd=echo "remote reset not supported" ; false
get_kernel_cmd=tla get -A alp@oak--linux-2 alp-linux--dev-2 $KERNEL_SRC
get_config_cmd=make CROSS_COMPILE=mips-sony-linux- alp_linux_tx49_defconfig
console_cmd=minicom -w tx49
login_cmd=telnet tx49
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/tx49/$dest
copy_from_cmd=cp $copy_args /target/tx49/$src $dest
rm_cmd=rm /target/tx49/$dest
run_cmd=telnet_exec -t tx49 -u root -c "$COMMAND"
#===========================================================
target=osk2_eabi
target_alias=o2
real_board=osk2
description="""TI OMAP Starter Kit (OSK):
OMAP5912 processor (ARM926EJ-S core and a C55x DSP)
The ARM core runs at 192 MHZ.
The board has 32 meg. of flash and 32 meg. Mobile DDR SDRAM,
10 Mbit Ethernet interface, USB Host interface
and a AIC23 stereo codec."""
ipaddr=192.168.1.72
login_cmd=telnet osk2
console_cmd=minicom -w osk2
TOOL_PATH=/usr/local/arm-sony-linux-gnueabi/devel/bin
ARCH=arm
CROSS_COMPILE=arm-sony-linux-gnueabi-dev-
kimage=uImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/osk2_eabi
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/uImage /target/osk2/boot/uImage.osk2
cp $KBUILD_OUTPUT/vmlinux /target/osk2/boot
cp $KBUILD_OUTPUT/System.map /target/osk2/boot/System.map.osk2
cp $KBUILD_OUTPUT/System.map /target/osk2/tmp"""
reset_cmd=telnet_exec -t osk2 -u root -c "reboot"
#get_kernel_cmd=tla get -A alp@oak--linux-2 alp-linux--dev-2 $KERNEL_SRC
get_kernel_cmd=tla get -A alp@oak--linux-3 alp-linux--dev-3 $KERNEL_SRC
get_config_cmd=make alp_linux_osk_defconfig
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/osk2/$dest
copy_from_cmd=cp $copy_args /target/osk2/$src $dest
rm_cmd=rm /target/osk2/$dest
run_cmd=telnet_exec -t osk2 -u root -c "$COMMAND"
#===========================================================
target=kzm
description=KZM-ARM11 development board
ipaddr=192.168.1.72
login_cmd=telnet kzm
console_cmd=minicom -w kzm
TOOL_PATH=/usr/local/arm-sony-linux-gnueabi/devel/bin
ARCH=arm
CROSS_COMPILE=arm-sony-linux-gnueabi-dev-
kimage=zImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/kzm
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/zImage /target/kzm/boot
cp $KBUILD_OUTPUT/System.map /target/kzm/boot/System.map
cp $KBUILD_OUTPUT/vmlinux /target/kzm/boot
cp $KBUILD_OUTPUT/System.map /target/kzm/tmp"""
#reset_cmd=echo "remote reset not supported" ; false
#reset_cmd=echo "Please manually reset the OSK board, by pressing the white button on the board" ; sleep 10 ; true
reset_cmd=telnet_exec -t osk2 -u root -c "reboot"
get_kernel_cmd=tla get -A alp@oak--linux-3 alp-linux--dev-3--3.1 $KERNEL_SRC
get_config_cmd=make kzm-arm11_defconfig
target_bin=/devel/usr/bin
copy_to_cmd=cp $copy_args $src /target/kzm/$dest
copy_from_cmd=cp $copy_args /target/kzm/$src $dest
rm_cmd=rm /target/kzm/$dest
run_cmd=telnet_exec -t kzm -u root -c "$COMMAND"
#===========================================================
target=ati
description=Sony ATI (Xillian) development board
ipaddr=192.168.1.92
login_cmd=telnet ati
console_cmd=minicom -w ati
TOOL_PATH=/usr/local/mipsel-linux/bin
ARCH=mips
CROSS_COMPILE=mipsel-linux-
kimage=vmlinux
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=.
kbuild_cmd=make CROSS_COMPILE=mipsel-linux- vmlinux
kinstall_cmd="""cp -v $KBUILD_OUTPUT/vmlinux /target/ati/boot
cp $KBUILD_OUTPUT/System.map /target/ati/boot/System.map
cp $KBUILD_OUTPUT/System.map /target/kzm/tmp"""
#reset_cmd=echo "remote reset not supported" ; false
#reset_cmd=echo "Please manually reset the OSK board, by pressing the white button on the board" ; sleep 10 ; true
reset_cmd=telnet_exec -t ati -u root -c "reboot"
get_kernel_cmd=cp -a /home/tbird/work/tvoa/ATI08 $KERNEL_SRC
get_config_cmd=cp /home/tbird/work/tvoa/ATI08/.config $KBUILD_OUTPUT/.config
target_bin=/usr/bin
copy_to_cmd=cp $copy_args $src /nfsroot_gtx/$dest
copy_from_cmd=cp $copy_args /nfsroot_gtx/$src $dest
rm_cmd=rm /nfsroot_gtx/$dest
run_cmd=telnet_exec -t ati -u root -c "$COMMAND"
#===========================================================
target=mario-old
description=Mario development board from TVOA
ipaddr=192.168.1.93
login_cmd=telnet mario
console_cmd=minicom -w USB0-115k
TOOL_PATH=/usr/local/mipsel-linux/bin
ARCH=mips
CROSS_COMPILE=mipsel-linux-
kimage=vmlinux
KERNEL_SRC=linux
TMPDIR=/tmp
#KBUILD_OUTPUT=.
KBUILD_OUTPUT=../build/mario
kbuild_cmd=make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux
kinstall_cmd="""cp -v $KBUILD_OUTPUT/vmlinux /target/mario/boot
cp -v $KBUILD_OUTPUT/System.map /target/mario/boot/System.map
cp -v $KBUILD_OUTPUT/System.map /target/mario/tmp"""
reset_cmd=telnet_exec -t mario -u root -c "reboot"
get_kernel_cmd=cp -a /home/tbird/work/mario/p4stuff/linux $KERNEL_SRC
get_config_cmd="""cp -v arch/mips/configs/x260_nfs_bringup $KBUILD_OUTPUT/.config
chmod a+w $KBUILD_OUTPUT/.config"""
target_bin=/usr/bin
copy_to_cmd=cp $copy_args $src /nfsroot_gtx/$dest
copy_from_cmd=cp $copy_args /nfsroot_gtx/$src $dest
rm_cmd=rm /nfsroot_gtx/$dest
run_cmd=telnet_exec -t mario -u root -c "$COMMAND"
#===========================================================
target=mario3
inherit_from=mario-old
get_kernel_cmd=cp -a /home/tbird/work/mario/p4stuff/linux255 $KERNEL_SRC
get_config_cmd="""cp -v arch/mips/configs/x255_board_nfs_defconfig $KBUILD_OUTPUT/.config
chmod a+w $KBUILD_OUTPUT/.config"""
#kbuild_cmd=make V=1 ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux
kbuild_cmd=make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux
reset_cmd="""echo "Press the green button on the debug board to reset the target"
read -p "Press enter to continue:"
echo boot >/dev/ttyUSB0
sleep 10
echo "g root=/dev/nfs nfsroot=192.168.2.1:/nfsroot_gtx rw ip=192.168.2.93 time" >/dev/ttyUSB0
"""
#============================================
target=evt
description=EVT-BU development board from FTVA
ipaddr=192.168.1.95
login_cmd=telnet evt
console_cmd=minicom -w USB0-115k
TOOL_PATH=/usr/local/mipsel-linux/bin
ARCH=mips
CROSS_COMPILE=mipsel-linux-
kimage=vmlinux
KERNEL_SRC=linux255
TMPDIR=/tmp
# Must not use KBUILD_OUTPUT=. (this freaks out the 2.6.11 build)
#KBUILD_OUTPUT=.
get_kernel_cmd="""cp -a /home/tbird/work/evt/p4stuff/linux255 $KERNEL_SRC
chmod -R ug+w $KERNEL_SRC"""
#get_config_cmd="""cp -v arch/mips/configs/x255_board_nfs_defconfig $KBUILD_OUTPUT/.config
# chmod a+w $KBUILD_OUTPUT/.config"""
#KBUILD_OUTPUT=../build/evt
#kbuild_cmd_old=make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux
kbuild_cmd=source environment.sh ; ./rebuildKernel.sh
kinstall_cmd="""cp -v vmlinux vmlinux-devel
cp -v vmlinux-devel /Perforce/ati09/US/X255/Src/Product/Kernel/vmlinux-devel
cp -v vmlinux-devel /target/evt/boot/vmlinux
cp -v System.map /target/evt/boot/System.map"""
#kinstall_cmd_old="""cp -v $KBUILD_OUTPUT/vmlinux /target/evt/boot
# cp -v $KBUILD_OUTPUT/System.map /target/evt/boot/System.map
# cp -v $KBUILD_OUTPUT/System.map /target/evt/tmp"""
reset_cmd=telnet_exec -t evt -u root -c "reboot"
target_bin=/usr/bin
copy_to_cmd=fname=`basename $src` ; cp $src /target/evt/tmp/$fname ; ttc evt run "tftp -g -l $dest -r /evt/tmp/$fname 192.168.2.1"
copy_from_cmd=fname=`basename $src` ; ttc evt run "tftp -p -l $src -r /evt/tmp/$fname 192.168.2.1" ; cp /target/evt/tmp/$fname $dest
rm_cmd=ttc evt run "rm $dest"
run_cmd=telnet_exec -t evt -u root -c "$COMMAND"
#kbuild_cmd=make V=1 ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux
kbuild_cmd=make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux
reset_cmd="""echo "Press the green button on the debug board to reset the target"
read -p "Press enter to continue:"
echo boot >/dev/ttyUSB0
sleep 10
echo "g root=/dev/nfs nfsroot=192.168.2.1:/nfsroot_gtx rw ip=192.168.2.93 time" >/dev/ttyUSB0
"""
#============================================
target=evm
real_board=evm
inherit_from=.config_defaults
description="""Texas Instruments OMAP EVM board
600 MHZ Coretex-A8 processor
128M RAM, 32K L1 cache, 256K L2 cache
HVGA 640x480 touchscreen LCD, DVI and TV video out
"""
usb_port=USB0
ipaddr=192.168.2.96
ADBHOST=%(ipaddr)s
TOOL_PATH=/opt/omap3evm/toolchain/arm-2007q3/bin:/home/tbird/work/evm/rowboat/rowboat-source/out/host/linux-x86/bin
ARCH=arm
CROSS_COMPILE=arm-none-eabi-
kimage=uImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/evm
get_config_cmd=make omap3_evm_android_defconfig
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/uImage /target/evm/boot/uImage
cp $KBUILD_OUTPUT/System.map /target/evm/boot/System.map"""
reset_cmd=telnet_exec -t %(target)s -u root -c "reboot"
console_cmd=minicom -w USB0-115k
reset_cmd="""echo "Press the top-left black button on the board to reset the target"
read -p "Press enter to continue:"
"""
# echo boot >/dev/ttyUSB0
#
#============================================
target=evm-rowboat
real_board=evm
description="""Texas Instruments OMAP EVM board
with settings for building rowboat Android
"""
ipaddr=192.168.2.96
ADBHOST=%(ipaddr)s
TOOL_PATH=/home/tbird/work/evm/rowboat/rowboat-android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
ARCH=arm
CROSS_COMPILE=arm-eabi-
get_config_cmd=make omap3_evm_android_defconfig
# increment localversion (debug kernel version) on each build
# localversion file has -d<num>
kbuild_cmd="""echo -d$(($(cat localversion | cut -b 3-) + 1)) >localversion
echo new localversion=$(cat localversion)
make uImage
"""
kinstall_cmd="""cp -v arch/arm/boot/uImage /target/evm/boot/uImage
cp System.map /target/evm/boot/System.map"""
console_cmd=minicom -w %(usb_port)s-115k
reset_cmd="""echo "Press the top-left black button on the board to reset the target"
read -p "Press enter to continue:"
"""
#============================================
target=ebook
description="""Innsbruck e-book development board
with Freescale MX31 EBX5016 processor,
256M RAM"""
ipaddr=192.168.2.98
TOOL_PATH=/home/tbird/work/ebook/android/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
ARCH=arm
CROSS_COMPILE=arm-eabi-
kimage=zImage
KERNEL_SRC=linux
TMPDIR=/tmp
KBUILD_OUTPUT=../build/ebook
#KBUILD_OUTPUT=.
#get_config_cmd=make innsbruck_defconfig
#get_config_cmd=make defconfig
kbuild_cmd=make $kimage
kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/zImage /target/ebook/boot/zImage.inns
cp $KBUILD_OUTPUT/System.map /target/ebook/boot/System.map"""
reset_cmd=telnet_exec -t %(target)s -u root -c "reboot"
console_cmd=minicom -w USB2-115k
reset_cmd="""echo -n "Press the reset button on the board, followed by"
echo -n "button 3015 (lower right black button), to reset the target"
read -p "Press enter to continue:"
"""
#============================================
target=blacksand
description="""Intel blacksand development board
with ATOM processor"""
#ipaddr=192.168.2.98
#TOOL_PATH=/home/tbird/work/ebook/android/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
#ARCH=arm
#CROSS_COMPILE=arm-eabi-
kimage=vmlinuz
#KERNEL_SRC=linux
#TMPDIR=/tmp
KBUILD_OUTPUT=../build/blacksand
#get_config_cmd=make innsbruck_defconfig
#get_config_cmd=make defconfig
kbuild_cmd=make $kimage
#kinstall_cmd="""cp -v $KBUILD_OUTPUT/arch/arm/boot/zImage /target/ebook/boot/zImage.inns
# cp $KBUILD_OUTPUT/System.map /target/ebook/boot/System.map"""
#reset_cmd=telnet_exec -t %(target)s -u root -c "reboot"
console_cmd=minicom -w USB1-115k
reset_cmd="""echo -n "Press the power button on the board, for 4 seconds."
"""
#============================================
target=panda
inherit_from=.config_defaults
real_board=panda
description="""The panda board, uses the OMAP chip from TI
This configuration in ttc uses a specially formatted SD card.
The card has 3 partitions:
partition 1: a FAT partition with the bootloader (multiple stages)
and uImage and uImage.new
partition 2: an ext3 partition with the backup root filesysem on it
partition 3: an ext3 partition with the "new" root filesystem on it
If no parameters are changed in u-boot, then it will boot 'uImage'
using /dev/mmcblk0p2 as the rootfs. The 'ttc reboot' command will
boot 'uImage.new' using /dev/mmcblk0p3 as the rootfs. The 'ttc kinstall'
command puts a new 'uImage.new' on /dev/mmcblk0p1.
The default kernel is a 2.6.35-g6d019da kernel built on Sep 1 2010.
The default rootfs is a version of Angstrom.
"""
ARCH=arm
kimage=uImage
TOOL_PATH=/opt/CE-Linux-8.0.1.2/arm-sony-linux-gnueabi/cross/devel/bin:/opt/CE-Linux-8.0.1.2/${ARCH}/host/bin
CROSS_COMPILE=arm-sony-linux-gnueabi-armv7a-dev-
ipaddr=192.168.2.94
get_kernel_cmd=git clone ~/work/ss-3.0-rt/linux-3.0.y-BRANCH_SS-RT $KERNEL_SRC
get_config_cmd="""make omap2plus_defconfig
ttc set_config CONFIG_USB_EHCI_HCD=y CONFIG_MFD_OMAP_USB_HOST=y CONFIG_USB_EHCI_ROOT_HUB_TT=N CONFIG_USB_EHCI_TT_NEWSCHED=y CONFIG_USB_EHCI_HCD_OMAP=y CONFIG_USB_EHCI_MV=n
ttc set_config CONFIG_USB_NET_SMSC95XX=y CONFIG_USB_SISUSBVGA=n
make silentoldconfig
"""
kinstall_cmd="""powerswitch-cycle -n panda -d 3 -o 3
ttc wait_for -i 1 -t 30 "ping -c 1 -w 1 panda >/dev/null"
#ttc run "mount /dev/mmcblk0p1 /media/mmcblk0p1"
scp_exec_to -t panda -u root $KBUILD_OUTPUT/arch/arm/boot/uImage /media/mmcblk0p1/uImage.new
ttc run sync
ttc run "umount /media/mmcblk0p1"
"""
# FIXTHIS - for kinstall, try to put kernel on MMC card, using existing kernel
# if that doesn't work, boot into base kernel and rfsbase rootfs, and
# use that kernel to copy the file to /media/mmcblk0p1
# This doesn't work because the filesystem on mmcblk0p2 (the default for
# uImage with 2.6.35) doesn't boot with ssh
kinstall_cmd_new="""
# try it without rebooting to default uImage
scp_exec_to -t panda -u root $KBUILD_OUTPUT/arch/arm/boot/uImage /media/mmcblk0p1/uImage.new
# check to see if image got there
# (the following lines have to be a single line)
h1=$(md5sum $KBUILD_OUTPUT/arch/arm/boot/uImage | cut -b -32) ; \
h2=$(ttc run "md5sum /media/mmcblk0p1/uImage.new" | cut -b -32) ; \
echo "comparing hashes: h1=$h1 --- h2=$h2" ; \
if [ $h1 == $h2 ] ; then \
echo "First kernel install attempt worked, skipping backup" ; exit -1 ; \
fi
# OK - that didn't work, try it using backup kernel
powerswitch-cycle -n panda -d 3 -o 3
ttc wait_for -i 1 -t 30 "ping -c 1 -w 1 panda >/dev/null"
#ttc run "mount /dev/mmcblk0p1 /media/mmcblk0p1"
scp_exec_to -t panda -u root $KBUILD_OUTPUT/arch/arm/boot/uImage /media/mmcblk0p1/uImage.new
ttc run sync
ttc run "umount /media/mmcblk0p1"
"""
usb_port=USB0
# this is tricky - powercycle the board, but break in during the u-boot
# countdown by sending returns at 1-second intervals
# adjust the bootargs to use the 3rd partition, and boot uimage.new instead
# of uimage
reboot_cmd_save="""powerswitch-cycle -n panda -d 3 -o 3
for i in $(seq 4); do echo " " >/dev/tty%(usb_port)s ; sleep 1; done
echo "setenv bootargs 'console=ttyO2,115200n8 mem=463M root=/dev/mmcblk0p3 rw rootwait init=/linuxrc'" >/dev/tty%(usb_port)s
echo "mmcinit 0;fatload mmc 0 0x80000000 uimage.new; bootm 80000000" >/dev/tty%(usb_port)s
echo
"""
reboot_cmd="""echo powerswitch-cycle -n panda -d 3 -o 3
echo sleeping 3
sleep 3
for i in $(seq 4); do echo " " >/dev/tty%(usb_port)s ; sleep 1; done
echo "setenv bootargs 'console=ttyO2,115200n8 root=/dev/mmcblk0p3 rw rootwait init=/linuxrc'" >/dev/tty%(usb_port)s
echo "mmcinit 0;fatload mmc 0 0x80000000 uimage.new; bootm 80000000" >/dev/tty%(usb_port)s
echo
"""
target_bin=/usr/bin
copy_to_cmd=scp_exec_to -t panda -u root $src $dest
copy_from_cmd=scp_exec_from -t panda -u root $src $dest
run_cmd=ssh_exec -t panda -u root -c "$COMMAND"
login_cmd=ssh -l root %(real_board)s
#============================================
target=panda-torvalds
inherit_from=panda
TOOL_PATH=/opt/omap3evm/toolchain/arm-2007q3/bin:/home/tbird/work/evm/rowboat-source/out/host/linux-x86/bin
CROSS_COMPILE=arm-none-eabi-
get_kernel_cmd=git clone /home/tbird/work/torvalds/linux-3 $KERNEL_SRC
# note that DMADEVICES and DMA_OMAP are required for kernel version 3.6
get_config_cmd="""make omap2plus_defconfig
ttc set_config CONFIG_MACH_OMAP4_PANDA=y CONFIG_DMADVICES=y CONFIG_DMA_OMAP=y
ttc set_config CONFIG_USB_EHCI_HCD=y CONFIG_MFD_OMAP_USB_HOST=y CONFIG_USB_EHCI_ROOT_HUB_TT=N CONFIG_USB_EHCI_TT_NEWSCHED=y CONFIG_USB_EHCI_HCD_OMAP=y CONFIG_USB_EHCI_MV=n CONFIG_USB_EHCI_HCD_PLATFORM=n
ttc set_config CONFIG_USB_SISUSBVGA=n
make silentoldconfig
"""
get_config_cmd_old="""make omap2plus_defconfig
ttc set_config CONFIG_USB_EHCI_HCD=y CONFIG_MFD_OMAP_USB_HOST=y CONFIG_USB_EHCI_ROOT_HUB_TT=N CONFIG_USB_EHCI_TT_NEWSCHED=y CONFIG_USB_EHCI_HCD_OMAP=y CONFIG_USB_EHCI_MV=n
ttc set_config CONFIG_USB_NET_SMSC95XX=y CONFIG_USB_SISUSBVGA=n
make oldconfig
"""
# stuff needed for NFS rootfs, according to
# http://morschi.com/2011/08/17/booting-the-pandaboard-over-nfs/
# CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=y CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL=y CONFIG_ROOT_NFS=y
#============================================
target=panda-torvalds-initramfs
inherit_from=panda-torvalds
# echo "setenv bootargs 'console=ttyO2,115200n8 mem=463M root=/dev/mmcblk0p3 rw rootwait init=/linuxrc'"
# minimal mem= value that worked: mem=24M
# mem=32M worked
# mem=16M did not work
# mem=24M - yielded free total of 10884K (??)
reboot_cmd="""powerswitch-cycle -n panda -d 3 -o 3
for i in $(seq 4); do echo " " >/dev/tty%(usb_port)s ; sleep 1; done
echo "setenv bootargs 'console=ttyO2,115200n8 rootwait mem=24M'" >/dev/tty%(usb_port)s
echo "mmcinit 0;fatload mmc 0 0x80000000 uimage.new; bootm 80000000" >/dev/tty%(usb_port)s
echo
"""
#============================================
target=panda-memtrace
inherit_from=panda-torvalds
# this is tricky - powercycle the board, but break in during the u-boot
# countdown by sending returns at 1-second intervals
# adjust the bootargs to use the 3rd partition, and boot uimage.new instead
# of uimage
reboot_cmd="""powerswitch-cycle -n panda -d 3 -o 3
for i in $(seq 4); do echo " " >/dev/tty%(usb_port)s ; sleep 1; done
echo "setenv bootargs 'console=ttyO2,115200n8 mem=463M root=/dev/mmcblk0p3 rw rootwait init=/linuxrc trace_buf_size=10000000 trace_event=kmem:kmalloc,kmem:kmem_cache_alloc,kmem:kfree,kmem:kmem_cache_free'" >/dev/tty%(usb_port)s