出自flip the world 檢視U-boot的原始碼 頁面討論 閱讀檢視原始碼檢視歷史 ←U-boot 您沒有權限執行編輯此頁面,由於以下原因: 您請求的操作只有這個群組的使用者能使用:使用者 您可以檢視並複製此頁面的原始碼。 Building '''U-Boot''' for the Raspberry Pi, preparing an SD card with it, and booting a kernel from USB. == source == * <nowiki>git clone https://github.com/gonzoua/u-boot-pi.git</nowiki> * <nowiki>svn co file:///var/svn/rpi_uboot/trunk</nowiki> == Toolchain == * <nowiki>git clone https://github.com/raspberrypi/tools</nowiki> == 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 == * [http://elinux.org/RPi_U-Boot RPi U-Boot] [[Category:Software and Tools]] 返回到「U-boot」。