[U-Boot] [U-Boot, 1/1] cmd, fdt: fix working_fdt is set to wrong value

Tom Rini trini at ti.com
Wed Jan 7 16:14:06 CET 2015


On Mon, Dec 22, 2014 at 04:45:59AM +0800, Hua Yanghao wrote:

> Being a long time u-boot developer, this is the first time I'm trying
> to get some fix for the open source code back to mainline.
> If anything wrong during the process, please be gentle :-) Thank you.
> 
> >From 225c8f8f2af4cf6092260e5c133d90096e2f3352 Mon Sep 17 00:00:00 2001
> From: Hua Yanghao <huayanghao at gmail.com>
> Date: Mon, 22 Dec 2014 04:32:39 +0800
> Subject: [PATCH 1/1] cmd, fdt: fix working_fdt is set to wrong value
> 
> Instead of setting working_fdt to map_sysmem(addr) (e.g. blob), it should be set
> to addr directly as inside set_working_fdt_addr it uses map_sysmem(addr) again.
> To test: ./u-boot -d dts/dt.bin , then issue: fdt addr 0x100, fdt print will
> then cause an segmentation fault. After this fix fdt print is functional.

Applied to u-boot/master, after fixing the spacing, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150107/31370e6a/attachment.pgp>


More information about the U-Boot mailing list