ts-7000
[Top] [All Lists]

[ts-7000] YAFFS2 difference between compiled and installed kernel.

To: <>
Subject: [ts-7000] YAFFS2 difference between compiled and installed kernel.
From: Andrés Sebastián Nagy <>
Date: Thu, 25 Oct 2007 18:12:37 -0300
Hi.

        I have a problem booting a TS-7260 with a new kernel binary generated 
from
tskernel-2.4.26-ts11-src.tar.gz, with ADEOS path applied. I had to make some
changes in a file in the kernel tree to boot with yaffs2: ts7250.c, some
changes to offsets of the partitions. It is strange that the source files of
kernel shipped with the TS-7260 doesn´t match with the binaries installed on
it.

--- a/ts7250.c    2007-01-30 22:42:57.000000000 -0500
+++ b/ts7250.c        2007-02-03 00:10:02.000000000 -0500
@@ -48,14 +48,14 @@
         {
                 .name           = "TS-BOOTROM",
                 .offset         = 0x00000000,
-               .size           = 0x00004000,
+               .size           = 0x00020000,
         }, {
                 .name           = "Linux",
-               .offset         = 0x00004000,
+               .offset         = 0x00020000,
                 .size           = 0x01d00000,
         }, {
                 .name           = "RedBoot",
-               .offset         = 0x01d04000,
+               .offset         = 0x01d20000,
                 .size           = 0x002fc000,
         },
  };
@@ -67,15 +67,15 @@
         {
                 .name           = "TS-BOOTROM",
                 .offset         = 0x00000000,
-               .size           = 0x00004000,
+               .size           = 0x00020000,
         }, {
                 .name           = "Linux",
-               .offset         = 0x00004000,
+               .offset         = 0x00020000,
                 .size           = 0x07d00000,
         }, {
                 .name           = "RedBoot",
-               .offset         = 0x07d04000,
-               .size           = 0x002fc000,
+               .offset         = 0x07d20000,
+               .size           = 0x002e0000,
         },
  };
  #endif

        After i changed the file, and some other configuration files (to use
YAFFS2, and not YAFFS) the kernel was ready and everything is working ok,
but i have a warning in boot (Bad eraseblock n at xxxx):

Searching for NAND flash...
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V
8-bit)
Scanning device for bad blocks
Bad eraseblock 0 at 0x00000000
Bad eraseblock 1 at 0x00020000
Using static partition definition
Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x00020000 : "TS-BOOTROM"
0x00020000-0x07d20000 : "Linux"
0x07d20000-0x08000000 : "RedBoot"

        The warnings are not present when i boot with the kernel already 
instaled
in the TS (that haven´t adeos, so it not usefull to me). After some googling
and research it looks like its a behaviour related with yaffs
implementation... unfortunatelly, there are no patchs for kernel 2.4.x (at
least, i didn´t found any patch).


Any help would be very welcomed.


Thanks in advance.





Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] YAFFS2 difference between compiled and installed kernel., Andrés Sebastián Nagy <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU