u-boot files - device specific?
Stefan Kalkowski
stefan.kalkowski at ...1...
Mon Jul 8 11:13:54 CEST 2013
Hi Aditya,
On 07/08/2013 10:31 AM, Aditya Kousik wrote:
> Hi Ivan,
>
> Turns out that the board we use already has u-boot. Do we still need to
> get a working copy u-boot?
not necessarily, as long as you've all options, and thereby commands
available in your pre-built u-boot binary. U-boot is highly configurable
it's thereby troublesome to advice you on how to boot exactly with your
available binary.
> I added SPECS += uboot to the etc/specs.conf
> file. Ran make run/demo again. I now have image.elf and uImage.
This is an indication for me that you're not using Genode's latest
release, nor current git repository, but some outdated version, or some
old topic branch. We unified the way on how to produce the right boot
settings, and binaries by using the 'RUN_OPT' variable:
http://genode.org/documentation/release-notes/13.05#TFTP_boot_using_U-Boot
Please assure to use a up-to-date version of Genode in the first place!
> What's
> the next step from here? Just use dd command in terminal and copy the
> uImage to SD card?
>
> What other u-boot arguments need to tweaked here?
>
As already said, it hardly depends on your u-boot binary. When you have
a FFAT partition on your sd-card available, you might copy the uImage
binary to that filesystem, and load it via the 'fatload' command to
memory, as far as this command is available ;-).
You have to ensure to load the uImage to some place in memory, which
doesn't interfere with the ELF memory segments of the kernel to be
loaded. You can use e.g. readelf to identify where in memory the kernel,
and Genode system gets loaded by the u-boot bootloader:
/usr/local/genode-gcc/bin/genode-arm-readelf -l bin/core
Have a look at the sections of type "LOAD". The physical address ranges
of these sections shouldn't be crossed when loading the uImage from
sd-card to some memory address. Then you can 'bootm' with the memory
address you've chosen to load the uImage to.
However, describing and discussing the functioning of u-boot goes far
beyond the scope of this mailing list
Regards
Stefan
> Aditya
>
>
> On Mon, Jul 8, 2013 at 1:25 PM, Ivan Loskutov <loskutov.ivan at ...9...
> <mailto:loskutov.ivan at ...9...>> wrote:
>
> Hello Aditya,
>
> Yes, u-boot is board specific. You need to get sources of the
> u-boot, configure it and build for your board. After that setup
> bootcmd in u-boot (you can do it over serial console or hardcode it
> in board config).
> For booting image.elf you need enable CONFIG_CMD_ELF in board config.
> Genode build system can make uimage automatically. Just add SPECS +=
> uboot to etc/specs.conf
>
> --
> Ivan Loskutov
>
>
>
> 2013/7/8 Aditya Kousik <adit267.kousik at ...9...
> <mailto:adit267.kousik at ...9...>>
>
> Hello,
>
> I'm trying to run Genode on an i.MX6. And I've tried copying
> uImage. But that doesn't seem to be enough. I came across this :
> http://comments.gmane.org/gmane.os.genode.devel/813
>
> Your set of u-boot files, is it pandaboard specific? or can the
> MLO, u-boot.bin be copied to any device and booted?
>
> What's the procedure of booting from using the image.elf? (So
> far, i ran mkimage and created a uImage file. But that's
> obviously not enough. What's missing?)
>
> Thanks and regards,
> Aditya
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Genode-main mailing list
> Genode-main at lists.sourceforge.net
> <mailto:Genode-main at lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/genode-main
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Genode-main mailing list
> Genode-main at lists.sourceforge.net
> <mailto:Genode-main at lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/genode-main
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
>
>
>
> _______________________________________________
> Genode-main mailing list
> Genode-main at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>
--
Stefan Kalkowski
Genode Labs
http://www.genode-labs.com/ ยท http://genode.org/
More information about the users
mailing list