* [U-Boot] Default base for numbers
@ 2011-01-25 8:53 Alexander Holler
2011-01-25 9:16 ` Wolfgang Denk
0 siblings, 1 reply; 13+ messages in thread
From: Alexander Holler @ 2011-01-25 8:53 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Default base for numbers
2011-01-25 8:53 [U-Boot] Default base for numbers Alexander Holler
@ 2011-01-25 9:16 ` Wolfgang Denk
2011-01-25 9:38 ` Alexander Holler
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Denk @ 2011-01-25 9:16 UTC (permalink / raw)
To: u-boot
Dear Alexander Holler,
In message <4D3E8F9D.7040901@ahsoftware.de> 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.
> 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
--
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 /
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Default base for numbers
2011-01-25 9:16 ` Wolfgang Denk
@ 2011-01-25 9:38 ` Alexander Holler
2011-01-25 10:13 ` [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09 Maik Hänig
2011-01-25 10:19 ` Maik Hänig
0 siblings, 2 replies; 13+ messages in thread
From: Alexander Holler @ 2011-01-25 9:38 UTC (permalink / raw)
To: u-boot
Am 25.01.2011 10:16, schrieb Wolfgang Denk:
> Dear Alexander Holler,
>
> In message<4D3E8F9D.7040901@ahsoftware.de> 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.
>
>> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 9:38 ` Alexander Holler
@ 2011-01-25 10:13 ` Maik Hänig
2011-01-25 10:54 ` Reinhard Meyer
2011-01-25 10:19 ` Maik Hänig
1 sibling, 1 reply; 13+ messages in thread
From: Maik Hänig @ 2011-01-25 10:13 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 9:38 ` Alexander Holler
2011-01-25 10:13 ` [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09 Maik Hänig
@ 2011-01-25 10:19 ` Maik Hänig
1 sibling, 0 replies; 13+ messages in thread
From: Maik Hänig @ 2011-01-25 10:19 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 10:13 ` [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09 Maik Hänig
@ 2011-01-25 10:54 ` Reinhard Meyer
2011-01-25 11:03 ` Maik Hänig
0 siblings, 1 reply; 13+ messages in thread
From: Reinhard Meyer @ 2011-01-25 10:54 UTC (permalink / raw)
To: u-boot
Dear Maik H?nig,
> 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
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 10:54 ` Reinhard Meyer
@ 2011-01-25 11:03 ` Maik Hänig
2011-01-25 11:18 ` Maik Hänig
2011-01-25 11:26 ` Andreas Bießmann
0 siblings, 2 replies; 13+ messages in thread
From: Maik Hänig @ 2011-01-25 11:03 UTC (permalink / raw)
To: u-boot
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:
> Dear Maik H?nig,
>> 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
>
> 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
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 11:03 ` Maik Hänig
@ 2011-01-25 11:18 ` Maik Hänig
2011-01-25 11:29 ` Andreas Bießmann
2011-01-25 11:26 ` Andreas Bießmann
1 sibling, 1 reply; 13+ messages in thread
From: Maik Hänig @ 2011-01-25 11:18 UTC (permalink / raw)
To: u-boot
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:
> 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:
>> Dear Maik H?nig,
>>> 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
>>
>> 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
>>
>>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 11:03 ` Maik Hänig
2011-01-25 11:18 ` Maik Hänig
@ 2011-01-25 11:26 ` Andreas Bießmann
2011-01-25 11:43 ` Maik Hänig
1 sibling, 1 reply; 13+ messages in thread
From: Andreas Bießmann @ 2011-01-25 11:26 UTC (permalink / raw)
To: u-boot
Dear Maik H?nig,
please do not hijack a thread!
Am 25.01.2011 12:03, schrieb Maik H?nig:
> 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.
> 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?
We don't know your configuration. What tells your working setup in
kernel log messages about 'Command line'? -> /proc/cmdline
>
>
> Mit freundlichen Gr??en
>
> Maik H?nig
>
> Am 25.01.2011 11:54, schrieb Reinhard Meyer:
>> Dear Maik H?nig,
>>> 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
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 11:18 ` Maik Hänig
@ 2011-01-25 11:29 ` Andreas Bießmann
2011-01-25 11:36 ` Maik Hänig
2011-01-25 13:04 ` Maik Hänig
0 siblings, 2 replies; 13+ messages in thread
From: Andreas Bießmann @ 2011-01-25 11:29 UTC (permalink / raw)
To: u-boot
Dear Maik H?nig,
Am 25.01.2011 12:18, schrieb Maik H?nig:
> 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.
>
I guess you have a board with specific kernel and specific u-boot. So
maybe the machtype does not match?
regards
Andreas Bie?mann
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 11:29 ` Andreas Bießmann
@ 2011-01-25 11:36 ` Maik Hänig
2011-01-25 13:04 ` Maik Hänig
1 sibling, 0 replies; 13+ messages in thread
From: Maik Hänig @ 2011-01-25 11:36 UTC (permalink / raw)
To: u-boot
Andreas Bie?mann,
> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 11:26 ` Andreas Bießmann
@ 2011-01-25 11:43 ` Maik Hänig
0 siblings, 0 replies; 13+ messages in thread
From: Maik Hänig @ 2011-01-25 11:43 UTC (permalink / raw)
To: u-boot
Dear Andreas Bie?mann,
> please do not hijack a thread!
sorry I didn't want do this. I wanted to give some more information.
> 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.
>> 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.
>
> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09
2011-01-25 11:29 ` Andreas Bießmann
2011-01-25 11:36 ` Maik Hänig
@ 2011-01-25 13:04 ` Maik Hänig
1 sibling, 0 replies; 13+ messages in thread
From: Maik Hänig @ 2011-01-25 13:04 UTC (permalink / raw)
To: u-boot
Dear Andreas Bie?mann,
> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-01-25 13:04 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 8:53 [U-Boot] Default base for numbers Alexander Holler
2011-01-25 9:16 ` Wolfgang Denk
2011-01-25 9:38 ` Alexander Holler
2011-01-25 10:13 ` [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09 Maik Hänig
2011-01-25 10:54 ` Reinhard Meyer
2011-01-25 11:03 ` Maik Hänig
2011-01-25 11:18 ` Maik Hänig
2011-01-25 11:29 ` Andreas Bießmann
2011-01-25 11:36 ` Maik Hänig
2011-01-25 13:04 ` Maik Hänig
2011-01-25 11:26 ` Andreas Bießmann
2011-01-25 11:43 ` Maik Hänig
2011-01-25 10:19 ` Maik Hänig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.