Skip to contentSkip to conversation

How do you print/view avaliable devices?

U-Boot dbrazeau 4 participants 9 messages Aug 12, 2009 – Aug 14, 2009

lore
Share & tools
lore

dbrazeau

author
#0 lore raw

I am trying to run a standalone program from flash but I keep receiving ** Invalid boot device ** when I attempt to load it into memory. I think I'm just using the wrong device number. I was wondering if there was any way to print the devices that U-boot can see, so I can figure out dev:part numbers of my onboard flash and compact flash.

Signature · 2 lines
View this message in context: http://www.nabble.com/How-do-you-print-view-avaliable-devices--tp24943649p24943649.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw

Hi dbrazeau,

Quoted 5 lines

I am trying to run a standalone program from flash but I keep receiving ** Invalid boot device ** when I attempt to load it into memory. I think I'm just using the wrong device number. I was wondering if there was any way to print the devices that U-boot can see, so I can figure out dev:part numbers of my onboard flash and compact flash.

Not understanding a word what you wrote, I needed a grep -r to find the message you were referring to. Now it seems that you try some filesystem access and it does not work. Although I still have no clue if you use USB, IDE, ATA or whatever...

May you please be so kind to show us what you try to do and what you would like to see instead? Actual session transcripts help a lot in such cases...

Thanks
Detlev

Signature · 6 lines
To you I'm an atheist; to God, I'm the Loyal Opposition.
                                        -- Woody Allen
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
author
#2 lore raw

This is the command I try to execute in the U-boot console:

    fatload xsa 0 0x1000000 /mnt-xsa/someprogram.img

output:
** Invalid boot device **

Quoted 38 lines · Detlev Zundel

Hi dbrazeau,

Quoted 9 lines

I am trying to run a standalone program from flash but I keep receiving **
Invalid boot device ** when I attempt to load it into memory. I think I'm
just using the wrong device number. I was wondering if there was any way to
print the devices that U-boot can see, so I can figure out dev:part numbers
of my onboard flash and compact flash.

Not understanding a word what you wrote, I needed a grep -r to find the message you were referring to. Now it seems that you try some filesystem access and it does not work. Although I still have no clue if you use USB, IDE, ATA or whatever...

May you please be so kind to show us what you try to do and what you would like to see instead? Actual session transcripts help a lot in such cases...

Thanks
Detlev

Signature · 10 lines
To you I'm an atheist; to God, I'm the Loyal Opposition.
                                        -- Woody Allen
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 2 lines
View this message in context: http://www.nabble.com/How-do-you-print-view-avaliable-devices--tp24943649p24955279.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#3 lore raw

Hi dbrazeau,

Quoted 5 lines

This is the command I try to execute in the U-boot console:

    fatload xsa 0 0x1000000 /mnt-xsa/someprogram.img

output:
** Invalid boot device **

Do you pay for every character you send, or why are you so very restrictive in providing more information to your problem? Telling us on what platform you work, which U-Boot version etc. would go *a long way* in putting us into a better position to help you.

As "git grep xsa" yields no output I'm pretty sure that you try to do something which is not supported - at least in mainline.

What device exactly do you try to access?

Cheers
Detlev

Signature · 6 lines
Insider comment on Microsoft releasing Linux Hyper-V driver code under GPLv2:
             "It looks like hell just froze over."
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
author
#4 lore raw

I working on the Katmai board. I'm trying to run a program in the 16MB boot flash. The user manual states the U-boot command to load Kozio diagnostics program is:
=> fatload xsa 0x1000000 /mnt-xsa/kdiags.katmai.img
=> bootm 0x1000000

This doesn't work as it does not define a device number, so I tried adding the device number with no luck. I'm using U-boot version 2009.06-rc1. Thanks.

Quoted 36 lines · Detlev Zundel

Hi dbrazeau,

Quoted 5 lines

This is the command I try to execute in the U-boot console:

    fatload xsa 0 0x1000000 /mnt-xsa/someprogram.img

output:
** Invalid boot device **

Do you pay for every character you send, or why are you so very restrictive in providing more information to your problem? Telling us on what platform you work, which U-Boot version etc. would go *a long way* in putting us into a better position to help you.

As "git grep xsa" yields no output I'm pretty sure that you try to do something which is not supported - at least in mainline.

What device exactly do you try to access?

Cheers
Detlev

Signature · 11 lines
Insider comment on Microsoft releasing Linux Hyper-V driver code under
GPLv2:
             "It looks like hell just froze over."
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 2 lines
View this message in context: http://www.nabble.com/How-do-you-print-view-avaliable-devices--tp24943649p24974056.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#5 lore raw
Quoted 4 lines · On Friday 14 August 2009 17:56:07 dbrazeau wrote:

I working on the Katmai board. I'm trying to run a program in the 16MB boot flash. The user manual states the U-boot command to load Kozio diagnostics program is:
=> fatload xsa 0x1000000 /mnt-xsa/kdiags.katmai.img

That's not boot flash but most likely a CompactFlash connected via the SystemACE. You should use "ace" instead of "xsa" here. Perhaps this will work.

Cheers,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

author
#6 lore raw

I actually tried used ace as well, since I saw it being used in some of the environment variables. Unfortunately that didn't work either, but had a different error.

fatload ace 0 0x1000000 /mnt-xsa/kdiags.katmai.img reading /mnt-xsa/kdiags.katmai.img

** Unable to read "/mnt-xsa/kdiags.katmai.img" from ace 0:1 **

This error made it sound like the file wasn't even in the flash so id did an fatls

fatls ace 0 /
mnt-xsa/

0 file(s), 1 dir(s)

=> fatls ace 0 /mnt-xsa/

            ./
            ../

1378602 kernel.img
19783883 ramdisk.img

2 file(s), 2 dir(s)

Yep, not even there.

Now I tried transferring the program image via tftp a running it but it fails with an illegal instruction. Here is the output:

tftp 0x100000 kdiags.katmai.img
Waiting for PHY auto negotiation to complete.... done
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0 device
TFTP from server 192.168.2.66; our IP address is 192.168.2.92 Filename 'kdiags.katmai.img'.
Load address: 0x100000
Loading: ############################################################# done
Bytes transferred = 893996 (da42c hex)
=> go 0x100000
## Starting application at 0x00100000 ...
NIP: 00100004 XER: 00000000 LR: 1FF75C9C REGS: 1fe64cb8 TRAP: 0700 DEAR:
0ECFC12
0
MSR: 00029000 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00

GPR00: 1FF75D1C 1FE64DA8 1FE64F38 00000001 1FE693F4 1FE693F4 00000006 58AF5DD6
GPR08: 1FF6CD98 00000020 010F4471 09896800 28822F22 00100400 1FFB4400 00000000
GPR16: 1FFA8EA8 1FFAE7BC 00000000 00000000 00000000 00000000 00000000 00000000
GPR24: 00000000 1FE69340 00000000 00000000 1FE693F4 00100004 1FFB4A18 00000002
** Illegal Instruction **
Call backtrace:
00100004 1FF75D1C 1FF871D0 1FF868DC 1FF86A4C 1FF896A8 1FF6C8E4 1FF6B6DC
Program Check Exception

I have also tried "go 0x100004" but that didn't work either. Am I doing something wrong? Any Ideas? Thanks for you help.

Quoted 24 lines · Stefan Roese
Quoted 4 lines · On Friday 14 August 2009 17:56:07 dbrazeau wrote:

I working on the Katmai board. I'm trying to run a program in the 16MB boot flash. The user manual states the U-boot command to load Kozio diagnostics program is:
=> fatload xsa 0x1000000 /mnt-xsa/kdiags.katmai.img

That's not boot flash but most likely a CompactFlash connected via the SystemACE. You should use "ace" instead of "xsa" here. Perhaps this will work.

Cheers,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Signature · 2 lines
View this message in context: http://www.nabble.com/How-do-you-print-view-avaliable-devices--tp24943649p24975016.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#7 lore raw

Dear dbrazeau,

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

I actually tried used ace as well, since I saw it being used in some of the environment variables. Unfortunately that didn't work either, but had a different error.

Quoted 7 lines

fatload ace 0 0x1000000 /mnt-xsa/kdiags.katmai.img reading /mnt-xsa/kdiags.katmai.img

** Unable to read "/mnt-xsa/kdiags.katmai.img" from ace 0:1 **

This error made it sound like the file wasn't even in the flash so id did an fatls

Indeed.

Quoted 9 lines

=> fatls ace 0 /mnt-xsa/

            ./
            ../

1378602 kernel.img
19783883 ramdisk.img

2 file(s), 2 dir(s)

Yep, not even there.

Right. I have to admit that I really don;t understand why you wnt into such adventures as trying to use a phantasy device name (xsa) after verifying that the file you were looking for was not even present on the CompactFlash card you are using.

Quoted 4 lines

Now I tried transferring the program image via tftp a running it but it fails with an illegal instruction. Here is the output:

tftp 0x100000 kdiags.katmai.img

...

Quoted 1 line

Bytes transferred = 893996 (da42c hex)

So this works perfectly fine.

Quoted 3 lines

=> go 0x100000
## Starting application at 0x00100000 ...
NIP: 00100004 XER: 00000000 LR: 1FF75C9C REGS: 1fe64cb8 TRAP: 0700 DEAR:

...

Quoted 2 lines

I have also tried "go 0x100004" but that didn't work either. Am I doing something wrong? Any Ideas? Thanks for you help.

Well, the Kozio diagnostics software is aproprietary package, and if you cannot find out how it's working from the documentation provided by Kozio you should please contacxt Kozio support.

As mentioned before, it's a closed-source proprietary tool and we have zero information about how to run it.

Best regards,

Wolfgang Denk

Signature · 5 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
I have made mistakes, but have never made the mistake of  claiming  I
never made one.                                     - James G. Bennet
author
#8 lore raw

Ok. Thanks for your input.

Quoted 75 lines · wd

Dear dbrazeau,

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

I actually tried used ace as well, since I saw it being used in some of the
environment variables. Unfortunately that didn't work either, but had a different error.

Quoted 8 lines

fatload ace 0 0x1000000 /mnt-xsa/kdiags.katmai.img reading /mnt-xsa/kdiags.katmai.img

** Unable to read "/mnt-xsa/kdiags.katmai.img" from ace 0:1 **

This error made it sound like the file wasn't even in the flash so id did an
fatls

Indeed.

Quoted 9 lines

=> fatls ace 0 /mnt-xsa/

            ./
            ../

1378602 kernel.img
19783883 ramdisk.img

2 file(s), 2 dir(s)

Yep, not even there.

Right. I have to admit that I really don;t understand why you wnt into such adventures as trying to use a phantasy device name (xsa) after verifying that the file you were looking for was not even present on the CompactFlash card you are using.

Quoted 4 lines

Now I tried transferring the program image via tftp a running it but it fails with an illegal instruction. Here is the output:

tftp 0x100000 kdiags.katmai.img

...

Quoted 1 line

Bytes transferred = 893996 (da42c hex)

So this works perfectly fine.

Quoted 3 lines

=> go 0x100000
## Starting application at 0x00100000 ...
NIP: 00100004 XER: 00000000 LR: 1FF75C9C REGS: 1fe64cb8 TRAP: 0700 DEAR:

...

Quoted 2 lines

I have also tried "go 0x100004" but that didn't work either. Am I doing something wrong? Any Ideas? Thanks for you help.

Well, the Kozio diagnostics software is aproprietary package, and if you cannot find out how it's working from the documentation provided by Kozio you should please contacxt Kozio support.

As mentioned before, it's a closed-source proprietary tool and we have zero information about how to run it.

Best regards,

Wolfgang Denk

Signature · 9 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
I have made mistakes, but have never made the mistake of  claiming  I
never made one.                                     - James G. Bennet
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 2 lines
View this message in context: http://www.nabble.com/How-do-you-print-view-avaliable-devices--tp24943649p24975978.html
Sent from the Uboot - Users mailing list archive at Nabble.com.