U-boot

出自 flip the world
於 2018年8月23日 (四) 10:59 由 Tommy (對話 | 貢獻) 所做的修訂 (已建立頁面,內容為 "== source == * <nowiki>git clone https://github.com/gonzoua/u-boot-pi.git</nowiki> * <nowiki>svn co file:///var/svn/rpi_uboot/trunk</nowiki> == toolchain == * <nowi…")
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
前往: 導覽搜尋

source

  • git clone https://github.com/gonzoua/u-boot-pi.git
  • svn co file:///var/svn/rpi_uboot/trunk

toolchain

  • git clone https://github.com/raspberrypi/tools

build

  • export ARCH=arm
  • export CROSS_COMPILE=arm-linux-gnueabi-
  • make rpi_b

prepare SD card for your u-boot

  • ./tools/mkimage/imagetool-uncompressed.py u-boot-pi/u-boot.bin
  • cp kernel.img RASPBIAN_BOOT_PARTATION

boot to kernel from USB

  • prepare your zImage in usb disk, and you should try another usb port if not working while load to ram
  • U-Boot> usb start
    • use usb sub-system to check avaliable dev and part
      • U-Boot> usb dev
      • U-Boot> usb part {dev}
    • use ext2load to check where your zImage existed or not
      • U-Boot> ext2ls usb {dev}:{part}
  • U-Boot> ext2load usb {dev}:{part} ${loadaddr} zImage
  • U-Boot> bootz ${loadaddr}

reference