OpenEmbedded Run application from Flash

Hello,

I'm using the OpenEmbedded with my filesystem on a SD-Card. Now I would like to use the onboard flash (64MB) to store my application and to run my application from.

I've tried building a jffs2 image as described in the Linux Guide manual. But this isn't working. I've tried just building such an image from the config_panelcard folder on the panelcard-CD but that isn't giving me a ./config folder. The downloading using tftpboot was working and also the copy to the flash is working.

I've also tried putting the jffs2-panelcard.bin image from the cd but then when I try to copy the image from the 20000000 address to my 10500000 address this is giving me an error message.

When I added my application to the config folder and than build the jffs2.bin image that image was 9.8MB. So quite large.. Now even the downloading using tftpboot isn't working anymore...

Is there some way of getting my application on the onboard flash??? Since the Linux Guide isn't helping me very much... Is it possible that this is caused by the OpenEmbedded filesystem? Since I'm not booting from the RAM any more, but from an SD-Card?

Thanks in advance,
Pannecoeck

Re: OpenEmbedded Run application from Flash

Well, after some reading about jffs2 I managed to get the image provided at the taskit-CD working, so I probably also will be able to get my own simple image working.
What I had to do: mount -t jffs2 /dev/mtd3 /config

But still I'm having some problems with my giant image of almost 10MB to get it to the board... the tftpboot isn't able to download it... I'll keep on trying...

Re: OpenEmbedded Run application from Flash

You can flash also your image under Linux by accessing the image via NFS:

  1. mount your NFS-Directory containing the image
  2. ensure that mtd3 is not mounted
  3. erase mtd3 with "flash_eraseall /dev/mtd3"
  4. copy the image with "flashcp $image /dev/mtd3"

Re: OpenEmbedded Run application from Flash

Well I got this figured out also, but trying to write a file with size 9.8MB to a flashdisk (mtd3) of only 10MB wasn't working since I also put some other stuff on that disk... The fact that it wasn't working was just because of the filesize I assume. I mounted the mtd4 partition and that was working properly with a file that big.

But after all I didn't really needed it anymore since I'm back running everything on the SD-Card.

But thanks for your advice!!

Syndicate content