Re: [uCsimm] flash memory

From: Tom Walsh (tom@openhardware.net)
Date: Sat Oct 21 2000 - 00:02:32 EDT


Edward Benavides wrote:
>
> Hello:
> My next task consists of modifying the code to work for a different type
> of flash. Instead of atmel I am using Intel flash.
>
> I am building a board that is just consisting of the dragonball, flash,
> dram, serial and ethernet. If I use the same system mappings as the ADS
> board, will I just have to modify at_flash.b to initialize the proper
> flash downloading techniques?
>
> Or do I have to go into the uC source code and port?
>
> thanks
>
> This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/

Yes and no... I built an alternative system to the ADS & ucsimm and had
to modify some of the kernel sources to match my memory config, etc...
You can see the schematic at 'http://www.openhardware.net', it really is
not that difficult, what you have to do is to make sure is to make the
appropriate conditional compile statements withing the uClinux to match
your hardware (for example: the RAM memory of the ADS is at
0x200000..0x400000, my RAM is at 0x10000000..0x10800000, so I have to
modify /linux/arch/m68knommu/mm/memory.c to make sure that a heap alloc
of RAM will fall within this range. There are a number of other files
that you will need to make some minor mods to, but not really a big deal
to understand if you have been doing embedded systems for a while and
have had to map resources before. Some of the files to consider are:

./arch/m68knommu/Boards.mk
./arch/m68knommu/config.in
./arch/m68knommu/defconfig
./arch/m68knommu/kernel/process.c
./arch/m68knommu/mm/memory.c
./arch/m68knommu/platform/68EZ328/Makefile
./arch/m68knommu/platform/68EZ328/ez328simm/crt0_ram.S
./arch/m68knommu/platform/68EZ328/ez328simm/crt0_rom.S
./arch/m68knommu/platform/68EZ328/ez328simm/init_ram.b
./arch/m68knommu/platform/68EZ328/ez328simm/ram.ld
./arch/m68knommu/platform/68EZ328/ez328simm/rom.ld
./drivers/block/blkmem.c
./drivers/char/68328serial.c
./include/asm-m68knommu/page.h
./include/asm-m68knommu/param.h
./include/linux/autoconf.h

As Vladamir says "happy hacking"!

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
'www.openhardware.net', 'www.cyberiansoftware.com'
"Windows? No thanks, I have work to do..."
This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:38 EST