Re: [U-Boot] Falcon mode boot support

On Mon, Dec 15, 2014 at 04:20:46PM -0000, Andy Pont wrote:
Hello,
I am currently setting up the Falcon mode support for a custom AM3354 based platform that has U-Boot and the Linux kernel in an SPI NOR flash.
Following the instructions I have loaded the kernel to ${loadaddr} and device tree to ${fdtaddr} from the SPI flash device and then have run:
U-Boot> spl export fdt ${loadaddr} - ${fdtaddr}
Which seems to have executed correctly as the output ends:
Argument image is now in RAM: 0x8fb3d000
I now need to save this generated data into the SPI ROM but can't figure out how much I need to write. Could someone let me know how to work it out?
So first, take a look at drivers/mtd/spi/spi_spl_load.c as that's what will be doing falcon mode work on your SPI flash.
Second, take a look at board/ti/am335x/README, you're looking for the lines that read like: Using Device Tree in place at 80f80000, end 80f85928
Which means the size is 0x5928.

Hi Tom,
So first, take a look at drivers/mtd/spi/spi_spl_load.c as that's what will be doing falcon mode work on your SPI flash.
Second, take a look at board/ti/am335x/README, you're looking for the lines that read like: Using Device Tree in place at 80f80000, end 80f85928
I have managed to make some progress and I think I have got what I think is the right data stored in the flash. Unfortunately when I try to boot it locks up at:
spl: payload image: Linu load addr: 0x80007fc0 size: 3893360 Jumping to Linux Entering kernel arg pointer: 0x80000100
I'm guessing the kernel arg pointer value is incorrect either that or it has ignored the boot arguments and not picked up the console parameter.
Could you advise?
Thanks,
Andy.
participants (2)
-
Andy Pont
-
Tom Rini