Not able to boot iMx6 Sabre SD from SD Card

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

Not able to boot iMx6 Sabre SD from SD Card

Jump to solution
2,365 Views
karangandhi
Contributor I

I have iMx6 Sabre SD board and when I am trying to boot the board with SD Card, board doesn't response. Nothing on LCD and Can't find anything on console.
I have already an android image on NAND and it is working fine. Console and LCD both working fine when I boot up the board using NAND.

Steps I follow are:
I have downloaded "i.MX_Linux_User's_Guide.pdf" from NXP and in "4.3.2 Copying the full SD card image" part it is mentioned that "The SD card image (with the extension .sdcard) contains U-Boot, the Linux image and device trees, and the rootfs for a 4 GB SD card. The image can be installed on the SD card with one command if flexibility is not required." 
$ sudo dd if=<image name>.sdcard of=/dev/sdx bs=1M && sync
I have tried this command with "fsl-image-qt5-x11-imx6qpsabresd.sdcard" (Downloaded from NXP) and set the boot switch SW6 for "SD Card from Slot3 (J507)" (switch 2 & 7 on, all other off). And board does nothing.

Any idea, What could be wrong with the procedure of programming the SD card or board?

Thanks.

Tags (1)
0 Kudos
1 Solution
1,289 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Karan Gandhi,

Would you please confirm which i.MX6 SABRE board you are using? Is it an i.MX6Q SABRE Auto? (In case you’re not familiar with the naming convention you may also mention the SCH number of your board).

My recommendation would be making sure that the dd to the SD card was successful. Please see if the partitions are created and the rootfs populated.

Secondly, make sure that you’re using the corresponding bootloader, as the images are normally meant to be used for a whole family of boards and include all the Device Trees but the bootloader has to be written separately.

Please use the following command with the necessary bootloader, which should be included as part of the Image bundle you downloaded.

$ sudo dd if=<U-Boot image> of=/dev/sdx bs=512 seek=2 conv=fsync

I hope this helps!

Regards,

View solution in original post

4 Replies
1,289 Views
karangandhi
Contributor I

Hello,

I have another issue.
When I use filesystem (built using yocto project), I am getting kernel panic every time.

VFS: Cannot open root device "mmcblk2p2" or unknown-block(179,2): error -30
Please append a correct "root=" boot option; here are the available partitions:
0100 65536 ram0 (driver?)
0101 65536 ram1 (driver?)
0102 65536 ram2 (driver?)
0103 65536 ram3 (driver?)
0104 65536 ram4 (driver?)
0105 65536 ram5 (driver?)
0106 65536 ram6 (driver?)
0107 65536 ram7 (driver?)
0108 65536 ram8 (driver?)
0109 65536 ram9 (driver?)
010a 65536 ram10 (driver?)
010b 65536 ram11 (driver?)
010c 65536 ram12 (driver?)
010d 65536 ram13 (driver?)
010e 65536 ram14 (driver?)
010f 65536 ram15 (driver?)
1f00 4096 mtdblock0 (driver?)
b300 3872256 mmcblk2 driver: mmcblk
b301 501760 mmcblk2p1 00069d1e-01
b302 3257856 mmcblk2p2 00069d1e-02
b308 7757824 mmcblk3 driver: mmcblk
b309 15640 mmcblk3p1 00000000-01
b30a 7840 mmcblk3p2 00000000-02
b30b 19552 mmcblk3p3 00000000-03
b30c 1 mmcblk3p4
b30d 500024 mmcblk3p5 00000000-05
b30e 500024 mmcblk3p6 00000000-06
b30f 78136 mmcblk3p7 00000000-07
b320 128 mmcblk3rpmb (driver?)
b318 2048 mmcblk3boot1 (driver?)
b310 2048 mmcblk3boot0 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.1.15-2.0.0+gb63f3f5 #1
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
[<8001271c>] (show_stack) from [<807cdeb8>] (dump_stack+0x84/0xc4)
[<807cdeb8>] (dump_stack) from [<80014c80>] (handle_IPI+0x178/0x18c)
[<80014c80>] (handle_IPI) from [<80009480>] (gic_handle_irq+0x58/0x5c)
[<80009480>] (gic_handle_irq) from [<80013200>] (__irq_svc+0x40/0x74)
Exception stack(0xa8093f50 to 0xa8093f98)
3f40: 00000000 ab72e340 00000001 a8092000
3f60: ab72ae90 00000001 b9faf8da 00000000 bd7c54cf 00000000 00000001 00000000
3f80: 00000000 a8093f98 807d5054 8056b4c4 20000113 ffffffff
[<80013200>] (__irq_svc) from [<8056b4c4>] (cpuidle_enter_state+0xd8/0x20c)
[<8056b4c4>] (cpuidle_enter_state) from [<800650a4>] (cpu_startup_entry+0x1fc/0x320)
[<800650a4>] (cpu_startup_entry) from [<1000952c>] (0x1000952c)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

Does anyone has any idea about this?

Step I follow to build a file system using yocto project are:

1) sudo apt-get install gawk wget git-core diffstat unzip texinfo build-essential chrpath libsdl1.2-dev xterm curl

2) Install the repo utility:
$: mkdir ~/bin
$: curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$: chmod a+x ~/bin/repo

3) Download the BSP source:
$: PATH=${PATH}:~/bin
$: mkdir fsl-community-bsp
$: cd fsl-community-bsp
$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b krogoth
$: repo sync

4) To start a simple image build:
$: MACHINE=imx6dlsabresd source ./setup-environment build
$: bitbake core-image-minimal
5) cd tmp/deploy/images/imx6dlsabresd and I get "core-image-minimal-imx6dlsabresd.ext4" file.

Then to mount filesystem on sdcard  I follow this steps:
$ sudo mkfs.ext4 /dev/sdb2
$ mkdir /home/kk/mountpoint
$ sudo mount /dev/sdb2 /home/kk/mountpoint
$ mkdir /home/kk/rootfs
$ sudo mount -o loop -t ext4core-image-minimal-imx6dlsabresd.ext4 /home/kk/rootfs

$ cd /home/kk/rootfs
$ sudo cp -a * /home/kk/mountpoint
$ cd -
$ sudo umount /home/kk/mountpoint
$ sudo umount /home/kk/rootfs
$ sync

0 Kudos
1,289 Views
yasodas
Contributor I

facing the same issue have you boot up the board

regards,

0 Kudos
1,290 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Karan Gandhi,

Would you please confirm which i.MX6 SABRE board you are using? Is it an i.MX6Q SABRE Auto? (In case you’re not familiar with the naming convention you may also mention the SCH number of your board).

My recommendation would be making sure that the dd to the SD card was successful. Please see if the partitions are created and the rootfs populated.

Secondly, make sure that you’re using the corresponding bootloader, as the images are normally meant to be used for a whole family of boards and include all the Device Trees but the bootloader has to be written separately.

Please use the following command with the necessary bootloader, which should be included as part of the Image bundle you downloaded.

$ sudo dd if=<U-Boot image> of=/dev/sdx bs=512 seek=2 conv=fsync

I hope this helps!

Regards,

1,289 Views
karangandhi
Contributor I

Hello Gusarambula,


Thanks for reply.
I have iMx6dl SabreSD board. Now it is booting up from sd card the problem was with u-boot and zImage.dtb files. Previously I was using imx6qpsabresd's u-boot and .dtb file.

Thanks.

0 Kudos