Index: head/sysutils/u-boot-rpi3/Makefile =================================================================== --- head/sysutils/u-boot-rpi3/Makefile (revision 468629) +++ head/sysutils/u-boot-rpi3/Makefile (revision 468630) @@ -1,13 +1,16 @@ # $FreeBSD$ MAINTAINER= uboot@FreeBSD.org MASTERDIR= ${.CURDIR}/../u-boot-master +PORTREVISION= 1 MODEL= rpi3 BOARD_CONFIG= rpi_3_defconfig FAMILY= rpi UBOOT_ARCH= aarch64 DEPENDS= ${LOCALBASE}/share/rpi-firmware/bootcode.bin:sysutils/rpi-firmware + +EXTRA_PATCHES= ${.CURDIR}/files/ .include "${MASTERDIR}/Makefile" Index: head/sysutils/u-boot-rpi3/files/patch-board_raspberrypi_rpi_rpi.c =================================================================== --- head/sysutils/u-boot-rpi3/files/patch-board_raspberrypi_rpi_rpi.c (nonexistent) +++ head/sysutils/u-boot-rpi3/files/patch-board_raspberrypi_rpi_rpi.c (revision 468630) @@ -0,0 +1,13 @@ +--- board/raspberrypi/rpi/rpi.c.orig 2018-03-13 12:02:19 UTC ++++ board/raspberrypi/rpi/rpi.c +@@ -273,6 +273,10 @@ static void set_fdt_addr(void) + return; + + env_set_hex("fdt_addr", fw_dtb_pointer); ++ /* ++ * Set fdtcontroladdr too so it can be picked up by boot script ++ */ ++ env_set_hex("fdtcontroladdr", fw_dtb_pointer); + } + + /* Property changes on: head/sysutils/u-boot-rpi3/files/patch-board_raspberrypi_rpi_rpi.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/u-boot-rpi3/files/patch-configs_rpi__3__defconfig =================================================================== --- head/sysutils/u-boot-rpi3/files/patch-configs_rpi__3__defconfig (nonexistent) +++ head/sysutils/u-boot-rpi3/files/patch-configs_rpi__3__defconfig (revision 468630) @@ -0,0 +1,14 @@ +--- configs/rpi_3_defconfig.orig 2018-03-13 12:02:19 UTC ++++ configs/rpi_3_defconfig +@@ -13,9 +13,9 @@ CONFIG_SYS_PROMPT="U-Boot> " + CONFIG_CMD_GPIO=y + CONFIG_CMD_MMC=y + CONFIG_CMD_USB=y +-CONFIG_OF_EMBED=y ++CONFIG_OF_BOARD=y + CONFIG_ENV_FAT_INTERFACE="mmc" +-CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" ++CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" + CONFIG_DM_KEYBOARD=y + CONFIG_DM_MMC=y + CONFIG_MMC_SDHCI=y Property changes on: head/sysutils/u-boot-rpi3/files/patch-configs_rpi__3__defconfig ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/u-boot-rpi3/files/patch-drivers_usb_host_dwc2.c =================================================================== --- head/sysutils/u-boot-rpi3/files/patch-drivers_usb_host_dwc2.c (nonexistent) +++ head/sysutils/u-boot-rpi3/files/patch-drivers_usb_host_dwc2.c (revision 468630) @@ -0,0 +1,10 @@ +--- drivers/usb/host/dwc2.c.orig 2018-03-13 12:02:19 UTC ++++ drivers/usb/host/dwc2.c +@@ -1283,6 +1283,7 @@ struct dm_usb_ops dwc2_usb_ops = { + + static const struct udevice_id dwc2_usb_ids[] = { + { .compatible = "brcm,bcm2835-usb" }, ++ { .compatible = "brcm,bcm2708-usb" }, + { .compatible = "snps,dwc2" }, + { } + }; Property changes on: head/sysutils/u-boot-rpi3/files/patch-drivers_usb_host_dwc2.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/u-boot-rpi3/files/patch-drivers_video_bcm2835.c =================================================================== --- head/sysutils/u-boot-rpi3/files/patch-drivers_video_bcm2835.c (nonexistent) +++ head/sysutils/u-boot-rpi3/files/patch-drivers_video_bcm2835.c (revision 468630) @@ -0,0 +1,10 @@ +--- drivers/video/bcm2835.c.orig 2018-03-13 12:02:19 UTC ++++ drivers/video/bcm2835.c +@@ -49,6 +49,7 @@ static int bcm2835_video_probe(struct udevice *dev) + + static const struct udevice_id bcm2835_video_ids[] = { + { .compatible = "brcm,bcm2835-hdmi" }, ++ { .compatible = "brcm,bcm2708-fb" }, + { } + }; + Property changes on: head/sysutils/u-boot-rpi3/files/patch-drivers_video_bcm2835.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/u-boot-rpi3/files/patch-include_configs_rpi.h =================================================================== --- head/sysutils/u-boot-rpi3/files/patch-include_configs_rpi.h (nonexistent) +++ head/sysutils/u-boot-rpi3/files/patch-include_configs_rpi.h (revision 468630) @@ -0,0 +1,10 @@ +--- include/configs/rpi.h.orig 2018-03-13 12:02:19 UTC ++++ include/configs/rpi.h +@@ -133,6 +133,7 @@ + + #define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 0) \ ++ func(MMC, mmc, 1) \ + func(USB, usb, 0) \ + func(PXE, pxe, na) \ + func(DHCP, dhcp, na) Property changes on: head/sysutils/u-boot-rpi3/files/patch-include_configs_rpi.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/u-boot-rpi3/files/patch-lib_efi__loader_efi__console.c =================================================================== --- head/sysutils/u-boot-rpi3/files/patch-lib_efi__loader_efi__console.c (nonexistent) +++ head/sysutils/u-boot-rpi3/files/patch-lib_efi__loader_efi__console.c (revision 468630) @@ -0,0 +1,13 @@ +--- lib/efi_loader/efi_console.c.orig 2018-03-13 12:02:19 UTC ++++ lib/efi_loader/efi_console.c +@@ -547,8 +547,8 @@ int efi_console_register(void) + printf("ERROR: Failed to register console event\n"); + return r; + } +- /* 5000 ns cycle is sufficient for 2 MBaud */ +- r = efi_set_timer(console_timer_event, EFI_TIMER_PERIODIC, 50); ++ /* 100 ms */ ++ r = efi_set_timer(console_timer_event, EFI_TIMER_PERIODIC, 100*1000*10); + if (r != EFI_SUCCESS) + printf("ERROR: Failed to set console timer\n"); + return r; Property changes on: head/sysutils/u-boot-rpi3/files/patch-lib_efi__loader_efi__console.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property