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
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@...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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Hi Ivan,
Turns out that the board we use already has u-boot. Do we still need to get a working copy u-boot? I added SPECS += uboot to the etc/specs.conf file. Ran make run/demo again. I now have image.elf and uImage. 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?
Aditya
On Mon, Jul 8, 2013 at 1:25 PM, Ivan Loskutov <loskutov.ivan@...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@...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@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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Hi Aditya,
On 07/08/2013 08:48 AM, Aditya Kousik wrote:
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
I hope you're not trying to use the uImage build for i.MX53 on a i.MX6 platform? Apart from u-boot, the kernel, as well as Genode's core process, and drivers are hardly bound not only to the SoC (i.MX53 or i.MX6), but also to the board the SoC is built in. So you can't just run the same image built for i.MX53 Quickstart board without modifications on some i.MX6 board.
Regards Stefan
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
I'm not familiar with i.MX6. If your u-boot supported loading files from sd-card ( commands fatload mmc or ext2load mmc), you can copy uImage to sd-card fat/ext2 partition and modify bootcmd via serial console in u-boot. Or you can use booting via tftp.
-- Ivan Loskutov
2013/7/8 Aditya Kousik <adit267.kousik@...9...>
Hi Ivan,
Turns out that the board we use already has u-boot. Do we still need to get a working copy u-boot? I added SPECS += uboot to the etc/specs.conf file. Ran make run/demo again. I now have image.elf and uImage. 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?
Aditya
On Mon, Jul 8, 2013 at 1:25 PM, Ivan Loskutov <loskutov.ivan@...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@...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@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@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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
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@...9... mailto:loskutov.ivan@...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@...9... <mailto:adit267.kousik@...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@lists.sourceforge.net <mailto:Genode-main@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@lists.sourceforge.net <mailto:Genode-main@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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main