Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorNick Daly <Nick.M.Daly@gmail.com>2014-03-07 14:02:05 -0600
committerNick Daly <Nick.M.Daly@gmail.com>2014-03-07 14:02:05 -0600
commit62515a0584c90de7458cac3612af1306105e1986 (patch)
treea18127f54a45656099aad158102d68e37b883ca3 /README
parent1ab155310f3954ca074e20efda6ca6280245b660 (diff)
Added instructions to save DP MAC addresses before flashing.
HUGE thanks to Markus for providing the information I needed to actually figure this whole ridiculous mess out.
Diffstat (limited to 'README')
-rw-r--r--README35
1 files changed, 28 insertions, 7 deletions
diff --git a/README b/README
index 486bc20..a9e0a6f 100644
--- a/README
+++ b/README
@@ -77,13 +77,29 @@ USB cord into your main system and access the serial port with::
# screen /dev/ttyUSB0 115200
-Now, interrupt the boot process so you can flash it from within the bootloader,
-before the GNU/Linux system takes over so you can actually write the new uBoot
-file. If you get to the "sf erase" step, *make sure to complete the "sf write"
-step before turning off your plug.* If you turn off your plug before finishing
-the write step, your plug will be unbootable.
+Now, interrupt the boot process. You'll need to save your DreamPlug's Ethernet
+interface MAC addresses because they'll be erased during the update and we'll
+need to restore them at the end of the process. If you don't save the MAC
+addresses, the FreedomBox will automatically create random MAC addresses during
+the box's first boot. Letting the box set a random MAC address should be a last
+resort, because those MAC addresses are unusual and can easily identify your
+system as a FreedomBox.
-Load and write the new bootloader::
+To find the current MAC addresses, run:
+
+ > printenv
+
+The MAC addresses will be on lines like these. Save the whole line:
+
+ > ethaddr=F0:AD:4E:00:00:00
+ > eth1addr=F0:AD:4E:00:00:01
+
+Now that you've recorded the MAC addresses for each interface, you need to write
+the new uBoot file. If you get to the "sf erase" step, *make sure to complete
+the "sf write" step before turning off your plug.* If you turn off your plug
+before finishing the write step, your plug will be unbootable.
+
+Load and write the new bootloader:
> usb start
> fatload usb 2 0x6400000 dreamplug/u-boot.kwb
@@ -237,13 +253,18 @@ from tar about timestamps being in the future. It is safe to ignore these.
On reboot, you may want to interrupt the boot and type the following to ensure
you boot from the internal microSD by default. This bootcmd line elides the
-time-consuming attempts to boot from gigE, which makes boot go much faster:
+time-consuming attempts to boot from gigE, which makes boot go much faster. If
+you flashed the bootloader, you'll need to replace the *ethaddr* and *eth1addr*
+lines with the MAC addresses you previously recorded. If you didn't record MAC
+addresses, completely exclude those two lines.
setenv bootcmd '${x_bootcmd_usb}; ${x_bootcmd_kernel}; ${x_bootcmd_initrd}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000 0x6900000;'
setenv x_bootcmd_kernel fatload usb 0 0x6400000 uImage
setenv x_bootcmd_initrd fatload usb 0 0x6900000 uInitrd
setenv x_bootargs console=ttyS0,115200
setenv x_bootargs_root root=/dev/sda2 rootdelay=10
+ setenv ethaddr=F0:AD:4E:00:00:00
+ setenv eth1addr=F0:AD:4E:00:00:01
saveenv
reset