Page 4 of 4

Re: Flash U-Boot 5big2 after flash failure

PostPosted: Tue Mar 21, 2023 1:33 pm
by fvdw
:thumbup ok that looks more like it, you should be able now to connect via telnet and access the standalone kernel

Perculiar that using a 2big2 nand uboot version instead of 5big2 nand confuses the kernel. Probably because it set the machine mach number to 2big2 and the kernel setup uses that number to configure the kernel.

So finally we got it working. Nice

Re: Flash U-Boot 5big2 after flash failure

PostPosted: Tue Mar 21, 2023 1:51 pm
by wvwaard
Yep !

It boots , but still with kwboot.

Cant get the NAND to load and i do see some error messages in de the DMESG.

There is one other way i can try to upload U-boot and that is via bubt
thats the command that got me in trouble in the first place ;-)

Re: Flash U-Boot 5big2 after flash failure

PostPosted: Tue Mar 21, 2023 1:55 pm
by wvwaard
bubt output :

TFTP from server 192.168.2.34; our IP address is 192.168.2.10
Filename 'u-boot.bin'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
##########
done
Bytes transferred = 1048576 (100000 hex)
Error! invalid extende header checksum

maybe md5 file needs to be present also??

Re: Flash U-Boot 5big2 after flash failure

PostPosted: Tue Mar 21, 2023 2:06 pm
by fvdw
the md5 file is used by fvdw-sl console before using bubt command to be sure that the file is not corrupt.
Seems something is not right with checksum.

you could try to use bubt with this file

Re: Flash U-Boot 5big2 after flash failure

PostPosted: Tue Mar 21, 2023 2:31 pm
by wvwaard
YES YES YES !!

We did it !

Back from the dead ..... It worked with the last zip file you posted and bubt !!

So....

setenv autoload no; dhcp
setenv serverip = $ip
bubt

it asks for the u-boot.bin file which you setup on the tftp server dir.

Let me know if you have any other questions. Awesome job and thanks so much !!!!!

Re: Flash U-Boot 5big2 after flash failure

PostPosted: Tue Mar 21, 2023 2:41 pm
by fvdw
:bananadance
Nice, the problem with the partition image file was that file length (1MB) did match the checksum. This because the original uboot image that was put in flash had only size of 449 kB. That size was used to calculated checksum which is present in the header.
The copy of the whole has size of 1MB so checksum of that 1MB file doesn't match with the value in the header.

The newly compiled uboot kwb file has the right size to match the checksum in the header.
So learned something today, we cannot use partition image to put uboot in flash using bubt command.

Re: Flash U-Boot 5big2 after flash failure

PostPosted: Tue Mar 21, 2023 2:46 pm
by wvwaard
Yes awesome.

Have been add this for days and i finally pays off.

It opens up a lot of nice things to try out !

Thanks so much and lets both keep good backups of this file !

Going to make an extra donation for your website and help.

Walter