Before Easy Installer, we have a procedure to program brand new Apalis iMX6 boards via a ‘dd’ command to rewrite all the mmc. We have a RAW file that is the clone of the full mmc.
How can I use this file to create a custom image for Easy Installer?
I’ve made several test editing the JSON config file from the Linux LXDE image. No luck so far.
This is the last version
{
"autoinstall": false,
"config_format": 1,
"name": "Custom Image",
"description": "Custom Image",
"version": "0.7.34.600",
"release_date": "2018-09-06",
"prepare_script": "prepare.sh",
"wrapup_script": "wrapup.sh",
"marketing": "marketing.tar",
"icon": "toradexlinux.png",
"supported_product_ids": [
"0027",
"0028",
"0029",
"0035"
],
"blockdevs": [
{
"name": "mmcblk0",
"content": {
"filesystem_type": "raw",
"rawfiles": [
{
"dd_options": "bs=10M",
"filename": "emmc.raw",
"size": 3776
}
]
}
}
]
}
What I’m doing is dd-ing the .raw file in mmcblk0 device.
First, what I WAS doing is dd the raw file in mmcblk2 device. Using mmcblk2 I get an error from Easy Installer since mmcblk2 is not present. FYI, this is the output of lsblk on the source device (the une I used to create the .raw file)
mmcblk2boot0 179:8 0 2M 1 disk
mmcblk2boot1 179:16 0 2M 1 disk
mmcblk2 179:0 0 3.7G 0 disk
`-mmcblk2p1 179:1 0 3.7G 0 part /
Since it is the full clone, I -suppose- I don’t need to actually clone the u-boot.imx file in mmc2boot0/1 partitions (tested it too, but still no luck. Also, I don’t have no SPL file).
Note, I’ve created the RAW file with this command
# dd bs=10M if=/dev/mmcblk2 of=/media/stock/emmc.raw
I run this command from a “temporary” OS run from SD.
What happens with my custom image is:
- I get an error from Easy Installer that a couple of bytes was not written on device due to the fact that there is no space left
- After the Easy Installer install procedure the original Apalis u-boot runs on reboot instead of mine
- If I force
bmode mmc
from u-boot the system restart and then freeze