SD card boot problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD card boot problem

1,872 Views
masa_yamamoto
Contributor II

Hi,

I've made a SD card image (.sdcard) using bitbake.  I used Linux dd command to write it to SD card.  I inserted the SD card to the SABRE board but it does not boot.  It should not be SABRE board issue because it boots from another SD card which was bundled in the SABRE design package.   My understanding is that the .sdcard contains U-boot even though I cannot read it by mounting /dev/mmcblk0p*.

Do you have any suggestion how I debug?

Labels (3)
0 Kudos
9 Replies

1,153 Views
masa_yamamoto
Contributor II

Hi again,

More information about configuration here.

I posted SD card image file name, local.conf, fdisk -l result.

SD card image

----------------

fsl-release-bsp/bld-x11/tmp/deploy/images/imx6qsabreauto/fsl-image-gui-imx6qsabreauto.sdcard

local.conf

----------------

MACHINE ??= 'imx6qsabreauto'

DISTRO ?= 'fsl-imx-x11'

PACKAGE_CLASSES ?=
"package_rpm"

EXTRA_IMAGE_FEATURES =
"debug-tweaks"

USER_CLASSES ?= "buildstats
image-mklibs"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\

  
STOPTASKS,${TMPDIR},1G,100K \

  
STOPTASKS,${DL_DIR},1G,100K \

  
STOPTASKS,${SSTATE_DIR},1G,100K \

  
STOPTASKS,/tmp,100M,100K \

  
ABORT,${TMPDIR},100M,1K \

  
ABORT,${DL_DIR},100M,1K \

  
ABORT,${SSTATE_DIR},100M,1K \

  
ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native =
" sdl"

PACKAGECONFIG_append_pn-nativesdk-qemu =
" sdl"

ASSUME_PROVIDED +=
"libsdl-native"

CONF_VERSION = "1"

DL_DIR ?=
"${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = "1"

BUILD_LDFLAGS_prepend_pn-qemu-native =
"-Wl,-rpath-link,/lib/x86_64-linux-gnu "

sudo fdisk -l result

----------------

Device         Boot Start     End Sectors  Size Id Type

/dev/mmcblk0p1       8192 
24575   16384    8M  c
W95 FAT32 (LBA)

/dev/mmcblk0p2      24576 2473983 2449408  1.2G 83 Linux

0 Kudos

1,153 Views
jan_spurek
NXP Employee
NXP Employee

Hi Masayuki,

which sabre board and SD slot are you using? Did you try another SD slot(s)? I would also suggest to try loading the image in Windows using Win32DiskImager

0 Kudos

1,153 Views
masa_yamamoto
Contributor II

Hi Jan,

Thank you for your suggestions.  Yes, I just tried Win32DisImager and result was same (no boot).

I use i.MX6 quad SABRE board for auto.  The board has only one SD slot, so no chioce.

Masa

0 Kudos

1,153 Views
jan_spurek
NXP Employee
NXP Employee

Are the board switches in the following configuration?

(S1) 0100100000 (from 1-10 bit)

(S2) 0010 (from 1-4 bit)

(S3) 0010 (from 1-4 bit)

0 Kudos

1,153 Views
masa_yamamoto
Contributor II

S1, S2 ... Same

S3 0011 (from 1-4 bit)

I just change S3 to 0010 and tried, but no change (no boot)

0 Kudos

1,153 Views
masa_yamamoto
Contributor II

Hi Jan,

I think it is not SABRE board issue because it boots from another SD card which was bundled in the SABRE design package.   Do you have any suggestion?  I'm trying to find more clue.  The only warning message I got from bitbake is about Ubuntu version.  I'm using Ubuntu 16.04.1 LTS because 14.04 has a graphic UI problem on my machine.  I don't know this information helps.

Masa

0 Kudos

1,153 Views
jan_spurek
NXP Employee
NXP Employee

Yes,

the problem might be in the Ubuntu version. 16.04.1 LTS is not tested and may cause issues when building. I would suggest to try to build an image using 14.04 version. Since only terminal is required, the GUI problem should not be any concern.

0 Kudos

1,153 Views
masa_yamamoto
Contributor II

I've tried Ubuntu 14.04 version and resolved the issue.

Thank you.

0 Kudos

1,153 Views
mehulshah
Contributor III

Hi ,

I am trying to boot Android pre-built images on IMX 7 sabre board using SD card ; please let me know the steps for the same.(from how to make partition to which images need to put ). please provide the latest android images for imx7 board if you have .

0 Kudos