已建立頁面,內容為 "== 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…" |
Add a lead sentence |
||
| (未顯示同一使用者於中間所作的 2次修訂) | |||
| 第1行: | 第1行: | ||
Building '''U-Boot''' for the Raspberry Pi, preparing an SD card with it, and booting a kernel from USB. | |||
== source == | == source == | ||
* <nowiki>git clone https://github.com/gonzoua/u-boot-pi.git</nowiki> | * <nowiki>git clone https://github.com/gonzoua/u-boot-pi.git</nowiki> | ||
* <nowiki>svn co file:///var/svn/rpi_uboot/trunk</nowiki> | * <nowiki>svn co file:///var/svn/rpi_uboot/trunk</nowiki> | ||
== | == Toolchain == | ||
* <nowiki>git clone https://github.com/raspberrypi/tools</nowiki> | * <nowiki>git clone https://github.com/raspberrypi/tools</nowiki> | ||
== | == Build == | ||
* export ARCH=arm | * export ARCH=arm | ||
* export CROSS_COMPILE=arm-linux-gnueabi- | * export CROSS_COMPILE=arm-linux-gnueabi- | ||
| 第26行: | 第28行: | ||
* U-Boot> bootz ${loadaddr} | * U-Boot> bootz ${loadaddr} | ||
== | == Reference == | ||
* [http://elinux.org/RPi_U-Boot RPi U-Boot] | * [http://elinux.org/RPi_U-Boot RPi U-Boot] | ||
[[Category:Software and Tools]] | |||
2026年8月23日 (日) 17:57的最新修訂
Building U-Boot for the Raspberry Pi, preparing an SD card with it, and booting a kernel from USB.
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}
- use usb sub-system to check avaliable dev and part
- U-Boot> ext2load usb {dev}:{part} ${loadaddr} zImage
- U-Boot> bootz ${loadaddr}