Hi,
Can i port bootpartition and rootfs onto spi or emmc flash??
Kindly help.
You could deploy firmware image to QSPI flash with the following commands.
1. Download the prebuilt composite firmware image:
$ wget http://www.nxp.com/lgfiles/sdk/lsdk2004/firmware_ls1046ardb_uboot_qspiboot.img
2. Boot LS1046ARDB from QSPI NOR flash1 with the following switch settings:
SW3 = 01001110, SW4 = 00111011, SW5 = 00100010
3. Program QSPI NOR flash0 from QSPI NOR flash1:
=> tftp $load_addr firmware_ls1046ardb_uboot_qspiboot.img
=> sf probe 0:1
=> sf erase 0 +$filesize && sf write $load_addr 0 $filesize
4. Reset and boot the board from QSPI NOR flash0:
=> cpld reset
=> run qspi_bootcmd
You could copy flex-builder to the target board and run the following command to deploy bootpartition and rootfs to eMMC.
$ flex-installer -b bootpartition_LS_arm64_lts_5.4.tgz -r rootfs_lsdk2004_ubuntu_main_arm64.tgz -
d /dev/mmcblk0
Please note /dev/mmcblk0 is the device name of eMMC.