Boot from CRAMFS partition on an emmc

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Boot from CRAMFS partition on an emmc

1,224件の閲覧回数
sankerspace
Contributor I

Hello everyone,

Have someone worked extensively with cramfs rootfs?

I created an emmc.img file in buildroot 2020.11.1.

(several partitions with two same rootfs.cramfs partitions, but loading from one of them at a time)

 

I have created two rootfs partitions in that image file , which are both defined as

a CRAM Filesystem. (have zImage and device tree inside a rootfs.cramfs in the folder /boot)

 

My first problem is that i have no clue how to handle these two partition from U-boot (2016)

I have following commands:

   - cramfsls (should show directory from an image??) and

   - cramfsload   (have to set environment variable cramfsaddr, from where the cramfs is loaded plus offset )

 

Second problem is that with mmc part  the rootfs.cramfs partitions are not visible, but both defined as bootable.

But i know startadress and number of sectors from every partition

(got from fdisk -l on my host pc inspecting the emmc.img)

 

Maybe i have some missunderstanding how to handle that, but have someone an idea here?

Thanks for every help i get!!

 

PS: I dont want ramdisks as these are regularly used with cramfs

0 件の賞賛
返信
2 返答(返信)

1,208件の閲覧回数
sankerspace
Contributor I

At first we made it that way, but cramfs has some attributes wie need for our project, and the most important reason we need is that our update files must be very small.

 So it has to be that way (and its not my decision), i hope you have some infos about handling cramfs from an emmc.

(even if it could be handled easier)

 

Nevertheless, thank you for your help!!

0 件の賞賛
返信

1,215件の閲覧回数
b36401
NXP Employee
NXP Employee

It is better to make FAT partition and place there zImage and rootfs as a files.

0 件の賞賛
返信