Skip to content
Snippets Groups Projects
Commit d0dcb7c4 authored by Jonas Höglund's avatar Jonas Höglund
Browse files

Add ddr3 values in nand binary

parent 1dd34b5b
Branches
No related tags found
No related merge requests found
#!/bin/bash
mediatek=$1
if [ ! $1 ]; then
echo "Pass the path to mediatek/Uboot as an argument"
exit -1
fi
DDR_CHIP=DEFAULT_DDR3_2048M
CFG_ENV_IS=IN_NAND
cp mt7621_stage_L2.bin uboot_a.bin cp mt7621_stage_L2.bin uboot_a.bin
$mediatek/mt7621_ddr.sh uboot_a.bin uboot_a.bin $mediatek/mt7621_ddr_param.txt $DDR_CHIP $CFG_ENV_IS
echo "0 10"|xxd -r|dd bs=1 count=1 seek=38 of=uboot_a.bin conv=notrunc
echo "0 11"|xxd -r|dd bs=1 count=1 seek=39 of=uboot_a.bin conv=notrunc echo "0 11"|xxd -r|dd bs=1 count=1 seek=39 of=uboot_a.bin conv=notrunc
chmod 777 uboot_a.bin chmod 777 uboot_a.bin
...@@ -12,7 +24,8 @@ echo "$(((bytes + 4095)/4096))" ...@@ -12,7 +24,8 @@ echo "$(((bytes + 4095)/4096))"
dd if=u-boot.bin of=uboot_a.bin bs=1 count=$count seek=$(( ((bytes + 4095)/4096) * 4096 - 64 )) conv=notrunc dd if=u-boot.bin of=uboot_a.bin bs=1 count=$count seek=$(( ((bytes + 4095)/4096) * 4096 - 64 )) conv=notrunc
/home/kenjo/proj/inteno/mediatek/Uboot/tools/mkimage -A mips -T standalone -C none \ echo "$mkimage/tools/mkimage"
$mediatek/tools/mkimage -A mips -T standalone -C none \
-a 0xA0200000 -e 0xa0200000 \ -a 0xA0200000 -e 0xa0200000 \
-n "NAND Flash Image" \ -n "NAND Flash Image" \
-r DDR3 -s 16 -t 256 -u 32 \ -r DDR3 -s 16 -t 256 -u 32 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment