Cubieboard 3 (Cubietruck) does not boot from SD Card.

6,988 views
Skip to first unread message

Heinz Rusche

unread,
Nov 15, 2013, 3:21:44 PM11/15/13
to cubie...@googlegroups.com
Hi, my cubieboard 3 does boot well from nand flash. I decided to make an SD-Card like it's described in the tutorial to boot from SD-Card. But the cubieboard does boot from nand-flash every time even if the sd-card is inserted... Does someone know what I'm doing wrong?
I've attached the boot log... it seems it doesn't even try to boot from the sd-card.
boot.txt

Heinz Rusche

unread,
Nov 17, 2013, 9:23:41 AM11/17/13
to cubie...@googlegroups.com
push

Huang Benn

unread,
Nov 17, 2013, 9:32:20 AM11/17/13
to cubieboard
try to dd the u-boot with spl only


2013/11/17 Heinz Rusche <kloet...@gmail.com>
push

--
You received this message because you are subscribed to the Google Groups "Cubieboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cubieboard+...@googlegroups.com.
Visit this group at http://groups.google.com/group/cubieboard.
For more options, visit https://groups.google.com/groups/opt_out.

Michal Suchanek

unread,
Nov 18, 2013, 8:13:45 AM11/18/13
to cubie...@googlegroups.com
This is probably caused by

0) wrongly written image

1) bad contact on the SD card

2) electricity leaking form the serial port which prevents the mmc
from resetting properly

so make sure

0) you write the image correctly using dd or similar tool for windows

2) power off the board and disconnect the serial port from any other
board/PC. Try to boot form SD card again

1) the SD card is detected by the kernel you boot from nand (if it can
be booted). Try to dust off the slot contacts and/or insert a piece of
paper with the card so it gets pressed more firmly against the board.

Heinz Rusche

unread,
Nov 19, 2013, 1:17:08 AM11/19/13
to cubie...@googlegroups.com
0) i've written the image exactly like it is done in the tutorial

2) tried that before too

1) i already tried inserting a piece of paper with the sd card, or using another card but it hasn't changed anything.
Which line of my log says that the kernel has detected the card? I can't find any similar lines which have to do with the sd card like i know it from other arm linux devices.
The kernel even doesn't log anything when inserting the card.
The only thing I get something from the kernel is when pulling out the card: "mmc_sd_detect(mmc0): Unable to re-detect card (-123)". But does that implicate that the card has been detected and initialized at insertion correctly? I don't think so.

a)
Also the uboot "mmcinfo" command doesn't work. It prints "No MMC device available".
Should this command work in a working environment - like yours - or can't I use this as an indication?

b)
at which stage the log would differ when booting from sd-card? After Boot1?
Shouldn't I see any messages regarding the sd-card in Boot1 logs?

Jorge

unread,
Nov 26, 2013, 7:53:55 AM11/26/13
to cubie...@googlegroups.com
I'm having this problem with my newly received cubietruck, I have not copied a existing image, but I have done my own partition and formatting of the card. I have a first fat partition with script.bin  uEnv.txt  uImage from http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-card0-v1.00/desktop/bootfs-part1.tar.gz, I have dd'ed dd if=usbboot-fel/u-boot-spl.bin  of=/dev/sde  bs=1024 seek=8 ; dd if=usbboot-fel/u-boot.bin  of=/dev/sde  bs=1024 seek=32 from http://dl.cubieboard.org/software/a20-cubietruck/common/usbboot-fel.tar.gz and when booting it boots to android (and the it can mount the first partition and I can see the files, so the card works). Connecting to the serial console I can interrupt the boot and mmcinfo tells me that there is no device available:

U-Boot 2011.09-rc1-dirty (Sep 11 2013 - 17:15:10) Allwinner Technology 

CPU:   SUNXI Family
Board: SUN7I-EVB
DRAM:  2 GiB
NAND:  [NAND] set nand_good_block_ratio 912 
3200 MiB
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:11-
-name-        -start-       -size-      
bootloader  : 8000          8000        
env         : 10000         8000        
boot        : 18000         8000        
system      : 20000         100000      
data        : 120000        100000      
misc        : 220000        8000        
recovery    : 228000        10000       
cache       : 238000        a0000       
private     : 2d8000        8000        
databk      : 2e0000        80000       
UDISK       : 360000        2e0000      
-----------------------------------
bootcmd set setargs_nand
Hit any key to stop autoboot:  1 0 
sunxi#mmcinfo
No MMC device available
sunxi#mmc rescan
No MMC device available

sunxi#mmc list

No MMC device available

sunxi#mmc dev

No MMC device available

sunxi#






--
You received this message because you are subscribed to the Google Groups "Cubieboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cubieboard+...@googlegroups.com.
Visit this group at http://groups.google.com/group/cubieboard.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jorge Nerín
<jne...@gmail.com>

Michal Suchanek

unread,
Nov 26, 2013, 8:23:16 AM11/26/13
to cubie...@googlegroups.com
On 26 November 2013 13:53, Jorge <jne...@gmail.com> wrote:
> I'm having this problem with my newly received cubietruck, I have not copied
> a existing image, but I have done my own partition and formatting of the
> card. I have a first fat partition with script.bin uEnv.txt uImage from
> http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-card0-v1.00/desktop/bootfs-part1.tar.gz,
> I have dd'ed dd if=usbboot-fel/u-boot-spl.bin of=/dev/sde bs=1024 seek=8 ;
> dd if=usbboot-fel/u-boot.bin of=/dev/sde bs=1024 seek=32 from
> http://dl.cubieboard.org/software/a20-cubietruck/common/usbboot-fel.tar.gz
> and when booting it boots to android (and the it can mount the first
> partition and I can see the files, so the card works). Connecting to the
> serial console I can interrupt the boot and mmcinfo tells me that there is
> no device available:
>
> U-Boot 2011.09-rc1-dirty (Sep 11 2013 - 17:15:10) Allwinner Technology
>
> CPU: SUNXI Family
> Board: SUN7I-EVB
> DRAM: 2 GiB
> NAND: [NAND] set nand_good_block_ratio 912

I don't think this u-boot supports MMC.

So it's expected that you cannot see any.

HTH

Michal

Jorge

unread,
Nov 26, 2013, 9:14:36 AM11/26/13
to cubie...@googlegroups.com
So in order to boot from a SD card one has to update the u-boot stored in NAND? I was hoping I could avoid touching the nand contents so I will always have a kind of boot safe environment to test things.


--
You received this message because you are subscribed to the Google Groups "Cubieboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cubieboard+...@googlegroups.com.
Visit this group at http://groups.google.com/group/cubieboard.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jorge Nerín
<jne...@gmail.com>

Huang Benn

unread,
Nov 26, 2013, 10:19:00 AM11/26/13
to cubieboard
This tutorial shold work fine. you can dd the u-boot to your SD card, and it will boot from SD card then.. any problem please let me know.




2013/11/26 Jorge <jne...@gmail.com>

Robert Ehrentraut

unread,
Nov 28, 2013, 8:58:07 AM11/28/13
to cubie...@googlegroups.com
i also had this Problem.
Ben helped me out.
I didn't partionate the card right, also the u-boot was wrong.
now my system boot in text mode.
now I must figure out why the gui will not run.

thanks very much ben!!!

Heinz Rusche

unread,
Nov 30, 2013, 1:44:11 PM11/30/13
to cubie...@googlegroups.com
Finally I somehow managed to boot from SD card too... After the 4th time of doing the tutorial it worked like a charm... I still don't figure out what the problem was... I'm keen on finding more information about the boot process, where the card detection is happening and how it is working. Does anyone know where i can find that?

Patrick Wood

unread,
Nov 30, 2013, 3:15:24 PM11/30/13
to cubie...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages