Am Montag, 11. Juni 2007 15:15 schrieb Breton M. Saunders:
> No problem. I think the first steps would be for you to download the
> kernel source (from TS's ftp site). Get a cross compiler toolchain
> setup on your PC, and try to compile the kernel. Use TS's bootload
> utility to try your new kernel image first. Once you have a running
> kernel with the features (e.g. bluetooth) you require working, placing
> it into the NAND flash memory isn't all that hard.
>
> Basically, when the EP9302 powers up (or is reset), it runs a program
> out of a small 2KiB eeprom on the TS7400 board. This EEPROM may be
> thought of as equivalent to the BIOS on a PC. The program is loaded
> from the eeprom into the EP9302's ethernet buffer and executed from
> there, starting up the SDRAM, NAND flash, serial port and other
> low-level systems. This program then copies a second stage loader out
> of the NAND flash into memory and executes it. (This is somewhat similar
> to loading lilo). The second stage loader then copies the kernel
> (zImage) from the nand flash partition /dev/mtd1 into memory. The
> ramdisk (/dev/mtd2) is then copied into memory. Next the kernel ATAGs -
> a tagged list specification of kernel parameters are constructed in
> memory. The ATAGs specify things like the location and size of the
> ramdisk, and the addresses of physical memory pages in the system, as
> well as kernel parameters. Finally, control is transferred to the
> kernel load address (offset 0 in the kernel) - linux at this point
> boots. The sysv init scripts are started much much later on, and have
> little to do with kernel startup.
Okay Breton, this i understand perfectly.
But now my further Questions again. ;)
1.
mtd0 -> uses 20MB of Memory (approx, possibly the above described start
code? ;)) and some Bytes are in the rest is 0xff (NAND Typical for empty i
read...) mtd1 -> 2MB this is for the kernel i see..., mtd2 -> zipped ext2
initrd, mtd3-> 16,5MB unused (seems so). Is possible to repartition it?
2.
The Kernel when i build by myself let me not use the sdcard anymore? the code
for the sdcard is closed source? The reason i ask is that my lil app should
access the sdcard to write down a small database for storing some
information. Someone know if i can use the kernel inotify for detecting the
replacing during the run? or must i first turn off the board?
Thanks again Breton,
Daniel
pgp7zHVjFe8jf.pgp
Description: PGP signature
|