2009-02-17 02:37:03     save the changes of the filesystem

Document created by Aaronwu Employee on Aug 13, 2013
Version 1Show Document
  • View in full screen mode

2009-02-17 02:37:03     save the changes of the filesystem

gladys liu (AFGHANISTAN)

Message: 69500   

 

hi

 

i'm using the bf527-ezkit  , and i have a problem recently.

 

i've write the kernel and filesystem into the flash , but whenever i reboot the system , the changes i've made last time does not exist any more .

 

it means that i can't make any changes on my system .

 

what should i do that can make me change the system as i want even after the system rebooted .

 

thank a lot .

 

 

QuoteReplyEditDelete

 

 

2009-02-17 05:39:33     Re: save the changes of the filesystem

Daniele Pagani (ITALY)

Message: 69519   

 

Dear Liu,

 

"i've write the kernel and filesystem into the flash , but whenever i reboot the system , the changes i've made last time does not exist any more ."

 

--> if your filesystem is running in ram, then you lose your change if you reboot the system.

 

"it means that i can't make any changes on my system ."

 

--> in this way the answer is "yes". But you need to read something about mtd here:

 

http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:mtd

 

That is, you can use a filesystem on flash, so you don't lose changes to filesystem.

 

"what should i do that can make me change the system as i want even after the system rebooted ."

 

--> I think that you need to read something about mtd, jffs and so on.

 

But, if you need to change something in filesystem during its develop, you can change the /romfs directory according to your project and then run "make image".

 

Daniele.

TranslateQuoteReplyEditDelete

 

 

2009-02-19 20:20:14     Re: save the changes of the filesystem

gladys liu (AFGHANISTAN)

Message: 69660   

 

thanks Daniele

 

i'll read that to work on my project ,

 

thanks a lot

 

 

QuoteReplyEditDelete

 

 

2009-02-20 02:11:03     Re: save the changes of the filesystem

gladys liu (AFGHANISTAN)

Message: 69667   

 

hi

 

i've read the page and made some changes as the page says.

 

i reload the kernel to the target  but after i restart the system  the changes i made in the system still not saved .

 

how could i save the changes on the system without rebuild it?

 

 

QuoteReplyEditDelete

 

 

2009-02-20 02:37:23     Re: save the changes of the filesystem

Daniele Pagani (ITALY)

Message: 69668   

 

There are 3 different situations:

 

1) if you want to change something in the rootfs, you can adjust it in the /rootfs directory on the development system, and then run 'make image'. In this way, you can upload this image to your board. If you change the filesystem on the board and if the filesystem is in ram, then you lose changes when you reboot the system. If you change the filesystem on the development system, and then upload the image, then you'll have changes on the board.

 

2) if you want to change something on the filesystem on the board, you need to have a filesystem flash-based, that means that you need to use something like jffs filesystem and so on. In this way, if you change something, you'll find it after reboot

 

3) hybrid, that means that you can have a filesystem in ram, but a flash-based filesystem on a partition that you can mount runtime. If you need to change something and not all the filesystem, this could be a good solution. I'm not a guru as other people in the forums, but this is what I'm using. And I've found all information in the link. For example, if you need to change a web site on the Blackfin, then you can have the web site on a partition flash-based and the filesystem in ram.

 

Best regards,

 

Daniele.

 

 

 

 

 

 

TranslateQuoteReplyEditDelete

 

 

2009-02-20 03:02:48     Re: save the changes of the filesystem

gladys liu (AFGHANISTAN)

Message: 69669   

 

thanks Daniele

 

i'll see it .

 

thank you.

Attachments

    Outcomes