odroid DTB support
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).
What would you prefer?
Guillaume
Hello Guillaume,
Quoted 11 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).
Quoted 6 lines
What would you prefer?
Guillaume
Is, that the reason of adding the boot script by your last patches? If, yes then it's not needed. Odroid supports mainline kernel booting.
Just put kernel image and fdt file with it's proper (default) name to boot partition and wait for autoboot command to execute. This just work with defaults.
Also you can use itb image, to have a single boot image.
Best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 14 lines
Hello Guillaume,
Quoted 11 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).
Quoted 8 lines
Quoted 6 lines
What would you prefer?
Guillaume
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Quoted 3 lines
If, yes then it's not needed. Odroid supports mainline kernel booting.
Just put kernel image and fdt file with it's proper (default) name to boot partition and wait for autoboot command to execute. This just work with defaults.
I cannot find where fdtfile is defined. Could you point me, please?
I only found it for XU3 version. Not for U3/X2 version.
Maybe, it is in DFU infos? If so, how to get fdtfile info, so that we can boot from our bootscript?
Quoted 2 lines
Also you can use itb image, to have a single boot image.
No, we use zImage + DTB + initrd from a bootscript.
Guillaume
Quoted 2 lines
Best regards,
Quoted 20 lines · Guillaume Gardet
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 17 lines
Hello Guillaume,
Quoted 14 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).What would you prefer?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Guillaume
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151011/d1160494/attachment.sig>
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 23 lines · Guillaume Gardet
Quoted 22 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 20 lines
Hello Guillaume,
Quoted 17 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).What would you prefer?
Guillaume
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
What we need:
* Boot on boot.scr (mainly to define kernel name, initrd name and bootargs)
* Use (pre-defined) fdtfile, or be able to define it manually if not already set (or not in sync with Linux kernel)
Guillaume
Hello,
Quoted 35 lines · Guillaume Gardet
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 24 lines · Guillaume Gardet
Quoted 23 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 21 lines
Hello Guillaume,
Quoted 18 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).What would you prefer?
Guillaume
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
Quoted 5 lines
This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
What we need:
* Boot on boot.scr (mainly to define kernel name, initrd name and bootargs)
If you need some more, than the above, then using boot.scr is required, but if not, then U-Boot provides this all at default.
Quoted 8 lines
* Use (pre-defined) fdtfile, or be able to define it manually if not already set (or not in sync with Linux kernel)
Guillaume
For odroid_defconfig, the basic things are done automatically.
The variables:
- $fdtfile
- $boardname
are set automatically and are consistent with the mainline kernel file names, so for U3 the fdtfile is set as "exynos4412-odroidu3.dtb". If you have u/zImage and fdtfile on the first partition(boot), then it just boot with defaults.
If you need some more features, then you can use multi config itb format.
The initrd is also loaded automatically.
All images must be stored on $boot partition
Best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com
Quoted 28 lines · Guillaume Gardet
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 24 lines · Guillaume Gardet
Quoted 23 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 21 lines
Hello Guillaume,
Quoted 11 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).Quoted 6 lines
What would you prefer?
Guillaume
Is, that the reason of adding the boot script by your last patches?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
No, exynos-common pulls in generic distro. And in the event of boards that do not the answer is to pull in the generic distro framework.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151012/e7aaaa95/attachment.sig>
Le 12/10/2015 16:24, Tom Rini a ?crit :
Quoted 30 lines · Guillaume Gardet
Quoted 29 lines
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 25 lines · Guillaume Gardet
Quoted 24 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 14 lines
Hello Guillaume,
Quoted 11 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).Quoted 7 lines
Quoted 6 lines
What would you prefer?
Guillaume
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
No, exynos-common pulls in generic distro. And in the event of boards that do not the answer is to pull in the generic distro framework.
It seems that exynos-common includes only "config_distro_defaults.h", not "config_distro_bootcmd.h". And "config_distro_bootcmd.h" is needed for generic distro boot flow. Am I missing something?
Guillaume
Hi Tom, Guillaume,
Quoted 44 lines · Guillaume Gardet
Le 12/10/2015 16:24, Tom Rini a ?crit :
Quoted 33 lines · Guillaume Gardet
Quoted 32 lines
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 28 lines · Guillaume Gardet
Quoted 27 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 17 lines
Hello Guillaume,
Quoted 14 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev'
and 'board_name' env vars. Then, you need a 'findfdt' script to check
'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).Quoted 7 lines
Quoted 6 lines
What would you prefer?
Guillaume
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
No, exynos-common pulls in generic distro. And in the event of boards that do not the answer is to pull in the generic distro framework.
Quoted 8 lines
It seems that exynos-common includes only "
config_distro_defaults.h", not "config_distro_bootcmd.h".
And "config_distro_bootcmd.h" is needed for generic distro boot flow. Am I missing something?Guillaume
Tom,
it's true that, exynos5-common.h defines the CONFIG_EXTRA_ENV_SETTINGS, which provides "BOOTENV".
Odroid XU3 redefines CONFIG_EXTRA_ENV_SETTINGS, but in the fact it uses the same settings, appended by some private env variables.
Guillaume,
You're right, Exynos4 boards doesn't use the generic distro boot commands. And each board defines CONFIG_EXTRA_ENV_SETTINGS.
All boards works with the mainline kernel by default, so it's not a high priority for us to switch it to common env, but will do this soon.
You can check the bootscript example in the directory:
board/samsung/common/bootscripts/
As temporary, your patch for Odroid can be applied to support the boot.scr, but anyway it support mainline kernel and probably can boot Ubuntu images.
Some mainline release of U-Boot is used for Arch Linux images for Odroid U3, you can check the changes for ARCH here:
So if you need write custom boot.scr, maybe this will help you.
One more thing, if you need append the bootargs for your kernel, then you can set the $opts variable which is always appended to bootargs.
Best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com
Hi Przemyslaw, Tom,
Le 13/10/2015 11:11, Przemyslaw Marczak a ?crit :
Quoted 56 lines
Hi Tom, Guillaume,
Quoted 44 lines · Guillaume Gardet
Le 12/10/2015 16:24, Tom Rini a ?crit :
Quoted 33 lines · Guillaume Gardet
Quoted 32 lines
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 28 lines · Guillaume Gardet
Quoted 27 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 17 lines
Hello Guillaume,
Quoted 14 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev'
and 'board_name' env vars. Then, you need a 'findfdt' script to check
'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).Quoted 7 lines
Quoted 6 lines
What would you prefer?
Guillaume
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
No, exynos-common pulls in generic distro. And in the event of boards that do not the answer is to pull in the generic distro framework.
Quoted 8 lines
It seems that exynos-common includes only "
config_distro_defaults.h", not "config_distro_bootcmd.h".
And "config_distro_bootcmd.h" is needed for generic distro boot flow. Am I missing something?Guillaume
Quoted 6 lines
Tom,
it's true that,exynos5-common.hdefines theCONFIG_EXTRA_ENV_SETTINGS, which provides "BOOTENV".
Odroid XU3 redefinesCONFIG_EXTRA_ENV_SETTINGS, but in the fact it uses the same settings, appended by some private env variables.Guillaume,
You're right, Exynos4 boards doesn't use the generic distro boot commands. And each board definesCONFIG_EXTRA_ENV_SETTINGS.
Thanks for clarification.
Quoted 2 lines
All boards works with the mainline kernel by default, so it's not a high priority for us to switch it to common env, but will do this soon.
ok.
Quoted 3 lines
You can check the bootscript example in the directory:
board/samsung/common/bootscripts/
Here, if $fdtfile is not defined, then it boots without it. This won't work for us, since we need DTB (kernel multiplatform enabled).
Quoted 2 lines
As temporary, your patch for Odroid can be applied to support the boot.scr, but anyway it support mainline kernel and probably can boot Ubuntu images.
Yes, please apply it to get boot.scr support until odroid switch to generic boot system.
Quoted 6 lines
Some mainline release of U-Boot is used for Arch Linux images for Odroid U3, you can check the changes for ARCH here:
So if you need write custom boot.scr, maybe this will help you.
Big patches! ^^ openSUSE workflow is different. We try to minimize source patches, upstream our patches and do our custom things in boot scripts which is much more flexible. Our boot.scr is (nearly) ready. The only thing missing is the fdtfile definition (which is board dependent). We hardcoded it to U3 version for now to make tests but this should be fixed.
Guillaume
Quoted 4 lines
One more thing, if you need append the bootargs for your kernel, then you can set the $opts variable which is always appended to bootargs.
Best regards,
Hello,
Quoted 78 lines · Guillaume Gardet
Hi Przemyslaw, Tom,
Le 13/10/2015 11:11, Przemyslaw Marczak a ?crit :
Quoted 64 lines
Hi Tom, Guillaume,
Quoted 46 lines · Guillaume Gardet
Le 12/10/2015 16:24, Tom Rini a ?crit :
Quoted 34 lines · Guillaume Gardet
Quoted 33 lines
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 29 lines · Guillaume Gardet
Quoted 28 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 18 lines
Hello Guillaume,
Quoted 15 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot
upstream kernel easily.I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev'
and 'board_name' env vars. Then, you need a 'findfdt' script to check
'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).Quoted 7 lines
Quoted 6 lines
What would you prefer?
Guillaume
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide
some feedback on what needs doing? Thanks!This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
No, exynos-common pulls in generic distro. And in the event of boards that do not the answer is to pull in the generic distro framework.
Quoted 8 lines
It seems that exynos-common includes only "
config_distro_defaults.h", not "config_distro_bootcmd.h".
And "config_distro_bootcmd.h" is needed for generic distro boot flow. Am I missing something?Guillaume
Tom,
it's true that,exynos5-common.hdefines theCONFIG_EXTRA_ENV_SETTINGS, which provides "BOOTENV". Odroid XU3 redefinesCONFIG_EXTRA_ENV_SETTINGS, but in the fact it uses the same settings, appended by some private env variables.Quoted 3 lines
Guillaume,
You're right, Exynos4 boards doesn't use the generic distro boot commands. And each board definesCONFIG_EXTRA_ENV_SETTINGS.Thanks for clarification.
Quoted 3 lines
All boards works with the mainline kernel by default, so it's not a high priority for us to switch it to common env, but will do this soon.
Quoted 9 lines
ok.
Quoted 3 lines
You can check the bootscript example in the directory:
board/samsung/common/bootscripts/Here, if $fdtfile is not defined, then it boots without it. This won't work for us, since we need DTB (kernel multiplatform enabled).
Right, because it supports both fdt and non-fdt kernel images, the second one is to support old Hardkernel zImages.
Odroid XU3 defines fdtfile in board config extra envs, but the U3 sets it automatically on boot, since it supports both X2 and U3, the name depends on the board detection. This part of code is in set_board_info() in board/samsung/common/misc.c.
This is working well, if you have a minimum files on the boot partition (mmc 0:1):
- zImage
- exynos4412-odroidu3.dtb
then you will see:
---------------------------------------------------------------
Hit any key to stop autoboot: 0
reading exynos4412-odroidu3.dtb
46356 bytes read in 415 ms (108.4KiB/s) reading uInitrd
** Unable to read file uInitrd **
reading zImage
5161952 bytes read in 685 ms (7.2 MiB/s) Kernel image @ 0x40007fc0 [ 0x000000 - 0x4ec3e0] ## Flattened Device Tree blob at 40800000 Booting using the fdt blob at 0x40800000 Loading Device Tree to 4fff1000, end 4ffff513 ... OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
---------------------------------------------------------------
After apply your patches and put the menioned boot.scr I can see this:
---------------------------------------------------------------
Hit any key to stop autoboot:0
reading boot.scr
3034 bytes read in 312 ms (8.8 KiB/s)
## Executing script at 42000000
Found kernel image: zImage
reading exynos4412-odroidu3.dtb
46356 bytes read in 415 ms (108.4 KiB/s) Warning! Booting without RAMDISK: uInitrd! reading zImage
5161952 bytes read in 686 ms (7.2 MiB/s) Kernel image @ 0x40007fc0 [ 0x000000 - 0x4ec3e0 ] ## Flattened Device Tree blob at 40800000
Booting using the fdt blob at 0x40800000 Loading Device Tree to 4fff1000, end 4ffff513 ... OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
---------------------------------------------------------------
So this works for my setup. Maybe you have a problem with the filesystem?
Please check it manual if you can load dtb file, if not, maybe you should do mkfs.ext4/vfat on your boot partition to clean in, and then check again.
Quoted 8 lines
Quoted 4 lines
As temporary, your patch for Odroid can be applied to support the boot.scr, but anyway it support mainline kernel and probably can boot Ubuntu images.
Yes, please apply it to get boot.scr support until odroid switch to generic boot system.
Yes, I will ack your patches. Do you use DFU or Lthor tools? If, not this is useful tool, for testing e.g. your boot scripts, and then you should add boot.scr to CONFIG_DFU_ALT(odroid.h), near the uInitrd entry.
Quoted 16 lines
Quoted 8 lines
Some mainline release of U-Boot is used for Arch Linux images for Odroid U3, you can check the changes for ARCH here:
So if you need write custom boot.scr, maybe this will help you.
Big patches! ^^ openSUSE workflow is different. We try to minimize source patches, upstream our patches and do our custom things in boot scripts which is much more flexible.
Our boot.scr is (nearly) ready. The only thing missing is the fdtfile definition (which is board dependent). We hardcoded it to U3 version for now to make tests but this should be fixed.
Quoted 3 lines
Guillaume
Ok, that's good approach.
Quoted 7 lines
Quoted 5 lines
One more thing, if you need append the bootargs for your kernel, then you can set the $opts variable which is always appended to bootargs.
Best regards,
Best regards,
Signature · 4 lines
Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com
Quoted 38 lines · Guillaume Gardet
Le 12/10/2015 16:24, Tom Rini a ?crit :
Quoted 35 lines · Guillaume Gardet
Quoted 34 lines
Hi,
Le 12/10/2015 01:45, Tom Rini a ?crit :
Quoted 22 lines · Guillaume Gardet
Quoted 21 lines
Le 09/10/2015 14:23, Przemyslaw Marczak a ?crit :
Quoted 20 lines
Hello Guillaume,
Quoted 17 lines · Guillaume Gardet
Hi Przemyslaw,
I would like to add DTB support for odroid board to be able to boot upstream kernel easily.
I see 2 ways to do it:
* AddCONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIGsupport to set 'board_rev' and 'board_name' env vars. Then, you need a 'findfdt' script to check 'board_rev' and set fdtfile accordingly (as done for OMAP4 panda board)
* Set fdtfile name directly (as done for rpi or igep00x0).What would you prefer?
Guillaume
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Is, that the reason of adding the boot script by your last patches?
No, we need a boot script, because this is the way we boot our openSUSE images (we boot with an initrd and some special bootargs).
Hang on, exynos stuff uses the generic distro hooks. Can you take a look at doc/README.distro and see what openSUSE can hook into / provide some feedback on what needs doing? Thanks!
This is true for odroid XU3 (Exynos5 based) but Odroid U3/X2 (Exynos4 based) has no generic distro hooks at the moment.
Quoted 7 lines
Quoted 2 lines
No, exynos-common pulls in generic distro. And in the event of boards that do not the answer is to pull in the generic distro framework.
It seems that exynos-common includes only "
config_distro_defaults.h", not "config_distro_bootcmd.h".
And "config_distro_bootcmd.h" is needed for generic distro boot flow. Am I missing something?
Ah, good point, OK, thanks. Yes, instead of introducing more changes, all of these boards should be migrated to config_distro_bootcmd so that they just work in openSUSE or Arch or Ubuntu or Fedora or whatever.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151013/a2fd2d27/attachment.sig>