[U-Boot] Failed to load to memory using fatload.

sadashiva reddy nsr1512 at gmail.com
Mon Oct 31 14:45:44 CET 2011


*Hi Sir,*
**
*       I am not able to load to memory using fatload command in u-boot
from USB. *
*Example:*

=> fatload usb 0:1 400000 vxWorks.img
reading vxWorks.img
Device NOT ready
   Request Sense returned 00 00 00
458887 bytes read
Machine Check Exception.
Caused by (from msr): regs 07b693e8 Data machine check.
NIP: 00000000 XER: 20000000 LR: 07FA1D60 REGS: 07b693e8 TRAP: 0200 DEAR:
00000000
MSR: 00000000 EE: 0 PR: 0 FP: 0 ME: 0 IR/DR: 00
GPR00: CFE04F98 07B694D8 07B69724 07FB64EC 07FB64F5 07B69518 07FFB72C
00000010
GPR08: FFFFFFFF 00264000 00000020 00000011 42022082 00000000 00000000
00000000
GPR16: 07FC6664 00000000 00000000 07FB3AF8 07FB3AF8 00000000 00000000
0DF16868
GPR24: 0129735E 0129735E 07FFB72C 07B69518 00000000 07FB64ED 07FCAABC
00000000
Call backtrace:
00000000 07F7B9E0 07F7BE0C 07F7308C 07F8567C 07F84BB0 07F84DBC
07F89534 07F6EFFC 07F6C5F4
machine check

U-Boot 2011.03 (Oct 28 2011 - 15:52:40)
MIP405, released
CPU:   AMCC PowerPC 405GPr Rev. B at 396 MHz (PLB=132 OPB=66 EBC=33)
       Internal PCI arbiter enabled, PCI sync clock at 33 MHz
       16 kB I-Cache 16 kB D-Cache
Board: ### No HW ID - assuming MIP405-8 Rev A Boot Config: 0x80
I2C:   ready
DRAM:  REFRESH, Need to revisit128 MiB
Boot:  FLASH
Flash: 8 MiB
  ### pci_pip405_fixup_irq entered
  ### pci_pip405_fixup_irq entered
  ### pci_pip405_fixup_irq entered
  ### pci_pip405_fixup_irq entered
Net:   ppc_4xx_eth0
IDE:   Bus 0: not available
Rev:   MIP405-8 Rev A PLD 1 Vers 1
Can't overwrite "ethaddr"
INFO:  old environment ajusted, use saveenv
Hit any key to stop autoboot:  5  0

*If I run the above command its able to read the data from USB device and
show the read file size but it crashes and restarts the board as like above.
*
**
*But it is able to do all other USB related operations such as.*
**
> usb reset
(Re)start USB...
USB:   scanning bus for devices... 4 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
=> usb info
1: Hub,  USB Revision 1.0
 - UHCI Root Hub
 - Class: Hub
 - PacketSize: 8  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 0.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms
2: Hub,  USB Revision 1.10
 -  General Purpose USB Hub
 - Class: Hub
 - PacketSize: 8  Configurations: 1
 - Vendor: 0x0451  Product 0x2077 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered Remote Wakeup 0mA
   - String: "General Purpose USB Hub"
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - String: "General Purpose USB Hub"
     - Endpoint 1 In Interrupt MaxPacket 1 Interval 255ms
3: Human Interface,  USB Revision 1.10
 - CHICONY USB Keyboard
 - Class: (from Interface) Human Interface
 - PacketSize: 8  Configurations: 1
 - Vendor: 0x04f2  Product 0x0111 Version 3.0
   Configuration: 1
   - Interfaces: 2 Bus Powered Remote Wakeup 100mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Human Interface, Subclass: Boot Keyboard
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 10ms
     Interface: 1
     - Alternate Setting 0, Endpoints: 1
     - Class Human Interface, Subclass: None
     - Endpoint 2 In Interrupt MaxPacket 8 Interval 10ms
4: Mass Storage,  USB Revision 2.0
 -          USB FLASH DRIVE 079108873AB6
 - Class: (from Interface) Mass Storage
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x1005  Product 0xb113 Version 1.16
   Configuration: 1
   - Interfaces: 1 Bus Powered 200mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 2
     - Class Mass Storage, Transp. SCSI, Bulk only
     - Endpoint 1 In Bulk MaxPacket 64
     - Endpoint 2 Out Bulk MaxPacket 64

=> usb stor
  Device 0: Vendor:          Rev: PMAP Prod: USB FLASH DRIVE
            Type: Removable Hard Disk
            Capacity: 3820.0 MB = 3.7 GB (7823360 x 512)
=> usb part
Partition Map for USB device 0  --   Partition Type: DOS
Partition     Start Sector     Num Sectors     Type
    1        8064    7815296  b

=> fatls usb 0:1
   458887   vxworks.img
1 file(s), 0 dir(s)


*But if I format the usb device in linux with Compatible with linux(ext2 )
then if I run below command like.*

=> ext2ls usb 0:1
<DIR>       4096 .
<DIR>       4096 ..
          458887 vxWorks.img

=> ext2load usb 0:1 400000 vxWorks.img
Loading file "vxWorks.img" from usb device 0:1 (usbda1)
458887 bytes read

=> bootm
## Booting kernel from Legacy Image at 00400000 ...
   Image Name:   CairTestAppl
   Created:      2011-09-05  11:17:04 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    458823 Bytes = 448.1 KiB
   Load Address: 00010000
   Entry Point:  00010000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK


*With the above format type and command I am able load to memory and boot
from there. But same thing is not able to do in *
*fat32 or fat format and fatload command.*
**
*Can you please help me regarding these issue.*
*Thanks in advance.*
**
*I am using PPC405GPr processor and MIP405 board. U-boot version you cen
see on top debug message.*

Best Regards,
Sadashiv


More information about the U-Boot mailing list