Forum Discussion
12 Replies
- Altera_Forum
Honored Contributor
You have to use another memory map or define your own. You find the maps in <linux kernel source>/drivers/mtd/maps.
- Altera_Forum
Honored Contributor
Hi!
I have the same problem as Michael. My filesystem offers only 220 kb free space. I am a little bit confused at the advice to select or create another map. In <linux kernel source>/drivers/mtd/maps are many C-files. How can I use them to select another map? Bye, Lothar. - Altera_Forum
Honored Contributor
The size reported by the Filesystem project is a max size as found in your system ptf file. It basically calculates the amount of free space by
(1) finding the beginning of flash to write to: (2) Look for any reserved areas of flash (for factory or user hardware configurations) (3) Take the lowest address of the reserved areas - 2MB (2 MB is reserved for the kernel) All of the Altera development boards and the Microtronix Development Boards have Linux MTD memory maps that match up with the amount of free space in flash. (i.e. the maps recognize that portions of flash are reserved for hardware configurations). If you're using a custom board, then you'll need to create a Linux MTD memory map that matches up with the free memory on your board. If this doesn't make much sense right now, lemme know and I'll see if I can clarify a little more in the next message. - Altera_Forum
Honored Contributor
Hi all
I have done some changes to the standard memory maps for my dev board; upped the size of kernel to 3MB. The kernel build is all fine. But, how do I communicate that fact to the file system projects. In other words is there a define somewhere where I can set the size of kernel memory allocated. Thanks Rual - Altera_Forum
Honored Contributor
Hi Rual!
In which files have you done your changes? Bye, Lothar. - Altera_Forum
Honored Contributor
Hi Lothar
I changed the parameters in the altera.c file since I am using an Altera Cyclone2 EP2C35 dev board. I defined it in the kernel configuration part as a CONFIG_ALTERA_STRATIX_II cpu (mainly for the similarity in functionality). So I changed the CONFIG_ALTERA_STRATIX_II defines in the .c file. No my question is where do I tell Nios II IDE that the kernel is not 2MB but 3MB without having to edit the 'project_name'.stf file for each file system project?? --This works fine for now, but is there a better way of "defining" this. Thanks Rual - Altera_Forum
Honored Contributor
Hi Rual!
I don't believe, that there is a possibility for a central definition of location_on_target for the stf-file of filesystems. Bye, Lothar. - Altera_Forum
Honored Contributor
Hello all!
I've changed in altera.c the definition of memory mapping in several ways. I've done it only at definition of CONFIG_ALTERA_STRATIX_II, because it's only for a Stratix II. But free space in filesystem leave the same: 220 KB Do I have to change other files then altera.c and the stf-file of filesystem to get more free space? Bye, Lothar. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by maico@Sep 30 2005, 04:15 AM hello all!i've changed in altera.c the definition of memory mapping in several ways.
i've done it only at definition of config_altera_stratix_ii, because it's only for a stratix ii.
but free space in filesystem leave the same: 220 kb
do i have to change other files then altera.c and the stf-file of filesystem
to get more free space?
bye, lothar.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10063)
--- quote end ---
--- Quote End --- If your maps and STF file are setup properly, then don't worry about the amount of free space that the filesystem project reports. It's only a warning based on what it can find in the system PTF. That warning will not prevent you from making a filesystem larger than 220kb.
- Altera_Forum
Honored Contributor
Hi Ken!
I have only set memory map in altera.c under CONFIG_ALTERA_STRATIX_II, because it's for a Stratix II. And when I changed the kernel size I also change offset of filesystem in the belonging STF file. But there is only 220 KB free space and I didn't getting this information by a warning. If reach this limit when I try to generate a file greater then 220 KB. Could it be that I have to set something other in some C-files to enlarge the size of the filesystem? Bye, Lothar.