Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linuxdsp:docs:das-u-boot:loading_file_from_usb_storage_in_uboot [08 Dec 2020 08:44] – [Start the USB] Sunny Fengresources:tools-software:linuxdsp:docs:das-u-boot:loading_file_from_usb_storage_in_uboot [08 Dec 2020 09:02] (current) – [Appendix: Macro Definition] Sunny Feng
Line 59: Line 59:
   4231792   zImage   4231792   zImage
     21512   sc589-ezkit.dtb     21512   sc589-ezkit.dtb
- 12225998   ramdisk.cpio.gz.u-boot+ 12225998   ramdisk.cpio.xz.u-boot
 3 file(s), 0 dir(s) 3 file(s), 0 dir(s)
 </code> </code>
Line 74: Line 74:
  
 <code> <code>
-sc # fatload usb 0:1 0x84000000 sc573-ezkit.dtb +sc # fatload usb 0:1 ${dtbaddr} ${dtbfile} 
-reading sc573-ezkit.dtb +reading sc589-ezkit.dtb 
-10306 bytes read in 30 ms (335 KiB/s) +19120 bytes read in 30 ms (335 KiB/s) 
-sc # fatload usb 0:1 0x82000000 zImage+sc # fatload usb 0:1 ${loadaddr} ${ramfile}
 reading zImage reading zImage
-12452384 bytes read in 7772 ms (1.5 MiB/s)+4106096 bytes read in 2610 ms (1.5 MiB/s) 
 +sc # fatload usb 0:1 ${initramaddr} ${initramfile} 
 +reading ramdisk.cpio.xz.u-boot 
 +12225833 bytes read in 7772 ms (1.5 MiB/s)
 </code> </code>
  Verify the read operation:  Verify the read operation:
 <code> <code>
  
-sc # bootz 0x82000000 0x84000000 +sc # bootz ${loadaddr} ${initramaddr} ${dtbaddr} 
-## Booting kernel from Legacy Image at 82000000 ... +Kernel image @ 0xc2000000 [ 0x000000 0x3ea770 ] 
-   Image Name:   Linux-4.0.0-ADI-1.1.0-00027-g5c7 +## Loading init Ramdisk from Legacy Image at c5000000 ... 
-   Image Type:   ARM Linux Kernel Image (uncompressed+   Image Name:   Analog Devices Ram Disk Image 
-   Data Size:    12452320 Bytes = 11.MiB +   Image Type:   ARM Linux RAMDisk Image (gzip compressed
-   Load Address: 82008000 +   Data Size:    12225769 Bytes = 11.MiB 
-   Entry Point:  82008000 +   Load Address: 00000000 
-   Verifying Checksum ... OK +   Entry Point:  00000000 
-## Flattened Device Tree blob at 84000000 +   Verifying Checksum ... OK 
-   Booting using the fdt blob at 0x84000000 +## Flattened Device Tree blob at c4000000 
-   Loading Kernel Image ... OK +   Booting using the fdt blob at 0xc4000000 
-   Loading Device Tree to 8fe5d000, end 8fe62841 ... OK+   Loading Ramdisk to cf2b7000, end cfe5fce9 ... OK 
 +   Loading Device Tree to cf2af000, end cf2b6aaf ... OK 
 Starting kernel ... Starting kernel ...
 +
 +Uncompressing Linux... done, booting the kernel.
 Booting Linux on physical CPU 0x0 Booting Linux on physical CPU 0x0
-Linux version 4.0.0-ADI-1.1.0-00027-g5c77b60 (i7@i7-OptiPlex-9010) (gcc version 4.8.3 (Analog Devices IncARM Tools (e596c0da91703b047df99f5513e6+Linux version 4.19.0-yocto-standard (oe-user@oe-host) (gcc version 8.2.(GCC)) #1 Fri Jul 31 10:34:04 UTC 2020
 CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
 CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
-Machine model: ADI sc57x-ezkit+OF: fdt: Machine model: ADI sc589-mini
 bootconsole [earlycon0] enabled bootconsole [earlycon0] enabled
 Memory policy: Data cache writeback Memory policy: Data cache writeback
 +Hit pending asynchronous external abort (FSR=0x00001c06) during first unmask, this is most likely caused by a firmware/bootloader bug.
 +CPU: All CPU(s) started in SVC mode.
 dump init clock rate dump init clock rate
 CGU0_PLL 450 MHz CGU0_PLL 450 MHz
Line 109: Line 118:
 CGU0_CCLK 450 MHz CGU0_CCLK 450 MHz
 CGU0_SYS0 112 MHz CGU0_SYS0 112 MHz
-CGU0_DCLK 225 MHz+CGU0_DCLK 450 MHz
 CGU0_OCLK 150 MHz CGU0_OCLK 150 MHz
 CGU0_SYS0 112 MHz CGU0_SYS0 112 MHz
-Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 56896 +random: get_random_bytes called from start_kernel+0x98/0x3dc with crng_init=0 
-Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 clkin_hz=(25000000) earlyprintk=serial,uart0,57600 console=ttySC0,57600 mem=224M +Built 1 zonelists, mobility grouping on.  Total pages: 56896 
-PID hash table entries1024 (order: 0, 4096 bytes)+Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 clkin_hz=(25000000) earlyprintk=serial,uart0,57600 console=ttySC0,57600 mem=224M ip=10.99.24.96:10.99.24.65:10.99.24.1:255.255.255.0:sc58x:ethf
 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
 Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
-Memory: 215024K/229376K available (3139K kernel code, 96K rwdata, 1184K rodata, 7736K init, 71K bss, 14352K reserved, 0K cma-reserved)+Memory: 205764K/229376K available (6144K kernel code, 200K rwdata, 1512K rodata, 1024K init, 112K bss, 23612K reserved, 0K cma-reserved)
 Virtual kernel memory layout: Virtual kernel memory layout:
-    vector  : 0xffff0000 - 0xffff1000     4 kB) +    vector  : 0xffff0000 - 0xffff1000     4 kB) 
-    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB) +    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB) 
-    vmalloc : 0xce800000 - 0xff000000   776 MB) +    vmalloc : 0xce800000 - 0xff800000   784 MB) 
-    lowmem  : 0xc0000000 - 0xce000000   ( 224 MB) +    lowmem  : 0xc0000000 - 0xce000000   ( 224 MB) 
-    modules : 0xbf000000 - 0xc0000000   (  16 MB) +    modules : 0xbf000000 - 0xc0000000   (  16 MB) 
-      .text : 0xc0008000 0xc044113c   (4325 kB) +      .text : 0x(ptrval) 0x(ptrval)   (7136 kB) 
-      .init : 0xc0442000 0xc0bd0000   (7736 kB) +      .init : 0x(ptrval) 0x(ptrval)   (1024 kB) 
-      .data : 0xc0bd0000 0xc0be81e0    97 kB) +      .data : 0x(ptrval) 0x(ptrval)   ( 201 kB) 
-       .bss : 0xc0be81e0 0xc0bfa098    72 kB) +       .bss : 0x(ptrval) 0x(ptrval)   ( 113 kB) 
-NR_IRQS:16 nr_irqs:16 16 +NR_IRQS: 16nr_irqs: 16, preallocated irqs: 16 
-GIC CPU mask not found - kernel will fail to boot. +clocksource: cs_gptimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 16988981748 ns 
-GIC CPU mask not found - kernel will fail to boot. +sched_clock: 32 bits at 112MHz, resolution 8ns, wraps every 19088743419ns
-sched_clock: 32 bits at 112MHz, resolution 8ns, wraps every 38177486839ns+
 Console: colour dummy device 80x30 Console: colour dummy device 80x30
 Calibrating delay loop... 297.98 BogoMIPS (lpj=595968) Calibrating delay loop... 297.98 BogoMIPS (lpj=595968)
Line 138: Line 146:
 Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
 CPU: Testing write buffer coherency: ok CPU: Testing write buffer coherency: ok
-Setting up static identity map for 0x822fdd48 0x822fdd7c+Setting up static identity map for 0xc2100000 0xc210003c
 devtmpfs: initialized devtmpfs: initialized
-do_initcall_level level 0 
-do_initcall_level level 1 
 VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1 VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
 +clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
 +futex hash table entries: 256 (order: -1, 3072 bytes)
 pinctrl core: initialized pinctrl subsystem pinctrl core: initialized pinctrl subsystem
 NET: Registered protocol family 16 NET: Registered protocol family 16
-do_initcall_level level 2 
 DMA: preallocated 256 KiB pool for atomic coherent allocations DMA: preallocated 256 KiB pool for atomic coherent allocations
-do_initcall_level level 3 
 L2C: device tree omits to specify unified cache L2C: device tree omits to specify unified cache
 L2C-310 dynamic clock gating enabled, standby mode enabled L2C-310 dynamic clock gating enabled, standby mode enabled
 L2C-310 cache controller enabled, 8 ways, 256 kB L2C-310 cache controller enabled, 8 ways, 256 kB
 L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x06040000 L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x06040000
-sc57x_init: registering device resources+sc58x_init: registering device resources
 sec init... sec init...
 enabled enabled
 hw-breakpoint: Failed to enable monitor mode on CPU 0. hw-breakpoint: Failed to enable monitor mode on CPU 0.
 ADI DMA2 Controller ADI DMA2 Controller
-adi-dma2 31026180.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 31026180.dma failed with error -2 
-adi-dma2 31026100.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 31026100.dma failed with error -2 
-adi-dma2 30fff080.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 30fff080.dma failed with error -2 
-adi-dma2 31026280.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 31026280.dma failed with error -2 
-adi-dma2 31026200.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 31026200.dma failed with error -2 
-adi-dma2 3109a000.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 3109a000.dma failed with error -2 
-adi-dma2 3109a080.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 3109a080.dma failed with error -2 
-adi-dma2 3109b000.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 3109b000.dma failed with error -2 
-adi-dma2 3109b080.dma: Invalid ADI DMA channel. 
-adi-dma2: probe of 3109b080.dma failed with error -2 
-DMA channel 40 is not registed 
-DMA channel 39 is not registed 
-do_initcall_level level 4 
 SCSI subsystem initialized SCSI subsystem initialized
-i2c-bfin-twi 31001400.twi: Blackfin on-chip I2C TWI Contoller, regs_base@f4001400 +usbcore: registered new interface driver usbfs 
-i2c-bfin-twi 31001500.twi: Blackfin on-chip I2C TWI Contoller, regs_base@f4001500 +usbcore: registered new interface driver hub 
-i2c-bfin-twi 31001600.twi: Blackfin on-chip I2C TWI Contoller, regs_base@f4001600+usbcore: registered new device driver usb 
 +i2c-adi-twi 31001400.twi: ADI on-chip I2C TWI Controller, regs_base@(ptrval) 
 +i2c-adi-twi 31001500.twi: ADI on-chip I2C TWI Controller, regs_base@(ptrval) 
 +i2c-adi-twi 31001600.twi: ADI on-chip I2C TWI Controller, regs_base@(ptrval)
 pps_core: LinuxPPS API ver. 1 registered pps_core: LinuxPPS API ver. 1 registered
 pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
 PTP clock support registered PTP clock support registered
-do_initcall_level level 5 +Advanced Linux Sound Architecture Driver Initialized. 
-Switched to clocksource cs_gptimer+clocksource: Switched to clocksource cs_gptimer
 NET: Registered protocol family 2 NET: Registered protocol family 2
 +tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
 TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 2048 (order: 1, 8192 bytes)
 TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
 TCP: Hash tables configured (established 2048 bind 2048) TCP: Hash tables configured (established 2048 bind 2048)
-TCP: reno registered 
 UDP hash table entries: 256 (order: 0, 4096 bytes) UDP hash table entries: 256 (order: 0, 4096 bytes)
 UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
 NET: Registered protocol family 1 NET: Registered protocol family 1
-do_initcall_level level 6+RPC: Registered named UNIX socket transport module. 
 +RPC: Registered udp transport module. 
 +RPC: Registered tcp transport module. 
 +RPC: Registered tcp NFSv4.1 backchannel transport module. 
 +Unpacking initramfs... 
 +random: fast init done 
 +Freeing initrd memory: 11940K
 hw perfevents: enabled with armv7_cortex_a5 PMU driver, 3 counters available hw perfevents: enabled with armv7_cortex_a5 PMU driver, 3 counters available
-futex hash table entries256 (order-1, 3072 bytes) +Initialise system trusted keyrings 
-jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.+workingsettimestamp_bits=30 max_order=16 bucket_order=0 
 +NFSRegistering the id_resolver key type 
 +Key type id_resolver registered 
 +Key type id_legacy registered 
 +nfs4filelayout_init: NFSv4 File Layout Driver Registering... 
 +jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. 
 +Key type asymmetric registered 
 +Asymmetric key parser 'x509' registered
 io scheduler noop registered (default) io scheduler noop registered (default)
 +io scheduler mq-deadline registered
 +io scheduler kyber registered
 ADI serial driver ADI serial driver
 adi-uart4.0: ttySC0 at MMIO 0x31003000 (irq = 20, base_baud = 7031250) is a ADI-UART4 adi-uart4.0: ttySC0 at MMIO 0x31003000 (irq = 20, base_baud = 7031250) is a ADI-UART4
Line 206: Line 209:
 bootconsole [earlycon0] disabled bootconsole [earlycon0] disabled
 bootconsole [earlycon0] disabled bootconsole [earlycon0] disabled
-adi-uart4.2: ttySC2 at MMIO 0x31003800 (irq = 60, base_baud = 7031250) is a ADI-UART4 
 loop: module loaded loop: module loaded
-adi-spi3 3102e000.spi: registered ADI SPI controller spi0 +adi-spi3 31042000.spi: registered ADI SPI controller spi0 
-adi-spi3 3102f000.spiregistered ADI SPI controller spi1+m25p80 spi2.38unrecognized JEDEC id bytes: 9d, 60, 1a 
 +m25p80: probe of spi2.38 failed with error -2
 adi-spi3 31044000.spi: registered ADI SPI controller spi2 adi-spi3 31044000.spi: registered ADI SPI controller spi2
-stmmaceth 3100c000.ethernet: no reset control found +libphy: Fixed MDIO Bus: probed 
-stmmac user ID: 0x10, Synopsys ID: 0x37 +adi-dwmac 3100c000.ethernet: PTP uses main clock 
- Ring mode enabled +adi-dwmac 3100c000.ethernet: no reset control found 
- DMA HW capability register supported +adi-dwmac 3100c000.ethernet: User ID: 0x10, Synopsys ID: 0x37 
- Enhanced/Alternate descriptors +adi-dwmac 3100c000.ethernet:    DWMAC1000 
-        Enabled extended descriptors +adi-dwmac 3100c000.ethernet: DMA HW capability register supported 
- RX Checksum Offload Engine supported (type 2) +adi-dwmac 3100c000.ethernet: RX Checksum Offload Engine supported 
- TX Checksum insertion supported +adi-dwmac 3100c000.ethernet: COE Type 
- Wake-Up On Lan supported +adi-dwmac 3100c000.ethernet: TX Checksum insertion supported 
- Enable RX Mitigation via HW Watchdog Timer+adi-dwmac 3100c000.ethernet: Wake-Up On Lan supported 
 +adi-dwmac 3100c000.ethernet: Enhanced/Alternate descriptors 
 +adi-dwmac 3100c000.ethernet: Enabled extended descriptors 
 +adi-dwmac 3100c000.ethernet: Ring mode enabled 
 +adi-dwmac 3100c000.ethernet: Enable RX Mitigation via HW Watchdog Timer
 libphy: stmmac: probed libphy: stmmac: probed
-eth0PHY ID 20005c7a at IRQ POLL (stmmac-0:01) active +usbcoreregistered new interface driver usb-storage 
-mousedevPS/mouse device common for all mice+musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver 
 +musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1 
 +hub 1-0:1.0: USB hub found 
 +hub 1-0:1.0: 1 port detected 
 +musb-hdrc musb-hdrc.3.auto: MUSB HDRC host driver 
 +musb-hdrc musb-hdrc.3.auto: new USB bus registered, assigned bus number 2 
 +hub 2-0:1.0: USB hub found 
 +hub 2-0:1.0: 1 port detected
 i2c /dev entries driver i2c /dev entries driver
 adi_wdt: initialized: timeout=20 sec (nowayout=0) adi_wdt: initialized: timeout=20 sec (nowayout=0)
-TCPcubic registered+Synopsys Designware Multimedia Card Interface Driver 
 +dwmmc_adi 31010000.mmc: IDMAC supports 32-bit address mode. 
 +dwmmc_adi 31010000.mmc: Using internal DMA controller. 
 +dwmmc_adi 31010000.mmc: Version ID is 270a 
 +dwmmc_adi 31010000.mmc: DW MMC controller at irq 38,32 bit host data width,1024 deep fifo 
 +mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63) 
 +ADI hardware CRC crypto driver 
 +adi-hmac-crc 31001200.crc: initialized 
 +adi-hmac-crc 31001300.crc: initialized 
 +usbcore: registered new interface driver usbhid 
 +usbhid: USB HID core driver 
 +adau1761 0-0038: Direct firmware load for adau1761.bin failed with error -2 
 +adau1761 0-0038: Could not find firmware file: -2 
 +sc5xx-i2s-dai 31002000.i2s: SPORT create success 
 +snd-sc5xx scb:sound: adau-hifi <-> 31002000.i2s mapping ok 
 +NET: Registered protocol family 10 
 +Segment Routing with IPv6 
 +sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
 NET: Registered protocol family 17 NET: Registered protocol family 17
-do_initcall_level level 7+Key type dns_resolver registered
 ThumbEE CPU extension supported. ThumbEE CPU extension supported.
-Freeing unused kernel memory7736K (c0442000 c0bd0000+Loading compiled-in X.509 certificates 
-Starting loggingOK +console [netcon0] enabled 
-Starting mdev... +netconsolenetwork logging started 
-Starting watchdog... +TI DP83867 stmmac-0:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=stmmac-0:00, irq=POLL
-Initializing random number generator... randomdd urandom read with 8 bits of entropy available +adi-dwmac 3100c000.ethernet eth0No Safety Features support found 
-done+adi-dwmac 3100c000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported 
-Starting network... +adi-dwmac 3100c000.ethernet eth0: registered PTP clock 
-/bin/shrun-partsnot found +IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready 
-ssh-keygengenerating new host keysED25519 +adi-dwmac 3100c000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx 
-Starting sshdOK +IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
-Starting inetdOK+IP-Config: Complete: 
 +     device=eth0, hwaddr=02:80:ad:20:31:e2, ipaddr=10.99.24.96, mask=255.255.255.0, gw=10.99.24.1 
 +     host=sc58x, domain=, nis-domain=(none) 
 +     bootserver=10.99.24.65, rootserver=10.99.24.65, rootpath= 
 +cfg80211Loading compiled-in X.509 certificates for regulatory database 
 +cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' 
 +ALSA device list: 
 +  #0: sc5xx-asoc-card 
 +platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 
 +cfg80211: failed to load regulatory.db 
 +Freeing unused kernel memory: 1024K 
 +Run /init as init process 
 +init started: BusyBox v1.29.3 (2020-08-07 10:16:01 UTC) 
 +starting pid 665, tty '': '/bin/mount -t proc proc /proc' 
 +starting pid 666, tty '''/bin/mount -t sysfs sysfs /sys' 
 +starting pid 667, tty '''/bin/mount -t devtmpfs devtmpfs /dev' 
 +starting pid 668, tty '': '/bin/mount -o remount,rw /' 
 +starting pid 669, tty '''/bin/mkdir -p /dev/pts' 
 +starting pid 670, tty '''/bin/mount -t devpts devpts /dev/pts' 
 +starting pid 671, tty '''/bin/mount -a' 
 +mountmounting /dev/root on / failed: No such file or directory 
 +starting pid 675, tty '': '/usr/bin/fastboot-listener' 
 +Failed to open SHARC notify device: No such file or directory 
 +starting pid 678, tty '/dev/ttySC0': '/bin/sh'
 </code> </code>
  
Line 295: Line 349:
 \\ \\
 ---- ----
-**Back To: **[[/resources/tools-software/linuxdsp/docs/das-u-boot|Das U-boot]]+<WRAP group> 
 +<WRAP half column> 
 +**Pre: **[[resources/tools-software/linuxdsp/docs/das-u-boot/ethernet_driver_in_uboot|Ethernet Driver in U-Boot on SC5xx-EZKIT]] 
 +</WRAP> 
 +<WRAP half column> 
 +**Next: **[[resources/tools-software/linuxdsp/docs/das-u-boot/mobile_storage_interface|Mobile Storage Interface (MSI)]]  
 +</WRAP> 
 +</WRAP>
    
  
resources/tools-software/linuxdsp/docs/das-u-boot/loading_file_from_usb_storage_in_uboot.1607413475.txt.gz · Last modified: 08 Dec 2020 08:44 by Sunny Feng