Got another Dump of 768K. Named it mtd0.dns-320l. kwbooting works fine like usual. But no self booting from NAND :( root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320l -p Sending boot message. Please reboot the target...| Sending boot image... 0 % [......................................................................] ..... 99 % [......................by Ironaxe - uBoot
Ok. I'll do another dump and see if it works.by Ironaxe - uBoot
bodhi Wrote: ------------------------------------------------------- > Ironaxe, > > > Creating 7 MTD partitions on "nand_mtd": > 0x000000000000-0x000000100000 : "u-boot" > > > That's your mtd0. You only need to dump this with > nanddump. > > # this nanddump command produces the 1MB file > mtd0.dns-320 in the current diby Ironaxe - uBoot
But the original mtd0 Partition size was 1M. So the "old" dump was 1M too. Should ist have been smaller without OOB and ECC? I recently modified the mtd0 Dump so ist loads faster through kwboot. ( Saved it under another name, and it is only 462K in size. Deleted nearly the whole FF Part from the middle to the end with a Hex Editor. )by Ironaxe - uBoot
root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target...- Sending boot image... 0 % [......................................................................] ..... 99 % [......................................................................] 99 % [..] ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.by Ironaxe - uBoot
Maybe the best thing would be to bypass the NAND. But the question is if it is possible on this Box. It would be allso a great sollution for the other Box without NAND.by Ironaxe - uBoot
root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target...| Sending boot image... 0 % [......................................................................] ..... 99 % [......................................................................] 99 % [..] ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (by Ironaxe - uBoot
root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] ..... 99 % [..] ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 006by Ironaxe - uBoot
There you go: root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] 0 % [......................................................................] 1 % [........................................................by Ironaxe - uBoot
Hi, tried that too without luck. root@debian:/backup# flash_erase /dev/mtd0 0 0 Erasing 128 Kibyte @ 7f64df5c00000064 -- 8 % complete root@debian:/backup# nandwrite /dev/mtd0 mtd0.dns-320 Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 Writing data to block 4 at offby Ironaxe - uBoot
root@debian:/backup# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00500000 00020000 "uImage" mtd2: 00500000 00020000 "ramdisk" mtd3: 06400000 00020000 "image" mtd4: 00a00000 00020000 "mini firmware" mtd5: 00500000 00020000 "config" mtd6: 00200000 00020000 "my-dlink" root@debianby Ironaxe - uBoot
Ok. Don't know how this came there ^^ Its working so far, the only thing left to do ( besides from more tinkering ;) ) is to get the Box to boot on its own. Booting via kwboot works fine. If i dont interrupt U-Boot it boots the Kernel from USB ( even from NAND, so the NAND should be OK ) but it refuses to boot on its own :(by Ironaxe - uBoot
Echo"ing" the LED´s works. Accidentaly attached all Led´s to USB and everything was blinking when i accessed the Stick.by Ironaxe - uBoot
Ok, when i boot up the USB Stick e.g. bootm ......... and have a HDD attached the Stick changes form sda1 to sdb1 and hence it wont boot right. maybe with 2 HDD´s it changes to sdc1 ? Normally you would have 1 or 2 HDD´s installed but if not it does not boot ? One Step after another ^^ Marvell>> bootm 0x800000 0x2100000 ## Booting image at 00800000 ... Image Name: Lby Ironaxe - uBoot
Yep. The Power LED starts blinking while booting and stays solid when the system is up. I´ll try to test it :) Next thing would be to get the Box starting on its own without kwboot. Regarding the Power LED i found this The MCU D-Link put a small Microcontroller on /dev/ttyS1 at 115200 baud. The responsibility of this Weltrend MCU is to supervise the system, to act as a RTC and to waby Ironaxe - uBoot
Looking good so far. No LED Output ( except the Power LED is blinking ). ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 1by Ironaxe - uBoot
That worked. ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Totby Ironaxe - uBoot
Lol. OK. I tried to compile the Kernel with the DTS File, but when it boots the uImage i get a "wrong Hardware ID" Error.by Ironaxe - uBoot
Better :) Just no Ethernet.... Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.0by Ironaxe - uBoot
So close ^^ root@debian:/u-boot# ./tools/kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] 0 % [......................................................................] 1 % [..........................................................by Ironaxe - uBoot
Ok. Then lets go this way. ( More reading ^^ ) Hope you can help me further. ^^by Ironaxe - uBoot
Im using the mtd0.dns-320 with kwboot. ( was the only File that worked so far ) root@debian:/u-boot# ./tools/kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] 0 % [.....................................................................by Ironaxe - uBoot
Marvell>> setenv mtdids 'nand0=nand_mtd' Marvell>> setenv mtdparts 'mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)' Marvell>> mtdparts device nand0 <nand_mtd>, # parts = 2 #: name size offset mask_flags 0: uboot 0x000c0000 0x00000000 1 1: root 0x07f00000 0x00100000 0 active partition: nand0by Ironaxe - uBoot
OK. Tried the above. But the Box does not boot itself without kwboot. :(by Ironaxe - uBoot
After setenv........ Marvell>> mtdparts device nand0 <nand_mtd>, # parts = 2 #: name size offset mask_flags 0: uboot 0x000c0000 0x00000000 1 1: root 0x07f00000 0x00100000 0 active partition: nand0,0 - (uboot) 0x000c0000 @ 0x00000000 defaults: mtdids : <NULL> mtdparts: <NULL> I would do: usb start ...... fatlby Ironaxe - uBoot
Marvell>> printenv bootargs=root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none bootcmd=nand read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000 baudrate=115200 loads_echo=0 ipaddr=2.66.66.201 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes stdin=serial stdout=serial stderr=serial console=cby Ironaxe - uBoot
Marvell>> mtdparts mtdids not defined, no default present Marvell>> help ? - alias for 'help' SatR - sample at reset sub-system, relevent for DB only base - print or set address offset boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootext2 dev:boot_part1,boot_part2 addr boot_image linuby Ironaxe - uBoot
Thx. But mtdparts are not defined in the default configuration.by Ironaxe - uBoot