arm64 perf编译

perf编译:

root@ubuntu:/home/kitiz/linuxos/linux-4.9.4# make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- WERROR=0  tools/perf

 

虚机共享文件:

qemu-img create share.img 30M
mkfs.ext4 share.img
mount -t ext4 share.img share

qemu-system-aarch64 -machine virt -cpu cortex-a72 -nographic -smp 2 -m 128 -kernel linux-4.9.4/arch/arm64/boot/Image.gz -initrd ./initramfs.img   -append "rdinit=/linuxrc console=ttyAMA0"  -drive file=/home/kitiz/linuxos/share.img,if=virtio,format=raw -s -S

 

cpio生成镜像:

find .  | cpio -o -H newc >  ../initramfsnz.img

posted @ 2021-12-15 16:43  kitiz  阅读(455)  评论(0)    收藏  举报