diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-10-14 11:19:51 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-15 10:01:44 +0100 |
commit | 06e07182d3664a1ef9eab856220517c21f71c8d0 (patch) | |
tree | aba335608208c901cd63e31d3ae86a244ec5987c | |
parent | fb49654cbaef049b8175b20884d4e9917b551ab5 (diff) | |
download | poky-06e07182d3664a1ef9eab856220517c21f71c8d0.tar.gz |
README.hardware: update Edgerouter section
Updated image creation instructions. Used wic images instead
of manually putting rootfs and kernel to SD card.
[YOCTO #8719]
(From meta-yocto rev: 2b030a6061a33334bec63fce23447cbbe1846c86)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | README.hardware | 62 |
1 files changed, 6 insertions, 56 deletions
diff --git a/README.hardware b/README.hardware index 8defba4812..d7e24d2282 100644 --- a/README.hardware +++ b/README.hardware | |||
@@ -301,75 +301,25 @@ Load the kernel, and boot the system as follows: | |||
301 | => tftp tftp $loadaddr vmlinux | 301 | => tftp tftp $loadaddr vmlinux |
302 | => bootoctlinux $loadaddr coremask=0x3 root=/dev/nfs rw nfsroot=<nfsroot ip>:<rootfs path> ip=<board ip>:<server ip>:<gateway ip>:<netmask>:edgerouter:eth0:off mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom) | 302 | => bootoctlinux $loadaddr coremask=0x3 root=/dev/nfs rw nfsroot=<nfsroot ip>:<rootfs path> ip=<board ip>:<server ip>:<gateway ip>:<netmask>:edgerouter:eth0:off mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom) |
303 | 303 | ||
304 | --- Booting from USB root --- | 304 | --- Booting from USB disk --- |
305 | 305 | ||
306 | To boot from the USB disk, you either need to remove it from the edgerouter | 306 | To boot from the USB disk, you either need to remove it from the edgerouter |
307 | box and populate it from another computer, or use a previously booted NFS | 307 | box and populate it from another computer, or use a previously booted NFS |
308 | image and populate from the edgerouter itself. | 308 | image and populate from the edgerouter itself. |
309 | 309 | ||
310 | Type 1: Mounted USB disk | 310 | Type 1: Use partitioned image |
311 | ------------------------ | 311 | ----------------------------- |
312 | |||
313 | To boot from the USB disk there are two available partitions on the factory | ||
314 | USB storage. The rest of this guide assumes that these partitions are left | ||
315 | intact. If you change the partition scheme, you must update your boot method | ||
316 | appropriately. | ||
317 | |||
318 | The standard partitions are: | ||
319 | |||
320 | - 1: vfat partition containing factory kernels | ||
321 | - 2: ext3 partition for the root filesystem. | ||
322 | |||
323 | You can place the kernel on either partition 1, or partition 2, but the roofs | ||
324 | must go on partition 2 (due to its size). | ||
325 | |||
326 | Note: If you place the kernel on the ext3 partition, you must re-create the | ||
327 | ext3 filesystem, since the factory u-boot can only handle 128 byte inodes and | ||
328 | cannot read the partition otherwise. | ||
329 | 312 | ||
330 | Steps: | 313 | Steps: |
331 | 314 | ||
332 | 1. Remove the USB disk from the edgerouter and insert it into a computer | 315 | 1. Remove the USB disk from the edgerouter and insert it into a computer |
333 | that has access to your build artifacts. | 316 | that has access to your build artifacts. |
334 | 317 | ||
335 | 2. Copy the kernel image to the USB storage (assuming discovered as 'sdb' on | 318 | 2. Flash the image. |
336 | the development machine): | ||
337 | |||
338 | 2a) if booting from vfat | ||
339 | |||
340 | # mount /dev/sdb1 /mnt | ||
341 | # cp tmp/deploy/images/edgerouter/vmlinux /mnt | ||
342 | # umount /mnt | ||
343 | |||
344 | 2b) if booting from ext3 | ||
345 | |||
346 | # mkfs.ext3 -I 128 /dev/sdb2 | ||
347 | # mount /dev/sdb2 /mnt | ||
348 | # mkdir /mnt/boot | ||
349 | # cp tmp/deploy/images/edgerouter/vmlinux /mnt/boot | ||
350 | # umount /mnt | ||
351 | |||
352 | 3. Extract the rootfs to the USB storage ext3 partition | ||
353 | |||
354 | # mount /dev/sdb2 /mnt | ||
355 | # tar -xvjpf core-image-minimal-XXX.tar.bz2 -C /mnt | ||
356 | # umount /mnt | ||
357 | |||
358 | 4. Reboot the board and press a key on the terminal when prompted to get to the U-Boot | ||
359 | command line: | ||
360 | |||
361 | 5. Load the kernel and boot: | ||
362 | |||
363 | 5a) vfat boot | ||
364 | |||
365 | => fatload usb 0:1 $loadaddr vmlinux | ||
366 | 319 | ||
367 | 5b) ext3 boot | 320 | # dd core-image-minimal-edgerouter.wic of=/dev/sdb |
368 | 321 | ||
369 | => ext2load usb 0:2 $loadaddr boot/vmlinux | 322 | 3. Insert USB disk into the edgerouter and boot it. |
370 | |||
371 | => bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom) | ||
372 | |||
373 | 323 | ||
374 | Type 2: NFS | 324 | Type 2: NFS |
375 | ----------- | 325 | ----------- |