Advertisement
armoon

uboot-raspberrypi package

Sep 30th, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index b41cb86..8ea3b66 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -3,7 +3,7 @@
  6. # Contributor: Kevin Mihelich <kevin@archlinuxarm.org>
  7.  
  8. pkgname=uboot-raspberrypi
  9. -pkgver=2021.10
  10. +pkgver=2022.07
  11. pkgrel=1
  12. pkgdesc="U-Boot for Raspberry Pi 4"
  13. arch=('aarch64')
  14. @@ -13,7 +13,7 @@ makedepends=('bc' 'dtc' 'git')
  15. conflicts=('linux-rpi4' 'linux-rpi4-mainline' 'uboot')
  16. provides=('uboot')
  17. install=${pkgname}.install
  18. -_commit=a490197f0672d948860b2b807884ae65eabc4d4f
  19. +_commit=b179e7bf2b0c48577916043909c24173b2d129d1
  20. #commit-rpi4b=b0f9870274333af93ecc5e779619bf51c092364d
  21.  
  22. source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
  23. @@ -24,24 +24,20 @@ source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver/rc/-rc}.tar.bz2"
  24. "https://github.com/raspberrypi/firmware/raw/${_commit}/boot/bcm2711-rpi-cm4.dtb"
  25. "https://github.com/raspberrypi/firmware/raw/${_commit}/boot/overlays/miniuart-bt.dtbo"
  26. "https://github.com/raspberrypi/firmware/raw/${_commit}/boot/overlays/dwc2.dtbo"
  27. - '0001-rpi-increase-space-for-kernel.patch'
  28. 'config.txt')
  29.  
  30. -md5sums=('f1392080facf59dd2c34096a5fd95d4c'
  31. - '140a6706528e87482aee9dfdd490641b'
  32. - '89e5ef34bc9895ac60705d0fa4720971'
  33. - '0b43431f9c7a854cbcffd4a29d8d3e96'
  34. - 'b4ba6b95178a5d411fca7b0bf402234b'
  35. - 'ee9d76b20855e7469eebedc0c12cc0cb'
  36. - 'caef061ac48013d265d8376827f408ec'
  37. - '4aa9859b5d08c5f59112cf54b1f83932'
  38. - 'aeb43f1e01983ceb8675380338ec56e8'
  39. - '387a6a9909f954754ff0f7f39e1b1f89')
  40. +md5sums=('b41850031d6e1cbc14f973e085469154'
  41. + '19b12db61e0c5e9e1e592abd0ffe5e12'
  42. + '2b53428e6b0d38ee202bd24b2eb6ede9'
  43. + '8dcd9a5d77b859d138f9aa794e38ca23'
  44. + '16104d0705832fa65b80b5e4d01a218e'
  45. + '942b635b58306e91fb36bc54a192c647'
  46. + 'caef061ac48013d265d8376827f408ec'
  47. + '4aa9859b5d08c5f59112cf54b1f83932'
  48. + '0cdc73e4bc99c5cc2dafeca5f570548c')
  49.  
  50. prepare() {
  51. cd u-boot-${pkgver/rc/-rc}
  52. -
  53. - patch -p1 -i ../0001-rpi-increase-space-for-kernel.patch
  54. }
  55.  
  56. build() {
  57. diff --git a/config.txt b/config.txt
  58. index 51504ea..1bac003 100644
  59. --- a/config.txt
  60. +++ b/config.txt
  61. @@ -25,3 +25,8 @@ dtoverlay=miniuart-bt
  62.  
  63. # Enable dwc2 USB host for CM4 and 400
  64. dtoverlay=dwc2,dr_mode=host
  65. +
  66. +# Enable uart
  67. +enable_uart=1
  68. +earlycon=uart8250,mmio32,0xfe215040
  69. +earlycon=pl011,mmio32,0xfe201000
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement