McGregor80
Posts: 40
Joined: Wed Feb 20, 2013 10:35 am

U-boot for Raspberry

Sun Sep 29, 2013 9:49 pm

Please help.
I'm trying to build an u-boot which will work.
I just want to boot from it and go in to u-boot menu without even loading any kernel image.
I read some on this page: http://elinux.org/RPi_U-Boot
What i did: (of course downloaded and extracted the filehttps://github.com/gonzoua/u-boot-pi/archive/rpi.tar.gz )
1 export $ARCH=arm; export $CROSS_COMPILE = arm-linux-gnueabi-
2. make rpi_b
Here i get a lot of rows with message "nothing to be done.." some warnings but no error.
Like author said after few minutes i get 5 files:
  • u_boot
    u_boot.bin
    u_boot.map
    u_boot.lds
    u_boot.srec
Now here i get lost because i don't know exactly what to do with them.
I says that
The file u-boot.bin should be used as the input file.
Has anyone experience or idea how to continue??? Link which is guiding to http://elinux.org/RPi_Kernel_Compilatio ... image_file is not directly useful as it explains how to build kernel but id doesn't say where to use the u-boot.bin file.
(By the way i manage to build kernel zImage and kernel.img for rpi_defconfig but this knowledge doesn't help with this one).

thanks

mavrikiy_rvachka
Posts: 5
Joined: Mon Sep 30, 2013 9:31 am

Re: U-boot for Raspberry

Mon Sep 30, 2013 9:53 am

hi
you need:
1) create boot partition on your sd card
2) put there files:
bootcode.bin
cmdline.txt
config.txt
fixup_cd.dat
fixup.dat
fixup_x.dat
issue.txt
start_cd.elf
start.elf
start_x.elf
which you can get in raspian image (mount boot sector of raspbian.img and copy this stuff to your sd card boot sector)
3) create kernel.img from your boot.bin by using imagetool-uncompressed.py and put it to your sd card
4) plug your sd to raspberry and you would have an u-boot prompt after power up

toolchain and usefull info you could find here:
http://arrizza.org/wiki/index.php/RPI_U-boot

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: U-boot for Raspberry

Tue Oct 01, 2013 7:00 pm

mavrikiy_rvachka wrote: 2) put there files:
[snip]
which you can get in raspian image (mount boot sector of raspbian.img and copy this stuff to your sd card boot sector)
...or just download them directly from https://github.com/raspberrypi/firmware ... aster/boot

Return to “Raspbian”