diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-01-09 22:16:53 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-16 18:08:20 +0000 |
| commit | ca4901d8340e194d6b9c7b88ea43550aa44059ad (patch) | |
| tree | 1c39573f4b44132311b3c669bf23d6b8e5a24cbe | |
| parent | 90f5f60992ea023a1ae310249c9a3013e6602b27 (diff) | |
| download | poky-ca4901d8340e194d6b9c7b88ea43550aa44059ad.tar.gz | |
README.hardware: update MPC8315E-RDB section
Added instructions to flash and boot device from USB stick.
[YOCTO #8719]
(From meta-yocto rev: 69d7d159f07eed1ca71f6530e1a7822146878575)
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 | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/README.hardware b/README.hardware index 562f1960f2..e6ccf7808e 100644 --- a/README.hardware +++ b/README.hardware | |||
| @@ -203,6 +203,75 @@ linux/arch/powerpc/boot/dts/mpc8315erdb.dts within the kernel source). If | |||
| 203 | you have left them at the factory default then you shouldn't need to do | 203 | you have left them at the factory default then you shouldn't need to do |
| 204 | anything here. | 204 | anything here. |
| 205 | 205 | ||
| 206 | Note: To boot from USB disk you need u-boot that supports 'ext2load usb' | ||
| 207 | command. You need to setup TFTP server, load u-boot from there and | ||
| 208 | flash it to NOR flash. | ||
| 209 | |||
| 210 | Beware! Flashing bootloader is potentially dangerous operation that can | ||
| 211 | brick your device if done incorrectly. Please, make sure you understand | ||
| 212 | what below commands mean before executing them. | ||
| 213 | |||
| 214 | Load the new u-boot.bin from TFTP server to memory address 200000 | ||
| 215 | => tftp 200000 u-boot.bin | ||
| 216 | |||
| 217 | Disable flash protection | ||
| 218 | => protect off all | ||
| 219 | |||
| 220 | Erase the old u-boot from fe000000 to fe06ffff in NOR flash. | ||
| 221 | The size is 0x70000 (458752 bytes) | ||
| 222 | => erase fe000000 fe06ffff | ||
| 223 | |||
| 224 | Copy the new u-boot from address 200000 to fe000000 | ||
| 225 | the size is 0x70000. It has to be greater or equal to u-boot.bin size | ||
| 226 | => cp.b 200000 fe000000 70000 | ||
| 227 | |||
| 228 | Enable flash protection again | ||
| 229 | => protect on all | ||
| 230 | |||
| 231 | Reset the board | ||
| 232 | => reset | ||
| 233 | |||
| 234 | --- Booting from USB disk --- | ||
| 235 | |||
| 236 | 1. Flash partitioned image to the USB disk | ||
| 237 | |||
| 238 | # dd if=core-image-minimal-mpc8315e-rdb.wic of=/dev/sdb | ||
| 239 | |||
| 240 | 2. Plug USB disk into the MPC8315 board | ||
| 241 | |||
| 242 | 3. Connect the board's first serial port to your workstation and then start up | ||
| 243 | your favourite serial terminal so that you will be able to interact with | ||
| 244 | the serial console. If you don't have a favourite, picocom is suggested: | ||
| 245 | |||
| 246 | $ picocom /dev/ttyUSB0 -b 115200 | ||
| 247 | |||
| 248 | 4. Power up or reset the board and press a key on the terminal when prompted | ||
| 249 | to get to the U-Boot command line | ||
| 250 | |||
| 251 | 5. Optional. Load the u-boot.bin from the USB disk: | ||
| 252 | |||
| 253 | => usb start | ||
| 254 | => ext2load usb 0:1 200000 u-boot.bin | ||
| 255 | |||
| 256 | and flash it to NOR flash as described above. | ||
| 257 | |||
| 258 | 6. Set fdtaddr and loadaddr. This is not necessary if you set them before. | ||
| 259 | |||
| 260 | => setenv fdtaddr a00000 | ||
| 261 | => setenv loadaddr 1000000 | ||
| 262 | |||
| 263 | 7. Load the kernel and dtb from first partition of the USB disk: | ||
| 264 | |||
| 265 | => usb start | ||
| 266 | => ext2load usb 0:1 $loadaddr uImage | ||
| 267 | => ext2load usb 0:1 $fdtaddr dtb | ||
| 268 | |||
| 269 | 8. Set bootargs and boot up the device | ||
| 270 | |||
| 271 | => setenv bootargs root=/dev/sdb2 rw rootwait console=ttyS0,115200 | ||
| 272 | => bootm $loadaddr - $fdtaddr | ||
| 273 | |||
| 274 | |||
| 206 | --- Booting from NFS root --- | 275 | --- Booting from NFS root --- |
| 207 | 276 | ||
| 208 | Load the kernel and dtb (device tree blob), and boot the system as follows: | 277 | Load the kernel and dtb (device tree blob), and boot the system as follows: |
