You need to flash the kernel as well .. (the uImage thingie).

When you erased the flash you erased it all but the 2 first sectors (theses are for uBoot).
Then you have the jffs2 image (the root filesystem), then at the end of the flash the uImage wich is the kernel.

And the magic number is not a joke :) It's a special 4 bytes integer at the start of the uImage to check if there is a uImage or not ...

Sylvain

On Sat, Apr 5, 2008 at 7:18 PM, Ezequiel Aceto <ezequiel.aceto@gmail.com> wrote:
Hello,

I have made a buildroot which works good but without ethernet, so I decided to flash again my gumstix using the serial connection. I have done this several times, but this time, this is what I get... what's the magic number?


U-Boot 1.2.0 (Dec 21 2007 - 13:37:16) - PXA270@600 MHz - 1578M

*** Welcome to Gumstix ***

DRAM:  128 MB
Flash: 32 MB
Using default environment

Hit any key to stop autoboot:  0
GUM> mmcinit
Detected: 246016 blocks of 512 bytes (120MB) SD card.
Vendor: Man 03 OEM SD "SU128" Date 08/2007
Product: 281009203
Revision: 8.0
GUM> fatls mmc 1
     8008   flashcp
            python/
     3572   flash_unlock
    11652   flash_eraseall
      131   edit.c
    15355   changes.txt
      373   manifest.in
    14407   readme.txt
     1615   setup.cfg
     1120   setup.py
      836   usage.txt
            disutils/
            doc/
            examples/
            distutils/
            misc/
            distutils-1.0.2/
            newbuild_1/
            back/
  1028236   uimage-2.6.21-r1-gumstix-custom-verdex.bin
 10121816   gumstix-basic-image-gumstix-custom-verdex.jffs2
 16664840   gumstix-qtopia-gui-image-gumstix-custom-verdex.jffs2

13 file(s), 9 dir(s)

GUM> fatload mmc 1 a2000000 gumstix-basic-image-gumstix-custom-verdex.jffs2
reading gumstix-basic-image-gumstix-custom-verdex.jffs2

10121816 bytes read
GUM> protect on 1:0-1
Protect Flash Sectors 0-1 in Bank # 1
.. done
GUM> erase all
Erase Flash Bank # 1 - Warning: 2 protected sectors will not be erased!
................................................................................
................................................................................
................................................................................
................. done
GUM> cp.b a2000000 40000 9a7258
Copy to Flash... done
GUM> boot
Instruction Cache is ON
Copying kernel to 0xa2000000 from 0x01f00000 (length 0x00100000)...done
## Booting image at a2000000 ...
Bad Magic Number
GUM>

"Bad Magic Number"??? Seems like a joke!

Hope somebody can help me!

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users