all ubi system missing in my rootfs ?

cancel
Showing results for 
Search instead for 
Did you mean: 

all ubi system missing in my rootfs ?

495 Views
atakanakbulut
Contributor II

Hello i need write rootfs to my nand. i boot from sd card via nand parameters nand starting succesfull and i can write u boot kernel and dtb. My new parameters under  

I added bold part but this line cant add because of getting kernel panic error 

root=/dev/mmcblk0p2 rootwait rw mtdparts=gpmi-nand:4m(uboot),16m(kernel),4m(dtb),-(rootfs)

But this line cant add because of getting kernel panic error

root=ubi0:rootfs rootfstype=ubifs

Started from sd card with mtd partition and booting u boot kernel and dtb. Enabled kernel(4.9.15) and u boot(2017) mtd parameters

flash_erase /dev/mtd3 0 0
ubiformat /dev/mtd3; ubiattach /dev/ubi_ctrl -m 3; ubimkvol /dev/ubi0 -N rootfs -m
mkdir /tmp/rootfs
mount -t ubifs ubi0:rootfs /tmp/rootfs
tar -xf /run/media/mmcblk0p3/core-image-minimal-<MACHINE NAME>.tar.bz2 -C /tmp/rootfs/; sync

ubiformat, ubiattach, mkfs.ubi not has in rootfs path, i updated mtd-parts but still does not work How to fix this problem 

Labels (1)
0 Kudos
1 Reply

231 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Atakan

one can try with nxp bsps from

linux-imx - i.MX Linux kernel 

use  Linux 4.9.88_2.0.0 BSP & Multimedia Codecs Documentation

https://www.nxp.com/webapp/Download?colCode=L4.9.88_2.0.0_LINUX_DOCS&Parent_nodeId=13376994810717061... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos