HI,
We have designed our board with DM365 processor and we are in the production mode.
We want to update Uboot in our DM365 based board from U-boot serial port prompt.
We have hardwired the nand boot mode and we can only update ubl/uboot using JTAG Emulator. We have a production lot of 100 boards with uboot, which does not have Ethernet support. We have recently added the Ethernet support in updated U-boot and we want to update all 100 boards without JTAG Emulator.
We tried following script to create an uboot.bin image with header but the resulted image does not solve our problem. The U-boot is written at 0x19 block
#####################################################################################
#!/bin/bash -e
PAGESIZE=2048
FIRSTBLOCK=25
MAGIC=0xA1ACED66
SIZE=$(stat --format '%s' u-boot.bin)
ENTRYPOINT=$(readelf -h u-boot | grep "Entry point" | cut -d : -f 2)
binary() {
printf '\\x%02x' $(( $1 & 0xff ))
printf '\\x%02x' $(( ($1 >> 8) & 0xff ))
printf '\\x%02x' $(( ($1 >> 16) & 0xff ))
printf '\\x%02x' $(( ($1 >> 24) & 0xff ))
}
printf $(binary $MAGIC) > u-boot.ubl
printf $(binary $ENTRYPOINT) >> u-boot.ubl
printf $(binary $(( ($SIZE / $PAGESIZE)+1 ))) >> u-boot.ubl
printf $(binary FIRSTBLOCK) >> u-boot.ubl
printf $(binary 1) >> u-boot.ubl
printf $(binary $ENTRYPOINT) >> u-boot.ubl
dd if=u-boot.bin of=u-boot.ubl bs=$PAGESIZE seek=1
echo "Created u-boot.ubl"
########################################################################################
After updating the image using following command
loady 0x80700000
nand write 0x320000 0x40000
When we reboot the system using reset command it gives following error
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
DM36x initialization passed!
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = NAND
Starting NAND Copy...
No valid boot image found!
NAND Boot failed.
Aborting...
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Can anyone please suggest us the solution for this problem?
Regards,
Jagdish