AnsweredAssumed Answered

Booting Linux failed with a new 1.0 silicon version ezkit

Question asked by whuanghq on Jun 1, 2016
Latest reply on Jun 5, 2016 by Aaronwu

I just got a new 1.0 silicon version sc589 ezkit, uboot was fine, but booting linux failed, below was the steps i followed the ezkit quick starter guide

 

1) Booting Linux Standalone From Non-Volatile Storage

 

U-Boot 2015.01 ADI-1.0.1 (May 04 2016 - 20:33:27), Build: jenkins-label=make_deb_package-228

 

 

CPU:   ADSP ADSP-SC589-0.0 (Detected Rev: 1.1) (spi flash boot)

VCO: 450 MHz, Cclk0: 450 MHz, Sclk0: 112.500 MHz, Sclk1: 112.500 MHz, DCLK: 225 MHz

OCLK: 150 MHz

I2C:   ready

DRAM:  224 MiB

MMC:   GRIFFIN SDH: 0

SF: Detected W25Q128BV with page size 256 Bytes, erase size 4 KiB, total 16 MiB

In:    serial

Out:   serial

Err:   serial

other init

Net:   dwmac.3100c000

Hit any key to stop autoboot:  5     4     0

sc # tftp 0xc2000000 vmImage-sc58x-ezkit-hpc

Speed: 1000, full duplex

Using dwmac.3100c000 device

TFTP from server 192.168.3.7; our IP address is 192.168.3.33

Filename 'vmImage-sc58x-ezkit-hpc'.

Load address: 0xc2000000

Loading: * #################################################################

  #################################################################

  #################################################################

  #################################################################

  #################################################################

  #########################################################

  2.2 MiB/s

done

Bytes transferred = 5605856 (5589e0 hex)

sc # sf probe 2:1

SF: Detected W25Q128BV with page size 256 Bytes, erase size 4 KiB, total 16 MiB

sc # sf erase 0xa00000 0x600000

SF: 6291456 bytes @ 0xa00000 Erased: OK

sc # sf write 0xc2000000 0xa00000 ${filesize}

SF: 5605856 bytes @ 0xa00000 Written: OK

 

Load and Flash the DTB File

sc # tftp 0xc2000000 sc58x-ezkit-hpc.dtb

Speed: 1000, full duplex

Using dwmac.3100c000 device

TFTP from server 192.168.3.7; our IP address is 192.168.3.33

Filename 'sc58x-ezkit-hpc.dtb'.

Load address: 0xc2000000

Loading: * ##

  1.7 MiB/s

done

Bytes transferred = 18018 (4662 hex)

sc # sf probe 2:1

SF: Detected W25Q128BV with page size 256 Bytes, erase size 4 KiB, total 16 MiB

sc #  sf erase 0x900000 0x40000

SF: 262144 bytes @ 0x900000 Erased: OK

sc # sf write 0xc2000000 0x900000 ${filesize}

SF: 18018 bytes @ 0x900000 Written: OK

 

Customize the u-boot environment

sc # set bootargs root=/dev/mmcblk0p1 rw rootwait rootfstype=ext3  clkin_hz=(25000000) earlyprintk console=ttySC0,57600

sc # sf probe 2:1

SF: Detected W25Q128BV with page size 256 Bytes, erase size 4 KiB, total 16 MiB

sc #     sf read 0xc4000000 0x900000 0x5000

SF: 20480 bytes @ 0x900000 Read: OK

sc # sf read 0xc2000000 0xa00000 0x600000

SF: 6291456 bytes @ 0xa00000 Read: OK

sc # bootm ${loadaddr} - ${dtbaddr}

Wrong Image Format for bootm command

ERROR: can't get kernel image!

 

2)Quicker Boot From Non-Volatile Storage

sc # set sdargs set bootargs root=/dev/mmcblk0p1 rw rootwait rootfstype=ext3 clkin_hz=(25000000) earlyprintk console=ttySC0,57600

sc # set sdboot 'run sdargs; sf probe 2:1;sf read 0xc4000000 0x900000 0x5000;ext2load mmc 0:1 0xc2000000 vmImage-sc58x-ezkit-hpc;bootm ${loadaddr} - ${dtbaddr}'

sc # set bootcmd run sdboot

sc # run sdboot

SF: Detected W25Q128BV with page size 256 Bytes, erase size 4 KiB, total 16 MiB

SF: 20480 bytes @ 0x900000 Read: OK

5605856 bytes read in 417 ms (12.8 MiB/s)

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

   Image Name:   Linux-4.0.0-ADI-1.0.1

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    5605792 Bytes = 5.3 MiB

   Load Address: c2008000

   Entry Point:  c2008000

   Verifying Checksum ... OK

ERROR: Did not find a cmdline Flattened Device Tree

Could not find a valid device tree

Outcomes