[SOLVED] stuck at emmc
#1
Hello all,

ill try tell my problem.

I used u-boot-flash-spi-rock64.img.xz on microsd to flash spi and be able to boot from emmc. 
I used android tv as my emc image.
I played with it for some time ( worked okish btw) 
ANd now im lost.
I cant find my emmc ( I lost it) ( yeah blame me Tongue )
how will i be able to boot from micro sd . 
As soon as i turn on power all 3 leds all are lit bright and are not doing anything. neither will he boot from usb or from microsd. ( tried several sd cards and boot imgs)

Any help is appreciated.

Cheers.
Dre
  Reply
#2
(04-28-2018, 09:46 AM)dr_dre Wrote: Hello all,

ill try tell my problem.

I used u-boot-flash-spi-rock64.img.xz on microsd to flash spi and be able to boot from emmc. 
I used android tv as my emc image.
I played with it for some time ( worked okish btw) 
ANd now im lost.
I cant find my emmc ( I lost it) ( yeah blame me Tongue )
how will i be able to boot from micro sd . 
As soon as i turn on power all 3 leds all are lit bright and are not doing anything. neither will he boot from usb or from microsd. ( tried several sd cards and boot imgs)

Any help is appreciated.

Cheers.
Dre

follow this link to erase your SPI Flash: http://wiki.pine64.org/index.php/NOOB#Er...riting_SPI

 
  Reply
#3
(04-28-2018, 02:44 PM)vincent37 Wrote: follow this link to erase your SPI Flash: http://wiki.pine64.org/index.php/NOOB#Er...riting_SPI

 
Thnx for the Reply vincent.
But as I said booting from sd isnt possible anymore.

Any other ideas besides creating a ticket at Pine-support ?
Dre
  Reply
#4
(04-29-2018, 01:17 AM)dr_dre Wrote: Any other ideas besides creating a ticket at Pine-support ?

There is pins you can short to disable SPI Flash, according to Lukasz it's the last two pins at the bottom row
  Reply
#5
(04-29-2018, 03:07 AM)evilbunny Wrote: There is pins you can short to disable SPI Flash, according to Lukasz it's the last two pins at the bottom row

(Yes, I'm stalking you, you rascally wabbit!)

Yup, it's the two pin header near the white/red leds and pwr/reset buttons, marked "eMMC en/dis"(able)... you short the two pins to disable the eMMC... or just unplug the eMMC from the board (all the jumper does is stop the eMMC clock by pulling to GND).

What I'm not clear on is why you needed to flash the SPI in order boot from eMMC... as the rock64 boot sequence is SPI -> eMMC -> SD, so if there was nothing on the SPI (i.e. as shipped from factory), it will then try the eMMC (if installed, and the disable pins not jumpered), and then the SD card...
  Reply
#6
(04-29-2018, 03:30 AM)pfeerick Wrote:
(04-29-2018, 03:07 AM)evilbunny Wrote: There is pins you can short to disable SPI Flash, according to Lukasz it's the last two pins at the bottom row

(Yes, I'm stalking you, you rascally wabbit!)

Yup, it's the two pin header near the white/red leds and pwr/reset buttons, marked "eMMC en/dis"(able)... you short the two pins to disable the eMMC... or just unplug the eMMC from the board (all the jumper does is stop the eMMC clock by pulling to GND).

What I'm not clear on is why you needed to flash the SPI in order boot from eMMC... as the rock64 boot sequence is SPI -> eMMC -> SD, so if there was nothing on the SPI (i.e. as shipped from factory), it will then try the eMMC (if installed, and the disable pins not jumpered), and then the SD card...

Ok what should be normal behavior from rock64 board after i flashed spi with u-boot-flash-spi-rock64.img and i dont have emmc anymore. Problem is i get 3 bright leds  immediately after power on. no life can be seen ( no ethernet leds no nothing.) The shorten of the spi flash did not help either. My next move would be to get serial working to see any kind of messages.

or am i moving in the wrong direction. 

Cheers
Dre
  Reply
#7
is there any way to write spi to factory settings again ( using uart or so) this is the output from serial
------------

U-Boot SPL 2017.09-ga0a2b48 (Mar 29 2018 - 21:57:02)
setup_ddr_param 1
booted from SPI flash
Trying to boot from SPI
"Synchronous Abort" handler, esr 0x02000000
ELR: 10000
LR: 1890
x 0: 0000000000400000 x 1: 0000000000000000
x 2: 0000000000010000 x 3: 0000000000000180
x 4: 0000000000000009 x 5: 0000000000000073
x 6: 00000000001fff86 x 7: 0000000000000003
x 8: 0000000000000340 x 9: 0000000013d92d40
x10: 00000000005ffc0c x11: 00000000001ffb80
x12: 000000000000030d x13: 0000000000000300
x14: 00000000005ffc5c x15: 00000000001ffb80
x16: 0000000000000000 x17: 0000000000000000
x18: 00000000005ffea0 x19: 000000000000d498
x20: 000000000000d480 x21: 0000000000000000
x22: 00000000005ffe70 x23: 00000000005ffe58
x24: 000000000000b50b x25: 000000000000b4f3
x26: 000000000000d000 x27: 00000000deadbeef
x28: 0000000000000430 x29: 00000000005ffde0

Resetting CPU ...

DDR version 1.08 20170628
In
SRX
LPDDR3
333MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT

U-Boot SPL 2017.09-ga0a2b48 (Mar 29 2018 - 21:57:02)
setup_ddr_param 1
booted from SPI flash
Trying to boot from SPI

----------
  Reply
#8
ok that worked fine.

shortened 20 and 21 just to boot ( remove after several seconds)

DDR version 1.08 20170628
In
LPDDR3
333MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT

U-Boot SPL 2017.09-ga0a2b48 (Apr 27 2018 - 18:00:06)
setup_ddr_param 1
booted from SD
Trying to boot from MMC2
NOTICE: BL31: v1.3(debug):9d3f591
NOTICE: BL31: Built : 14:39:02, Jan 17 2018
NOTICE: BL31:Rockchip release version: v1.3
INFO: ARM GICv2 driver initialized
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 1
INFO: plat_rockchip_pmu_init: pd status 0xe
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9


U-Boot 2017.09-ga0a2b48 (Apr 27 2018 - 18:00:21 +0000), Build: jenkins-linux-build-rock-64-211

Model: Pine64 Rock64
DRAM: 4 GiB
MMC: [email protected]: 0, [email protected]: 1
*** Warning - bad CRC, using default environment

In: [email protected]
Out: [email protected]
Err: [email protected]
Model: Pine64 Rock64
misc_init_r
cpuid=55524b50303930303500000000122119
serial=95ac81d6aa1d2bf
Net: eth0: [email protected]
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
mmc_init: -95, time 10
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:6...
Found U-Boot script /boot.scr
reading /boot.scr
449 bytes read in 4 ms (109.4 KiB/s)
## Executing script at 00500000
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB

MMC read: dev # 1, block # 64, count 8000 ... 8000 blocks read: OK
SF: 4096000 bytes @ 0x8000 Erased: OK
device 0 offset 0x8000, size 0x3e8000
SF: 4096000 bytes @ 0x8000 Written: OK

---

ANd it boots from usb as well as well as sd Smile

thnx for the direction you pointed me to Smile

Dre
  Reply
#9
Hello, nice that it works. Can you tell me which adapter you have used to read the rock serially?
  Reply
#10
yes i used a FTDI232 to do the job .

https://www.aliexpress.com/item/Free-Shi...0.0.ITatop

Smile
I used this thread to help me with the pin connections.
https://forum.pine64.org/showthread.php?tid=5029
@MarkHaysHarris777 for the win Smile (https://forum.pine64.org/member.php?acti...e&uid=1323)
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Receiving errors about eMMC (?) acasta 11 1,729 09-24-2019, 10:26 PM
Last Post: ridgarou
  USB -> eMMC is now available. Luke 15 6,803 07-27-2019, 04:27 PM
Last Post: tllim
Brick How to Write an Image to the eMMC Module Tutorial MarkHaysHarris777 55 24,239 02-06-2019, 04:02 PM
Last Post: tllim
  flash image to sd/emmc through ethernet LMM 0 206 02-04-2019, 07:36 AM
Last Post: LMM
  Rock64 No Audio - Solved wbecks 8 5,031 01-13-2019, 06:51 AM
Last Post: xubiaosunny
  Card emmc Auggoncalves 2 359 06-25-2018, 03:20 AM
Last Post: Auggoncalves
  telnet or ssh to ROCK64 stuck LemonZou 8 1,925 06-04-2018, 05:44 PM
Last Post: pfeerick
  Debian to eMMC? Hoerli 7 1,158 05-06-2018, 05:41 PM
Last Post: pfeerick
  eMMC errors MrFawlty 8 884 04-02-2018, 09:33 PM
Last Post: tllim
  eMMC angelscream09 6 875 03-17-2018, 02:08 PM
Last Post: KeithJohnAlger

Forum Jump:


Users browsing this thread: 1 Guest(s)