I am working with LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder(flexbuild_lsdk2108), Flex-installer(version: 1.13.2108) and Codewarrior IDE.
I have download the images from https://lsdk.github.io/components.html
boot_LS -> wget https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz
firmware image -> wget https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img
Rootfs -> wget https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz
I have depolyed the image's in SD card through flex-installer:
$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)
$ sudo flex-installer -b boot_LS_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -f firmware_ls1046ardb_sdboot.img -d /dev/sdx
I have booted the board using SD card
u-boot :
=> setenv ethprime FM1@DTSEC6
=> setenv ethact FM1@DTSEC6
=> saveenv
=> boot
linux user-space :
user@localhost:~$ cat /proc/mtd
dev: size erasesize name
mtd0: 20000000 00040000 "7e800000.flash"
mtd1: 04000000 00040000 "1550000.spi-0"
mtd2: 04000000 00040000 "1550000.spi-1"
user@localhost:~$
user@localhost:~$ cat /etc/fw_env.config
# Configuration file for fw_(printenv/setenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
# Futhermore, if the Flash sector size is omitted, this value is assumed to
# be the same as the Environment size, which is valid for NOR and SPI-dataflash
# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
# NOR example
# MTD device name Device offset Env. size Flash sector size Number of sectors
#/dev/mtd1 0x0000 0x4000 0x4000
#/dev/mtd2 0x0000 0x4000 0x4000
# MTD SPI-dataflash example
# MTD device name Device offset Env. size Flash sector size Number of sectors
#/dev/mtd5 0x4200 0x4200
#/dev/mtd6 0x4200 0x4200
# NAND example
/dev/mtd0 0x4000 0x4000 0x20000 2
# On a block device a negative offset is treated as a backwards offset from the
# end of the device/partition, rather than a forwards offset from the start.
# Block device example
#/dev/mmcblk0 0xc0000 0x20000
#/dev/mmcblk0 -0x20000 0x20000
# VFAT example
#/boot/uboot.env 0x0000 0x4000
# UBI volume
#/dev/ubi0_0 0x0 0x1f000 0x1f000
#/dev/ubi0_1 0x0 0x1f000 0x1f000
# UBI volume by name
#/dev/ubi0:env 0x0 0x1f000 0x1f000
#/dev/ubi0:env-redund 0x0 0x1f000 0x1f000
root@localhost:/home/user# fw_printenv
Environment WRONG, copy 0
Cannot read environment, using default
Cannot read default environment from file
root@localhost:/home/user#
how to find the DEVICE OFFSET , ENV SIZE and FLASH SECTOR SIZE in nxp board [ls1046ardb] ?
Solved! Go to Solution.
Thank you for your reply but i couldn't take this a solution.
So i found the solution for this post in below link :
Hello sheikfaaruk,
You can find the NAND and NOR Flash used in the LS1046ARDB in the LS1046ARDB Reference Manual.
Furthermore, the config file is written ready to be used on the reference design board / with the memory that is in the board. When you are working with the board, for configuration, all you have to do is remove the comments of the module or #.
The NOR flash is s S25FS512SDSMFI011, while the NAND is MT29F4G08ABBFAH4-IT:F.
Thank you for your reply but i couldn't take this a solution.
So i found the solution for this post in below link :