AnsweredAssumed Answered

Booting Android on imx7 dual using SD card

Question asked by mehul shah on Feb 3, 2017
Latest reply on Feb 23, 2017 by mehul shah

Hi ,

I am trying to boot Android pre-built images on IMX 7 sabre board dual using SD card ; please let me know the steps for the same.(from how to make partition to which images need to put ). i have downloaded pre-built images from nxp site.

i have made partition as seen in the attached image.

then , i wrote partition by following command.

sudo dd if=u-boot-imx7d.bin of=/dev/sdd bs=1K seek=1
sudo dd if=boot-imx7d.img of=/dev/sdd1 bs=1K seek=1
sudo dd if=system.img of=/dev/sdd2 bs=1K seek=1
sudo dd if=recovery-imx7d.img of=/dev/sdd3 bs=1K seek=1

 

and then at stopping at bootloader , i tried to load the boot.img at load address 0x80800000 (shown in environment variable as load address) using fatload command .but getting following error
U-Boot 2015.04-00392-g6581aea-dirty (Jul 02 2016 - 18:26:46)

 

CPU:   Freescale i.MX7D rev1.2 at 792 MHz
CPU:   Temperature 38 C
Reset cause: POR
Board: i.MX7D SABRESD RevA
I2C:   ready
DRAM:  1 GiB
PMIC: PFUZE300 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

 

No panel detected: default to TFT43AB
Display: TFT43AB (480x272)
Video: 480x272x24
In:    serial
Out:   serial
Err:   serial
check_and_clean: reg 0, flag_set 0
Cannot find partition 8
rw_block, get_block_size return 0
read_bootctl, rw_block read failed
read command failed
Fastboot: Normal
flash target is MMC:0
Bad partition index:4 for partition:data
Net:   FEC0
Normal Boot
Hit any key to stop autoboot:  0
=> printenv  
baudrate=115200
bootcmd=boota mmc0
bootdelay=3
ethact=FEC0
ethaddr=00:04:9f:04:8e:f2
ethprime=FEC
fastboot_dev=mmc0
fdt_high=0xffffffff
initrd_high=0xffffffff
loadaddr=0x80800000
splashpos=m,m

 

Environment size: 216/8188 bytes

=> help boota
boota - boota   - boot android bootimg from memory

 

Usage:
boota [<addr> | mmc0 | mmc1 | mmc2 | mmcX] [<partition>]
    - boot application image stored in memory or mmc
        'addr' should be the address of boot image which is zImage+ramdisk.img
        'mmcX' is the mmc device you store your boot.img, which will read the boot.img from 1M offset('/boot' partition)
         'partition' (optional) is the partition id of your device, if no partition give, will going to 'boot' partition

 

=> boota mmc0
boota mmc0
boota: bad boot image magic

 

=> mmc rescan
=> fatload mmc 0:1 0x800800000 boot-imx7d.img
reading boot-imx7d.img
MMC: block number 0xc94767b exceeds max 0x1cea000)
I am struggling to boot kernel (boot.img) , please let me know , what is missing ?

Attachments

Outcomes