[beagleboard] Re: SPL bad magic at boot in the MLO file

2016-06-17 Thread Micka
OK that not it I think. I've tried to understand when the header is written in the MLO. And it looks like that it is the mkimage job . ( not sure ) . the mkimage is call to create the MLO file. I discovered that the function omapimage_set_header is called to create the header file. So it's not

[beagleboard] Re: SPL bad magic at boot in the MLO file

2016-06-17 Thread Micka
ok When I compile the uboot, are we using this one ? arch/arm/cpu/armv7/start.S Can we add something like that : .long 0x27051956 /* U-Boot Magic Number */ Le ven. 17 juin 2016 à 18:47, Robert Nelson a écrit : > On Fri, Jun 17, 2016 at

[beagleboard] Re: SPL bad magic at boot in the MLO file

2016-06-17 Thread Robert Nelson
On Fri, Jun 17, 2016 at 11:31 AM, Micka wrote: > Lol, ok > > But what went wrong ? It's checking a magic number to prevent something > broken. > > Can I write back the correct magic number ? > > I found that in this file : arch/powerpc/cpu/mpc8xx/start.S > > it write

Re: [beagleboard] Re: SPL bad magic at boot in the MLO file

2016-06-17 Thread William Hermans
//if (image_get_magic(header) != IH_MAGIC) { // puts("bad magic\n"); // } fixed! hehe ! On Fri, Jun 17, 2016 at 9:31 AM, Micka wrote: > Lol, ok > > But what went wrong ? It's checking a magic number to prevent something > broken. > >

[beagleboard] Re: SPL bad magic at boot in the MLO file

2016-06-17 Thread Micka
Lol, ok But what went wrong ? It's checking a magic number to prevent something broken. Can I write back the correct magic number ? I found that in this file : arch/powerpc/cpu/mpc8xx/start.S it write somewhere the magic number : 0x27051956 But I don't see where the magic number is written

[beagleboard] Re: SPL bad magic at boot in the MLO file

2016-06-17 Thread Robert Nelson
On Fri, Jun 17, 2016 at 11:18 AM, Micka wrote: > I've compiled the uboot again and again, and it doesn't change anything when > I replace the old MLO file : > > dd if=./MLO of=${DISK} count=1 seek=1 bs=128k > > > > Le ven. 17 juin 2016 à 18:16, Micka

[beagleboard] Re: SPL bad magic at boot in the MLO file

2016-06-17 Thread Micka
I've compiled the uboot again and again, and it doesn't change anything when I replace the old MLO file : dd if=./MLO of=${DISK} count=1 seek=1 bs=128k Le ven. 17 juin 2016 à 18:16, Micka a écrit : > Hi, when the board boot, I've the message that tell me : > > bad