Lines Matching +full:cortex +full:- +full:a57

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/13.1/FreeBSD-13.1-RELEASE-amd64-b…
25 : ${STAND_ROOT:="${HOME}/stand-test-root"}
33 # hack -- I have extra junk in my qemu, but it's not needed to recreate things
35 qemu_bin=/home/imp/git/qemu/00-build
48 SRCTOP=$(make -v SRCTOP)
50 mkdir -p ${CACHE} ${TREES} ${IMAGES} ${BIOS}
64 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
75 local file="FreeBSD-${v}-RELEASE-${ma_combo}-${flavor}"
76 local url="${URLBASE}/${m}/${ma}/ISO-IMAGES/${v}/${file}.xz"
78 mkdir -p ${CACHE}
79 [ -r ${CACHE}/${file} ] && echo "Using cached ${file}" && return
83 xz -d ${file}.xz || die "Can't uncompress ${file}.xz"
108 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
110 file="FreeBSD-${v}-RELEASE-${ma_combo}-${flavor}"
112 rm -rf ${dir}
117 mkdir -p ${dir}
121 mkdir -p ${dir}/${d}
124 ln -s . ${dir}/usr
126 tar -C ${dir} -xf ${CACHE}/$file sbin/reboot sbin/halt sbin/init bin/sh sbin/sysctl \
127 lib/libncursesw.so.9 lib/libc.so.7 lib/libedit.so.8 libexec/ld-elf.so.1
134 echo "RC COMMAND RUNNING -- SUCCESS!!!!!"
135 halt -p
142 if [ -d ${OVERRIDE}/${ma_combo}/boot ]; then
151 [ -r $o/$i ] && echo Copying override $i && cp $o/$i ${dir}/$i
157 tar -C ${dir} -xf ${CACHE}/$file \
164 # XXX WHAT TO DO ABOUT LINKER HINTS -- PUNT FOR NOW
165 # XXX also, ZFS not supported on 32-bit powerpc platforms
169 echo -h -D -S115200 > ${dir}/boot.config
186 # Note: armv7 isn't done yet as its the odd-man out -- we need to extract things
196 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
197 dir=${TREES}/${ma_combo}/test-stand
198 mkdir -p ${dir}
199 mtree -deUW -f ${SRCTOP}/etc/mtree/BSD.root.dist -p ${dir}
204 SHELL="make -j 100 all" make buildenv TARGET=${m} TARGET_ARCH=${ma}
207 rm -rf ${dir}/bin ${dir}/[ac-z]* # Don't care about anything here
218 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
220 dir2=${TREES}/${ma_combo}/test-stand
223 rm -rf ${dir}
224 mkdir -p ${dir}
227 tar -c -f - -C ${dir2} boot | tar -xf - -C ${dir}
229 tar -c -f - -C ${dir3} boot | tar -xf - -C ${dir}
230 (cd ${dir} ; find . | LC_ALL=C sort | cpio -o -H newc | gzip > ${initrd})
241 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
242 dir=${TREES}/${ma_combo}/linuxboot-esp
244 mkdir -p ${dir}
249 mkdir -p ${dir}/efi/boot
270 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
271 src=${TREES}/${ma_combo}/linuxboot-esp
273 dir2=${TREES}/${ma_combo}/test-stand
274 esp=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.esp
275 ufs=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.ufs
276 zfs=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.zfs
277 img=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.img
278 img2=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-zfs.img
280 mkdir -p ${IMAGES}/${ma_combo}
281 makefs -t msdos -o fat_type=32 -o sectors_per_cluster=1 \
282 -o volume_label=EFISYS -s80m ${esp} ${src}
283 makefs -t ffs -B little -s 200m -o label=root ${ufs} ${dir} ${dir2}
284 mkimg -s gpt -p efi:=${esp} -p freebsd-ufs:=${ufs} -o ${img}
285 makefs -t zfs -s 200m \
286 -o poolname=${pool} -o bootfs=${pool} -o rootpath=/ \
288 mkimg -s gpt \
289 -p efi:=${esp} \
290 -p freebsd-zfs:=${zfs} -o ${img2}
291 rm -f ${esp} # Don't need to keep this around
301 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
302 linux="${CACHE}/linux/vmlinux-${m}*"
304 img=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-raw
312 # At the moment, we have just two -- and the images we've built so far are just
318 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
321 bios_code=${BIOS}/edk2-${ma_combo}-code.fd
322 bios_vars=${BIOS}/edk2-${ma_combo}-vars.fd
325 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-x86_64-code.fd ]; then
326 cp /usr/local/share/qemu/edk2-x86_64-code.fd ${bios_code}
328 cp /usr/local/share/qemu/edk2-i386-vars.fd ${bios_vars}
332 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-aarch64-code.fd ]; then
336 dd if=/usr/local/share/qemu/edk2-aarch64-code.fd of=${bios_code} conv=notrunc
342 img=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}.img
343 img2=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-raw
344 img3=${IMAGES}/${ma_combo}/linuxboot-${ma_combo}-zfs.img
345 out=${SCRIPTS}/${ma_combo}/linuxboot-test.sh
346 out2=${SCRIPTS}/${ma_combo}/linuxboot-test-raw.sh
347 out3=${SCRIPTS}/${ma_combo}/linuxboot-test-zfs.sh
348 cd=${CACHE}/FreeBSD-13.1-RELEASE-arm64-aarch64-bootonly.iso
349 mkdir -p ${SCRIPTS}/${ma_combo}
353 ${qemu_bin}/qemu-system-x86_64 -nographic -m 512M \\
354 -drive file=${img},if=none,id=drive0,cache=writeback,format=raw \\
355 -device virtio-blk,drive=drive0,bootindex=0 \\
356 -drive file=${bios_code},format=raw,if=pflash \\
357 -drive file=${bios_vars},format=raw,if=pflash \\
358 -monitor telnet::4444,server,nowait \\
359 -serial stdio \$*
364 raw=${IMAGES}/${ma_combo}/freebsd-arm64-aarch64.img
366 ${qemu_bin}/qemu-system-aarch64 -nographic -machine virt,gic-version=3 -m 512M -smp 4 \\
367 -cpu cortex-a57 \\
368 -drive file=${img},if=none,id=drive0,cache=writeback \\
369 -device virtio-blk,drive=drive0,bootindex=0 \\
370 -drive file=${raw},if=none,id=drive1,cache=writeback \\
371 -device nvme,serial=fboot,drive=drive1,bootindex=1 \\
372 -drive file=${bios_code},format=raw,if=pflash \\
373 -drive file=${bios_vars},format=raw,if=pflash \\
374 -monitor telnet::4444,server,nowait \\
375 -serial stdio \$*
378 # Note: We have to use cortex-a57 for raw mode because the
381 ${qemu_bin}/qemu-system-aarch64 -m 1024 -cpu cortex-a57 -M virt \\
382 -kernel ${img2}.kernel -initrd ${img2}.initrd \\
383 -append "console=ttyAMA0" \\
384 -drive file=${cd},if=none,id=drive0,cache=writeback,format=raw \\
385 -device virtio-blk,drive=drive0,bootindex=0 \\
386 -nographic -monitor telnet::4444,server,nowait \\
387 -serial stdio \$*
390 # Note: We have to use cortex-a57 for raw mode because the
393 ${qemu_bin}/qemu-system-aarch64 -nographic -machine virt,gic-version=3 -m 512M -smp 4 \\
394 -cpu cortex-a57 \\
395 -drive file=${img3},if=none,id=drive0,cache=writeback \\
396 -device virtio-blk,drive=drive0,bootindex=0 \\
397 -drive file=${bios_code},format=raw,if=pflash \\
398 -drive file=${bios_vars},format=raw,if=pflash \\
399 -monitor telnet::4444,server,nowait \\
400 -serial stdio \$*
414 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
415 dir=${TREES}/${ma_combo}/freebsd-esp
416 dir2=${TREES}/${ma_combo}/test-stand
417 rm -rf ${dir}
418 mkdir -p ${dir}
423 mkdir -p ${dir}/efi/boot
436 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
437 src=${TREES}/${ma_combo}/freebsd-esp
439 dir2=${TREES}/${ma_combo}/test-stand
440 esp=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.esp
441 ufs=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.ufs
442 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
443 mkdir -p ${IMAGES}/${ma_combo}
444 mkdir -p ${dir2}/etc
448 makefs -t msdos -o fat_type=32 -o sectors_per_cluster=1 \
449 -o volume_label=EFISYS -s100m ${esp} ${src}
450 makefs -t ffs -B little -s 200m -o label=root ${ufs} ${dir} ${dir2}
451 mkimg -s gpt -p efi:=${esp} -p freebsd-ufs:=${ufs} -o ${img}
452 # rm -f ${esp} ${ufs} # Don't need to keep this around
455 set -x
462 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
464 dir2=${TREES}/${ma_combo}/test-stand
465 ufs=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.ufs
466 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
467 mkdir -p ${IMAGES}/${ma_combo}
468 mkdir -p ${dir2}/etc
472 makefs -t ffs -B little -s 200m \
473 -o label=root,version=2,bsize=32768,fsize=4096,density=16384 \
475 mkimg -s gpt -b ${dir2}/boot/pmbr \
476 -p freebsd-boot:=${dir2}/boot/gptboot \
477 -p freebsd-ufs:=${ufs} \
478 -o ${img}
479 rm -f ${src}/etc/fstab
481 # PowerPC for 32-bit mac
486 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
488 dir2=${TREES}/${ma_combo}/test-stand
489 ufs=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.ufs
490 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
491 mkdir -p ${IMAGES}/${ma_combo}
492 mkdir -p ${dir2}/etc
496 makefs -t ffs -B big -s 200m \
497 -o label=root,version=2,bsize=32768,fsize=4096,density=16384 \
499 mkimg -a 1 -s apm \
500 -p freebsd-boot:=${dir2}/boot/boot1.hfs \
501 -p freebsd-ufs:=${ufs} \
502 -o ${img}
514 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
517 bios_code=${BIOS}/edk2-${ma_combo}-code.fd
518 bios_vars=${BIOS}/edk2-${ma_combo}-vars.fd
521 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-x86_64-code.fd ]; then
522 cp /usr/local/share/qemu/edk2-x86_64-code.fd ${bios_code}
524 cp /usr/local/share/qemu/edk2-i386-vars.fd ${bios_vars}
528 if [ ${bios_code} -ot /usr/local/share/qemu/edk2-aarch64-code.fd ]; then
532 dd if=/usr/local/share/qemu/edk2-aarch64-code.fd of=${bios_code} conv=notrunc
538 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
539 out=${SCRIPTS}/${ma_combo}/freebsd-test.sh
540 mkdir -p ${SCRIPTS}/${ma_combo}
544 ${qemu_bin}/qemu-system-x86_64 -nographic -m 512M \\
545 -drive file=${img},if=none,id=drive0,cache=writeback,format=raw \\
546 -device virtio-blk,drive=drive0,bootindex=0 \\
547 -drive file=${bios_code},format=raw,if=pflash \\
548 -drive file=${bios_vars},format=raw,if=pflash \\
549 -monitor telnet::4444,server,nowait \\
550 -serial stdio \$*
555 raw=${IMAGES}/${ma_combo}/nvme-test-empty.raw
557 ${qemu_bin}/qemu-system-aarch64 -nographic -machine virt,gic-version=3 -m 512M \\
558 -cpu cortex-a57 -drive file=${img},if=none,id=drive0,cache=writeback -smp 4 \\
559 -device virtio-blk,drive=drive0,bootindex=0 \\
560 -drive file=${bios_code},format=raw,if=pflash \\
561 -drive file=${bios_vars},format=raw,if=pflash \\
562 -drive file=${raw},if=none,id=drive1,cache=writeback,format=raw \\
563 -device nvme,serial=deadbeef,drive=drive1 \\
564 -monitor telnet::4444,server,nowait \\
565 -serial stdio \$*
571 set -x
576 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
577 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
578 out=${SCRIPTS}/${ma_combo}/freebsd-test.sh
579 mkdir -p ${SCRIPTS}/${ma_combo}
581 ${qemu_bin}/qemu-system-ppc -m 1g -M mac99,via=pmu \\
582 -vga none -nographic \\
583 -drive file=${img},if=virtio \\
584 -prom-env "boot-device=/pci@f2000000/scsi/disk@0:,\\\\\\:tbxi" \\
585 -monitor telnet::4444,server,nowait \\
586 -serial stdio \$*
589 set -x
594 [ "${m}" != "${ma}" ] && ma_combo="${m}-${ma}"
595 img=${IMAGES}/${ma_combo}/freebsd-${ma_combo}.img
596 out=${SCRIPTS}/${ma_combo}/freebsd-test.sh
597 mkdir -p ${SCRIPTS}/${ma_combo}
599 ${qemu_bin}/qemu-system-i386 -m 1g \\
600 -vga none -nographic \\
601 -drive file=${img},format=raw \\
602 -nographic \\
603 -monitor telnet::4444,server,nowait \\
604 -serial stdio \$*
611 set -e