qemu-system-aarch64 来调试大端内核时,遇到以下几个问题,记录以下:
1、使用linux-4.9.84、linux-4.4.97内核
2、打入rt补丁。
3、配置CONFIG_BIG_ENDIAN,大端内核。
4、选择PREEMPT_LL时qemu可以启动。
5、选择PREEMPT_RT_FULL时,不能启动。
6、发现选择PREEMPT_RT_FULL时,伙伴系统只能选择CONFIG_SLUB。
7、当选择PREEMPT_LL + CONFIG_SLUB也不能启动。
8、当选择PREEMPT_LL + CONFIG_SLAB可以启动。
qemu-2.11版本,BIG_ENDIAN+PREEMPT_LL+CONFIG_SLUB,启动到如下就卡主了。
-bash-4.2$ ./qemu.sh
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.84-rt62-g6cc9d78 (yuchen@ubuntu-hv2.zte.com) (gcc version 6.2.0 20161103 ZTE Embsys-TSP Vtest (GCC) ) #119 SMP PREEMPT Mon Aug 27 18:58:51 CST 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] earlycon: pl11 at MMIO 0x0000000009000000 (options '')
[ 0.000000] bootconsole [pl11] enabled
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] percpu: Embedded 19 pages/cpu @ffffffc03ffd9000 s38552 r8192 d31080 u77824
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258048
[ 0.000000] Kernel command line: rw console=ttyAMA0,115200 earlycon
[ 0.0000