2017.07 kirkwood uboot for dlink dns-325 ?
May 27, 2021 06:52PM
With latest kernels > 2MiO my Dlink dns-325 refuse to boot with CRC error

Eg :


## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   uImage
   Created:      2021-05-27  22:58:38 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5381888 Bytes = 5.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!


I tried the kernel from buster-backports and the one from bodhi on this forum. Same result.

I am using u-boot 2014.01 ; and I read that old versions of u-boot may have limits on uImage size, and the two new kernels I tried are over 2MB.

So I would like to try the 2017.07 version offered by bodhi but there is no image for my dns-325.

What would it take to compile/get one ?

Thanks by advance.
Re: 2017.07 kirkwood uboot for dlink dns-325 ?
May 27, 2021 08:23PM
octalis,

This one has gone back to 2015. I forgot all about it because nobody has requested this u-boot!

https://forum.doozan.com/read.php?2,23181,24994#msg-24994


> I am using u-boot 2014.01 ; and I read that old
> versions of u-boot may have limits on uImage size,
> and the two new kernels I tried are over 2MB.

Are you booting with davygravy 2014 version? or version from mainline?

Please post a complete serial console log (so I can see u-boot banner).

It might be the size limitation. But I need to look at the source to see if it is true.

I can build the mainline version for you easily. But I would prefer to patch it so that it conforms to my structure of envs and envs location for other Kirkwood boxes (so I can release it in the future).

Can you run UART booting (kwboot) with this box? make sure you've tried this before updating u-boot in NAND.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2017.07 kirkwood uboot for dlink dns-325 ?
May 28, 2021 02:49AM
Thanks for your reply :)



Quote
bodhi
Are you booting with davygravy 2014 version? or version from mainline?

Comparing the build time between the thread you pointed and the one displayed on my u-boot, it seems to be davygravy 2014 version I am currently using.

my u-boot log is bellow :


U-Boot 2014.01 (Jan 21 2014 - 18:35:47)
D-Link DNS-325

SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0


Quote
bodhi
Can you run UART booting (kwboot) with this box? make sure you've tried this before updating u-boot in NAND.

Yes.

Other question regarding u-boot flashing, I do have bad blocks in my NAND (using ubifs) :

Quote
bodhi
root@merou:~# dmesg | grep -i 'bad'
[ 35.414410] Scanning device for bad blocks
[ 35.491409] Bad eraseblock 756 at 0x000005e80000
[ 35.496111] Bad eraseblock 757 at 0x000005ea0000
[ 35.500814] Bad eraseblock 758 at 0x000005ec0000
[ 35.505512] Bad eraseblock 759 at 0x000005ee0000
[ 41.260325] ubi0 warning: ubi_eba_init [ubi]: cannot reserve enough PEBs for bad PEB handling, reserved 10, need 16
[ 41.314532] ubi0: good PEBs: 1012, bad PEBs: 4, corrupted PEBs: 0
[ 41.336432] ubi0: available PEBs: 0, total reserved PEBs: 1012, PEBs reserved for bad PEB handling: 10

Is it risky to flash u-boot ?
Re: 2017.07 kirkwood uboot for dlink dns-325 ?
May 28, 2021 03:26AM
octalis,

Quote

root@merou:~# dmesg | grep -i 'bad'
[ 35.414410] Scanning device for bad blocks
[ 35.491409] Bad eraseblock 756 at 0x000005e80000
[ 35.496111] Bad eraseblock 757 at 0x000005ea0000
[ 35.500814] Bad eraseblock 758 at 0x000005ec0000
[ 35.505512] Bad eraseblock 759 at 0x000005ee0000
[ 41.260325] ubi0 warning: ubi_eba_init [ubi]: cannot reserve enough PEBs for bad PEB handling, reserved 10, need 16
[ 41.314532] ubi0: good PEBs: 1012, bad PEBs: 4, corrupted PEBs: 0
[ 41.336432] ubi0: available PEBs: 0, total reserved PEBs: 1012, PEBs reserved for bad PEB handling: 10

The bad blocks are way out in NAND, so it is safe to flash u-boot (block 0 to 7).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2017.07 kirkwood uboot for dlink dns-325 ?
June 05, 2021 04:35PM
octalis,

Attached to this post is u-boot 2021.04 for the DNS-325. This is untested, do not flash to NAND.

Please try kwboot to see if you can boot with it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2021.04-tld-1.dns325.mtd0.kwb (640 KB)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: