Lines Matching +full:cortex +full:- +full:m

4 # cache - Cached binaries that we have downloaded
5 # trees - binary trees that we use to make image
7 # images - bootable images that we use to test
9 # bios - cached bios images (as well as 'vars' files when we start testing
11 # scripts - generated scripts that uses images to run the tests.
16 # use qemu-system-XXXX to boot. They all boot the same thing at the moment:
23 # eg https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/14.2/FreeBSD-14.2-RELEASE-amd64-b…
25 : ${STAND_ROOT:="${HOME}/stand-test-root"}
38 if [ -f ${t}/tools/build/make.py ]; then
40 case $(uname -m) in
48 die "Do not know about $(uanme -p)"
66 SRCTOP=$(${MAKE} ${DEFARCH} -v SRCTOP)
70 MAKEFS=$(SHELL="which makefs" ${MAKE} ${DEFARCH} buildenv | tail -1) || die "No makefs try WITH_DIS…
71 MKIMG=$(SHELL="which mkimg" ${MAKE} ${DEFARCH} buildenv | tail -1) || die "No mkimg, try buildworld…
72 MTREE=$(SHELL="which mtree" ${MAKE} ${DEFARCH} buildenv | tail -1) || die "No mtree, try buildworld…
74 # MAKE=$(SHELL="which make" ${MAKE} ${DEFARCH} buildenv | tail -1) || die "No make, try buildworld …
86 mkdir -p ${CACHE} ${TREES} ${IMAGES} ${BIOS}
96 local m=$1
98 local ma_combo="${m}"
100 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
106 local m=$1
110 local ma_combo=$(ma_combo $m $ma)
111 local file="FreeBSD-${v}-RELEASE-${ma_combo}-${flavor}"
112 local url="${URLBASE}/${m}/${ma}/ISO-IMAGES/${v}/${file}.xz"
114 mkdir -p ${CACHE}
115 [ -r ${CACHE}/${file} ] && echo "Using cached ${file}" && return
119 xz -d ${file}.xz || die "Can't uncompress ${file}.xz"
125 local a m ma
128 m=${a%%:*}
130 fetch_one $m $ma ${FREEBSD_VERSION} bootonly.iso
138 local m=$1
143 local ma_combo="${m}"
144 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
146 file="FreeBSD-${v}-RELEASE-${ma_combo}-${flavor}"
148 rm -rf ${dir}
153 mkdir -p ${dir}
157 mkdir -p ${dir}/${d}
160 ln -s . ${dir}/usr
162 …tar -C ${dir} -xf ${CACHE}/$file sbin/fastboot sbin/reboot sbin/halt sbin/init bin/sh sbin/sysctl \
163 lib/libtinfow.so.9 lib/libncursesw.so.9 lib/libc.so.7 lib/libedit.so.8 libexec/ld-elf.so.1
169 echo "RC COMMAND RUNNING -- SUCCESS!!!!!"
170 halt -p
177 if [ -d ${OVERRIDE}/${ma_combo}/boot ]; then
186 [ -r $o/$i ] && echo Copying override $i && cp $o/$i ${dir}/$i
192 tar -C ${dir} -xf ${CACHE}/$file \
199 # XXX WHAT TO DO ABOUT LINKER HINTS -- PUNT FOR NOW
200 # XXX also, ZFS not supported on 32-bit powerpc platforms
204 echo -h -D -S115200 > ${dir}/boot.config
221 m=${a%%:*}
223 make_minimal_freebsd_tree $m $ma ${FREEBSD_VERSION} bootonly.iso
225 # Note: armv7 isn't done yet as its the odd-man out -- we need to extract things
232 m=${a%%:*}
234 ma_combo="${m}"
235 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
236 dir=${TREES}/${ma_combo}/test-stand
237 mkdir -p ${dir}
238 ${MTREE} -deUW -f ${SRCTOP}/etc/mtree/BSD.root.dist -p ${dir}
239 echo "Creating tree for ${m}:${ma}"
243 # SHELL="make clean" ${MAKE} buildenv TARGET=${m} TARGET_ARCH=${ma}
244 SHELL="sh -c 'cd stand ; make -j 100 all'" ${MAKE} TARGET=${m} TARGET_ARCH=${ma} buildenv
245 …DESTDIR=${dir} SHELL="sh -c 'cd stand ; make install MK_MAN=no MK_INSTALL_AS_USER=yes WITHOUT_DEBU…
246 ${MAKE} buildenv TARGET=${m} TARGET_ARCH=${ma}
247 rm -rf ${dir}/bin ${dir}/[ac-z]* # Don't care about anything here
255 m=${a%%:*}
257 ma_combo="${m}"
258 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
260 dir2=${TREES}/${ma_combo}/test-stand
263 rm -rf ${dir}
264 mkdir -p ${dir}
267 tar -c -f - -C ${dir2} boot | tar -xf - -C ${dir}
269 tar -c -f - -C ${dir3} boot | tar -xf - -C ${dir}
270 (cd ${dir} ; find . | LC_ALL=C sort | cpio -o -H newc | gzip > ${initrd})
278 m=${a%%:*}
280 ma_combo="${m}"
281 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
282 dir=${TREES}/${ma_combo}/linuxboot-esp
284 mkdir -p ${dir}
289 mkdir -p ${dir}/efi/boot
307 m=${a%%:*}
309 ma_combo="${m}"
310 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
311 src=${TREES}/${ma_combo}/linuxboot-esp
313 dir2=${TREES}/${ma_combo}/test-stand
314 esp=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.esp
315 ufs=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.ufs
316 zfs=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.zfs
317 img=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.img
318 img2=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-zfs.img
320 mkdir -p ${IMAGES}/${ma_combo}
321 ${MAKEFS} -t msdos -o fat_type=32 -o sectors_per_cluster=1 \
322 -o volume_label=EFISYS -s80m ${esp} ${src}
323 ${MAKEFS} -t ffs -B little -s 200m -o label=root ${ufs} ${dir} ${dir2}
324 ${MKIMG} -s gpt -p efi:=${esp} -p freebsd-ufs:=${ufs} -o ${img}
325 ${MAKEFS} -t zfs -s 200m \
326 -o poolname=${pool} -o bootfs=${pool} -o rootpath=/ \
328 ${MKIMG} -s gpt \
329 -p efi:=${esp} \
330 -p freebsd-zfs:=${zfs} -o ${img2}
331 rm -f ${esp} # Don't need to keep this around
338 m=${a%%:*}
340 ma_combo="${m}"
341 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
342 linux="${CACHE}/linux/vmlinux-${m}*"
344 img=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-raw
352 # At the moment, we have just two -- and the images we've built so far are just
355 m=${a%%:*}
357 ma_combo="${m}"
358 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
361 bios_code=${BIOS}/edk2-${ma_combo}-code.fd
362 bios_vars=${BIOS}/edk2-${ma_combo}-vars.fd
365 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-x86_64-code.fd ]; then
366 cp /usr/local/share/qemu/edk2-x86_64-code.fd ${bios_code}
368 # cp /usr/local/share/qemu/edk2-i386-vars.fd ${bios_vars}
372 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-aarch64-code.fd ]; then
374 dd if=/dev/zero of=${bios_code} bs=1M count=64
375 dd if=/dev/zero of=${bios_vars} bs=1M count=64
376 dd if=/usr/local/share/qemu/edk2-aarch64-code.fd of=${bios_code} conv=notrunc
382 img=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.img
383 img2=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-raw
384 img3=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-zfs.img
385 out=${SCRIPTS}/${ma_combo}/linuxboot-test.sh
386 out2=${SCRIPTS}/${ma_combo}/linuxboot-test-raw.sh
387 out3=${SCRIPTS}/${ma_combo}/linuxboot-test-zfs.sh
388 cd=${CACHE}/FreeBSD-13.1-RELEASE-arm64-aarch64-bootonly.iso
389 mkdir -p ${SCRIPTS}/${ma_combo}
393 ${qemu_bin}/qemu-system-x86_64 -nographic -m 512M \\
394 -drive file=${img},if=none,id=drive0,cache=writeback,format=raw \\
395 -device virtio-blk,drive=drive0,bootindex=0 \\
396 -drive file=${bios_code},format=raw,if=pflash \\
397 -drive file=${bios_vars},format=raw,if=pflash \\
398 -monitor telnet::4444,server,nowait \\
399 -serial stdio \$*
404 raw=${IMAGES}/${ma_combo}/freebsd-arm64-aarch64.img
406 ${qemu_bin}/qemu-system-aarch64 -nographic -machine virt,gic-version=3 -m 512M -smp 4 \\
407 -cpu cortex-a57 \\
408 -drive file=${img},if=none,id=drive0,cache=writeback \\
409 -device virtio-blk,drive=drive0,bootindex=0 \\
410 -drive file=${raw},if=none,id=drive1,cache=writeback \\
411 -device nvme,serial=fboot,drive=drive1,bootindex=1 \\
412 -drive file=${bios_code},format=raw,if=pflash \\
413 -drive file=${bios_vars},format=raw,if=pflash \\
414 -monitor telnet::4444,server,nowait \\
415 -serial stdio \$*
418 # Note: We have to use cortex-a57 for raw mode because the
421 ${qemu_bin}/qemu-system-aarch64 -m 1024 -cpu cortex-a57 -M virt \\
422 -kernel ${img2}.kernel -initrd ${img2}.initrd \\
423 -append "console=ttyAMA0" \\
424 -drive file=${cd},if=none,id=drive0,cache=writeback,format=raw \\
425 -device virtio-blk,drive=drive0,bootindex=0 \\
426 -nographic -monitor telnet::4444,server,nowait \\
427 -serial stdio \$*
430 # Note: We have to use cortex-a57 for raw mode because the
433 ${qemu_bin}/qemu-system-aarch64 -nographic -machine virt,gic-version=3 -m 512M -smp 4 \\
434 -cpu cortex-a57 \\
435 -drive file=${img3},if=none,id=drive0,cache=writeback \\
436 -device virtio-blk,drive=drive0,bootindex=0 \\
437 -drive file=${bios_code},format=raw,if=pflash \\
438 -drive file=${bios_vars},format=raw,if=pflash \\
439 -monitor telnet::4444,server,nowait \\
440 -serial stdio \$*
452 m=${a%%:*}
454 ma_combo="${m}"
455 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
456 dir=${TREES}/${ma_combo}/freebsd-esp
457 dir2=${TREES}/${ma_combo}/test-stand
458 rm -rf ${dir}
459 mkdir -p ${dir}
464 mkdir -p ${dir}/efi/boot
475 m=${a%%:*}
477 ma_combo="${m}"
478 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
479 src=${TREES}/${ma_combo}/freebsd-esp
481 dir2=${TREES}/${ma_combo}/test-stand
482 esp=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.esp
483 ufs=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.ufs
484 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
485 mkdir -p ${IMAGES}/${ma_combo}
486 mkdir -p ${dir2}/etc
490 ${MAKEFS} -t msdos -o fat_type=32 -o sectors_per_cluster=1 \
491 -o volume_label=EFISYS -s100m ${esp} ${src}
492 ${MAKEFS} -t ffs -B little -s 200m -o label=root ${ufs} ${dir} ${dir2}
493 ${MKIMG} -s gpt -p efi:=${esp} -p freebsd-ufs:=${ufs} -o ${img}
494 # rm -f ${esp} ${ufs} # Don't need to keep this around
497 set -x
502 m=${a%%:*}
504 ma_combo="${m}"
505 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
507 dir2=${TREES}/${ma_combo}/test-stand
508 ufs=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.ufs
509 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
510 mkdir -p ${IMAGES}/${ma_combo}
511 mkdir -p ${dir2}/etc
515 ${MAKEFS} -t ffs -B little -s 200m \
516 -o label=root,version=2,bsize=32768,fsize=4096,density=16384 \
518 ${MKIMG} -s gpt -b ${dir2}/boot/pmbr \
519 -p freebsd-boot:=${dir2}/boot/gptboot \
520 -p freebsd-ufs:=${ufs} \
521 -o ${img}
522 rm -f ${src}/etc/fstab
524 # PowerPC for 32-bit mac
526 m=${a%%:*}
528 ma_combo="${m}"
529 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
531 dir2=${TREES}/${ma_combo}/test-stand
532 ufs=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.ufs
533 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
534 mkdir -p ${IMAGES}/${ma_combo}
535 mkdir -p ${dir2}/etc
539 ${MAKEFS} -t ffs -B big -s 200m \
540 -o label=root,version=2,bsize=32768,fsize=4096,density=16384 \
542 ${MKIMG} -a 1 -s apm \
543 -p freebsd-boot:=${dir2}/boot/boot1.hfs \
544 -p freebsd-ufs:=${ufs} \
545 -o ${img}
555 m=${a%%:*}
557 ma_combo="${m}"
558 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
561 bios_code=${BIOS}/edk2-${ma_combo}-code.fd
562 bios_vars=${BIOS}/edk2-${ma_combo}-vars.fd
565 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-x86_64-code.fd ]; then
566 cp /usr/local/share/qemu/edk2-x86_64-code.fd ${bios_code}
568 # cp /usr/local/share/qemu/edk2-i386-vars.fd ${bios_vars}
572 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-aarch64-code.fd ]; then
574 dd if=/dev/zero of=${bios_code} bs=1M count=64
575 dd if=/dev/zero of=${bios_vars} bs=1M count=64
576 dd if=/usr/local/share/qemu/edk2-aarch64-code.fd of=${bios_code} conv=notrunc
582 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
583 out=${SCRIPTS}/${ma_combo}/freebsd-test.sh
584 mkdir -p ${SCRIPTS}/${ma_combo}
588 ${qemu_bin}/qemu-system-x86_64 -nographic -m 512M \\
589 -drive file=${img},if=none,id=drive0,cache=writeback,format=raw \\
590 -device virtio-blk,drive=drive0,bootindex=0 \\
591 -drive file=${bios_code},format=raw,if=pflash \\
592 -drive file=${bios_vars},format=raw,if=pflash \\
593 -monitor telnet::4444,server,nowait \\
594 -serial stdio \$*
599 raw=${IMAGES}/${ma_combo}/nvme-test-empty.raw
601 ${qemu_bin}/qemu-system-aarch64 -nographic -machine virt,gic-version=3 -m 512M \\
602 -cpu cortex-a57 -drive file=${img},if=none,id=drive0,cache=writeback -smp 4 \\
603 -device virtio-blk,drive=drive0,bootindex=0 \\
604 -drive file=${bios_code},format=raw,if=pflash \\
605 -drive file=${bios_vars},format=raw,if=pflash \\
606 -drive file=${raw},if=none,id=drive1,cache=writeback,format=raw \\
607 -device nvme,serial=deadbeef,drive=drive1 \\
608 -monitor telnet::4444,server,nowait \\
609 -serial stdio \$*
616 set -x
618 m=${a%%:*}
620 ma_combo="${m}"
621 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
622 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
623 out=${SCRIPTS}/${ma_combo}/freebsd-test.sh
624 mkdir -p ${SCRIPTS}/${ma_combo}
626 ${qemu_bin}/qemu-system-ppc -m 1g -M mac99,via=pmu \\
627 -vga none -nographic \\
628 -drive file=${img},if=virtio \\
629 -prom-env "boot-device=/pci@f2000000/scsi/disk@0:,\\\\\\:tbxi" \\
630 -monitor telnet::4444,server,nowait \\
631 -serial stdio \$*
634 set -x
636 m=${a%%:*}
638 ma_combo="${m}"
639 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
640 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
641 out=${SCRIPTS}/${ma_combo}/freebsd-test.sh
642 mkdir -p ${SCRIPTS}/${ma_combo}
644 ${qemu_bin}/qemu-system-i386 -m 1g \\
645 -vga none -nographic \\
646 -drive file=${img},format=raw \\
647 -nographic \\
648 -monitor telnet::4444,server,nowait \\
649 -serial stdio \$*
657 set -e