* [U-Boot] Linux does not boot from flash, but will from RAM
@ 2008-10-09 13:35 ` Curran, Tom
2008-10-10 0:46 ` Jerry Van Baren
2008-10-22 18:11 ` Ricardo
0 siblings, 2 replies; 3+ messages in thread
From: Curran, Tom @ 2008-10-09 13:35 UTC (permalink / raw)
To: u-boot
I am using u-boot on the Avnet V5FX30T (Xilinx FPGA, PPC440) eval board
to boot a Linux 2.6.27-rc4 kernel. I can use u-boot to tftp the kernel,
ramdisk, and device tree blob to RAM and boot from there OK. I copied
the kernel, ramdisk and blob to flash and verified those elements were
programmed in flash correctly with 'iminfo', but when I try to boot from
flash the boot process hangs at "Loading Ramdisk to 03d59000, end
03ec8f20 ... OK". At this point u-boot will restart (after a
WDT-induced reset?) after a few minutes. Interestingly enough, I can
boot from flash IF the ramdisk is already in RAM with a "bootm
$(kernel_flash_addr) $(ramdisk_ram_addr) $(blob_flash_addr)". This
leads me to believe something is going wrong in the copying of the
ramdisk from flash to RAM. Perhaps I am doing something wrong or missed
a step somewhere? I have read the FAQ, but have not found anything
relevant. Perhaps someone here has had this problem too and can offer a
solution? Any help is appreciated. Many thanks in advance!
--Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Linux does not boot from flash, but will from RAM
2008-10-09 13:35 ` [U-Boot] Linux does not boot from flash, but will from RAM Curran, Tom
@ 2008-10-10 0:46 ` Jerry Van Baren
2008-10-22 18:11 ` Ricardo
1 sibling, 0 replies; 3+ messages in thread
From: Jerry Van Baren @ 2008-10-10 0:46 UTC (permalink / raw)
To: u-boot
Curran, Tom wrote:
> I am using u-boot on the Avnet V5FX30T (Xilinx FPGA, PPC440) eval board
> to boot a Linux 2.6.27-rc4 kernel. I can use u-boot to tftp the kernel,
> ramdisk, and device tree blob to RAM and boot from there OK. I copied
> the kernel, ramdisk and blob to flash and verified those elements were
> programmed in flash correctly with 'iminfo', but when I try to boot from
> flash the boot process hangs at "Loading Ramdisk to 03d59000, end
> 03ec8f20 ... OK". At this point u-boot will restart (after a
> WDT-induced reset?) after a few minutes. Interestingly enough, I can
> boot from flash IF the ramdisk is already in RAM with a "bootm
> $(kernel_flash_addr) $(ramdisk_ram_addr) $(blob_flash_addr)". This
> leads me to believe something is going wrong in the copying of the
> ramdisk from flash to RAM. Perhaps I am doing something wrong or missed
> a step somewhere? I have read the FAQ, but have not found anything
> relevant. Perhaps someone here has had this problem too and can offer a
> solution? Any help is appreciated. Many thanks in advance!
>
> --Tom
Hi Tom,
Do you have *no* console output from linux with the ramdisk-in-flash
version? I assume you have normal console diarrhea when the ramdisk is
in ram. Is linux booting at all? If your console output isn't
outputting, it is hard to tell the difference between crashing before
linux even starts or something much less fatal like the ramdisk not
mounting properly (rebooting in 180 seconds...).
Can you look in the linux debug output buffer in memory in the failed
boot? Find the symbol log_buf in the map file System.map. This will be
a virtual address, e.g. c013c494 b log_buf . Drop the first nibble to
get the physical address, e.g. 0x0013c494. Dump this area of memory to
find what was sent to the system log before the crash.
What happens if you load your ramdisk into ram at 03d59000 (like your
failed boot) rather than whatever $(ramdisk_ram_addr) is?
Best regards,
gvb
P.S. You should use curly braces ${variable} rather than $(variable).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Linux does not boot from flash, but will from RAM
2008-10-09 13:35 ` [U-Boot] Linux does not boot from flash, but will from RAM Curran, Tom
2008-10-10 0:46 ` Jerry Van Baren
@ 2008-10-22 18:11 ` Ricardo
1 sibling, 0 replies; 3+ messages in thread
From: Ricardo @ 2008-10-22 18:11 UTC (permalink / raw)
To: u-boot
Hello Tom
Sorry for the late late reply, but you mail was hidden in my inbox.
I have been the developer of the avnet v5fx30eval patch for u-boot. I
have that board correctly running linux 2.6.27 from the latest paulus
git patch. In order to use the ll_temac I have used a modified
version of the xilinx driver.
On the final design I am running this command to run linux: "bootm
0xff200000 0xff9a0000 0xff7e0000 " Try placing your data on that
areas.
If you need more info please ask
Best regards
BTW: Please add me to the cc next time.
On Thu, Oct 9, 2008 at 15:35, Curran, Tom <Tom.Curran@avnet.com> wrote:
> I am using u-boot on the Avnet V5FX30T (Xilinx FPGA, PPC440) eval board
> to boot a Linux 2.6.27-rc4 kernel. I can use u-boot to tftp the kernel,
> ramdisk, and device tree blob to RAM and boot from there OK. I copied
> the kernel, ramdisk and blob to flash and verified those elements were
> programmed in flash correctly with 'iminfo', but when I try to boot from
> flash the boot process hangs at "Loading Ramdisk to 03d59000, end
> 03ec8f20 ... OK". At this point u-boot will restart (after a
> WDT-induced reset?) after a few minutes. Interestingly enough, I can
> boot from flash IF the ramdisk is already in RAM with a "bootm
> $(kernel_flash_addr) $(ramdisk_ram_addr) $(blob_flash_addr)". This
> leads me to believe something is going wrong in the copying of the
> ramdisk from flash to RAM. Perhaps I am doing something wrong or missed
> a step somewhere? I have read the FAQ, but have not found anything
> relevant. Perhaps someone here has had this problem too and can offer a
> solution? Any help is appreciated. Many thanks in advance!
>
> --Tom
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
--
Ricardo Ribalda
http://www.eps.uam.es/~rribalda/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-22 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AckqE/X0goFZ21QMS/OqTALsTUF2/Q==>
2008-10-09 13:35 ` [U-Boot] Linux does not boot from flash, but will from RAM Curran, Tom
2008-10-10 0:46 ` Jerry Van Baren
2008-10-22 18:11 ` Ricardo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox