[opensuse-arm] Re: [ARM] Add u-boot-sunxi-with-spl.bin to u-boot package
Hi, Cc'ing opensuse-arm ML. Le 12/11/2014 21:29, Oscar a écrit :
Hi,
I'm trying to boot my cubieboard but it seems that there's a problem with the SPL and u-boot files. I'm not sure why, but generating the u-boot-sunxi-with-spl.bin, which is a bundle of the SPL and u-boot in one file, seems to do the trick. Adding the following line makes u-boot happy:
+install -D -m 0755 u-boot-sunxi-with-spl.bin %{buildroot}/boot/u-boot-sunxi-with-spl.bin
Just have it in /boot partition is ok, or did you replace your SPL with this file (using dd tool)?
I have the modifications in my repo[1] for all the sunxi boards (mele, cubieboard, cubieboard2 and cubietrack). Do you want to pull the changes or do I submit a patch against Base:System?
You should edit the u-boot.spec.in and u-boot.changes files and then run pre_checkin.sh script to generate all u-boot-*.spec and u-boot-*.changes files. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi, El 2014-11-13 09:30, Guillaume Gardet escribió:
Hi,
Cc'ing opensuse-arm ML.
Le 12/11/2014 21:29, Oscar a écrit :
Hi,
I'm trying to boot my cubieboard but it seems that there's a problem with the SPL and u-boot files. I'm not sure why, but generating the u-boot-sunxi-with-spl.bin, which is a bundle of the SPL and u-boot in one file, seems to do the trick. Adding the following line makes u-boot happy:
+install -D -m 0755 u-boot-sunxi-with-spl.bin %{buildroot}/boot/u-boot-sunxi-with-spl.bin
Just have it in /boot partition is ok, or did you replace your SPL with this file (using dd tool)?
It's not enough, you need to replace the spl & u-boot files with this file.
I have the modifications in my repo[1] for all the sunxi boards (mele, cubieboard, cubieboard2 and cubietrack). Do you want to pull the changes or do I submit a patch against Base:System?
You should edit the u-boot.spec.in and u-boot.changes files and then run pre_checkin.sh script to generate all u-boot-*.spec and u-boot-*.changes files.
Ok, thanks!
Guillaume
Cheers, -- Oscar -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 14/11/2014 01:03, Oscar a écrit :
Hi,
El 2014-11-13 09:30, Guillaume Gardet escribió:
Hi,
Cc'ing opensuse-arm ML.
Le 12/11/2014 21:29, Oscar a écrit :
Hi,
I'm trying to boot my cubieboard but it seems that there's a problem with the SPL and u-boot files. I'm not sure why, but generating the u-boot-sunxi-with-spl.bin, which is a bundle of the SPL and u-boot in one file, seems to do the trick. Adding the following line makes u-boot happy:
+install -D -m 0755 u-boot-sunxi-with-spl.bin %{buildroot}/boot/u-boot-sunxi-with-spl.bin
Just have it in /boot partition is ok, or did you replace your SPL with this file (using dd tool)?
It's not enough, you need to replace the spl & u-boot files with this file.
Replace SPL should be enough since u-boot is packaged in this one. Do we prefer to use SPL + u-boot (raw or on a partition) or raw bootable u-boot (all in one: u-boot + SPL)? Did SPL + u-boot (separated) work previously? I have no such board to perform tests. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
El 2014-11-14 11:06, Guillaume Gardet escribió:
Le 14/11/2014 01:03, Oscar a écrit :
Hi,
El 2014-11-13 09:30, Guillaume Gardet escribió:
Hi,
Cc'ing opensuse-arm ML.
Le 12/11/2014 21:29, Oscar a écrit :
Hi,
I'm trying to boot my cubieboard but it seems that there's a problem with the SPL and u-boot files. I'm not sure why, but generating the u-boot-sunxi-with-spl.bin, which is a bundle of the SPL and u-boot in one file, seems to do the trick. Adding the following line makes u-boot happy:
+install -D -m 0755 u-boot-sunxi-with-spl.bin %{buildroot}/boot/u-boot-sunxi-with-spl.bin
Just have it in /boot partition is ok, or did you replace your SPL with this file (using dd tool)?
It's not enough, you need to replace the spl & u-boot files with this file.
Replace SPL should be enough since u-boot is packaged in this one.
I did some tests and the problem seems to be the u-boot binary. Using u-boot.bin does not work, but using u-boot.img does work. That way even if I use both files (instead of the all-in-one file) it still works. What does not work is u-boot.bin + SPL.
Do we prefer to use SPL + u-boot (raw or on a partition) or raw bootable u-boot (all in one: u-boot + SPL)?
Either solutions are fine. I personally prefer the all-in-one as it's easier to maintain.
Did SPL + u-boot (separated) work previously?
I have no such board to perform tests.
u-boot 2014.10 is the first release with a complete support for sunxi boards, so this is the first time we use it (previously we used a downstream u-boot). -- Oscar. Cheers, -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 15/11/2014 15:39, Oscar C a écrit :
El 2014-11-14 11:06, Guillaume Gardet escribió:
Le 14/11/2014 01:03, Oscar a écrit :
Hi,
El 2014-11-13 09:30, Guillaume Gardet escribió:
Hi,
Cc'ing opensuse-arm ML.
Le 12/11/2014 21:29, Oscar a écrit :
Hi,
I'm trying to boot my cubieboard but it seems that there's a problem with the SPL and u-boot files. I'm not sure why, but generating the u-boot-sunxi-with-spl.bin, which is a bundle of the SPL and u-boot in one file, seems to do the trick. Adding the following line makes u-boot happy:
+install -D -m 0755 u-boot-sunxi-with-spl.bin %{buildroot}/boot/u-boot-sunxi-with-spl.bin
Just have it in /boot partition is ok, or did you replace your SPL with this file (using dd tool)?
It's not enough, you need to replace the spl & u-boot files with this file.
Replace SPL should be enough since u-boot is packaged in this one.
I did some tests and the problem seems to be the u-boot binary. Using u-boot.bin does not work, but using u-boot.img does work. That way even if I use both files (instead of the all-in-one file) it still works. What does not work is u-boot.bin + SPL.
Ok, thanks for finding the problem. :)
Do we prefer to use SPL + u-boot (raw or on a partition) or raw bootable u-boot (all in one: u-boot + SPL)?
Either solutions are fine. I personally prefer the all-in-one as it's easier to maintain.
The 2 solutions need to update u-boot packages and JeOS images too. Is there anyone else who prefer one or the other solution? I think it may be better to use SPL + u-boot in 2 files so that we do not hit a size limit for 1st external loader (SPL). (Not sure what is the limit for sunxi, but for OMAP3, it is very limited as it uses a small SRAM for SPL). Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 15.11.2014 um 15:54 schrieb Guillaume Gardet:
Le 15/11/2014 15:39, Oscar C a écrit :
El 2014-11-14 11:06, Guillaume Gardet escribió:
Do we prefer to use SPL + u-boot (raw or on a partition) or raw bootable u-boot (all in one: u-boot + SPL)?
Either solutions are fine. I personally prefer the all-in-one as it's easier to maintain.
The 2 solutions need to update u-boot packages and JeOS images too.
Is there anyone else who prefer one or the other solution?
I think it may be better to use SPL + u-boot in 2 files so that we do not hit a size limit for 1st external loader (SPL). (Not sure what is the limit for sunxi, but for OMAP3, it is very limited as it uses a small SRAM for SPL).
Let's take the official all-in-one binary, as that abstracts us from future breakages. It should have no impact on the SPL size, as the only difference is in what format and at what offset the non-SPL part is placed. Regards, Andreas -- SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
El 2014-11-15 16:05, Andreas Färber escribió:
Am 15.11.2014 um 15:54 schrieb Guillaume Gardet:
Le 15/11/2014 15:39, Oscar C a écrit :
El 2014-11-14 11:06, Guillaume Gardet escribió:
Do we prefer to use SPL + u-boot (raw or on a partition) or raw bootable u-boot (all in one: u-boot + SPL)?
Either solutions are fine. I personally prefer the all-in-one as it's easier to maintain.
The 2 solutions need to update u-boot packages and JeOS images too.
Is there anyone else who prefer one or the other solution?
I think it may be better to use SPL + u-boot in 2 files so that we do not hit a size limit for 1st external loader (SPL). (Not sure what is the limit for sunxi, but for OMAP3, it is very limited as it uses a small SRAM for SPL).
Let's take the official all-in-one binary, as that abstracts us from future breakages. It should have no impact on the SPL size, as the only difference is in what format and at what offset the non-SPL part is placed.
Created SR 261883 to switch to the all-in-one binary. -- Cheers -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 15/11/2014 16:05, Andreas Färber a écrit :
Am 15.11.2014 um 15:54 schrieb Guillaume Gardet:
Le 15/11/2014 15:39, Oscar C a écrit :
El 2014-11-14 11:06, Guillaume Gardet escribió:
Do we prefer to use SPL + u-boot (raw or on a partition) or raw bootable u-boot (all in one: u-boot + SPL)?
Either solutions are fine. I personally prefer the all-in-one as it's easier to maintain. The 2 solutions need to update u-boot packages and JeOS images too.
Is there anyone else who prefer one or the other solution?
I think it may be better to use SPL + u-boot in 2 files so that we do not hit a size limit for 1st external loader (SPL). (Not sure what is the limit for sunxi, but for OMAP3, it is very limited as it uses a small SRAM for SPL). Let's take the official all-in-one binary, as that abstracts us from future breakages. It should have no impact on the SPL size, as the only difference is in what format and at what offset the non-SPL part is placed.
SPL and u-boot in 2 files is also something "official". ;) We could package both solutions and just use all-in-one binary in JeOS as long as there is no size problem or whatever. We should just switch from *.bin to *.img image format (I already have such a patch, just wait for oscar SR to merge it.) Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (4)
-
Andreas Färber
-
Guillaume Gardet
-
Oscar
-
Oscar C