Add eMMC installer#30
Conversation
|
There was a problem hiding this comment.
I think it would be good to make the provisioning flow a bit more explicit here.
The board supports both SPI and eMMC boot paths in U-Boot (sfboot and emmcboot). This bootstrap script currently installs SPI first, then optionally writes the full eMMC image. I think it would be safer if SPI installation and eMMC installation were separate prompts/actions, so the user can choose which storage target they want to program.
There was a problem hiding this comment.
Also, not every board has an eMMC, the older boards like the sc594 and sc589 don't. We should either have the user explicitly choose to program the eMMC or more preferably have the script automatically give the option based on which board it is programming.
There was a problem hiding this comment.
But since this script is listed under adi/ev-sc598-som, I think there is no harm to be sc598 specific 😄
There was a problem hiding this comment.
So is the future plan for each board to have its own overlay script base on its available hardware?
Add eMMC installation step to the bootstrap init script. This implements a hybrid boot architecture where: - SPI flash stores the bootloader (U-Boot SPL + U-Boot) - eMMC stores the full system image (kernel + root filesystem) The installer flow: 1. Programs U-Boot SPL and U-Boot to SPI flash 2. Downloads emmc.img.gz from PC over HTTP 3. Writes image to eMMC 4. Waits for user to switch S1 to position 1 (SPI boot mode) 5. Reboots and boots U-Boot from SPI, which then loads Linux from eMMC Signed-off-by: Kateryna Tsaruk <kateryna.tsaruk@analog.com>
Add post-image.sh to compress emmc.img to emmc.img.gz during debug image build. This is a temporary workaround for a suspected SC598 MMC driver race condition that crashes under memory pressure. The compressed image reduces download size and is decompressed during eMMC write by the bootstrap installer. Signed-off-by: Kateryna Tsaruk <kateryna.tsaruk@analog.com>
60192e1 to
05d7a82
Compare
Added eMMC installer step to the bootstrap init script. After flashing U-Boot
to SPI, the installer downloads and writes a compressed system image to eMMC.
The image is served compressed (.gz) as a temporary workaround for a suspected
race condition in the SC598 MMC kernel driver that causes a crash under memory
pressure when streaming the raw 7.6 GB image. This will be reverted once the
driver bug is fixed.