kirkwood: add support for booting via oftree probe
Subsystems (4)
RFC 1/2 kirkwood: add support for booting via oftree probe
This patch initialize memory only if we boot a kirkwood arch with device-tree probing. Otherwise some devices like timer or uart will be probed twice.
---
I don't know if this is right. The guruplug is the other kirkwood platform but don't have devictree support.
arch/arm/mach-mvebu/kirkwood.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/mach-mvebu/kirkwood.c +6 -2
@@ -86,6 +86,12 @@ static int kirkwood_init_soc(void) {unsigned long phys_base, phys_size; +kirkwood_memory_find (&phys_base, &phys_size); +arm_add_mem_device ("ram0" , phys_base, phys_size); + +if (IS_ENABLED (CONFIG_OFDEVICE )) +return 0 ; +barebox_set_model ("Marvell Kirkwood" );barebox_set_hostname ("kirkwood" );
@@ -94,8 +100,6 @@ static int kirkwood_init_soc(void)add_generic_device ("orion-timer" ,DEVICE_ID_SINGLE ,NULL , (unsigned int )KIRKWOOD_TIMER_BASE ,0x30 ,IORESOURCE_MEM ,NULL ); -kirkwood_memory_find (&phys_base, &phys_size); -arm_add_mem_device ("ram0" , phys_base, phys_size);kirkwood_add_uart ();return 0 ;
Signature · 7 lines
2.0.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
RFC 2/2 dns325: initial support for D-Link DNS-325
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
---
I got the kwbimage values from u-boot with change to work with the barebox kwboot utility. There is also a bug in u-boot kwbimage file which enables 256 MB on chip select 0 and 1. But the DNS-325 has 256 MB on chip select 0 only. This is fixed in this kwbimage file.
arch/arm/Makefile | 1 + arch/arm/boards/dlink-dns325/Makefile | 2 + arch/arm/boards/dlink-dns325/board.c | 17 ++++++++ arch/arm/boards/dlink-dns325/dlink-dns325.dox | 37 +++++++++++++++++ arch/arm/boards/dlink-dns325/kwbimage.cfg | 26 ++++++++++++ arch/arm/boards/dlink-dns325/lowlevel.c | 34 ++++++++++++++++ arch/arm/configs/dlink_dns325_defconfig | 58 +++++++++++++++++++++++++++ arch/arm/dts/Makefile | 4 +- arch/arm/dts/kirkwood-dns325-bb.dts | 19 +++++++++ arch/arm/mach-mvebu/Kconfig | 4 ++ 10 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boards/dlink-dns325/Makefile create mode 100644 arch/arm/boards/dlink-dns325/board.c create mode 100644 arch/arm/boards/dlink-dns325/dlink-dns325.dox create mode 100644 arch/arm/boards/dlink-dns325/kwbimage.cfg create mode 100644 arch/arm/boards/dlink-dns325/lowlevel.c create mode 100644 arch/arm/configs/dlink_dns325_defconfig create mode 100644 arch/arm/dts/kirkwood-dns325-bb.dts
arch/arm/Makefile +1 -0
@@ -97,6 +97,7 @@ board-$(CONFIG_MACH_SOLIDRUN_CUBOX) += solidrun-cubox board-$(CONFIG_MACH_TINY210) += friendlyarm-tiny210 board-$(CONFIG_MACH_TINY6410) += friendlyarm-tiny6410 board-$(CONFIG_MACH_USI_TOPKICK) += usi-topkick +board-$(CONFIG_MACH_DLINK_DNS325) += dlink-dns325 machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
arch/arm/boards/dlink-dns325/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-y += board.o +lwl-y += lowlevel.o
arch/arm/boards/dlink-dns325/board.c new file +17 -0
@@ -0,0 +1,17 @@ +/* +* Copyright (C) 2014 +* Author: Alexander Aring <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +*/ + +/* empty */
arch/arm/boards/dlink-dns325/dlink-dns325.dox new file +37 -0
@@ -0,0 +1,37 @@ +/** @page dlink-dns325 D-Link DNS-325 NAS + +The NAS has +@li Kirkwood 88F6281-A1 SoC +@li 256 MB SDRAM +@li 128 MB NAND type SAMSUNG 946 K9F1G08U0B PCB0 +@li 2 SATA interfaces +@li RS232 serial interface +@li 1 USB interface +@li 1 Gigabit Ethernet interface +@li 1 Temp Sensor G751-2f +@li 1 MCU Holtek HT48C06E for Power Managment +@li LEDs & buttons + +The NAS doesn't support NAND right now. +Only boot via uart with kwboot is supported. + +The kwboot utility of barebox doesn't work right now. +Instead use the u-boot kwboot utility: + +@verbatim +$UBOOT/tools/kwboot -p -b $BAREBOX/barebox.kwbuart -B115200 -t /dev/ttyUSB1 +@endverbatim + +You must change the "ttyUSB1" device with your correct serial device. + +Working devices are: +@li RS232 serial interface +@li Ethernet interface +@li LEDs & buttons + +D-Link MR3020 links: +@li http://www.dlink.com/de/de/home-solutions/share/network-attached-storage/dns-325-sharecenter-2-bay-network-storage-enclosure +@li http://jamie.lentin.co.uk/devices/dlink-dns325/ +@li http://tsd.dlink.com.tw/gpl.asp + +*/
arch/arm/boards/dlink-dns325/kwbimage.cfg new file +26 -0
@@ -0,0 +1,26 @@ +VERSION 0 +BOOT_FROM nand +NAND_ECCMODE default +NAND_PAGESZ 00000800 +DATA ffd100e0 1b1b1b9b +DATA ffd01400 43000c30 +DATA ffd01404 39543000 +DATA ffd01408 22125451 +DATA ffd0140c 00000833 +DATA ffd01410 0000000c +DATA ffd01414 00000000 +DATA ffd01418 00000000 +DATA ffd0141c 00000c52 +DATA ffd01420 00000040 +DATA ffd01424 0000f17f +DATA ffd01428 00085520 +DATA ffd0147c 00008552 +DATA ffd01500 00000000 +DATA ffd01504 0ffffff1 +DATA ffd0150c 00000000 +DATA ffd01514 00000000 +DATA ffd0151c 00000000 +DATA ffd01494 00030000 +DATA ffd01498 00000000 +DATA ffd0149c 0000e803 +DATA ffd01480 00000001
arch/arm/boards/dlink-dns325/lowlevel.c new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2014 +* Author: Alexander Aring <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +*/ + +#include <common.h> +#include <sizes.h> +#include <asm/barebox-arm.h> +#include <asm/barebox-arm-head.h> +#include <mach/lowlevel.h> + +extern char __dtb_kirkwood_dns325_bb_start[]; + +ENTRY_FUNCTION(start_dlink_dns325, r0, r1, r2) +{ +void *fdt; + +arm_cpu_lowlevel_init (); + + fdt = __dtb_kirkwood_dns325_bb_start -get_runtime_offset (); + +mvebu_barebox_entry (fdt); +}
arch/arm/configs/dlink_dns325_defconfig new file +58 -0
58 lines not on this page · raw message
arch/arm/dts/Makefile +3 -1
@@ -31,7 +31,8 @@ dtb-$(CONFIG_ARCH_IMX6) += imx6q-gk802.dtb \ imx6q-var-custom.dtb \ imx6s-riotboard.dtb \ imx6q-phytec-pbaa03.dtb -dtb-$(CONFIG_ARCH_MVEBU) += dove-cubox-bb.dtb +dtb-$(CONFIG_ARCH_MVEBU) += dove-cubox-bb.dtb \ + kirkwood-dns325-bb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3188-radxarock.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5_sockit.dtb \ socfpga_cyclone5_socrates.dtb
@@ -57,6 +58,7 @@ pbl-$(CONFIG_MACH_PCM051) += am335x-phytec-phycore.dtb.o pbl-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6s-phytec-pbab01.dtb.o imx6dl-phytec-pbab01.dtb.o imx6q-phytec-pbab01.dtb.o pbl-$(CONFIG_MACH_REALQ7) += imx6q-dmo-edmqmx6.dtb.o pbl-$(CONFIG_MACH_SOLIDRUN_CUBOX) += dove-cubox-bb.dtb.o +pbl-$(CONFIG_MACH_DLINK_DNS325) += kirkwood-dns325-bb.dtb.o pbl-$(CONFIG_MACH_GK802) += imx6q-gk802.dtb.o pbl-$(CONFIG_MACH_PCA100) += imx27-phytec-phycard-s-rdk-bb.dtb.o pbl-$(CONFIG_MACH_TORADEX_COLIBRI_T20) += tegra20-colibri-iris.dtb.o
arch/arm/dts/kirkwood-dns325-bb.dts new file +19 -0
@@ -0,0 +1,19 @@ +/* + * Barebox specific DT overlay for D-Link DNS-325 + */ + +#include "arm/kirkwood-dns325.dts" + +/ { + gpio-leds { + white-power { + barebox,default-trigger = "heartbeat"; + }; + white-usb { + barebox,default-trigger = "net"; + }; + red-r_hdd { + barebox,default-trigger = "panic"; + }; + }; +};
arch/arm/mach-mvebu/Kconfig +4 -0
@@ -6,6 +6,7 @@ config ARCH_TEXT_BASE default 0x2000000 if MACH_GLOBALSCALE_MIRABOX default 0x2000000 if MACH_GLOBALSCALE_GURUPLUG default 0x2000000 if MACH_USI_TOPKICK + default 0x2000000 if MACH_DLINK_DNS325 default 0x2000000 if MACH_MARVELL_ARMADA_XP_GP default 0x2000000 if MACH_SOLIDRUN_CUBOX
@@ -101,6 +102,9 @@ config MACH_GLOBALSCALE_GURUPLUG config MACH_USI_TOPKICK bool "Topkick" +config MACH_DLINK_DNS325 + bool "DNS-325" + endchoice endif # ARCH_KIRKWOOD
Signature · 7 lines
2.0.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sebastian Hesselbarth
maintainerQuoted 8 lines · Alexander Aring
This patch initialize memory only if we boot a kirkwood arch with device-tree probing. Otherwise some devices like timer or uart will be probed twice.
Signed-off-by Alexander Aring <[email protected]>---
I don't know if this is right. The guruplug is the other kirkwood platform but don't have devictree support.
Alexander,
I'd rather remove non-DT booting for kirkwood completely. I have patches ready somewhere. Let me sort them out tomorrow.
Sebastian
Quoted 22 lines
arch/arm/mach-mvebu/kirkwood.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)arch/arm/mach-mvebu/kirkwood.c +6
-0@@ -86,6 +86,12 @@ static int kirkwood_init_soc(void) {unsigned long phys_base, phys_size; +kirkwood_memory_find (&phys_base, &phys_size); +arm_add_mem_device ("ram0" , phys_base, phys_size); + +if (IS_ENABLED (CONFIG_OFDEVICE )) +return 0 ; +barebox_set_model ("Marvell Kirkwood" );barebox_set_hostname ("kirkwood" );
arch/arm/mach-mvebu/kirkwood.c static int kirkwood_init_soc(void) · line 105
Quoted 8 lines
arch/arm/mach-mvebu/kirkwood.c +0
-2@@ -94,8 +100,6 @@ static int kirkwood_init_soc(void)add_generic_device ("orion-timer" ,DEVICE_ID_SINGLE ,NULL , (unsigned int )KIRKWOOD_TIMER_BASE ,0x30 ,IORESOURCE_MEM ,NULL ); -kirkwood_memory_find (&phys_base, &phys_size); -arm_add_mem_device ("ram0" , phys_base, phys_size);kirkwood_add_uart ();return 0 ;
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sebastian Hesselbarth
maintainerRe: [RFC 2/2] dns325: initial support for D-Link DNS-325
In reply to Alexander AringQuoted 5 lines · Alexander Aring
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
Why does kwboot does not work? There is an issue with early Kirkwood's BootROM and UART boot mode. Just try over and over again. I also recall modifying the timeouts may help.
Quoted 2 lines
Signed-off-by Alexander Aring <[email protected]>---
[...]
Quoted 12 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox new file +6
-0@@ -0,0 +1,37 @@ +/** @page dlink-dns325 D-Link DNS-325 NAS + +The NAS has +@li Kirkwood 88F6281-A1 SoC +@li 256 MB SDRAM +@li 128 MB NAND type SAMSUNG 946 K9F1G08U0B PCB0
arch/arm/boards/dlink-dns325/dlink-dns325.dox line 16
Quoted 10 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox new file +10
-0+@li 2 SATA interfaces +@li RS232 serial interface +@li 1 USB interface +@li 1 Gigabit Ethernet interface +@li 1 Temp Sensor G751-2f +@li 1 MCU Holtek HT48C06E for Power Managment +@li LEDs & buttons + +The NAS doesn't support NAND right now. +Only boot via uart with kwboot is supported.
Is it the NAS that doesn't support NAND or is it missing driver support for barebox instead?
arch/arm/boards/dlink-dns325/dlink-dns325.dox line 19
Quoted 2 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox new file +2
-0+The kwboot utility of barebox doesn't work right now. +Instead use the u-boot kwboot utility:
See above, we should fix kwboot instead.
Sebastian
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [RFC 2/2] dns325: initial support for D-Link DNS-325
Quoted 11 lines · Sebastian Hesselbarth
Quoted 5 lines · Alexander Aring
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
Why does kwboot does not work? There is an issue with early Kirkwood's BootROM and UART boot mode. Just try over and over again. I also recall modifying the timeouts may help.
Ok, I will dig into this issue next weekend.
Quoted 20 lines
Quoted 2 lines
Signed-off-by Alexander Aring <[email protected]>---
[...]
Quoted 17 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox new file +11
-0@@ -0,0 +1,37 @@ +/** @page dlink-dns325 D-Link DNS-325 NAS + +The NAS has +@li Kirkwood 88F6281-A1 SoC +@li 256 MB SDRAM +@li 128 MB NAND type SAMSUNG 946 K9F1G08U0B PCB0 +@li 2 SATA interfaces +@li RS232 serial interface +@li 1 USB interface +@li 1 Gigabit Ethernet interface +@li 1 Temp Sensor G751-2f
Quoted 8 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox line 16
Quoted 5 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox new file +5
-0+@li 1 MCU Holtek HT48C06E for Power Managment +@li LEDs & buttons + +The NAS doesn't support NAND right now. +Only boot via uart with kwboot is supported.Is it the NAS that doesn't support NAND or is it missing driver support for barebox instead?
ehm yes, there is a missing driver in barebox. Thanks for pointing this out.
Are there any suggestions to implement "8-bit NAND Flash Interface" for the kirkwoods 88F6180/88F619x/88F6281?
This platform is "just for fun" currently, not very useful without mtd support. :-)
The free kirkwoods sheets are well documented, maybe I could try this. Or port some code from linux/u-boot.
But first I will fix the kwboot issue, of course.
Quoted 6 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox line 19
Quoted 3 lines
arch/arm/boards/dlink-dns325/dlink-dns325.dox new file +2
-0+The kwboot utility of barebox doesn't work right now. +Instead use the u-boot kwboot utility:See above, we should fix kwboot instead.
Ok.
Thanks.
- Alex
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 10 lines · Sebastian Hesselbarth
Quoted 8 lines · Alexander Aring
This patch initialize memory only if we boot a kirkwood arch with device-tree probing. Otherwise some devices like timer or uart will be probed twice.
Signed-off-by Alexander Aring <[email protected]>---
I don't know if this is right. The guruplug is the other kirkwood platform but don't have devictree support.
Quoted 5 lines
Alexander,
I'd rather remove non-DT booting for kirkwood completely. I have patches ready somewhere. Let me sort them out tomorrow.
Ok, I'll be waiting. Thanks.
- Alex
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sebastian Hesselbarth
maintainerRe: [RFC 2/2] dns325: initial support for D-Link DNS-325
In reply to Alexander AringQuoted 6 lines · Alexander Aring
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
Quoted 6 lines
Signed-off-by Alexander Aring <[email protected]>---
I got the kwbimage values from u-boot with change to work with the barebox kwboot utility. There is also a bug in u-boot kwbimage file which enables 256 MB on chip select 0 and 1. But the DNS-325 has 256 MB on chip select 0 only. This is fixed in this kwbimage file.
Alexander,
I posted a bunch of MVEBU related patches I had in my private branches. Can you respin your DNS-325 patch based on those?
Sascha already applied
"Marvell MVEBU assorted fixes and cleanup" and
"Convert MVEBU SoCs to DT and PBL_MULTI_IMAGE"
but they haven't appeared on barebox/next. You can wait a day or two or apply above series yourself. The other 3 pending patch sets are just more improvements but shouldn't (directly) influence your dns-325 support patches.
I also tried kwboot again on Kirkwood, Dove, and Armada 370 and wasn't able to reproduce any issues. Can you re-evaluate and report back any issues with details?
Sebastian
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [RFC 2/2] dns325: initial support for D-Link DNS-325
Quoted 19 lines · Sebastian Hesselbarth
Quoted 6 lines · Alexander Aring
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
Quoted 6 lines
Signed-off-by Alexander Aring <[email protected]>---
I got the kwbimage values from u-boot with change to work with the barebox kwboot utility. There is also a bug in u-boot kwbimage file which enables 256 MB on chip select 0 and 1. But the DNS-325 has 256 MB on chip select 0 only. This is fixed in this kwbimage file.Alexander,
I posted a bunch of MVEBU related patches I had in my private branches. Can you respin your DNS-325 patch based on those?
Quoted 7 lines
Sascha already applied
"Marvell MVEBU assorted fixes and cleanup" and
"Convert MVEBU SoCs to DT andPBL_MULTI_IMAGE"
but they haven't appeared on barebox/next. You can wait a day or two or apply above series yourself. The other 3 pending patch sets are just more improvements but shouldn't (directly) influence your dns-325 support patches.
All mvebu patches should now be in -next.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [RFC 2/2] dns325: initial support for D-Link DNS-325
In reply to Sebastian HesselbarthHi,
Quoted 11 lines · Sebastian Hesselbarth
Quoted 5 lines · Alexander Aring
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
Why does kwboot does not work? There is an issue with early Kirkwood's BootROM and UART boot mode. Just try over and over again. I also recall modifying the timeouts may help.
I tried to change the timeouts and it works now. I take these timings from u-boot. Is there any reason why these timings differs?
Datasheet says nothing about any delay while loop for sending bootmsg.
Here is my diff with the very small change:
scripts/kwboot.c +2 -2
@@ -34,8 +34,8 @@ static unsigned char kwboot_msg_debug[] = { 0xDD, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 }; -#define KWBOOT_MSG_REQ_DELAY 1000/* ms */ -#define KWBOOT_MSG_RSP_TIMEO 1000/* ms */ +#define KWBOOT_MSG_REQ_DELAY 10/* ms */ +#define KWBOOT_MSG_RSP_TIMEO 50/* ms */ /* * Xmodem Transfers
btw.:
Now I see that the internal ROM bootloader could also boot from SATA device - this sounds interesting. I will try that next weekend.
Thanks for your great help Sebastian!
- Alex
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sebastian Hesselbarth
maintainerRe: [RFC 2/2] dns325: initial support for D-Link DNS-325
Quoted 8 lines · Alexander Aring
Quoted 7 lines · Sebastian Hesselbarth
Quoted 5 lines · Alexander Aring
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
Quoted 7 lines
Quoted 4 lines
Why does kwboot does not work? There is an issue with early Kirkwood's BootROM and UART boot mode. Just try over and over again. I also recall modifying the timeouts may help.
I tried to change the timeouts and it works now. I take these timings from u-boot. Is there any reason why these timings differs?
IIRC, timings differ because barebox kwboot was mainly tested on Armada 370 and that low timings break UART boot mode there. I remember some discussion about it a while ago. I'll see if I can find the discussion and if there are any hints for timeouts that suite both Kirkwood and Armada 370/XP.
Quoted 23 lines
Datasheet says nothing about any delay while loop for sending bootmsg.
Here is my diff with the very small change:
scripts/kwboot.c +2
-2@@ -34,8 +34,8 @@ static unsigned char kwboot_msg_debug[] = { 0xDD, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 }; -#define KWBOOT_MSG_REQ_DELAY 1000/* ms */ -#define KWBOOT_MSG_RSP_TIMEO 1000/* ms */ +#define KWBOOT_MSG_REQ_DELAY 10/* ms */ +#define KWBOOT_MSG_RSP_TIMEO 50/* ms */ /* * Xmodem Transfers
Quoted 4 lines
btw.:
Now I see that the internal ROM bootloader could also boot from SATA device - this sounds interesting. I will try that next weekend.
Boot source is determined by bootstrap pins, i.e. some pull-up/pull-down resistors on board. UART boot mode check was added to BootROM in some later Kirkwoods and _additionally_ checks for UART boot source.
You cannot just change the default boot source without soldering.
Sebastian
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [RFC 2/2] dns325: initial support for D-Link DNS-325
Hi,
Quoted 14 lines · Sebastian Hesselbarth
Quoted 13 lines · Alexander Aring
Quoted 11 lines · Sebastian Hesselbarth
Quoted 5 lines · Alexander Aring
This patch add a basic support for the D-Link DNS-325.
Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead.
Why does kwboot does not work? There is an issue with early Kirkwood's BootROM and UART boot mode. Just try over and over again. I also recall modifying the timeouts may help.
Quoted 9 lines
Quoted 2 lines
I tried to change the timeouts and it works now. I take these timings from u-boot. Is there any reason why these timings differs?
IIRC, timings differ because barebox kwboot was mainly tested on Armada 370 and that low timings break UART boot mode there. I remember some discussion about it a while ago. I'll see if I can find the discussion and if there are any hints for timeouts that suite both Kirkwood and Armada 370/XP.
ok.
Quoted 25 lines
Quoted 25 lines
Datasheet says nothing about any delay while loop for sending bootmsg.
Here is my diff with the very small change:
scripts/kwboot.c +2
-2@@ -34,8 +34,8 @@ static unsigned char kwboot_msg_debug[] = { 0xDD, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 }; -#define KWBOOT_MSG_REQ_DELAY 1000/* ms */ -#define KWBOOT_MSG_RSP_TIMEO 1000/* ms */ +#define KWBOOT_MSG_REQ_DELAY 10/* ms */ +#define KWBOOT_MSG_RSP_TIMEO 50/* ms */ /* * Xmodem Transfers btw.:
Quoted 9 lines
Quoted 2 lines
Now I see that the internal ROM bootloader could also boot from SATA device - this sounds interesting. I will try that next weekend.
Boot source is determined by bootstrap pins, i.e. some pull-up/pull-down resistors on board. UART boot mode check was added to BootROM in some later Kirkwoods and _additionally_ checks for UART boot source.
You cannot just change the default boot source without soldering.
... and I don't have any schematics. Okay, maybe I will reverse engineer the hardware layout one day. I know there are some other not soldered pin headers, maybe I have luck.
Thanks for this information.
- Alex
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox