nguyen
Boot uboot-original-mtd0.kwb from USB into Pogoplug September 19, 2010 10:49PM |
nguyen
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug September 25, 2010 01:34AM |
setenv bootargs console=$console root=/dev/mtdblock3 rootfstype=jffs2 setenv partition nand0,3 fsload /boot/uImage bootm 0x800000
usb_init ext2load usb $usb_device 0x800000 /uboot-original-mtd0.kwb go 0x800200Remember copy uboot-original-mtd0.kwb to USB root.
flash_eraseall /dev/mtd3 mkdir /tmp/openwrt mount -t jffs2 /dev/mtdblock3 /tmp/openwrt cd /tmp/openwrt tar -xzvf openwrt-kirkwood-rootfs.tar.gz mkdir boot cp openwrt-kirkwood-uImage boot/uImage
nguyen
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug September 25, 2010 11:45PM |
bootdelay=3 baudrate=115200 preboot= arcNumber=2097 mainlineLinux=yes console=ttyS0,115200 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand led_init=green blinking led_exit=green off led_error=orange blinking stdin=serial stdout=serial stderr=serial ethact=egiga0 ethaddr=00:00:00:11:22:33 usb_start=usb start usb_stop=usb stop usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd_usb=run usb_load_uimage; run set_bootargs_usb; run usb_boot usb_load_uboot=ext2load usb $usb_device 0x800000 uboot-original-mtd0.kwb usb_uboot_boot=go 0x800200 bootcmd_usb_pogo=run usb_load_uboot; run usb_uboot_boot linux_partition=setenv partition nand0,3 linux_root=/dev/mtdblock3 linux_rootdelay=1 linux_rootfstype=jffs2 linux_load_uimage=fsload 0x800000 /boot/uImage linux_boot=bootm 0x800000 set_bootargs_linux=setenv bootargs console=$console root=$linux_root rootdelay=$linux_rootdelay rootfstype=$linux_rootfstype bootcmd_linux=run linux_partition; run linux_load_uimage; run set_bootargs_linux; run linux_boot pogo_partition=setenv partition nand0,2 pogo_load=fsload uboot-original-mtd0.kwb pogo_boot=go 0x800200 bootcmd_pogo=run pogo_partition; run pogo_load; run pogo_boot bootcmd=run usb_start; run bootcmd_usb; run bootcmd_usb_pogo; run usb_stop; run bootcmd_linux; run bootcmd_pogo; reset
fw_setenv partition fw_setenv usb_init fw_setenv usb_start 'usb start' fw_setenv usb_stop 'usb stop' fw_setenv usb_device '0:1' fw_setenv usb_root '/dev/sda1' fw_setenv usb_rootfstype ext2 fw_setenv usb_rootdelay 10 fw_setenv usb_load_uimage 'mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage' fw_setenv set_bootargs_usb 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts' fw_setenv usb_boot 'if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi' fw_setenv bootcmd_usb 'run usb_load_uimage; run set_bootargs_usb; run usb_boot' fw_setenv usb_load_uboot 'ext2load usb $usb_device 0x800000 uboot-original-mtd0.kwb' fw_setenv usb_uboot_boot 'go 0x800200' fw_setenv bootcmd_usb_pogo 'run usb_load_uboot; run usb_uboot_boot' fw_setenv linux_partition 'setenv partition nand0,3' fw_setenv linux_root '/dev/mtdblock3' fw_setenv linux_rootdelay 1 fw_setenv linux_rootfstype jffs2 fw_setenv linux_load_uimage 'fsload 0x800000 /boot/uImage' fw_setenv linux_boot 'bootm 0x800000' fw_setenv set_bootargs_linux 'setenv bootargs console=$console root=$linux_root rootdelay=$linux_rootdelay rootfstype=$linux_rootfstype' fw_setenv bootcmd_linux 'run linux_partition; run linux_load_uimage; run set_bootargs_linux; run linux_boot' fw_setenv pogo_partition 'setenv partition nand0,2' fw_setenv pogo_load 'fsload uboot-original-mtd0.kwb' fw_setenv pogo_boot 'go 0x800200' fw_setenv bootcmd_pogo 'run pogo_partition; run pogo_load; run pogo_boot' fw_setenv bootcmd 'run usb_start; run bootcmd_usb; run bootcmd_usb_pogo; run usb_stop; run bootcmd_linux; run bootcmd_pogo; reset'
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug October 02, 2010 11:22AM |
Registered: 12 years ago Posts: 7 |
nguyen
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug October 17, 2010 10:23PM |
bootdelay=3 baudrate=115200 preboot= arcNumber=2097 mainlineLinux=yes console=ttyS0,115200 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand led_init=green blinking led_exit=green off led_error=orange blinking stdin=serial stdout=serial stderr=serial ethact=egiga0 ethaddr=00:00:00:11:22:33 usb_start=usb start usb_stop=usb stop usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd_usb=run usb_load_uimage; run set_bootargs_usb; run usb_boot bootcmd_usb_pogo=if ext2load usb $usb_device 0x800000 uboot-original-mtd0.kwb; then go 0x800200; fi linux_partition=setenv partition nand0,3 linux_root=/dev/mtdblock3 linux_rootdelay=1 linux_rootfstype=jffs2 set_bootargs_linux=setenv bootargs console=$console root=$linux_root rootdelay=$linux_rootdelay rootfstype=$linux_rootfstype linux_boot=if fsload 0x800000 /boot/uImage; then bootm 0x800000; fi bootcmd_linux=run linux_partition; run set_bootargs_linux; run linux_boot pogo_partition=setenv partition nand0,2 pogo_boot=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi bootcmd_pogo=run pogo_partition; run pogo_boot bootcmd=run usb_start; run bootcmd_usb; run bootcmd_usb_pogo; run usb_stop; run bootcmd_linux; run bootcmd_pogo; reset
fw_setenv partition fw_setenv usb_init fw_setenv usb_start 'usb start' fw_setenv usb_stop 'usb stop' fw_setenv usb_device '0:1' fw_setenv usb_root '/dev/sda1' fw_setenv usb_rootfstype ext2 fw_setenv usb_rootdelay 10 fw_setenv usb_load_uimage 'mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage' fw_setenv set_bootargs_usb 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts' fw_setenv usb_boot 'if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi' fw_setenv bootcmd_usb 'run usb_load_uimage; run set_bootargs_usb; run usb_boot' fw_setenv bootcmd_usb_pogo 'if ext2load usb $usb_device 0x800000 uboot-original-mtd0.kwb; then go 0x800200; fi' fw_setenv linux_partition 'setenv partition nand0,3' fw_setenv linux_root '/dev/mtdblock3' fw_setenv linux_rootdelay 1 fw_setenv linux_rootfstype jffs2 fw_setenv set_bootargs_linux 'setenv bootargs console=$console root=$linux_root rootdelay=$linux_rootdelay rootfstype=$linux_rootfstype' fw_setenv linux_boot 'if fsload 0x800000 /boot/uImage; then bootm 0x800000; fi' fw_setenv bootcmd_linux 'run linux_partition; run set_bootargs_linux; run linux_boot' fw_setenv pogo_partition 'setenv partition nand0,2' fw_setenv pogo_boot 'if fsload uboot-original-mtd0.kwb; then go 0x800200; fi' fw_setenv bootcmd_pogo 'run pogo_partition; run pogo_boot' fw_setenv bootcmd 'run usb_start; run bootcmd_usb; run bootcmd_usb_pogo; run usb_stop; run bootcmd_linux; run bootcmd_pogo; reset'
Ranganadh
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug January 23, 2012 07:19PM |
dpffan
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug January 23, 2012 07:32PM |
Notice that we load the image at 0x800000 but start running it from 0x800200. This is because the first 0x200 bytes of are the kirkwood image header, and the real executable starts after the header.
Ranganadh
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug January 23, 2012 07:37PM |
dpffan
Re: Boot uboot-original-mtd0.kwb from USB into Pogoplug January 24, 2012 08:23AM |