Skip to content

Instantly share code, notes, and snippets.

@changtimwu
Last active August 29, 2015 14:19
Show Gist options
  • Save changtimwu/0f9e433542e106d51569 to your computer and use it in GitHub Desktop.
Save changtimwu/0f9e433542e106d51569 to your computer and use it in GitHub Desktop.
how to update uboot in poncat
# show original value
Marvell>>print linux_parts
linux_parts=mtdparts=nand_mtd:0xc0000(uboot)ro,0x40000(env),0x400000(kernel),0x7600000(writable),0x500000(rescue)

# set linux_parts to new value
Marvell>>set linux_parts "mtdparts=nand_mtd:0xc0000(uboot),0x40000(env),0x400000(kernel),0x7600000(writable),0x500000(rescue)"

# check the new value
Marvell>>print linux_parts
linux_parts=mtdparts=nand_mtd:0xc0000(uboot),0x40000(env),0x400000(kernel),0x7600000(writable),0x500000(rescue)

# save
Marvell>> save
Saving Environment to NAND...
Erasing Nand at 0x000C0000 to 0x00100000 ...
Writing Nand at 0x000C0000 to 0x00100000 ...
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment