I did not erase memory before I typed write, maybe this is where it's fails. I'm using MX28EVK and I have added DNP resistors from schematics, without them I could not get SPI NOR to work in linux. I'm going to test this tomorrow morning and I will keep you updated, hopefully this solves it.
2013/8/4 Marek Vasut <[email protected]> > Dear Mårten Wikman, > > > I did write it with u-boots sf write command, I have also tried to use > > mtd-utils in linux. Are there any special parameters I need to add to use > > 32-byte aligned? > > IIRC the SF block should handle the alignment already. Otherwise, just > align the > amount of data you write by hand ( think of rounding it up to closes > multiple of > 32 ). > > Btw one more thing that might have gone awry. Did you erase the SPI flash > before > writing? These should do the job. Load the u-boot.sb to 0x42000000, then > do: > > sf erase 0x0 0x80000 > sf write 0x42000000 0 0x80000 > > The 0x80000 size should be enough for every possible u-boot.sb containing > only > the u-boot . If that works, we can look for further cause of this problem. > If > this doesn't work, then there might even be a hardware problem. > > What device are you working with in any case? Is that a custom board or > some > EVK? > > > > > 2013/8/4 Marek Vasut <[email protected]> > > > > > Dear Otavio Salvador, > > > > > > > On Sat, Aug 3, 2013 at 4:21 PM, Marek Vasut <[email protected]> wrote: > > > > > Dear Mårten Wikman, > > > > > > > > > >> But then it's just u-boot without any bootstream? Is it really > > > > > > possible > > > > > > > >> that mx28 will boot without it? I can't find much information > about > > > > > > how > > > > > > > >> to boot from spi nor on the internet. SD CARD boot and NAND boot > are > > > > >> well documented in u-boot source code. > > > > > > > > > > Write u-boot.sb directly to the SPI NOR to offset 0x0 . > > > > > > > > He did this already, as said in his first e-mail. It seems he is > > > > getting H0x80501003. > > > > > > > > I don't have the MX28 error code list here (just MX23) do you know > the > > > > meaning of this error code offhand? > > > > > > #define ERROR_ROM_LDR_SIGNATURE (ERROR_ROM_GROUP | > ERROR_ROM_LOADER_GROUP > > > > > > | 0x3) > > > > > > 0x80501003 The file signature or file version is incorrect. > > > > > > The file in the NOR flash is corrupted. How do you write the file into > > > the NOR > > > flash ? I think the filesize might beed to be 32-byte aligned when > > > writing. > > > > > > Best regards, > > > Marek Vasut > > Best regards, > Marek Vasut >
_______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
