We are trying to create a bootable sdcard running the fsl-image-minimal for a ls1021a-iot board.
The SDK we are using is "LS1021A-IOT Rev B SDK 0.4" dated 11/06/2015.
The archive contained 2 iso files. Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-SOURCE-20150907-yocto.iso and Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-CORTEXA7-CACHE-20150907-yocto.iso.
The first installs into the directory Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso.
The second was installed into the sstate-cache directory under Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso.
We ran ". ./poky/fsl-setup-poky -m ls1021aiot" which created build_ls1021aiot_release.
From that directory was run "bitbake fsl-image-minimal".
These files were generated in the build_ls1021aiot_release/tmp/deploy/images/ls1021aiot directory:
fsl-image-minimal-ls1021aiot-20160120083119.rootfs.ext2.gz
fsl-image-minimal-ls1021aiot-20160120083119.rootfs.ext2.gz.u-boot
fsl-image-minimal-ls1021aiot-20160120083119.rootfs.jffs2
fsl-image-minimal-ls1021aiot-20160120083119.rootfs.manifest
fsl-image-minimal-ls1021aiot-20160120083119.rootfs.tar.gz
fsl-image-minimal-ls1021aiot-20160120083119.rootfs.ubi
fsl-image-minimal-ls1021aiot-20160120083119.rootfs.ubifs
fsl-image-minimal-ls1021aiot.ext2.gz -> fsl-image-minimal-ls1021aiot-20160120083119.rootfs.ext2.gz
fsl-image-minimal-ls1021aiot.ext2.gz.u-boot -> fsl-image-minimal-ls1021aiot-20160120083119.rootfs.ext2.gz.u-boot
fsl-image-minimal-ls1021aiot.jffs2 -> fsl-image-minimal-ls1021aiot-20160120083119.rootfs.jffs2
fsl-image-minimal-ls1021aiot.manifest -> fsl-image-minimal-ls1021aiot-20160120083119.rootfs.manifest
fsl-image-minimal-ls1021aiot.tar.gz -> fsl-image-minimal-ls1021aiot-20160120083119.rootfs.tar.gz
fsl-image-minimal-ls1021aiot.ubi -> fsl-image-minimal-ls1021aiot-20160120083119.rootfs.ubi
iram_Type_A_LS1021a_r1.0.bin
modules--3.12-r0-ls1021aiot-20150907014533.tgz
modules-ls1021aiot.tgz -> modules--3.12-r0-ls1021aiot-20150907014533.tgz
README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
u-boot.bin -> u-boot-ls1021aiot-2014.07-r0.bin
u-boot-ls1021aiot-2014.07-r0.bin
u-boot-ls1021aiot.bin -> u-boot-ls1021aiot-2014.07-r0.bin
uImage -> uImage--3.12-r0-ls1021aiot-20150907014533.bin
uImage--3.12-r0-ls1021aiot-20150907014533.bin
uImage--3.12-r0-ls1021a-iot-20150907014533.dtb
uImage-ls1021aiot.bin -> uImage--3.12-r0-ls1021aiot-20150907014533.bin
uImage-ls1021a-iot.dtb -> uImage--3.12-r0-ls1021a-iot-20150907014533.dtb
zImage
The blank 8GB sdcard is formatted as a single fat32 partition.
We run "dd if=u-boot.bin of=/dev/sdb bs=512 seek=8" but there is no serial console output when inserted into the card slot on the board.
The card that came with the board boots immediately upon insertion.
Any help would be appreciated.
Thanks,
Gary
Hello Gary,
I downloaded and installed LS1021A-IOT Rev B SDK 0.4 ISOs, I checked the board configuration file meta-fsl-arm/conf/machine/ls1021aiot.conf, the default build configuration is SD u-boot, so the built u-boot image should be correct.
I suspect whether there is problem with the command "dd if=u-boot.bin of=/dev/sdb bs=512 seek=8", please check whether the block size of your SD card is "512", for example, if the block size of your SD card is "1024", you need to specify the parameter "bs=1024".
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Yiping,
The blocksize for the sdcard is 512.
I have even used dd to create an image of the card that boots that came with the unit and the one we are trying to build.
Looking at offset 0x1000 in each image yields the following 16 bytes and they are identical for the first 88 bytes.
"AA 55 AA 55 01 EE 01 00"
"06 08 00 0A 00 00 00 00"
I am able to use the image from the card that came with the unit when copied to the other 8GB sdcard.
Regards,
Gary
Hello Gary,
Would you please send the u-boot image file from the working SD card to me?
I will do more investigation for you.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------