| | 34 | == Installing v2.3 manually == |
| | 35 | 2.4 has licencing check, and using automated onie install does not partition CF card. We will follow old instructions for upgrading switch, but use ONIE to format CF card, as u-boot flash environment does not exist. |
| | 36 | |
| | 37 | Steps: |
| | 38 | 1. reboot into uboot |
| | 39 | 1. run onie_rescue |
| | 40 | 1. partitioning the cf card |
| | 41 | 1. We need 2 partitions, partition 2 needs to be at least 400MB, and partition 1 gets what's left, but a minimum of 550MB to hold the image, so we need a 1gb cf card at minimum, larger is better. |
| | 42 | 1. run fdisk -l |
| | 43 | 1. you will see |
| | 44 | {{{ |
| | 45 | Disk /dev/sda: 1045 MB, 1045094400 bytes |
| | 46 | 32 heads, 63 sectors/track, 1012 cylinders |
| | 47 | Units = cylinders of 2016 * 512 = 1032192 bytes |
| | 48 | |
| | 49 | Device Boot Start End Blocks Id System |
| | 50 | /dev/sda1 * 1 1012 1020064+ 6 FAT16 |
| | 51 | Partition 1 has different physical/logical endings: |
| | 52 | phys=(999, 31, 63) logical=(1011, 31, 63) |
| | 53 | }}} |
| | 54 | 1. calculate cylinder boundaries |
| | 55 | 1. Note total cylinders (1012) , and total size, in MB (1045) |
| | 56 | 1. Divide total size by 400, (1045/400)= 2.6125 |
| | 57 | 1. Divide total cylinders by 2.6125 (1012/2.6125)=387.36... |
| | 58 | 1. Round up to nearest 10 or so. 387... to 390. |
| | 59 | 1. subtract 1012-390 = 622 |
| | 60 | 1. type fdisk /dev/sda |
| | 61 | 1. type d, then 1 to delete partition 1 |
| | 62 | {{{ |
| | 63 | Command (m for help): d |
| | 64 | Selected partition 1 |
| | 65 | }}} |
| | 66 | 1. create new partition with n p 1 622 |
| | 67 | {{{ |
| | 68 | Command (m for help): n |
| | 69 | Command action |
| | 70 | e extended |
| | 71 | p primary partition (1-4) |
| | 72 | p |
| | 73 | Partition number (1-4): 1 |
| | 74 | First cylinder (1-3970, default 1): 1 |
| | 75 | Last cylinder or +size or +sizeM or +sizeK (1-1012 default 1012): 622 |
| | 76 | }}} |
| | 77 | 1. create second partition with n p 2 enter enter (uses defaults) |
| | 78 | {{{ |
| | 79 | Command (m for help): n |
| | 80 | Command action |
| | 81 | e extended |
| | 82 | p primary partition (1-4) |
| | 83 | p |
| | 84 | Partition number (1-4): 2 |
| | 85 | First cylinder (623-1012, default 623): <Enter> Using default value 623 |
| | 86 | Last cylinder or +size or +sizeM or +sizeK (623-1012, default 1012): <Enter> Using default value 1012 |
| | 87 | }}} |
| | 88 | 1. press w to write and exit. |
| | 89 | 1. Formatting |
| | 90 | 1. mke2fs -j /dev/sda1* |
| | 91 | 1. mke2fs -j /dev/sda2* |
| | 92 | 1. Mount the cf card |
| | 93 | 1. mkdir /cf_card |
| | 94 | 1. mount /dev/sda1 /cf_card |
| | 95 | 1. Download image. |
| | 96 | 1. tftp -g -l rootfs.tar.gz -r (picos image name) 10.50.0.42 |
| | 97 | 1. extract image |
| | 98 | 1. tar -zxvf rootfs.tar.gz -C /cf_card/ |
| | 99 | 1. cf /cf_card |
| | 100 | 1. sync |
| | 101 | 1. reboot into new os |
| | 102 | 1. reboot |