Skip to contentSkip to conversation

Default base for numbers

U-Boot Alexander Holler 5 participants 13 messages Jan 25, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

I've stumbled over the fact that the length parameter for sha1sum uses 16 as default base, which I found a bit confusing.

E.g.
-------------------------
U-Boot>> tftp $loadaddr uImage
...
done
Bytes transferred = 1976384 (1e2840 hex)
U-Boot>> sha1sum $loadaddr 1976384
SHA1 for 00800000 ... 02176383 ==> 8d9cc7b167b6d1471d73d46cfc3b374091de88a6 U-Boot>> sha1sum $loadaddr 0x1e2840
SHA1 for 00800000 ... 009e283f ==> fde54f7409c785b7929d36624f77f71abd30282a
-------------------------
(The second one is correct)

Is the base 16 as default for numbers common for commands in u-boot or is that just a problem of md5sum and sha1sum?

Regards,

Alexander

#1 lore raw

Dear Alexander Holler,

Quoted 3 lines · In message <[email protected]> you wrote:

I've stumbled over the fact that the length parameter for sha1sum uses 16 as default base, which I found a bit confusing.

Read the documentation.

Quoted 2 lines

Is the base 16 as default for numbers common for commands in u-boot or is that just a problem of md5sum and sha1sum?

With very few exceptions all commands use base 16 input. I recommend you start reading the manual.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
panic: can't find /
#2 lore raw

Am 25.01.2011 10:16, schrieb Wolfgang Denk:

Quoted 7 lines

Dear Alexander Holler,

Quoted 3 lines · In message<[email protected]> you wrote:

I've stumbled over the fact that the length parameter for sha1sum uses 16 as default base, which I found a bit confusing.

Quoted 7 lines

Read the documentation.

Quoted 2 lines

Is the base 16 as default for numbers common for commands in u-boot or is that just a problem of md5sum and sha1sum?

With very few exceptions all commands use base 16 input. I recommend you start reading the manual.

Thanks for the pointer, if someone else is interested, it is described in chapter 5.9. U-Boot Command Line Interface. Easy to find. ;)

Regards,

Alexander

#3 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

Hi,

I change my uboot version and after it the uboot don't starts the same linux kernel:

## Booting kernel from Legacy Image at 10060000 ...

    Image Name:   Linux Kernel
    Image Type:   ARM Linux Kernel Image (gzip compressed)
    Data Size:    1178673 Bytes = 1.1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

*****LOG END*****

It's a board simular to the at91rm9200dk. I start the kernel with

bootcmd2=setenv bootargs root=/dev/mtdblock9 rootfstype=squashfs ETHADDR=$(ethaddr) RUNNING=$(runningimage) CFGFS=mtdblock10;bootm 0x30060000

run bootcmd2

Can anybody give me a hint where I had to search for the error?

Mit freundlichen Gr??en

Maik H?nig

#4 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

Dear Maik H?nig,

Quoted 7 lines

Hi,

I change my uboot version and after it the uboot don't starts the same linux kernel:

## Booting kernel from Legacy Image at 10060000 ...

_________________________________________????????

Quoted 10 lines
    Image Name:   Linux Kernel
    Image Type:   ARM Linux Kernel Image (gzip compressed)
    Data Size:    1178673 Bytes = 1.1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Quoted 7 lines

*****LOG END*****

It's a board simular to the at91rm9200dk. I start the kernel with

bootcmd2=setenv bootargs root=/dev/mtdblock9 rootfstype=squashfs ETHADDR=$(ethaddr) RUNNING=$(runningimage) CFGFS=mtdblock10;bootm 0x30060000

______________________________________________________________________????????

Quoted 2 lines

run bootcmd2

First, I don't understand why those two addresses are not the same.

Then, are you sure your "bootcmd2" ist really what you think it is? Try a "printenv" and see whats really there.

Should you not have a "console=xxx" in your kernel parameters?

Besides once "Starting kernel ..." shows, u-boot is about to give control to the kernel, all future output would be from the kernel itself, probably needing a sane "console=xxx" parameter.

Best Regards,
Reinhard

#5 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

Dear Reinhard,

sorry I copied the wrong log:

U-Boot 2010.09 (Jan 24 2011 - 17:45:54)

I2C:   ready
DRAM:  64 MiB
Flash: 32 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 30060000 ...
    Image Name:   Linux Kernel
    Image Type:   ARM Linux Kernel Image (gzip compressed)
    Data Size:    1084127 Bytes = 1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

I have to kernel Images in flash. The bootcmd is copied from printenv. With the uboot version 2009.01 it works well. Is it nessesary to set a console parameter in the bootcmd in uboot version 2010.09?

Mit freundlichen Gr??en

Maik H?nig

Am 25.01.2011 11:54, schrieb Reinhard Meyer:

Quoted 45 lines

Dear Maik H?nig,

Quoted 7 lines

Hi,

I change my uboot version and after it the uboot don't starts the same linux kernel:

## Booting kernel from Legacy Image at 10060000 ...

_________________________________________????????

Quoted 10 lines
     Image Name:   Linux Kernel
     Image Type:   ARM Linux Kernel Image (gzip compressed)
     Data Size:    1178673 Bytes = 1.1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Quoted 7 lines

*****LOG END*****

It's a board simular to the at91rm9200dk. I start the kernel with

bootcmd2=setenv bootargs root=/dev/mtdblock9 rootfstype=squashfs ETHADDR=$(ethaddr) RUNNING=$(runningimage) CFGFS=mtdblock10;bootm 0x30060000

______________________________________________________________________????????

Quoted 2 lines

run bootcmd2

First, I don't understand why those two addresses are not the same.

Then, are you sure your "bootcmd2" ist really what you think it is? Try a "printenv" and see whats really there.

Should you not have a "console=xxx" in your kernel parameters?

Besides once "Starting kernel ..." shows, u-boot is about to give control to the kernel, all future output would be from the kernel itself, probably needing a sane "console=xxx" parameter.

Best Regards,
Reinhard

#6 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

Dear Reinhard Meyer,

I tried it with:

setenv bootargs root=/dev/mtdblock9 rootfstype=jffs2 console=ttyS4 ETHADDR=$(ethaddr) RUNNING=$(runningimage) CFGFS=mtdblock10;bootm 0x30060000

but nothing the error is still there. The console is set in the board init of the linux kernel.

I changed only the uboot verion. The linux kernel and the rootfilesystem are the same.

Mit freundlichen Gr??en

Maik H?nig

Am 25.01.2011 12:03, schrieb Maik H?nig:

Quoted 85 lines

Dear Reinhard,

sorry I copied the wrong log:

U-Boot 2010.09 (Jan 24 2011 - 17:45:54)

I2C:   ready
DRAM:  64 MiB
Flash: 32 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 30060000 ...
     Image Name:   Linux Kernel
     Image Type:   ARM Linux Kernel Image (gzip compressed)
     Data Size:    1084127 Bytes = 1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

I have to kernel Images in flash. The bootcmd is copied from printenv. With the uboot version 2009.01 it works well. Is it nessesary to set a console parameter in the bootcmd in uboot version 2010.09?

Mit freundlichen Gr??en

Maik H?nig

Am 25.01.2011 11:54, schrieb Reinhard Meyer:

Quoted 35 lines

Dear Maik H?nig,

Quoted 7 lines

Hi,

I change my uboot version and after it the uboot don't starts the same linux kernel:

## Booting kernel from Legacy Image at 10060000 ...

_________________________________________????????

Quoted 10 lines
      Image Name:   Linux Kernel
      Image Type:   ARM Linux Kernel Image (gzip compressed)
      Data Size:    1178673 Bytes = 1.1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Quoted 7 lines

*****LOG END*****

It's a board simular to the at91rm9200dk. I start the kernel with

bootcmd2=setenv bootargs root=/dev/mtdblock9 rootfstype=squashfs ETHADDR=$(ethaddr) RUNNING=$(runningimage) CFGFS=mtdblock10;bootm 0x30060000

______________________________________________________________________????????

Quoted 2 lines

run bootcmd2

First, I don't understand why those two addresses are not the same.

Then, are you sure your "bootcmd2" ist really what you think it is? Try a "printenv" and see whats really there.

Quoted 10 lines

Should you not have a "console=xxx" in your kernel parameters?

Besides once "Starting kernel ..." shows, u-boot is about to give control to the kernel, all future output would be from the kernel itself, probably needing a sane "console=xxx" parameter.

Best Regards,
Reinhard

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#7 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

Dear Maik H?nig,

Am 25.01.2011 12:18, schrieb Maik H?nig:

Quoted 4 lines

Dear Reinhard Meyer,

I tried it with:

Quoted 9 lines

setenv bootargs root=/dev/mtdblock9 rootfstype=jffs2 console=ttyS4 ETHADDR=$(ethaddr) RUNNING=$(runningimage) CFGFS=mtdblock10;bootm 0x30060000

but nothing the error is still there. The console is set in the board init of the linux kernel.

I changed only the uboot verion. The linux kernel and the rootfilesystem are the same.

I guess you have a board with specific kernel and specific u-boot. So maybe the machtype does not match?

regards

Andreas Bie?mann

#8 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

Andreas Bie?mann,

Quoted 2 lines

I guess you have a board with specific kernel and specific u-boot. So maybe the machtype does not match?

Yes. Where can I found the mach type in uboot source?

Best regards / Mit freundlichen Gr??en

Maik H?nig

#9 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

In reply to Andreas Bießmann

Dear Andreas Bie?mann,

Quoted 2 lines

I guess you have a board with specific kernel and specific u-boot. So maybe the machtype does not match?

thanks, you was right it was a mach-type problem. I had set the wrong mach-type in my board init.

The problem with the uboot version 2010.12 hasn't changed.

Best regards / Mit freundlichen Gr??en

Maik H?nig

#10 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

In reply to Maik Hänig

Dear Maik H?nig,

please do not hijack a thread!

Am 25.01.2011 12:03, schrieb Maik H?nig:

Quoted 5 lines

Dear Reinhard,

sorry I copied the wrong log:

U-Boot 2010.09 (Jan 24 2011 - 17:45:54)

Ok, you use 2010.09. This was last release before relocate changes. Therefore it has no connection with the relocation stuff.

Quoted 16 lines
I2C:   ready
DRAM:  64 MiB
Flash: 32 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 30060000 ...
    Image Name:   Linux Kernel
    Image Type:   ARM Linux Kernel Image (gzip compressed)
    Data Size:    1084127 Bytes = 1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Quoted 8 lines

Starting kernel ...

I have to kernel Images in flash. The bootcmd is copied from printenv. With the uboot version 2009.01 it works well.

Is it nessesary to set a
console parameter in the bootcmd in uboot version 2010.09?

We don't know your configuration. What tells your working setup in kernel log messages about 'Command line'? -> /proc/cmdline

Quoted 30 lines

Mit freundlichen Gr??en

Maik H?nig

Am 25.01.2011 11:54, schrieb Reinhard Meyer:

Quoted 23 lines

Dear Maik H?nig,

Quoted 7 lines

Hi,

I change my uboot version and after it the uboot don't starts the same linux kernel:

## Booting kernel from Legacy Image at 10060000 ...

_________________________________________????????

Quoted 14 lines
     Image Name:   Linux Kernel
     Image Type:   ARM Linux Kernel Image (gzip compressed)
     Data Size:    1178673 Bytes = 1.1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

*****LOG END*****

It's a board simular to the at91rm9200dk. I start the kernel with

What is your board exactly? Is it currently in official u-boot or do you have another tree?
at91rm9200dk is most likely broken with current u-boot (2010.12) and will be removed for 2011.03. So if you have a at91rm9200dk at hand please try to get the current u-boot working with that board and provide patches. You may see my patches for at91rm9200ek which at least make at91rm9200ek boot from SDRAM when setup correctly with an jtag (-> booting with at91bootstrab should also work but is untested).

regards

Andreas Bie?mann

#11 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

Dear Andreas Bie?mann,

Quoted 1 line

please do not hijack a thread!

sorry I didn't want do this. I wanted to give some more information.

Quoted 2 lines

Ok, you use 2010.09. This was last release before relocate changes. Therefore it has no connection with the relocation stuff.

yes I. I tried to make a patch for 2010.12 but the uboot don't starts so I tried in the first step the version before. It is a similar board to the at91rm9200dk. It hangs in the low level_init file. But I have only a keil jtag debugger and couldn't debug it. or is there any possibility to use it with the gdb?

I found the problem in the board.c of the arm architecture. But can't see why. Line 303 is reached but line 312 not. Also line 306 is not reached. I don't know why, maybe you can give me a hint?

I think if the problem is found the problem with the at91rm9200dk is also found.

Quoted 5 lines
Quoted 2 lines

Is it nessesary to set a
console parameter in the bootcmd in uboot version 2010.09?

We don't know your configuration. What tells your working setup in kernel log messages about 'Command line'? -> /proc/cmdline

I only give the MAC and the running image in the cmdline. I think the problem must be in the uboot.

Quoted 9 lines

What is your board exactly? Is it currently in official u-boot or do you have another tree?
at91rm9200dk is most likely broken with current u-boot (2010.12) and will be removed for 2011.03. So if you have a at91rm9200dk at hand please try to get the current u-boot working with that board and provide patches. You may see my patches for at91rm9200ek which at least make at91rm9200ek boot from SDRAM when setup correctly with an jtag (-> booting with at91bootstrab should also work but is untested).

It isn't in official u-boot tree. You can have a look in the patch.

Best regards / Mit freundlichen Gr??en

Maik H?nig
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: u-boot-2010.12.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20110125/3b524908/attachment.asc

#12 lore raw

[U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09

In reply to Alexander Holler

Hi,

I change my uboot version and after it the uboot don't starts the same linux kernel:

## Booting kernel from Legacy Image at 10060000 ...

    Image Name:   Linux Kernel
    Image Type:   ARM Linux Kernel Image (gzip compressed)
    Data Size:    1178673 Bytes = 1.1 MiB

Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

*****LOG END*****

It's a board simular to the at91rm9200dk. I start the kernel with

bootcmd2=setenv bootargs root=/dev/mtdblock9 rootfstype=squashfs ETHADDR=$(ethaddr) RUNNING=$(runningimage) CFGFS=mtdblock10;bootm 0x30060000

run bootcmd2

Can anybody give me a hint where I had to search for the error?

Mit freundlichen Gr??en

Maik H?nig