#20387: regression in uboot-sunxi causing boot failure.
----------------------+------------------------
 Reporter:  yousong   |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  high      |  Milestone:
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+------------------------
 Hi

 I have a Cubieboard2 board.  The first time I installed OpenWrt on it was
 about more than 1 year ago as recorded in the dmesg output of the wiki
 page ![1].  It booted and worked fine.  The revision id is 39756 and the
 corresponding git commit-id is `7ed37d7ef48e601c8a6d22fab6980437a47dcc4a`.
 I just rebuilt that revision and it still booted and worked perfect.  Same
 board and same 256MB SD card were used.

 But current trunk didn't work.  It failed within uboot

 {{{
 U-Boot SPL 2015.07 (Aug 22 2015 - 18:24:02)
 DRAM: 1024 MiB
 CPU: 912000000Hz, AXI/AHB/APB: 3/2/2


 U-Boot 2015.07 (Aug 22 2015 - 18:24:02 +0800) Allwinner Technology

 CPU:   Allwinner A20 (SUN7I)
 I2C:   ready
 DRAM:  1 GiB
 MMC:   SUNXI SD/MMC: 0
 *** Warning - bad CRC, using default environment

 In:    serial
 Out:   serial
 Err:   serial
 SCSI:  SUNXI SCSI INIT
 SATA link 0 timeout.
 AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
 flags: ncq stag pm led clo only pmp pio slum part ccc apst
 Net:   eth0: ethernet@01c50000
 starting USB...
 USB0:   USB EHCI 1.00
 USB1:   USB OHCI 1.0
 USB2:   USB EHCI 1.00
 USB3:   USB OHCI 1.0
 scanning bus 0 for devices... 1 USB Device(s) found
 scanning bus 2 for devices... 1 USB Device(s) found
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0:1...
 Found U-Boot script /boot.scr
 reading /boot.scr
 377 bytes read in 18 ms (19.5 KiB/s)
 ## Executing script at 43100000
 reading uImage
 Error reading cluster
 ** Unable to read file uImage **
 SCRIPT FAILED: continuing...
 ** Can't read partition table on 0:0 **
 ** Invalid partition 1 **
 ** Can't read partition table on 0:0 **
 ** Invalid partition 1 **
 ** Can't read partition table on 0:0 **
 ** Invalid partition 1 **
 scanning bus for devices...
 Found 0 device(s).

 SCSI device 0:
     Device 0: not available

 USB device 0: unknown device
 Speed: 100, full duplex
 BOOTP broadcast 1
 }}}

 Another SD card of 1GB size failed right away at SPL stage with error -19
 (`TIMEOUT` from the u-boot code) while initialising mmc device.  But it
 booted fine with debian jessie netboot images ![2].  Unfortunately though
 the `sunxi-mmc` kernel module within the netboot image cannot initialising
 correctly the device (it can read and write that 256MB card fine).

 {{{
 U-Boot SPL 2015.07 (Aug 22 2015 - 18:24:02)
 DRAM: 1024 MiB
 CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
 spl: mmc init failed with error: -19
 ### ERROR ### Please RESET the board ###
 }}}


  ![1] http://wiki.openwrt.org/toh/cubietech/cubieboard2
  ![2] http://mirrors.ustc.edu.cn/debian/dists/jessie/main/installer-
 armhf/current/images/netboot/SD-card-images/

--
Ticket URL: <https://dev.openwrt.org/ticket/20387>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to