Not able to write u-boot to SPI
#1
Hello everyone.

I have a trouble flashing uboot to my RockPro64 4GB variant. I am trying to use rock64_write_spi_flash.sh script, but nothing is flashing.

I made all steps according to wiki, booted from SD card, used latest ubuntu image, but everything I get is following error:


Code:
rock64@rockpro64:/dev$ sudo su [sudo] password for rock64: root@rockpro64:/dev# rock64_write_spi_flash.sh Doing this will overwrite data stored on SPI Flash  and it will require that you use eMMC or SD  as your boot device. Type YES to continue or Ctrl-C to abort. YES Writing /dev/mtd0 with content of /usr/lib/u-boot-rockpro64/rkspi_loader.img Erasing 4 Kibyte @ 0 --  0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd0)        error 110 (Connection timed out) flash_erase: error!: /dev/mtd0: MTD Erase failure             error 110 (Connection timed out) Erasing 4 Kibyte @ 1000 --  0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 1 (mtd0)        error 110 (Connection timed out) flash_erase: error!: /dev/mtd0: MTD Erase failure             error 110 (Connection timed out) Erasing 4 Kibyte @ 2000 --  0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 2 (mtd0)        error 110 (Connection timed out) flash_erase: error!: /dev/mtd0: MTD Erase failure             error 110 (Connection timed out) Erasing 4 Kibyte @ 3000 --  0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 3 (mtd0)        error 110 (Connection timed out) flash_erase: error!: /dev/mtd0: MTD Erase failure             error 110 (Connection timed out) Erasing 4 Kibyte @ 4000 --  0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 4 (mtd0)        error 110 (Connection timed out) flash_erase: error!: /dev/mtd0: MTD Erase failure             error 110 (Connection timed out) Erasing 4 Kibyte @ 5000 --  0 % complete ^C^C


I have even tried steps written here: https://forum.pine64.org/showthread.php?...e#pid40677   (,only changed the overlay address to "ff1d0000" to fit to RockPro64 dts).

I never flashed anything to SPI before, so it can't be messed up. I tried the SD card method with only ayufan uboot image and this don't work either. Nothing is written to it..

Output of "mtdinfo":

Code:
root@rockpro64:/dev# mtdinfo Count of MTD devices:           3 Present MTD devices:            mtd0, mtd1, mtd2 Sysfs interface supported:      yes root@rockpro64:/dev# mtdinfo /dev/mtd0 mtd0 Name:                           loader Type:                           nor Eraseblock size:                4096 bytes, 4.0 KiB Amount of eraseblocks:          1016 (4161536 bytes, 4.0 MiB) Minimum input/output unit size: 1 byte Sub-page size:                  1 byte Character device major/minor:   90:0 Bad blocks are allowed:         false Device is writable:             true root@rockpro64:/dev# mtdinfo /dev/mtd1 mtd1 Name:                           env Type:                           nor Eraseblock size:                4096 bytes, 4.0 KiB Amount of eraseblocks:          8 (32768 bytes, 32.0 KiB) Minimum input/output unit size: 1 byte Sub-page size:                  1 byte Character device major/minor:   90:2 Bad blocks are allowed:         false Device is writable:             true root@rockpro64:/dev# mtdinfo /dev/mtd2 mtd2 Name:                           vendor Type:                           nor Eraseblock size:                4096 bytes, 4.0 KiB Amount of eraseblocks:          64 (262144 bytes, 256.0 KiB) Minimum input/output unit size: 1 byte Sub-page size:                  1 byte Character device major/minor:   90:4 Bad blocks are allowed:         false Device is writable:             true


Output of dmesg:
Code:
root@rockpro64:/dev# dmesg | grep spi [    2.015555] rockchip-spi ff1d0000.spi: Failed to request TX DMA channel [    2.016160] rockchip-spi ff1d0000.spi: Failed to request RX DMA channel [    2.016778] rockchip-spi ff1d0000.spi: no high_speed pinctrl state [    2.017904] m25p80 spi32766.0: gd25q128 (16384 Kbytes) [    2.018394] 3 ofpart partitions found on MTD device spi32766.0 [    2.018924] Creating 3 MTD partitions on "spi32766.0": [  164.537097] m25p80 spi32766.0: flash operation timed out [  204.537255] m25p80 spi32766.0: flash operation timed out [  244.537347] m25p80 spi32766.0: flash operation timed out [  284.537402] m25p80 spi32766.0: flash operation timed out [  324.537509] m25p80 spi32766.0: flash operation timed out [  364.537587] m25p80 spi32766.0: flash operation timed out


Thanks for any suggestions. This is really driving me nuts.. Any help will be appreciated.. :-)


Messages In This Thread
Not able to write u-boot to SPI - by Jix0 - 10-29-2018, 11:08 AM
RE: Not able to write u-boot to SPI - by lybin - 11-13-2018, 02:08 AM
RE: Not able to write u-boot to SPI - by Bullet64 - 11-13-2018, 09:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  (real) Mainline U-boot finally works on SPI, boots SATA, throw away your SD cards NOW aleksei 0 13,084 06-21-2025, 06:21 AM
Last Post: aleksei
  enble boot after power loss/restore dkebler 18 31,076 12-04-2023, 12:14 PM
Last Post: ok38
  Mainline U-Boot with SPI, NVMe and SATA boot support sigmaris 108 230,598 09-25-2023, 12:46 AM
Last Post: ChriChri
Bug Broken boot: What am I missing? mkosarek 1 4,725 09-08-2023, 08:14 AM
Last Post: wdt
  Unable to boot Armbian on new RockPro64 mooseball 5 14,111 07-14-2023, 08:59 AM
Last Post: rockjonn
  no boot white led flashing moserwi 7 14,453 05-18-2023, 10:46 AM
Last Post: wdt
  u-boot locked on pine64pro ljones 1 4,726 09-06-2022, 10:32 AM
Last Post: ljones
  Cannot get my board to boot deutschlmao 11 20,340 09-05-2022, 04:23 PM
Last Post: ljones
  U-BOOT Tutorial hazz 0 3,650 07-19-2022, 10:48 PM
Last Post: hazz
  Installation Debian on emmc: which U-Boot and where? vongillus 3 8,215 07-02-2022, 09:24 AM
Last Post: dkebler

Forum Jump:


Users browsing this thread: 1 Guest(s)