HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot March 07, 2012 05:36PM |
Registered: 12 years ago Posts: 501 |
# MTD device name Device offset Env. size Flash sector size /dev/mtd0 0x60000 0x20000 0x20000
tftpboot 0x800000 u-boot_032012_pogoplugE02-debian nand erase 0x0 0x80000 nand write.e 0x800000 0x0 0x80000If all has gone well, you'll see something like:
PogoE02> tftpboot 0x800000 u-boot_032012_pogoplugE02-debian Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.150 Filename 'u-boot_032012_pogoplugE02-debian'. Load address: 0x800000 Loading: #################################### done Bytes transferred = 524288 (80000 hex) PogoE02> nand erase 0x0 0x80000 NAND erase: device 0 offset 0x0, size 0x80000 Erasing at 0x60000 -- 100% complete. OK PogoE02> nand write.e 0x800000 0x0 0x80000 NAND write: device 0 offset 0x0, size 0x80000 524288 bytes written: OKIf everything looks good, then execute
reset
U-Boot 2011.12-00447-gfca94c3-dirty (Mar 04 2012 - 21:39:45) Pogoplug E02 SoC: Kirkwood 88F6281_A0 DRAM: 256 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 Hit any key to stop autoboot: 0 PogoE02>
setenv ethaddr 00:25:31:02:CD:67 setenv ipaddr 192.168.11.150 setenv serverip 192.168.11.149 setenv machid 831 saveenvAfter executing saveenv, you'll see this sort of output:
Saving Environment to NAND... Erasing Nand... Erasing at 0x60000 -- 100% complete. Writing to Nand... done
tftpboot 0x00800000 uImage-sheeva-wheezy tftpboot 0x01100000 uInitrd-sheeva-wheezy
PogoE02> tftpboot 0x00800000 uImage-sheeva-wheezy Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.150 Filename 'uImage-sheeva-wheezy'. Load address: 0x800000 Loading: ################################################################# ########################################## done Bytes transferred = 1570560 (17f700 hex) PogoE02> tftpboot 0x01100000 uInitrd-sheeva-wheezy Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.150 Filename 'uInitrd-sheeva-wheezy'. Load address: 0x1100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ########################################################### done Bytes transferred = 4678867 (4764d3 hex)Then set bootarg as needed, and boot. (do not make these persistent by executing saveenv, as they are needed only for the install process)
setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most bootm 0x00800000 0x01100000
setenv bootargs_console console=ttyS0,115200 setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x00800000 /uImage; ext2load usb 0:1 0x01100000 /uInitrd' setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_usb; bootm 0x00800000 0x01100000'and of course make them persistent by executing
saveenvOnce this is all set up and arranged, from within u-boot's command line interface, execute a
reset
# MTD device name Device offset Env. size Flash sector size /dev/mtd0 0x60000 0x20000 0x20000This will allow you to change u-boot's env var values from while booted in Linux. Exercise caution while changing any of these. If in doubt, read the u-boot documentation at http://www.denx.de/wiki/U-Boot/WebHome .
Robert Mugabe
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot March 08, 2012 06:26AM |
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot March 08, 2012 08:34PM |
Registered: 12 years ago Posts: 501 |
deb
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot March 11, 2012 09:49AM |
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot March 27, 2012 02:51PM |
Registered: 12 years ago Posts: 9 |
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot March 27, 2012 03:31PM |
Registered: 12 years ago Posts: 501 |
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot March 30, 2012 02:28PM |
Registered: 12 years ago Posts: 501 |
setenv bootargs_console console=ttyS0,115200 setenv bootcmd_mmc 'mmc init; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd' setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000' saveenv
docbee
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot April 09, 2012 03:28AM |
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot April 09, 2012 04:31PM |
Registered: 12 years ago Posts: 501 |
Re: HowTo: Mainline/Minimal Wheezy Install via Debian Installer/Netboot August 03, 2012 05:56AM |
Registered: 12 years ago Posts: 8 |
u-boot>> version U-Boot 2011.12 (Feb 12 2012 - 21:33:07) Seagate FreeAgent DockStar arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 u-boot>>