Using ramfs with buildroot-tiny on LS1043

cancel
Showing results for 
Search instead for 
Did you mean: 

Using ramfs with buildroot-tiny on LS1043

204 Views
bladerunner1010
Contributor IV

Hi 

How do I configure buildroot rootfs to run entirely in RAM using ramfs on LS1043ARDB using LSDK 21.08?

Boot can be from SD Card or NOR.

Tags (2)
0 Kudos
3 Replies

183 Views
bladerunner1010
Contributor IV

Thank you!

Are the tftp commands necessary? 

I'm booting from SD Card..

In the future on my custom board I will boot from external flash.

This - booti 0xa0000000 0xb0000000 0xc0000000 happens anyway when I boot from SD Card with the current U-Boot isn't it?

 

 

 

 

 

0 Kudos

178 Views
yipingwang
NXP TechSupport
NXP TechSupport

These tftp commands are not necessary.

I assume you have put these images in the second partition of SD card, you could load images from SD card as the following.

=> load mmc 0:2  0xa0000000 Image

=> load mmc 0:2 0xb0000000 rootfs_lsdk2108_buildroot_tiny_arm64.ext2.gz.u-boot

=> load mmc 0:2 0xc0000000 fsl-ls1046a-rdb-sdk.dtb

=> booti 0xa0000000 0xb0000000 0xc0000000

0 Kudos

194 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please run the following command to get image rootfs_lsdk2108_buildroot_tiny_arm64.ext2.gz in build/images folder.

$ flex-builder -i mkrfs -r buildroot:tiny

The run the following command to generate rootfs_lsdk2108_buildroot_tiny_arm64.ext2.gz.u-boot.

$ mkimage -A arm -O linux -T ramdisk -C gzip -n rootfs_lsdk2108_buildroot_tiny_arm64 -d rootfs_lsdk2108_buildroot_tiny_arm64.ext2.gz rootfs_lsdk2108_buildroot_tiny_arm64.ext2.gz.u-boot

On the target board, run the following commands.

=> tftp 0xa0000000 b25805/ls1046ardb/Image

=> tftp 0xb0000000 b25805/ls1046ardb/rootfs_lsdk2108_buildroot_tiny_arm64.ext2.gz.u-boot

=> tftp 0xc0000000 b25805/ls1046ardb/fsl-ls1046a-rdb-sdk.dtb

=> booti 0xa0000000 0xb0000000 0xc0000000

0 Kudos