]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/commitdiff
Use built-in device tree rahter than the one compiled with the kernel
authorMichal Sojka <michal.sojka@cvut.cz>
Wed, 16 May 2018 10:26:24 +0000 (12:26 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Wed, 16 May 2018 10:29:28 +0000 (12:29 +0200)
It seems that some kind of firmware, which runs before U-Boot, modifies the
device tree based on somethig (either configuration in Flash or detected
hardware).

With this, ethernet works even with our kernels booted from network.
diff --git a/build/boot-flashfs b/build/boot-flashfs index 4c801d7..d654a82
100755 --- a/build/boot-flashfs +++ b/build/boot-flashfs @@ -3,6 +3,7 @@
 # Boot localy built Linux kernel with root filesystem from the flash

 load linux-4.4/arch/arm64/boot/Image root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0320418051135 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4
-load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
+#load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb

-UBOOT_CMD=booti ${kernel_addr_r} - ${fdt_addr_r}
+# Use FDT prepared by firmware at address 0x92000000
+UBOOT_CMD=booti ${kernel_addr_r} - 0x92000000
diff --git a/build/boot-linux b/build/boot-linux
index 697fbd9..83af34a 100755
--- a/build/boot-linux
+++ b/build/boot-linux
@@ -3,7 +3,8 @@
 # Boot localy built Linux kernel and initramfs

 load linux-4.4/arch/arm64/boot/Image console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0320418051135 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1
-load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
+#load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
 load buildroot/images/rootfs.cpio.uboot

-UBOOT_CMD=booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
+# Use FDT prepared by firmware at address 0x92000000
+UBOOT_CMD=booti ${kernel_addr_r} ${ramdisk_addr_r} 0x92000000

build/boot-flashfs
build/boot-linux

index 4c801d756d5280432ddf209818b61d8497387446..d654a822765785b04a4d81deba118a3bbd77ba69 100755 (executable)
@@ -3,6 +3,7 @@
 # Boot localy built Linux kernel with root filesystem from the flash
 
 load linux-4.4/arch/arm64/boot/Image root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0320418051135 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4
-load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
+#load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
 
-UBOOT_CMD=booti ${kernel_addr_r} - ${fdt_addr_r}
+# Use FDT prepared by firmware at address 0x92000000
+UBOOT_CMD=booti ${kernel_addr_r} - 0x92000000
index 697fbd9ce512d71142167e06d5ee12a6b43898b1..83af34ad92303b20c9f5b0a2ddb80be723a13abe 100755 (executable)
@@ -3,7 +3,8 @@
 # Boot localy built Linux kernel and initramfs
 
 load linux-4.4/arch/arm64/boot/Image console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:0 net.ifnames=0 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 nvdumper_reserved=0x2772e0000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androidboot.serialno=0320418051135 bl_prof_dataptr=0x10000@0x277240000 sdhci_tegra.en_boot_part_access=1
-load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
+#load linux-4.4/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb
 load buildroot/images/rootfs.cpio.uboot
 
-UBOOT_CMD=booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
+# Use FDT prepared by firmware at address 0x92000000
+UBOOT_CMD=booti ${kernel_addr_r} ${ramdisk_addr_r} 0x92000000