[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: armhf Installer Image



On Sat, Nov 15, 2014 at 10:13:24PM +0100, Rainer Dorsch wrote:
> On Saturday 15 November 2014 11:51:05 Karsten Merker wrote:
> [...]
> > 
> > dd if=/usr/lib/u-boot/mx6_cubox-i/u-boot-spl.bin of=/dev/sdX bs=1K seek=1
> > dd if=/usr/lib/u-boot/mx6_cubox-i/u-boot.img of=/dev/sdX bs=1K seek=42
> 
> What is the difference between u-boot-spl.bin and SPL in
> 
> rd@home:~$ ls -l /usr/lib/u-boot/mx6_cubox-i/
> insgesamt 588
> -rw-r--r-- 1 root root  31744 Nov  2 01:32 SPL
> -rw-r--r-- 1 root root 302872 Nov  2 01:32 uboot.elf
> -rw-r--r-- 1 root root 236248 Nov  2 01:32 u-boot.img
> -rw-r--r-- 1 root root  25665 Nov  2 01:32 u-boot-spl.bin
> rd@home:~$

Sorry, I do not know that. On the sunxi platform there is only
one SPL image (u-boot-spl.bin), so this might be something
specific to the i.MX6 that I am not familiar with.  Maybe the
"SPL" file is generated from the "u-boot-spl.bin" file somehow
due to specific format or header requirements, but that is just
a random guess. Probably Vagrant knows the answer (CCing him).

> > In our case we have:
> > - IPL: internal to the i.MX6 SoC
> > - SPL: /usr/lib/u-boot/mx6_cubox-i/u-boot-spl.bin
> > - TPL: /usr/lib/u-boot/mx6_cubox-i/u-boot.img
> 
> Many thanks. Is the environment (setenv, saveenv,...) also part of the u-
> boot.img?

U-boot has a separate persistent environment area, but if this
area is not yet initialized or has a wrong checksum, the default
environment gets set by u-boot.img.  Further writes to
environment variables with setenv+saveenv are saved into the
persistent environment and are not overwritten by an updated
u-boot.img.  This means that if you want to use the new default
environment of a new u-boot.img, you would have to explicitly
overwrite the environment variables saved by previous u-boot
versions in the persistent environment area.  This can usually be
achieved by running "env default -a; saveenv" at the u-boot
prompt.

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


Reply to: