forked from raspberrypi/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
How to boot using device tree
lp0 edited this page Jun 16, 2012
·
9 revisions
- Use these
config.txtparameters:
device_tree=bcm2835.dtb device_tree_address=0x100 kernel_address=0x8000 disable_commandline_tags=1 init_uart_baud=115200 init_uart_clock=3000000 init_emmc_clock=50000000
- Build a kernel from lp0/rpi-linear
- Copy
arch/arm/boot/zImagetokernel.img - Run
make dtbs
- Until Issue #24 is completed you need to manually configure the device tree file
- Using ftdput from
git://git.jdl.com/software/dtc.git:
- Using ftdput from
fdtput arch/arm/boot/bcm2835-rpi-b.dtb /system revision 2 fdtput -t x arch/arm/boot/bcm2835-rpi-b.dtb /system serial 0 0 fdtput -t hhx arch/arm/boot/bcm2835-rpi-b.dtb /axi/usb/hub/ethernet mac-address 02 00 00 00 00 00 fdtput arch/arm/boot/bcm2835-rpi-b.dtb /display broadcom,width 1920 fdtput arch/arm/boot/bcm2835-rpi-b.dtb /display broadcom,height 1200 fdtput arch/arm/boot/bcm2835-rpi-b.dtb /display broadcom,depth 16 fdtput -t x arch/arm/boot/bcm2835-rpi-b.dtb /axi/dma broadcom,channels 783c
- If you want to use 192MB instead of the default 128MB:
(echo -ne "\x00\x00\x00\x00\x0c\x00\x00\x00"; echo -e "\x00\x00\x00\x00\x04\x00\x00\x00") \ | dd conv=notrunc bs=8 count=2 seek=5 of=arch/arm/boot/bcm2835-rpi-b.dtb
- Copy
arch/arm/boot/bcm2835-rpi-b.dtbtobcm2835.dtb