[英]Booting mainline Linux kernel using device tree
I followed the following steps to build and flash my kernel on QEMU
: 我按照以下步骤在
QEMU
上构建和刷新内核:
make ARCH=arm distclean
make ARCH=arm versatile_defconfig
make ARCH=arm menuconfig
ARM EABI
to compile the kernel. ARM EABI
编译内核。 (enable this). make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
qemu-system-arm -M versatilepb -m 128M -kernel arch/arm/boot/uImage -append "console=tty1"
rootfs
parameter. rootfs
参数。 qemu-system-arm -M versatilepb -m 128M -kernel arch/arm/boot/uImage -initrd rootfs.img -append "root=/dev/ram mem=128M rdinit=/sbin/init" -serial stdio
On runtime, is kernel using a device tree to load the devices? 在运行时,内核是否使用设备树来加载设备? If yes, how to confirm and where is the device tree located?
如果是,如何确认以及设备树位于何处? (I need to make changes to the device tree file (.dts), but unable to find where is the file located) Please help
(我需要对设备树文件(.dts)进行更改,但无法找到该文件的位置)请帮助
设备树位于arch/arm/boot/dts/versatile-pb.dts
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.