[OpenWrt-Devel] [PATCH] uboot-lantiq: fix P-2812HNU-F1/3 package dependency
Ben Mulvihill
ben.mulvihill at gmail.com
Tue Jan 27 12:41:44 EST 2015
Hi Antti,
(Note that the diffs in this message are for information. They are not
patches submitted for merging - not at this stage anyway.)
> I tried and it seems the ram version
> (openwrt-lantiq-p2812hnufx_ram-u-boot.asc) builds and boots properly.
>
> The openwrt-lantiq-p2812hnufx_nandspl-u-boot.img indeed does not boot
> correctly. Is anyone working on fixing it? (Apparently conversion to
> TPL is needed)
I am working on the BT Home Hub 3A at the moment (arx100, nand-based
board), and have also found that asc images build correctly but
nandspl images do not.
There seem to a number of problems. For a start some of the make
targets seem to be missing. The following fixed that for arx100,
and I think that a similar fix is necessary for danube and vrx200
too.
--- a/arch/mips/cpu/mips32/arx100/config.mk 2015-01-27 12:33:32.000000000 +0100
+++ b/arch/mips/cpu/mips32/arx100/config.mk 2015-01-27 18:07:37.000000000 +0100
@@ -27,4 +27,9 @@ ALL-y += $(obj)u-boot.ltq.norspl
ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.norspl
ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.norspl
endif
+ifdef CONFIG_SYS_BOOT_NANDSPL
+ALL-y += $(obj)u-boot.ltq.nandspl
+ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.nandspl
+ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.nandspl
+endif
endif
Then the ebu configuration word needs to be set in the nandspl
image, as it is for norspl. Once again, the following fixed that
for arx100, and I think something similar will be required for danube
and vrx200.
--- a/arch/mips/include/asm/arch-arx100/config.h 2015-01-27 18:12:32.000000000 +0100
+++ b/arch/mips/include/asm/arch-arx100/config.h 2015-01-27 18:13:02.000000000 +0100
@@ -174,6 +174,10 @@
#define CONFIG_XWAY_SWAP_BYTES
#endif
+#if defined(CONFIG_SYS_BOOT_NAND) || defined(CONFIG_SYS_BOOT_NANDSPL)
+#define CONFIG_SYS_XWAY_EBU_BOOTCFG 0x688C688C
+#endif
+
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
#endif /* __ARX100_CONFIG_H__ */
Finally the ltq-boot-image tool adds a couple of download header to the
final image which I don't think should be there.
Daniel, does all the above make sense?
That said, even after making those changes my nandspl images still
don't work.
Ben
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list