Skip to content

Instantly share code, notes, and snippets.

@chattama
Created September 5, 2012 08:13
Show Gist options
  • Save chattama/3633126 to your computer and use it in GitHub Desktop.
Save chattama/3633126 to your computer and use it in GitHub Desktop.
u-boot
mkimage -A arm -C none -O linux -T kernel -d ../kernel/linux/arch/arm/boot/zImage -a 0x00010000 -e 0x00010000 zImage.uimg
mkimage -A arm -C none -O linux -T ramdisk -d initramfs.gz -a 0x00800000 -e 0x00800000 rootfs.uimg
dd if=/dev/zero of=flash.bin bs=1 count=6M
dd if=../boot/u-boot-2012.07/u-boot.bin of=flash.bin conv=notrunc bs=1
dd if=zImage.uimg of=flash.bin conv=notrunc bs=1 seek=2M
dd if=rootfs.uimg of=flash.bin conv=notrunc bs=1 seek=4M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment