Skip to contentSkip to conversation

decrease boot time

U-Boot-Users Konstantin Kletschke 2 participants 6 messages Feb 13, 2005 – Feb 14, 2005 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Am 2005-02-12 23:30 +0100 schrieb Wolfgang Denk:

Quoted 4 lines

Do you have console output enabled? If yes, then you can (1) get pretty reliable timings very easily by just time-stamping the console output (even with external tools as you read it rom the serial port), and (2) save a LOT of time by disabling it :-)

Yes, I will try that.

Quoted 3 lines

OK - then I recommend to _increase_ teh image size by NOT compressing the Linux kernel. This way we get the fastest boot times on most systems. Also, turn of checksum verification (setenv verify no).

Argh, "setenv verify no" !
Ah, I turned off

        if (verify) {
                puts ("   Verifying Checksum ... ");
                if (crc32 (0, (char *)data, len) != ntohl(hdr->ih_dcrc)) {
                        printf ("Bad Data CRC\n");
                        SHOW_BOOT_PROGRESS (-3);
                        return 1;
                } 
                puts ("OK\n");
        }

instead and I think this also disables the checksum verification when normal booting...

Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#3 lore raw
Quoted 5 lines · In message <20050213133143.GC13453@synertronixx3> you wrote:

Argh, "setenv verify no" !
Ah, I turned off

        if (verify) {

Why modifyiong the code when all youneed to do is set an environment variable. Didn't you wonder where the "verify" variable is being set?

Quoted 2 lines

instead and I think this also disables the checksum verification when normal booting...

Yes, it does, but you cannot change behaviour to compare and measure...

Best regards,

Wolfgang Denk

Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 22 - 24,  Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"What the scientists have in their briefcases is terrifying."
- Nikita Khrushchev
#4 lore raw
In reply to a message not in the archive

Am 2005-02-12 23:30 +0100 schrieb Wolfgang Denk:

Quoted 3 lines

OK - then I recommend to _increase_ teh image size by NOT compressing the Linux kernel. This way we get the fastest boot times on most systems. Also, turn of checksum verification (setenv verify no).

I forgot this:

What Image should I intend to boot with u-boot?
Wait, the mkImage prog is run with Image instead of zImage, right? I tried this already a couple of weeks ago, but did not solve problems. The "Image"? What has to be enabled in u-boot so it gets along with this type of image?

Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#5 lore raw
Quoted 2 lines · In message <20050213133833.GE13453@synertronixx3> you wrote:

What Image should I intend to boot with u-boot?

The output file of your invocation of the "mkimage" command.

Quoted 1 line

Wait, the mkImage prog is run with Image instead of zImage, right?

If you mean that (1) gzip Image >foo and foo == zImage and (2) you pass the option "-C none" when calling mkimage - then the answer is yes.

Quoted 1 line

I tried this already a couple of weeks ago, but did not solve problems.

It did not solve which problems ? ;-)

Quoted 2 lines

The "Image"? What has to be enabled in u-boot so it gets along with this type of image?

Nothing has to be added or enabled. Everything is there ready to be used.

Best regards,

Wolfgang Denk

Signature · 5 lines
See us @ Embedded World, Nuremberg, Feb 22 - 24,  Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The marvels of today's modern technology include the development of a
soda can, when discarded will last forever ... and a $7,000 car which
when properly cared for will rust out in two or three years.
#6 lore raw

Am 2005-02-13 16:20 +0100 schrieb Wolfgang Denk:

Quoted 3 lines

If you mean that (1) gzip Image >foo and foo == zImage and (2) you pass the option "-C none" when calling mkimage - then the answer is yes.

OK, I will have to look at this and inspect Makefiles.

Quoted 4 lines
Quoted 2 lines

I tried this already a couple of weeks ago, but did not solve problems.

It did not solve which problems ? ;-)

*errr* _I_ did not solve problems booting uncompressed kernel images, this time I will get it.

Quoted 2 lines

Nothing has to be added or enabled. Everything is there ready to be used.

I actually remember wondering over the "if (verify)" but did not have time to find out the name of the config option :/

Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#7 lore raw
Quoted 3 lines · In message <20050214121117.GB13736@synertronixx3> you wrote:

I actually remember wondering over the "if (verify)" but did not have time to find out the name of the config option :/

It's not a config option, it's an environment variable, so you can adjust it at run-time as needed. And it's even documented - see
http://www.denx.de/twiki/bin/view/DULG/UBootEnvVariables

Best regards,

Wolfgang Denk

Signature · 6 lines
See us @ Embedded World, Nuremberg, Feb 22 - 24,  Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Your csh still thinks true is false. Write to your vendor  today  and
tell them that next year Configure ought to "rm /bin/csh" unless they
fix  their blasted shell. :-)
                 - Larry Wall in Configure from the perl distribution