02-26-2018 02:09 AM
I have compiled linux uboot and rootfs by method provided on below mentioned link.
now issue i am facing is that my filesystem is RAMFS. i Want my filesystem to be on second partition of sd card.
and kernel should refer that filesystem while booting.
can anyone please tell how to achieve this?
02-26-2018 04:07 AM
Hi, hello or what you want ...
unpack rootfs.cpio.uboot from the project directory to the partition (you will need to issue the command with the root privileges).
02-26-2018 08:57 AM
What version of the tools?
For newer versions, (2017.3/2017.4), use the tar.gz and unzip that onto your second partition. For older versions use the .cpio.
02-26-2018 08:30 PM
I have unpacked rootfs in second partition and its name is ROOTFS with type FAT16.
I dont know how to tell uboot to use rootfs which is on second partition.
02-27-2018 01:10 AM
Make 2 partitions on your SD card :
1. FAT32 - "BOOT" >> boot.bin, image.ub, system.dtb, Image files
2. EXT4 - "ROOTFS" >> extracted rootfs.tar.gz in this .
Load kernel and device-tree:
ZynqMP> fatload mmc 0:1 0x3000000 uImage.ub ZynqMP> fatload mmc 0:1 0x2A00000 system.dtb ZynqMP> bootm 0x3000000 - 0x2A00000
Tell to the kernel where the rootfs is :
ZynqMP> setenv bootargs 'earlycon earlyprintk root=/dev/mmcblk0p1 rw rootfstype=ext4
02-27-2018 08:58 PM
Refer UG1144 "Configuring SD Card ext filesystem Boot" section.